[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Lib problems.
From: |
Russell Shaw |
Subject: |
Re: [avr-gcc-list] Lib problems. |
Date: |
Mon, 24 Mar 2003 18:59:25 +1100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030311 Debian/1.2.1-10 |
Mark Williams (MWP) wrote:
Hello,
Can anyone explain this?
address@hidden avr-test]# avr-gcc -Wl,-Map=test.map,--cref -mmcu=at90s8535
-Wl,--rpath -Wl,/usr/local/avr/lib -Wl,-L/usr/local/avr/lib -o test.out test.o
eeprom.o /usr/local/avr/lib/gcc-lib/avr/3.3/../../../../avr/bin/ld: cannot open
crts8535.o: No such file or directory
make: *** [test.out] Error 1
When:
address@hidden avr-test]# dir /usr/local/avr/lib/crts8535.o
4 -rw-r--r-- 1 root root 2884 Mar 21 12:45
/usr/local/avr/lib/crts8535.o
This is the C initialization routine that is statically linked into your prom
image.
"/usr/local/avr/lib" has been added to /etc/ld.so.conf and ldconfig has been
run.
ld.so is the linux run-time linker for shared *system* libraries, so it is
meaningless
for a program that is going to run on foreign hardware.
Make sure crts8535.o is in the avr-gcc search path:
address@hidden: avr-gcc -print-search-dirs
install: /usr/local/lib/gcc-lib/avr/3.3/
programs:
=/usr/local/lib/gcc-lib/avr/3.3/:/usr/local/lib/gcc-lib/avr/3.3/:/usr/local/lib/gcc-lib/avr/:
/usr/lib/gcc/avr/3.3/:/usr/lib/gcc/avr/:/usr/local/lib/gcc-lib/avr/3.3/../../../../avr/bin/avr/3.3/:
/usr/local/lib/gcc-lib/avr/3.3/../../../../avr/bin/
libraries: =/usr/local/lib/gcc-lib/avr/3.3/:/usr/lib/gcc/avr/3.3/:
/usr/local/lib/gcc-lib/avr/3.3/../../../../avr/lib/avr/3.3/:
/usr/local/lib/gcc-lib/avr/3.3/../../../../avr/lib/