<div dir="ltr"><br><br><div class="gmail_quote">On Thu, Oct 28, 2010 at 10:09 AM, Paulius Zaleckas <span dir="ltr"><<a href="mailto:paulius.zaleckas@gmail.com">paulius.zaleckas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Thu, Oct 28, 2010 at 11:00 AM, Sasha Yohananov <<a href="mailto:yohananov@gmail.com">yohananov@gmail.com</a>> wrote:<br>
><br>
> Dear buildroot experts,<br>
> For about 2 years I work on some commercial project (access control) based<br>
> on buildroot-2008.11.<br>
> HW details are:<br>
> CPU - ARM926EJ-S rev 5 (v5l)<br>
> Board - Atmel AT91SAM9260-EK<br>
> Former Host - Fedora 9.<br>
> Current Host - Fedora 13<br>
> After some initial tuning it compiled and produced everything that needed<br>
> (all images) excellently, but recently I was silly enough to upgrade my<br>
> host's distribution to Fedora 13.<br>
> Now I'm in trouble, I can't compile it at all. It fails at the beginning of<br>
> the process, I guess the are conflicts between old kernel's headers and new<br>
> glibc definitions.<br>
> I understand that my buildroot is quite old but unfortunately I have to<br>
> continue with it for some time.<br>
> Is there any chance to compile it on new distribution?<br>
> There are some details of my configuration and new distro tools:<br>
> uname -a<br>
> Linux riln-ls 2.6.33.3-85.fc13.i686.PAE #1 SMP Thu May 6 18:27:11 UTC 2010<br>
> i686 i686 i386 GNU/Linux<br>
> gcc --version<br>
> gcc (GCC) 4.4.4 20100503 (Red Hat 4.4.4-2)<br>
> Copyright (C) 2010 Free Software Foundation, Inc.<br>
> This is free software; see the source for copying conditions.  There is NO<br>
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br>
> gcc -###<br>
> Using built-in specs.<br>
> Target: i686-redhat-linux<br>
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man<br>
> --infodir=/usr/share/info --with-bugurl=<a href="http://bugzilla.redhat.com/bugzilla" target="_blank">http://bugzilla.redhat.com/bugzilla</a><br>
> --enable-bootstrap --enable-shared --enable-threads=posix<br>
> --enable-checking=release --with-system-zlib --enable-__cxa_atexit<br>
> --disable-libunwind-exceptions --enable-gnu-unique-object<br>
> --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk<br>
> --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre<br>
> --enable-libgcj-multifile --enable-java-maintainer-mode<br>
> --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib<br>
> --with-ppl --with-cloog --with-tune=generic --with-arch=i686<br>
> --build=i686-redhat-linux<br>
> Thread model: posix<br>
> gcc version 4.4.4 20100503 (Red Hat 4.4.4-2) (GCC)<br>
><br>
> /lib/libc.so.6<br>
> GNU C Library stable release version 2.12.1, by Roland McGrath et al.<br>
> Copyright (C) 2010 Free Software Foundation, Inc.<br>
> This is free software; see the source for copying conditions.<br>
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A<br>
> PARTICULAR PURPOSE.<br>
> Compiled by GNU CC version 4.4.4 20100630 (Red Hat 4.4.4-10).<br>
> Compiled on a Linux 2.6.34 system on 2010-10-19.<br>
> Available extensions:<br>
> The C stubs add-on version 2.1.2.<br>
> crypt add-on version 2.1 by Michael Glad and others<br>
> GNU Libidn by Simon Josefsson<br>
> Native POSIX Threads Library by Ulrich Drepper et al<br>
> BIND-8.2.3-T5B<br>
> RT using linux kernel aio<br>
> libc ABIs: UNIQUE IFUNC<br>
> For bug reporting instructions, please see:<br>
> <<a href="http://www.gnu.org/software/libc/bugs.html" target="_blank">http://www.gnu.org/software/libc/bugs.html</a>>.<br>
><br>
> Config and build log files are attached.<br>
> Thank you in advance,<br>
> Sasha.<br>
<br>
</div></div>You need a patch for kernel:<br>
<a href="http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=patch;h=d15bd1067b1fcb2b7250d22bc0c7c7fea0b759f7" target="_blank">http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=patch;h=d15bd1067b1fcb2b7250d22bc0c7c7fea0b759f7</a><br>

</blockquote></div><br><br><br>Paulius, thank you a lot for your quick response.<br><br>I patched the kernel and then I could proceed up to module-init-tools-3.2.2 compilation.<br>Now the linker complains on absence of 'c' library.<br>
I'm getting confused, is it standard c library, it is looking for?<br>
Is there any way to fix it?<br>
<br>...<br><br>bzcat /home/sasha/work/3rdparty/buildroot/dl/module-init-tools-3.2.2.tar.bz2 | tar -C /home/sasha/work/3rdparty/buildroot/toolchain_build_arm -xvf -<br>module-init-tools-3.2.2/<br>module-init-tools-3.2.2/doc/<br>
module-init-tools-3.2.2/doc/modprobe.conf.sgml<br>module-init-tools-3.2.2/doc/modules.dep.sgml<br>module-init-tools-3.2.2/doc/depmod.sgml<br><br>....<br><br>module-init-tools-3.2.2/modules.dep.5<br>module-init-tools-3.2.2/depmod.8<br>
module-init-tools-3.2.2/insmod.8<br>module-init-tools-3.2.2/lsmod.8<br>module-init-tools-3.2.2/rmmod.8<br>module-init-tools-3.2.2/modprobe.8<br>module-init-tools-3.2.2/modinfo.8<br>toolchain/patch-kernel.sh /home/sasha/work/3rdparty/buildroot/toolchain_build_arm/module-init-tools-3.2.2 package/module-init-tools \*.patch<br>
<br>Applying module-init-tools.patch using plaintext: <br>patching file Makefile.in<br>Hunk #1 succeeded at 616 (offset 3 lines).<br>Hunk #2 succeeded at 758 with fuzz 2 (offset -2 lines).<br>Hunk #3 succeeded at 769 (offset -2 lines).<br>
<br>Applying module-init-tools-remove-index.patch using plaintext: <br>patching file modprobe.c<br>cp -f package/gnuconfig/config.sub package/gnuconfig/config.guess /home/sasha/work/3rdparty/buildroot/toolchain_build_arm/module-init-tools-3.2.2<br>
touch /home/sasha/work/3rdparty/buildroot/toolchain_build_arm/module-init-tools-3.2.2/.source<br>(cd /home/sasha/work/3rdparty/buildroot/toolchain_build_arm/module-init-tools-3.2.2; \<br>        CC="/usr/lib/ccache/gcc" \<br>
        ./configure \<br>        --target=arm-linux \<br>        --host=i386-pc-linux-gnu \<br>        --build=i386-pc-linux-gnu \<br>        --sysconfdir=/etc \<br>        --program-transform-name='' \<br>    )<br>
checking build system type... i386-pc-linux-gnu<br>checking host system type... i386-pc-linux-gnu<br>checking target system type... arm-unknown-linux-gnu<br>checking for a BSD-compatible install... /usr/bin/install -c<br>
checking whether build environment is sane... yes<br>checking for gawk... gawk<br>checking whether make sets $(MAKE)... yes<br>checking for i386-pc-linux-gnu-gcc... /usr/lib/ccache/gcc<br>checking for C compiler default output file name... a.out<br>
checking whether the C compiler works... yes<br>checking whether we are cross compiling... no<br>checking for suffix of executables... <br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>
checking whether /usr/lib/ccache/gcc accepts -g... yes<br>checking for /usr/lib/ccache/gcc option to accept ANSI C... none needed<br>checking for style of include used by make... GNU<br>checking dependency style of /usr/lib/ccache/gcc... gcc3<br>
configure: Adding gcc options: -g -O2 -Wunused -Wall<br>configure: creating ./config.status<br>config.status: creating Makefile<br>config.status: executing depfiles commands<br>touch /home/sasha/work/3rdparty/buildroot/toolchain_build_arm/module-init-tools-3.2.2/.configured<br>
/usr/bin/make -j2 -C /home/sasha/work/3rdparty/buildroot/toolchain_build_arm/module-init-tools-3.2.2<br>make[1]: Entering directory `/home/sasha/work/3rdparty/buildroot/toolchain_build_arm/module-init-tools-3.2.2'<br>
source='lsmod.c' object='lsmod.o' libtool=no \<br>    depfile='.deps/lsmod.Po' tmpdepfile='.deps/lsmod.TPo' \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.2.2\"  -I. -I.     -g -O2 -Wunused -Wall -c `test -f 'lsmod.c' || echo './'`lsmod.c<br>
source='insmod.c' object='insmod.o' libtool=no \<br>    depfile='.deps/insmod.Po' tmpdepfile='.deps/insmod.TPo' \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.2.2\"  -I. -I.     -g -O2 -Wunused -Wall -c `test -f 'insmod.c' || echo './'`insmod.c<br>
source='modprobe.c' object='modprobe.o' libtool=no \<br>    depfile='.deps/modprobe.Po' tmpdepfile='.deps/modprobe.TPo' \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.2.2\"  -I. -I.     -g -O2 -Wunused -Wall -c `test -f 'modprobe.c' || echo './'`modprobe.c<br>
source='zlibsupport.c' object='zlibsupport.o' libtool=no \<br>    depfile='.deps/zlibsupport.Po' tmpdepfile='.deps/zlibsupport.TPo' \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.2.2\"  -I. -I.     -g -O2 -Wunused -Wall -c `test -f 'zlibsupport.c' || echo './'`zlibsupport.c<br>
source='rmmod.c' object='rmmod.o' libtool=no \<br>    depfile='.deps/rmmod.Po' tmpdepfile='.deps/rmmod.TPo' \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.2.2\"  -I. -I.     -g -O2 -Wunused -Wall -c `test -f 'rmmod.c' || echo './'`rmmod.c<br>
source='depmod.c' object='depmod.o' libtool=no \<br>    depfile='.deps/depmod.Po' tmpdepfile='.deps/depmod.TPo' \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.2.2\"  -I. -I.     -g -O2 -Wunused -Wall -c `test -f 'depmod.c' || echo './'`depmod.c<br>
source='moduleops.c' object='moduleops.o' libtool=no \<br>    depfile='.deps/moduleops.Po' tmpdepfile='.deps/moduleops.TPo' \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.2.2\"  -I. -I.     -g -O2 -Wunused -Wall -c `test -f 'moduleops.c' || echo './'`moduleops.c<br>
source='tables.c' object='tables.o' libtool=no \<br>    depfile='.deps/tables.Po' tmpdepfile='.deps/tables.TPo' \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.2.2\"  -I. -I.     -g -O2 -Wunused -Wall -c `test -f 'tables.c' || echo './'`tables.c<br>
source='modinfo.c' object='modinfo.o' libtool=no \<br>    depfile='.deps/modinfo.Po' tmpdepfile='.deps/modinfo.TPo' \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"module-init-tools\" -DVERSION=\"3.2.2\"  -I. -I.     -g -O2 -Wunused -Wall -c `test -f 'modinfo.c' || echo './'`modinfo.c<br>
modinfo.c: In function ‘main’:<br>modinfo.c:338: warning: ‘infosize’ may be used uninitialized in this function<br>/usr/lib/ccache/gcc  -g -O2 -Wunused -Wall   -o insmod.static -static insmod.o  <br>/usr/bin/ld: cannot find -lc<br>
collect2: ld returned 1 exit status<br>make[1]: *** [insmod.static] Error 1<br>make[1]: *** Waiting for unfinished jobs....<br>make[1]: Leaving directory `/home/sasha/work/3rdparty/buildroot/toolchain_build_arm/module-init-tools-3.2.2'<br>
make: *** [/home/sasha/work/3rdparty/buildroot/toolchain_build_arm/module-init-tools-3.2.2/depmod] Error 2<br>make: Leaving directory `/home/sasha/work/3rdparty/buildroot'<br><br><br><br>Thank you again, Sasha.<br><br>
</div>