[U-Boot-Users] erro occure when compiling mips dbau1000

陈国林 glchen at ict.ac.cn
Thu Aug 19 13:51:34 CEST 2004


hi, the following is the version info

Reading specs from /usr/tools/lib/gcc-lib/mipsel-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-93.2)

GNU ld version 2.11.90.0.24 (with BFD 2.11.90.0.24)

should i update them to the same version as yours?	

======= 2004-08-19 16:01:26 您在来信中写道:=======

>On Wed, 2004-08-18 at 16:52, 陈国林 wrote:
>> hello, every one.
>
>Hi
>
>> 	i want to port u-boot to a mips R4X00 based board, so firstly i try to  compile the dbau1000 as an example, but when linking, error occure as the following: 
>> 
>> make[1]: Leaving directory `/root/u-boot/common'
>> UNDEF_SYM=`mipsel-linux-objdump -x lib_generic/libgeneric.a board/dbau1x00/libdbau1x00.a cpu/mips/libmips.a lib_mips/libmips.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
>>         mipsel-linux-ld -Bstatic -T /root/u-boot/board/dbau1x00/u-boot.lds -Ttext 0xbfc00000  $UNDEF_SYM cpu/mips/start.o \
>>                 --start-group lib_generic/libgeneric.a board/dbau1x00/libdbau1x00.a cpu/mips/libmips.a lib_mips/libmips.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --no-warn-mismatch -L /usr/tools/lib/gcc-lib/mipsel-linux/2.96 -lgcc --end-group \
>>                 -Map u-boot.map -o u-boot
>> cpu/mips/start.o:/root/u-boot/cpu/mips/start.S:275: undefined reference to `_GLOBAL_OFFSET_TABLE_'
>> make: *** [u-boot] Error 1
>> 
>> could anybody give some hints or advices?
>
>What versions are your gcc/binutils?
>
>I think I remember seeing this problem some months ago when playing
>around with different versions of both.
>
>In the end I decided to go with binutils 2.13 (neither 2.14 or 2.15.*
>worked for me) and gcc 3.2.3.
>
>regards
>	/
>		Leif
>
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
>100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
>Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
>http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
>_______________________________________________
>U-Boot-Users mailing list
>U-Boot-Users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/u-boot-users
>

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        陈国林
        glchen at ict.ac.cn
          2004-08-19



More information about the U-Boot mailing list