[uClibc] [buildroot] gcc-2.95 busybox problem

Philippe Ney philippe.ney at pardes.ws
Fri Aug 5 16:50:59 UTC 2005


Hi all,

For my current embedded project, I use buildroot, uClibc and BusyBox.

For some reason, I have to use gcc-2.95

In this way, I get an old buildroot (rev.9452) from the svn archive.

I had first to make some changes to the 100-uclibc-conf.patch that failed
to apply. I also don't apply the STL patch.

And now I encounter an error when compiling Busybox about
__NR_delete_module that seems not to be defined.


make CC=/home/philippe/SEBOX/buildroot-9452/build_i386/staging_dir/bin/i386-linux-uclibc-gcc CROSS="/home/philippe/SEBOX/buildroot-9452/build_i386/staging_dir/bin/i386-linux-uclibc-" PREFIX="/home/philippe/SEBOX/buildroot-9452/build_i386/root" \
        EXTRA_CFLAGS="-Os -pipe " -C /home/philippe/SEBOX/buildroot-9452/build_i386/busybox
make[1]: Entering directory `/home/philippe/SEBOX/buildroot-9452/build_i386/busybox'
/home/philippe/SEBOX/buildroot-9452/build_i386/staging_dir/bin/i386-linux-uclibc-gcc -I/home/philippe/SEBOX/buildroot-9452/build_i386/busybox/include -I/home/philippe/SEBOX/buildroot-9452/build_i386/busybox/include -I/home/philippe/SEBOX/buildroot-9452/build_i386/busybox/libbb -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wstrict-prototypes -Wshadow -Os -march=i386 -mpreferred-stack-boundary=2  -malign-functions=0 -malign-jumps=0 -malign-loops=0 -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG    -Os -pipe  -c -o /home/philippe/SEBOX/buildroot-9452/build_i386/busybox/modutils/rmmod.o /home/philippe/SEBOX/buildroot-9452/build_i386/busybox/modutils/rmmod.c
/home/philippe/SEBOX/buildroot-9452/build_i386/busybox/modutils/rmmod.c: In function `rmmod_main':
/home/philippe/SEBOX/buildroot-9452/build_i386/busybox/modutils/rmmod.c:83: `__NR_delete_module' undeclared (first use in this function)
/home/philippe/SEBOX/buildroot-9452/build_i386/busybox/modutils/rmmod.c:83: (Each undeclared identifier is reported only once
/home/philippe/SEBOX/buildroot-9452/build_i386/busybox/modutils/rmmod.c:83: for each function it appears in.)
make[1]: *** [/home/philippe/SEBOX/buildroot-9452/build_i386/busybox/modutils/rmmod.o] Erreur 1
make[1]: Leaving directory `/home/philippe/SEBOX/buildroot-9452/build_i386/busybox'
make: *** [/home/philippe/SEBOX/buildroot-9452/build_i386/busybox/busybox] Erreur 2


I compile for i386 on an i386 (AMD)

For the project, I need to have an objectiv-C compiler. But as it seems gcc-3.x contain a bug about not exporting functions which make the linking fail.

Then I have to use the 2.95. I use gcc-2.95-3 and the one defined in gcc-2.95...mk file

Did have someone tips about using buildroot and busybox with gcc-2.95.

By the way, everything works well with gcc-3.4.2 ...

Thanks in advance for any help

Philippe



More information about the uClibc mailing list