ltib
[Top][All Lists]
Advanced

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

RE: Toolchain issue on LPC3250 (was Re: [Ltib] Building problems)


From: Kevin Wells
Subject: RE: Toolchain issue on LPC3250 (was Re: [Ltib] Building problems)
Date: Thu, 19 Nov 2009 18:40:02 +0100

Paolo-

Switching to the 4.1.2 toolchain also requires that EABI support in the kernel is enabled. It's off by default in

the linux config for that board. You may also need to clean or remove your current u-boot build directory

in ./ltib/rpm/BUILD or you may end up with mixed object file types from different compilers.

 

>The missing "__aeabi_unwind_cpp_pr0" can be fixed by adding "-lgcc_s" to the link command line.

Peter-

I'll test this and look at making a permanent change for this today and update the default toolchains for the

3250 based platforms to use the 4.1.2 toolchain (pending this linker issue). I'll remove the GCC 4.3.2 option

completely from the selectable toolchain options in the LTIB menu. I would like to find a way to make this

work so non-EABI toolchains willl also still work. If you have any suggestions here, please let me know.

With luck, I can have some updates tomorrow!

 

thanks,

Kevin

 

 

From: address@hidden [mailto:address@hidden On Behalf Of Peter Barada
Sent: Thursday, November 19, 2009 8:12 AM
To: Paolo Cremonese
Cc: address@hidden
Subject: Re: Toolchain issue on LPC3250 (was Re: [Ltib] Building problems)

 

On Thu, 2009-11-19 at 12:53 +0100, Paolo Cremonese wrote:

 
Hi Stuart,
I try tu build with the toolchain you suggest, but I get the error
below.
Any suggestion?
Best regards,
Paolo
 
 
 

Paolo,

When you switch toolchains, make sure that you have no source that has been configured i.e. any packages prep'd since some packages use "configure" as part of the prep stage, and that configuration may be different due to differences between cross compilers.

The missing "__aeabi_unwind_cpp_pr0" can be fixed by adding "-lgcc_s" to the link command line.


 
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/libgcc.a(_udivdi3.o):(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
make: *** [u-boot] Error 1
error: Bad exit status from /home/paolo/LPC3250/ltib/tmp/rpm-tmp.69911
(%build)
 
 
RPM build errors:
    Bad exit status from /home/paolo/LPC3250/ltib/tmp/rpm-tmp.69911 (%
build)
Build time for u-boot-1.3.3-lpc32xx: 57 seconds
 
Failed building u-boot-1.3.3-lpc32xx
 
 
f_buildrpms() returned an error, exiting
traceback:
 main:561
 
 
Started: Thu Nov 19 12:36:20 2009
Ended:   Thu Nov 19 12:44:18 2009
Elapsed: 478 seconds
 
These packages failed to build:
u-boot-1.3.3-lpc32xx 
 
Build Failed
 
Exiting on error or interrupt
 
 
On gio, 2009-11-19 at 11:13 +0000, Stuart Hughes wrote:
> Hi Paolo,
> 
> Normally this indicates a real problem with the cross-toolchain. 
> Looking at the defconfig for this package it's: 
> tc-nxp-lnx-arm-3.4.5-1.i386.rpm.  If you want to use this toolchain, 
> you'll need help from the BSP packager for this toolchain.
> 
> Alternatively you could try the first one in the list (./ltib -m 
> config): "ARMv5te gcc-4.1.2,Multi-lib,gnueabi/glibc-2.5-nptl-3"
> I've never tried on this BSP but it may work.  It certainly has worked 
> on other ARM platforms.
> 
> Regards, Stuart
> 
> Paolo Cremonese wrote:
> > Hi Rogerio,
> > Thank you.
> > I have installed the suggested package, and now the error is different:
> > Do you have another suggestion?
> > 
> > Best Regards,
> > Paolo
> > 
> > Executing(%build): /bin/sh -e /home/paolo/LPC3250/ltib/tmp/rpm-tmp.90397
> > + umask 022
> > + cd /home/paolo/LPC3250/ltib/rpm/BUILD
> > + cd libpng-1.2.8
> > + make prefix=/usr -f scripts/makefile.linux
> > gcc -I../zlib -Wall -O3 -funroll-loops     -c -o png.o png.c
> > gcc -I../zlib -Wall -O3 -funroll-loops     -c -o pngset.o pngset.c
> > gcc -I../zlib -Wall -O3 -funroll-loops     -c -o pngget.o pngget.c
> > gcc -I../zlib -Wall -O3 -funroll-loops     -c -o pngrutil.o pngrutil.c
> > gcc -I../zlib -Wall -O3 -funroll-loops     -c -o pngtrans.o pngtrans.c
> > gcc -I../zlib -Wall -O3 -funroll-loops     -c -o pngwutil.o pngwutil.c
> > gcc -I../zlib -Wall -O3 -funroll-loops     -c -o pngread.o pngread.c
> > gcc -I../zlib -Wall -O3 -funroll-loops     -c -o pngrio.o pngrio.c
> > gcc -I../zlib -Wall -O3 -funroll-loops     -c -o pngwio.o pngwio.c
> > pngrutil.c: In function 'png_get_uint_31':
> > pngrutil.c:47: internal compiler error: Segmentation fault
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See <http://gcc.gnu.org/bugs.html> for instructions.
> > make: *** [pngrutil.o] Error 1
> > make: *** Waiting for unfinished jobs....
> > error: Bad exit status from /home/paolo/LPC3250/ltib/tmp/rpm-tmp.90397
> > (%build)
> > 
> > 
> > RPM build errors:
> >     Bad exit status from /home/paolo/LPC3250/ltib/tmp/rpm-tmp.90397 (%
> > build)
> > Build time for libpng: 7 seconds
> > 
> > Failed building libpng
> > 
> > 
> > f_buildrpms() returned an error, exiting
> > traceback:
> >  main:561
> > 
> > 
> > Started: Thu Nov 19 10:56:11 2009
> > Ended:   Thu Nov 19 11:41:07 2009
> > Elapsed: 2696 seconds
> > 
> > These packages failed to build:
> > libpng 
> > 
> > Build Failed
> > 
> > Exiting on error or interrupt
> > 
> > 
 
 
 
_______________________________________________
LTIB home page: http://ltib.org
 
Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib

--
Peter Barada <address@hidden>
Logic Product Development, Inc.

 


reply via email to

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