<HTML dir=ltr><HEAD><TITLE>Re: [U-Boot-Users] [PATCH] ColdFire: Get information from the correct GCC</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText19203 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Shinya,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Which linux distro are you using?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>TsiChung</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Shinya Kuribayashi [mailto:skuribay@ruby.dti.ne.jp]<BR><B>Sent:</B> Fri 5/2/2008 8:25 PM<BR><B>To:</B> Liew Tsi Chung<BR><B>Cc:</B> wd@denx.de; U-Boot-Users; Rigby John; Mahan Kurt<BR><B>Subject:</B> Re: [U-Boot-Users] [PATCH] ColdFire: Get information from the correct GCC<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Liew Tsi Chung wrote:<BR>&gt; when gcc version is 4.2. When it comes to linking, the $(shell $(CC)<BR>&gt; --version) becomes other value and select the -m5407 option with<BR>&gt; different libgcc.<BR><BR>I reverted this $(CC)-$(CROSS_COMPILE)gcc-conversion patch and built<BR>with M54455EVB_config and CodeSourcery's freescale-coldfire-4.2-125-<BR>m68k-uclinux-i686-pc-linux-gnu.tar.bz2. But couldn't reproduce.<BR><BR>---<BR>[snip]<BR>&nbsp; :<BR>make[1]: Entering directory `/home/skuribay/devel/u-boot.git/board/freescale/m54455evb'<BR>m68k-uclinux-gcc -g&nbsp; -Os&nbsp;&nbsp; -ffixed-d7 -msep-data -D__KERNEL__ -DTEXT_BASE=0x04000000 -I/home/skuribay/devel/u-boot.git/include -fno-builtin -ffreestanding -nos<BR>tdinc -isystem /opt/codesourcery/freescale-coldfire-4.2/bin/../lib/gcc/m68k-uclinux/4.2.3/include -pipe&nbsp; -DCONFIG_M68K -D__M68K__ -mcpu=54455 -fPIC -DTEXT_BASE<BR>=0x04000000 -Wall -Wstrict-prototypes -c -o m54455evb.o m54455evb.c<BR>m68k-uclinux-gcc -g&nbsp; -Os&nbsp;&nbsp; -ffixed-d7 -msep-data -D__KERNEL__ -DTEXT_BASE=0x04000000 -I/home/skuribay/devel/u-boot.git/include -fno-builtin -ffreestanding -nos<BR>tdinc -isystem /opt/codesourcery/freescale-coldfire-4.2/bin/../lib/gcc/m68k-uclinux/4.2.3/include -pipe&nbsp; -DCONFIG_M68K -D__M68K__ -mcpu=54455 -fPIC -DTEXT_BASE<BR>=0x04000000 -Wall -Wstrict-prototypes -c -o flash.o flash.c<BR>m68k-uclinux-gcc -g&nbsp; -Os&nbsp;&nbsp; -ffixed-d7 -msep-data -D__KERNEL__ -DTEXT_BASE=0x04000000 -I/home/skuribay/devel/u-boot.git/include -fno-builtin -ffreestanding -nos<BR>tdinc -isystem /opt/codesourcery/freescale-coldfire-4.2/bin/../lib/gcc/m68k-uclinux/4.2.3/include -pipe&nbsp; -DCONFIG_M68K -D__M68K__ -mcpu=54455 -fPIC -DTEXT_BASE<BR>=0x04000000 -Wall -Wstrict-prototypes -c -o mii.o mii.c<BR>m68k-uclinux-ar crv libm54455evb.a m54455evb.o flash.o mii.o<BR>a - m54455evb.o<BR>a - flash.o<BR>a - mii.o<BR>make[1]: Leaving directory `/home/skuribay/devel/u-boot.git/board/freescale/m54455evb'<BR>make -C /home/skuribay/devel/u-boot.git/board/freescale/m54455evb/ u-boot.lds<BR>make[1]: Entering directory `/home/skuribay/devel/u-boot.git/board/freescale/m54455evb'<BR>make[1]: Nothing to be done for `u-boot.lds'.<BR>make[1]: Leaving directory `/home/skuribay/devel/u-boot.git/board/freescale/m54455evb'<BR>UNDEF_SYM=`m68k-uclinux-objdump -x board/freescale/m54455evb/libm54455evb.a lib_generic/libgeneric.a board/freescale/common/libfreescale.a cpu/mcf5445x/libmcf5445x.a lib_m68k/libm68k.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/net/libnet.a drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/usb/libusb.a drivers/video/libvideo.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a | \<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sed&nbsp; -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cd /home/skuribay/devel/u-boot.git &amp;&amp; m68k-uclinux-ld -Bstatic -T /home/skuribay/devel/u-boot.git/board/freescale/m54455evb/u-boot.lds&nbsp; -n -Ttext 0x04000000 $UNDEF_SYM cpu/mcf5445x/start.o \<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --start-group lib_generic/libgeneric.a board/freescale/common/libfreescale.a cpu/mcf5445x/libmcf5445x.a lib_m68k/libm68k.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/net/libnet.a drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/usb/libusb.a drivers/video/libvideo.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a board/freescale/m54455evb/libm54455evb.a --end-group -L /opt/codesourcery/freescale-coldfire-4.2/bin/../lib/gcc/m<BR>68k-uclinux/4.2.3/msep-data -lgcc \<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Map u-boot.map -o u-boot<BR>m68k-uclinux-objcopy --gap-fill=0xff -O srec u-boot u-boot.srec<BR>m68k-uclinux-objcopy --gap-fill=0xff -O binary u-boot u-boot.bin<BR>skuribay@debian:~/devel/u-boot.git$<BR><BR>---<BR><BR>As already Wolfgang pointed out, `gcc -print-libgcc-file-name' of your<BR>toolchain seems weird. This might be buildroot problem?<BR><BR>(1) Please show us the '-print-libgcc-file-name' part with your patch<BR>&nbsp;&nbsp;&nbsp; applied:<BR><BR>&nbsp;&nbsp;&nbsp; $(CC) $(CFLAGS) -print-libgcc-file-name<BR>&nbsp;&nbsp;&nbsp; ---------------------------------------<BR><BR>&nbsp;&nbsp;&nbsp; (without patch)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /opt/freescale/usr/local/gcc-4.2.47-uclibc-0.9.47/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m68k-uclinux/lib/gcc/m68k-uclinux/4.2.1/m5407/msep-data<BR><BR>&nbsp;&nbsp;&nbsp; (with patch)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* we'd like to confirm this one */<BR><BR>(2) Could you try other toolchains, such as this one[1], in order to<BR>&nbsp;&nbsp;&nbsp; sort this out?<BR><BR>&nbsp; Shinya<BR><BR>[1] <A href="http://www.codesourcery.com/gnu_toolchains/coldfire/download.html">http://www.codesourcery.com/gnu_toolchains/coldfire/download.html</A><BR><BR></FONT></P></DIV></BODY></HTML>