Compilation error building u-boot in uclib for arm7 Processor

Peter S. Mazinger ps.m at gmx.net
Wed Jan 18 22:04:36 UTC 2006


On Wed, 18 Jan 2006, Akshay Kumar Behera wrote:

> Hi,
>  
> I am akshay. I am working with u-boot in uclinux platform. For that i build
> a toolchain using"buildroot" for arm7 processor. 
> When i compiled source code of u-boot, i got the following error. 
>  
> I will appreciate if any body will help me about this Problem. 
>  
>  
>  --start-group lib_generic/libgeneric.a board/ep7312/libep7312.a
> cpu/arm720t/libarm720t.a lib_arm/libarm.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
> rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a
> post/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group -L
> /root/buildroot/build_arm/staging_dir/bin-ccache/../lib/gcc/arm-linux-uclibc
> /3.4.2  \
>                 -Map u-boot.map -o u-boot
> common/libcommon.a(cmd_load.o): In function `load_serial':
> /root/buildroot/build_arm/root/u-boot-1.1.4/common/cmd_load.c:205: undefined
> reference to `__modsi3'
> common/libcommon.a(lists.o): In function `ExpandListSpace':
> /root/buildroot/build_arm/root/u-boot-1.1.4/common/lists.c:158: undefined
> reference to `__divsi3'
> /root/buildroot/build_arm/root/u-boot-1.1.4/common/lists.c:160: undefined
> reference to `__divsi3'
> board/ep7312/libep7312.a(flash.o): In function `flash_print_info':
> /root/buildroot/build_arm/root/u-boot-1.1.4/board/ep7312/flash.c:104:
> undefined reference to `__modsi3'
> fs/jffs2/libjffs2.a(jffs2_1pass.o): In function `mkmodestr':
> /root/buildroot/build_arm/root/u-boot-1.1.4/fs/jffs2/jffs2_1pass.c:759:
> undefined reference to `__modsi3'
> fs/jffs2/libjffs2.a(jffs2_1pass.o): In function `dump_inode':
> /root/buildroot/build_arm/root/u-boot-1.1.4/include/linux/time.h:89:
> undefined reference to `__divsi3'
> /root/buildroot/build_arm/root/u-boot-1.1.4/include/linux/time.h:90:
> undefined reference to `__modsi3'
> /root/buildroot/build_arm/root/u-boot-1.1.4/include/linux/time.h:103:
> undefined reference to `__divsi3'
> /root/buildroot/build_arm/root/u-boot-1.1.4/include/linux/time.h:104:
> undefined reference to `__modsi3'
> /root/buildroot/build_arm/root/u-boot-1.1.4/include/linux/time.h:105:
> undefined reference to `__divsi3'
> /root/buildroot/build_arm/root/u-boot-1.1.4/include/linux/time.h:106:
> undefined reference to `__modsi3'
> /root/buildroot/build_arm/root/u-boot-1.1.4/include/linux/time.h:109:
> undefined reference to `__modsi3'
> /root/buildroot/build_arm/root/u-boot-1.1.4/include/linux/time.h:118:
> undefined reference to `__modsi3'
> /root/buildroot/build_arm/root/u-boot-1.1.4/include/linux/time.h:118:
> undefined reference to `__modsi3'
> /root/buildroot/build_arm/root/u-boot-1.1.4/include/linux/time.h:130:
> undefined reference to `__modsi3'
> fs/jffs2/libjffs2.a(jffs2_1pass.o):/root/buildroot/build_arm/root/u-boot-1.1
> .4/include/linux/time.h:130: more undefined references to `__modsi3' follow
> make: *** [u-boot] Error 1
>  
> Thanks & Regards,
> Akshay

start/end-group trouble, the list will probably have to include libgcc.a 
to get __modsi3. Check first your libgcc.a if it defines it though, if 
not, then your gcc is broken

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list