avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Error building gcc 4.5.2 for AVR


From: Omar Choudary
Subject: [avr-gcc-list] Error building gcc 4.5.2 for AVR
Date: Tue, 25 Jan 2011 17:26:43 +0000

Hello,

I am trying to build GCC 4.5.2 for the AVR target. See my script:
http://www.cl.cam.ac.uk/~osc22/files/install_avr_tools.sh

I have some troubles when building, see below, maybe you can
help me; thanks:

...
make[2]: Leaving directory
`/local/scratch/osc22/temp/build-avr/gcc-build-4.5.2/libcpp'
make[2]: Entering directory
`/local/scratch/osc22/temp/build-avr/gcc-build-4.5.2/libdecnumber'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory
`/local/scratch/osc22/temp/build-avr/gcc-build-4.5.2/libdecnumber'
make[2]: Entering directory
`/local/scratch/osc22/temp/build-avr/gcc-build-4.5.2/libiberty'
make[3]: Entering directory
`/local/scratch/osc22/temp/build-avr/gcc-build-4.5.2/libiberty/testsuite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/local/scratch/osc22/temp/build-avr/gcc-build-4.5.2/libiberty/testsuite'
/bin/bash 
/local/scratch/osc22/temp/build-avr/gcc-4.5.2/libiberty/../mkinstalldirs
/local/scratch/osc22/tools/avr/lib/`gcc -g -O2
-print-multi-os-directory`
/usr/bin/install -c -m 644 ./libiberty.a
/local/scratch/osc22/tools/avr/lib/`gcc -g -O2
-print-multi-os-directory`/./libiberty.an
( cd /local/scratch/osc22/tools/avr/lib/`gcc -g -O2
-print-multi-os-directory` ; chmod 644 ./libiberty.an ;ranlib
./libiberty.an )
mv -f /local/scratch/osc22/tools/avr/lib/`gcc -g -O2
-print-multi-os-directory`/./libiberty.an
/local/scratch/osc22/tools/avr/lib/`gcc -g -O2
-print-multi-os-directory`/./libiberty.a
if test -n ""; then \
          case "" in \
            /*)    thd=;; \
            *)     thd=/local/scratch/osc22/tools/avr/include/;; \
          esac; \
          /bin/bash
/local/scratch/osc22/temp/build-avr/gcc-4.5.2/libiberty/../mkinstalldirs
${thd}; \
          for h in
/local/scratch/osc22/temp/build-avr/gcc-4.5.2/libiberty/../include/ansidecl.h
/local/scratch/osc22/temp/build-avr/gcc-4.5.2/libiberty/../include/demangle.h
/local/scratch/osc22/temp/build-avr/gcc-4.5.2/libiberty/../include/dyn-string.h
/local/scratch/osc22/temp/build-avr/gcc-4.5.2/libiberty/../include/fibheap.h
/local/scratch/osc22/temp/build-avr/gcc-4.5.2/libiberty/../include/floatformat.h
/local/scratch/osc22/temp/build-avr/gcc-4.5.2/libiberty/../include/hashtab.h
/local/scratch/osc22/temp/build-avr/gcc-4.5.2/libiberty/../include/libiberty.h
/local/scratch/osc22/temp/build-avr/gcc-4.5.2/libiberty/../include/objalloc.h
/local/scratch/osc22/temp/build-avr/gcc-4.5.2/libiberty/../include/partition.h
/local/scratch/osc22/temp/build-avr/gcc-4.5.2/libiberty/../include/safe-ctype.h
/local/scratch/osc22/temp/build-avr/gcc-4.5.2/libiberty/../include/sort.h
/local/scratch/osc22/temp/build-avr/gcc-4.5.2/libiberty/../include/splay-tree.h;
do \
            /usr/bin/install -c -m 644 $h ${thd}; \
          done; \
        fi
make[3]: Entering directory
`/local/scratch/osc22/temp/build-avr/gcc-build-4.5.2/libiberty/testsuite'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory
`/local/scratch/osc22/temp/build-avr/gcc-build-4.5.2/libiberty/testsuite'
make[2]: Leaving directory
`/local/scratch/osc22/temp/build-avr/gcc-build-4.5.2/libiberty'
/bin/bash: line 3: cd: avr/libgcc: No such file or directory
make[1]: *** [install-target-libgcc] Error 1
make[1]: Leaving directory `/local/scratch/osc22/temp/build-avr/gcc-build-4.5.2'
make: *** [install] Error 2


It seems the build cannot find the folder avr/libgcc, but why?


When running, the libgcc error above kicks in:
avr-gcc  -mmcu=at90usb1287 -Wl,-Map=SCD.map SCD.o EMV.o halSCD.o
scdIO.o utils.o terminal.o  halSCD.S SCD.S    -o SCD.elf
/local/scratch/osc22/tools/avr/lib/gcc/avr/4.5.2/../../../../avr/bin/ld:
cannot find crtusb1286.o: No such file or directory
/local/scratch/osc22/tools/avr/lib/gcc/avr/4.5.2/../../../../avr/bin/ld:
cannot find -lgcc
/local/scratch/osc22/tools/avr/lib/gcc/avr/4.5.2/../../../../avr/bin/ld:
skipping incompatible
/local/scratch/osc22/tools/avr/lib/gcc/avr/4.5.2/../../../../avr/lib/libc.a
when searching for -lc
/local/scratch/osc22/tools/avr/lib/gcc/avr/4.5.2/../../../../avr/bin/ld:
cannot find -lc
/local/scratch/osc22/tools/avr/lib/gcc/avr/4.5.2/../../../../avr/bin/ld:
cannot find -lgcc


Info about the avr-gcc:
avr-gcc -v
Using built-in specs.
COLLECT_GCC=avr-gcc
COLLECT_LTO_WRAPPER=/local/scratch/osc22/tools/avr/libexec/gcc/avr/4.5.2/lto-wrapper
Target: avr
Configured with:
/local/scratch/osc22/temp/build-avr/gcc-4.5.2/configure --target=avr
--prefix=/local/scratch/osc22/tools/avr -v --program-prefix=avr-
--with-gcc --with-gnu-ld --with-gnu-as --with-dwarf2 --disable-libssp
--enable-languages=c,c++ --disable-werror --disable-nls
--disable-shared --disable-multilib --disable-threads
Thread model: single
gcc version 4.5.2 (GCC)



Thanks,
 Omar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]