Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] arm-linux-ld: BFD 2.16.1 assertion fail
@ 2010-11-17 11:10 Tamamontu M
  2010-11-17 16:16 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Tamamontu M @ 2010-11-17 11:10 UTC (permalink / raw)
  To: buildroot

Hi Guys,

This is my post to this mailing list. Let me introduce myself, i have a cirrus logic EP9307 based board, with arm-linux-gcc 3.4 compiler. I am new to linux arm environment.  

I am trying to compile fat16 file system (originally based on lpc2148 arm-elf-gcc). After porting it to EP9307, this source code uses std libraries, hence in order to use std libraries I added -L/usr/local/arm/3.4/lib -lc  to LDFLAGS in make file.

when i try to compile i get an unknown error.
------------------------------------------------------------------------
make
make -C main
make[1]: Entering directory `/home/pritam/spi_boot_example/SDcard_bootloader_fat16/main'
arm-linux-gcc -MM -O2 -Wall -fPIC -mcpu=arm9tdmi -I../include -nostdlib head.S main.c print.c spi.c sd_raw.c delay.c rootdir.c partition.c fat16.c    1>.depend
arm-linux-gcc -O2 -Wall -fPIC -mcpu=arm9tdmi -I../include -nostdlib -r -o mainrom.o head.o main.o print.o spi.o sd_raw.o delay.o rootdir.o partition.o fat16.o   
make[1]: Leaving directory `/home/pritam/spi_boot_example/SDcard_bootloader_fat16/main'
arm-linux-ld -nostdlib -T SDcard_bootloader_fat16.lnk -Map SDcard_bootloader_fat16.map -L/usr/local/arm/3.4/lib -lc  -o SDcard_bootloader_fat16.elf main/mainrom.o
arm-linux-ld: BFD 2.16.1 assertion fail /opt/buildroot/toolchain_build_arm_nofpu/binutils-2.16.1/bfd/elf32-arm.c:5013
arm-linux-ld: BFD 2.16.1 assertion fail /opt/buildroot/toolchain_build_arm_nofpu/binutils-2.16.1/bfd/elf32-arm.c:5013
arm-linux-ld: BFD 2.16.1 assertion fail /opt/buildroot/toolchain_build_arm_nofpu/binutils-2.16.1/bfd/elf32-arm.c:5013
arm-linux-ld: BFD 2.16.1 assertion fail /opt/buildroot/toolchain_build_arm_nofpu/binutils-2.16.1/bfd/elf32-arm.c:5013
arm-linux-ld: BFD 2.16.1 assertion fail /opt/buildroot/toolchain_build_arm_nofpu/binutils-2.16.1/bfd/elf32-arm.c:5013
arm-linux-ld: BFD 2.16.1 assertion fail /opt/buildroot/toolchain_build_arm_nofpu/binutils-2.16.1/bfd/elf32-arm.c:5013
arm-linux-ld: BFD 2.16.1 assertion fail /opt/buildroot/toolchain_build_arm_nofpu/binutils-2.16.1/bfd/elf32-arm.c:5013
arm-linux-ld: BFD 2.16.1 assertion fail /opt/buildroot/toolchain_build_arm_nofpu/binutils-2.16.1/bfd/elf32-arm.c:5013
/usr/local/arm/3.4/lib/libc.so: undefined reference to `main'
arm-linux-ld: BFD 2.16.1 assertion fail /opt/buildroot/toolchain_build_arm_nofpu/binutils-2.16.1/bfd/elf32-arm.c:5013
arm-linux-ld: BFD 2.16.1 assertion fail /opt/buildroot/toolchain_build_arm_nofpu/binutils-2.16.1/bfd/elf32-arm.c:5013
arm-linux-ld: BFD 2.16.1 assertion fail /opt/buildroot/toolchain_build_arm_nofpu/binutils-2.16.1/bfd/elf32-arm.c:5013
arm-linux-ld: BFD 2.16.1 assertion fail /opt/buildroot/toolchain_build_arm_nofpu/binutils-2.16.1/bfd/elf32-arm.c:5013
arm-linux-ld: BFD 2.16.1 assertion fail /opt/buildroot/toolchain_build_arm_nofpu/binutils-2.16.1/bfd/elf32-arm.c:5013
arm-linux-ld: BFD 2.16.1 assertion fail /opt/buildroot/toolchain_build_arm_nofpu/binutils-2.16.1/bfd/elf32-arm.c:5203
make: *** [SDcard_bootloader] Segmentation fault
------------------------------------------------------------------------

I have also attached the make file along with this email. It will be a life save if some one can please tell me what this error is, how to fix it.

Thanks
Tama


      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 746 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101117/9f575fd1/attachment.obj>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] arm-linux-ld: BFD 2.16.1 assertion fail
  2010-11-17 11:10 [Buildroot] arm-linux-ld: BFD 2.16.1 assertion fail Tamamontu M
@ 2010-11-17 16:16 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2010-11-17 16:16 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 17 Nov 2010 03:10:23 -0800 (PST)
Tamamontu M <tamamontu@yahoo.com.au> wrote:

> This is my post to this mailing list. Let me introduce myself, i have
> a cirrus logic EP9307 based board, with arm-linux-gcc 3.4 compiler. I
> am new to linux arm environment.  
> 
> I am trying to compile fat16 file system (originally based on lpc2148
> arm-elf-gcc). After porting it to EP9307, this source code uses std
> libraries, hence in order to use std libraries I added
> -L/usr/local/arm/3.4/lib -lc  to LDFLAGS in make file.

How is this related to Buildroot ?

You should also probably upgrade your toolchain, gcc 3.4 is now very
old.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-17 16:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-17 11:10 [Buildroot] arm-linux-ld: BFD 2.16.1 assertion fail Tamamontu M
2010-11-17 16:16 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox