[uClibc]Error with arm, buildroot, and root_fs - unresolved symbol __umodsi3

Christopher Hoover ch at murgatroid.com
Thu Mar 6 03:03:32 UTC 2003


I'm running into this, too, on ARM:

init: can't resolve symbol '__umodsi3'
Kernel panic: Attempted to kill init!


I am using a 3.2.2/0.9.19 cross (from x86) toolchain.  Previously I was
using 2.95.4/0.9.12, which worked fine.  The scripts to build the root
image haven't changed.

My user space is based on busybox; therefore init is busybox:

[ch at friction root-image]$ ls -l _root_/sbin/init 
lrwxrwxrwx    1 ch       ch             14 Mar  5 18:01 _root_/sbin/init
-> ../bin/busybox
[ch at friction root-image]$ ls -l _root_/bin/busybox 
-rwxr-xr-x    1 ch       ch         360088 Mar  5 18:04
_root_/bin/busybox
[ch at friction root-image]$ 


The busybox executable is getting linked as such:

[ch at friction busybox]$ rm busybox
[ch at friction busybox]$ make
arm-uclibc-gcc -s -Wl,-warn-common -o busybox ./applets/applets.a
./archival/archival.a ./archival/libunarchive/libunarchive.a
./console-tools/console-tools.a ./debianutils/debianutils.a
./editors/editors.a ./fileutils/fileutils.a ./findutils/findutils.a
./init/init.a ./miscutils/miscutils.a ./modutils/modutils.a
./networking/networking.a ./networking/libiproute/libiproute.a
./networking/udhcp/udhcp.a ./procps/procps.a ./loginutils/loginutils.a
./shell/shell.a ./shellutils/shellutils.a ./sysklogd/sysklogd.a
./textutils/textutils.a ./util-linux/util-linux.a ./libbb/libbb.a
./libpwdgrp/libpwdgrp.a -lm
arm-uclibc-strip --remove-section=.note --remove-section=.comment
busybox

[ch at friction busybox]$ arm-uclibc-ldd busybox
        libm.so.0 => /usr/local/arm/3.2.2-uclibc-0.9.19/lib/libm.so.0
(0x00000000)
        libc.so.0 => /usr/local/arm/3.2.2-uclibc-0.9.19/lib/libc.so.0
(0x00000000)
        /lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)
[ch at friction busybox]$ 


My root image contains /lib/libgcc_s.so{,0.9.9}:

[ch at friction root-image]$ ls _root_/lib/
ld-uClibc-0.9.19.so  libiw.so.25           libresolv.so.0
ld-uClibc.so.0       libm-0.9.19.so        libstdc++.so
libcrypt-0.9.19.so   libm.so               libstdc++.so.5
libcrypt.so          libm.so.0             libstdc++.so.5.0.2
libcrypt.so.0        libnsl-0.9.19.so      libuClibc-0.9.19.so
libc.so              libnsl.so             libutil-0.9.19.so
libc.so.0            libnsl.so.0           libutil.so
libdl-0.9.19.so      libpthread-0.9.19.so  libutil.so.0
libdl.so             libpthread.so         libz.so
libdl.so.0           libpthread.so.0       libz.so.1
libgcc_s.so          libresolv-0.9.19.so   libz.so.1.1.4
libgcc_s.so.0.9.9    libresolv.so          modules


Cheers,
-ch






More information about the uClibc mailing list