[Buildroot] static libgcc_s

Piotr Adam Zolnierczuk pzolnier at indiana.edu
Thu Mar 1 16:20:54 UTC 2007


Ulf:

thanks for your input

The source of the problem is that AT91Bootstrap needs div - integer 
division, see
Function df_send_command in <PathToAT91Bootstrap>/driver/dataflash.c

Now  by default  buildroot  generates  only a shared version of libgcc_s.so.

Here's make output from buildroot generated toolchain 
(gcc-4.1.1/binutils-2.17)
[muon:/data/zolnie/EtherDAQ/sw/bsp/bootstrap]$ make 
CROSS_COMPILE=/opt/arm/bin/arm-linux-
cd board/at91sam9260ek/dataflash &&  make
make[1]: Entering directory 
`/data/zolnie/EtherDAQ/sw/at91sam9260ek/bootstrap/board/at91sam9260ek/dataflash'
rm -f *.o *.bin *.elf *.map
/opt/arm/bin/arm-linux-gcc -g -mcpu=arm9 -c -Os -Wall -DAT91SAM9260 
-I./../../../board/at91sam9260ek/dataflash -DTOP_OF_MEM=0x301000 
../../../crt0_gnu.S -o crt0_gnu.o
/opt/arm/bin/arm-linux-gcc -c -g -mcpu=arm9 -Os -Wall -DAT91SAM9260 
-I./../../../board/at91sam9260ek/dataflash  
../../../board/at91sam9260ek/at91sam9260ek.c -o at91sam9260ek.o
/opt/arm/bin/arm-linux-gcc -c -g -mcpu=arm9 -Os -Wall -DAT91SAM9260 
-I./../../../board/at91sam9260ek/dataflash  ../../../main.c -o main.o
/opt/arm/bin/arm-linux-gcc -c -g -mcpu=arm9 -Os -Wall -DAT91SAM9260 
-I./../../../board/at91sam9260ek/dataflash  ../../../driver/gpio.c -o gpio.o
/opt/arm/bin/arm-linux-gcc -c -g -mcpu=arm9 -Os -Wall -DAT91SAM9260 
-I./../../../board/at91sam9260ek/dataflash  ../../../driver/pmc.c -o pmc.o
/opt/arm/bin/arm-linux-gcc -c -g -mcpu=arm9 -Os -Wall -DAT91SAM9260 
-I./../../../board/at91sam9260ek/dataflash  ../../../driver/debug.c -o 
debug.o
/opt/arm/bin/arm-linux-gcc -c -g -mcpu=arm9 -Os -Wall -DAT91SAM9260 
-I./../../../board/at91sam9260ek/dataflash  ../../../driver/sdramc.c -o 
sdramc.o
/opt/arm/bin/arm-linux-gcc -c -g -mcpu=arm9 -Os -Wall -DAT91SAM9260 
-I./../../../board/at91sam9260ek/dataflash  ../../../driver/dataflash.c 
-o dataflash.o
/opt/arm/bin/arm-linux-gcc -nostartfiles 
-Wl,-Map=dataflash_at91sam9260ek.map,--cref ../../../libmygcc.a -T 
../../../elf32-littlearm.lds -Ttext 0x200000 -n -o 
dataflash_at91sam9260ek.elf crt0_gnu.o at91sam9260ek.o main.o gpio.o 
pmc.o debug.o sdramc.o dataflash.o
/opt/arm/lib/gcc/arm-linux-uclibc/4.1.1/../../../../arm-linux-uclibc/bin/ld: 
cannot find -lgcc_s
collect2: ld returned 1 exit status
make[1]: *** [dataflash_at91sam9260ek] Error 1
make[1]: Leaving directory 
`/data/zolnie/EtherDAQ/sw/at91sam9260ek/bootstrap/board/at91sam9260ek/dataflash'
make: *** [all] Error 2

When I use the static version (gcc-3.4.6/binutils-2.16.1) - compiles, 
loads and boots ok.

   Piotr


Piotr Adam Zolnierczuk
Indiana University               phone:  (812) 855-3613
Cyclotron Facility               fax:    (812) 855-6645
2401 Milo B Sampson Ln    e-mail:  pzolnier at indiana.edu
Bloomington,              http://www.iucf.indiana.edu/u/pzolnier
IN 47408
USA  
________________________________________________
                        written on recycled electrons  





More information about the buildroot mailing list