[U-Boot] [PATCH] ARM: compiler options cleanup - improve tool chain support

Prafulla Wadaskar prafulla at marvell.com
Mon Aug 24 14:41:59 CEST 2009


 

> -----Original Message-----
> From: Wolfgang Denk [mailto:wd at denx.de] 
> Sent: Monday, August 24, 2009 5:27 PM
> To: Prafulla Wadaskar
> Cc: Simon Kagstrom; u-boot at lists.denx.de; Ashish Karkare; 
> Prabhanjan Sarnaik
> Subject: Re: [U-Boot] [PATCH] ARM: compiler options cleanup - 
> improve tool chain support
> 
> Dear Prafulla Wadaskar,
> 
> In message 
> <73173D32E9439E4ABB5151606C3E19E202E3915D8B at SC-VEXCH1.marvell.
> com> you wrote:
> > 
> > > Hm... aren't there known issues with these compiler 
> versions on ARM?
> > I don't think so, I observed same behavior with sheevaplug,
> 
> Which tool chain are you using? Do you see differnt behaviour with
> and without USE_PRIVATE_LIBGCC=yes ?
> 
> > i.e. "nand_bbt: Can't scan flash and build the RAM-based 
> BBT" message in nand init
> > which was okay before this git pull
> 
> But this is a different error message, isn;t it?
> 
> > > Is this with or without USE_PRIVATE_LIBGCC=yes ?
> > Yes, the build might be with this defined "yes", without 
> this build throws error message
> 
> Argh...
> 
> Could you please provide a usable error report?
> 
> Which exact tool chain is this? What are your exact commands to
> configure and build the board? What are the exact error messages?

Toolchain
I am using toolchain bundled with fedora arm distribution
i.e.
armv5tel-redhat-linux-gnueabi-gcc -v
Using built-in specs.
Target: armv5tel-redhat-linux-gnueabi
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-languages=c,c++ --disable-libgcj
--with-sysroot=yes --enable-version-specific-runtime-libs
--target=armv5tel-redhat-linux-gnueabi
Thread model: posix
gcc version 4.1.2 20070925 (Red Hat 4.1.2-33.fa1)

Build commands:
make mrproper; make sheevaplug_config; make 
CROSS_COMPILE=armv5tel-redhat-linux-gnueabi- 2> warn.txt

> 
> > This is openrd board, not yet mainlined, it is derived from 
> sheevaplug, (na> nd is similar)
> > Alternately you can refer sheevaplug.h since problem is on 
> sheevaplug too.
> 
> I don;t see any error messages when building, and I don't have such a
> board to actually run the code.

I get following erro only if I execute following build command
make mrproper; make sheevaplug_config; make USE_PRIVATE_LIBGCC=no
CROSS_COMPILE=armv5tel-redhat-linux-gnueabi- 2> warn.txt

And cat warn.txt 
armv5tel-redhat-linux-gnueabi-ld: cannot find -lgcc
make: *** [u-boot] Error 1

Whereas,
if I unset first USE_PRIVATE_LIBGCC then I do not get this error and build is through
My invocation may be wrong but shouldn't it treat USE_PRIVATE_LIBGCC=no as unset?

> 
> > I tried removing this patch and things are normal on sheevaplug
> 
> I wish you had reported such issues when the patch was posted. There
> has been _long_ discussion about it.
I am really sory about this, I was away from h/w hence could not check in time :-(

Regards..
Prafulla . .

> 
> Best regards,
> 
> Wolfgang Denk
> 
> -- 
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> "This is a test of the Emergency Broadcast System. If this had been an
> actual emergency, do you really think we'd stick around to tell you?"
> 


More information about the U-Boot mailing list