[Buildroot] Compilation error in function `imaxdiv', undefined reference to `__divdi3', undefined reference to `__moddi3'

jing han jing_han_66 at yahoo.com
Thu Jun 25 18:41:47 UTC 2009

Since I 
encountered "Compilation error in _fpmaxtostr.c", I did a make clean, make 
distclean, and I did make again, this time I encountered the following 
compiling error:
rm -rf 
mkdir -p /home/jhan/Desktop/buildroot-2009.05/project_build_mips/uclibc
cp -dpRf package/config/buildroot-config 
/usr/bin/make -j1 -C 
PREFIX=/home/jhan/Desktop/buildroot-2009.05/build_mips/staging_dir \
        DEVEL_PREFIX=/usr/ \
        RUNTIME_PREFIX=/ \
        install_runtime install_dev
make[1]: Entering directory 
  LN include/bits/pthreadtypes.h
  LN include/pthread.h
  LD libuClibc-
libc/libc_so.a(lldiv.os): In function 
lldiv.c:(.text+0x3c): undefined reference to `__divdi3'
lldiv.c:(.text+0x64): undefined reference to `__moddi3'
collect2: ld 
returned 1 exit status
make[1]: *** [lib/libc.so] Error 1
Leaving directory 
make: *** 
Error 2
Again, I make uclibc environment on 
Fedora core 5 system,  I set the target architecture variant  to 
be MIPS64 and target ABI to be n32.
Can anybody 
tell me how to get around this, it's a bug?  I need your help.
Thanks a lot.
I'm looking 
forward to hearing from you.

Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com

More information about the buildroot mailing list