All of lore.kernel.org
 help / color / mirror / Atom feed
From: Piotr Adam Zolnierczuk <pzolnier@indiana.edu>
To: buildroot@busybox.net
Subject: [Buildroot] static libgcc_s
Date: Thu, 01 Mar 2007 11:20:54 -0500	[thread overview]
Message-ID: <45E6FD66.7090002@indiana.edu> (raw)
In-Reply-To: <007901c75c1a$6acb4540$8c1d10ac@atmel.com>

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  

  reply	other threads:[~2007-03-01 16:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-28 15:51 [Buildroot] static libgcc_s Piotr Adam Zolnierczuk
2007-02-28 18:37 ` Thomas Lundquist
2007-02-28 21:45 ` Erik Andersen
2007-03-01  0:48   ` Piotr Adam Zolnierczuk
2007-03-01  6:13     ` Ulf Samuelsson
2007-03-01 14:42       ` Zolnierczuk, Piotr
2007-03-01 15:58         ` Ulf Samuelsson
2007-03-01 16:20           ` Piotr Adam Zolnierczuk [this message]
2007-03-01 16:55             ` Ulf Samuelsson
     [not found] <mailman.1.1172692802.12481.buildroot@uclibc.org>
2007-02-28 20:41 ` Zolnierczuk, Piotr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45E6FD66.7090002@indiana.edu \
    --to=pzolnier@indiana.edu \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.