<div dir="ltr"><br><br><div class="gmail_quote">On Thu, Oct 28, 2010 at 10:09 AM, Paulius Zaleckas <span dir="ltr">&lt;<a href="mailto:paulius.zaleckas@gmail.com">paulius.zaleckas@gmail.com</a>&gt;</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 &lt;<a href="mailto:yohananov@gmail.com">yohananov@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Dear buildroot experts,<br>
&gt; For about 2 years I work on some commercial project (access control) based<br>
&gt; on buildroot-2008.11.<br>
&gt; HW details are:<br>
&gt; CPU - ARM926EJ-S rev 5 (v5l)<br>
&gt; Board - Atmel AT91SAM9260-EK<br>
&gt; Former Host - Fedora 9.<br>
&gt; Current Host - Fedora 13<br>
&gt; After some initial tuning it compiled and produced everything that needed<br>
&gt; (all images) excellently, but recently I was silly enough to upgrade my<br>
&gt; host&#39;s distribution to Fedora 13.<br>
&gt; Now I&#39;m in trouble, I can&#39;t compile it at all. It fails at the beginning of<br>
&gt; the process, I guess the are conflicts between old kernel&#39;s headers and new<br>
&gt; glibc definitions.<br>
&gt; I understand that my buildroot is quite old but unfortunately I have to<br>
&gt; continue with it for some time.<br>
&gt; Is there any chance to compile it on new distribution?<br>
&gt; There are some details of my configuration and new distro tools:<br>
&gt; uname -a<br>
&gt; Linux riln-ls 2.6.33.3-85.fc13.i686.PAE #1 SMP Thu May 6 18:27:11 UTC 2010<br>
&gt; i686 i686 i386 GNU/Linux<br>
&gt; gcc --version<br>
&gt; gcc (GCC) 4.4.4 20100503 (Red Hat 4.4.4-2)<br>
&gt; Copyright (C) 2010 Free Software Foundation, Inc.<br>
&gt; This is free software; see the source for copying conditions.  There is NO<br>
&gt; warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br>
&gt; gcc -###<br>
&gt; Using built-in specs.<br>
&gt; Target: i686-redhat-linux<br>
&gt; Configured with: ../configure --prefix=/usr --mandir=/usr/share/man<br>
&gt; --infodir=/usr/share/info --with-bugurl=<a href="http://bugzilla.redhat.com/bugzilla" target="_blank">http://bugzilla.redhat.com/bugzilla</a><br>
&gt; --enable-bootstrap --enable-shared --enable-threads=posix<br>
&gt; --enable-checking=release --with-system-zlib --enable-__cxa_atexit<br>
&gt; --disable-libunwind-exceptions --enable-gnu-unique-object<br>
&gt; --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk<br>
&gt; --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre<br>
&gt; --enable-libgcj-multifile --enable-java-maintainer-mode<br>
&gt; --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib<br>
&gt; --with-ppl --with-cloog --with-tune=generic --with-arch=i686<br>
&gt; --build=i686-redhat-linux<br>
&gt; Thread model: posix<br>
&gt; gcc version 4.4.4 20100503 (Red Hat 4.4.4-2) (GCC)<br>
&gt;<br>
&gt; /lib/libc.so.6<br>
&gt; GNU C Library stable release version 2.12.1, by Roland McGrath et al.<br>
&gt; Copyright (C) 2010 Free Software Foundation, Inc.<br>
&gt; This is free software; see the source for copying conditions.<br>
&gt; There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A<br>
&gt; PARTICULAR PURPOSE.<br>
&gt; Compiled by GNU CC version 4.4.4 20100630 (Red Hat 4.4.4-10).<br>
&gt; Compiled on a Linux 2.6.34 system on 2010-10-19.<br>
&gt; Available extensions:<br>
&gt; The C stubs add-on version 2.1.2.<br>
&gt; crypt add-on version 2.1 by Michael Glad and others<br>
&gt; GNU Libidn by Simon Josefsson<br>
&gt; Native POSIX Threads Library by Ulrich Drepper et al<br>
&gt; BIND-8.2.3-T5B<br>
&gt; RT using linux kernel aio<br>
&gt; libc ABIs: UNIQUE IFUNC<br>
&gt; For bug reporting instructions, please see:<br>
&gt; &lt;<a href="http://www.gnu.org/software/libc/bugs.html" target="_blank">http://www.gnu.org/software/libc/bugs.html</a>&gt;.<br>
&gt;<br>
&gt; Config and build log files are attached.<br>
&gt; Thank you in advance,<br>
&gt; 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 &#39;c&#39; library.<br>
I&#39;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=&quot;/usr/lib/ccache/gcc&quot; \<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=&#39;&#39; \<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&#39;<br>
source=&#39;lsmod.c&#39; object=&#39;lsmod.o&#39; libtool=no \<br>    depfile=&#39;.deps/lsmod.Po&#39; tmpdepfile=&#39;.deps/lsmod.TPo&#39; \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;module-init-tools\&quot; -DVERSION=\&quot;3.2.2\&quot;  -I. -I.     -g -O2 -Wunused -Wall -c `test -f &#39;lsmod.c&#39; || echo &#39;./&#39;`lsmod.c<br>
source=&#39;insmod.c&#39; object=&#39;insmod.o&#39; libtool=no \<br>    depfile=&#39;.deps/insmod.Po&#39; tmpdepfile=&#39;.deps/insmod.TPo&#39; \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;module-init-tools\&quot; -DVERSION=\&quot;3.2.2\&quot;  -I. -I.     -g -O2 -Wunused -Wall -c `test -f &#39;insmod.c&#39; || echo &#39;./&#39;`insmod.c<br>
source=&#39;modprobe.c&#39; object=&#39;modprobe.o&#39; libtool=no \<br>    depfile=&#39;.deps/modprobe.Po&#39; tmpdepfile=&#39;.deps/modprobe.TPo&#39; \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;module-init-tools\&quot; -DVERSION=\&quot;3.2.2\&quot;  -I. -I.     -g -O2 -Wunused -Wall -c `test -f &#39;modprobe.c&#39; || echo &#39;./&#39;`modprobe.c<br>
source=&#39;zlibsupport.c&#39; object=&#39;zlibsupport.o&#39; libtool=no \<br>    depfile=&#39;.deps/zlibsupport.Po&#39; tmpdepfile=&#39;.deps/zlibsupport.TPo&#39; \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;module-init-tools\&quot; -DVERSION=\&quot;3.2.2\&quot;  -I. -I.     -g -O2 -Wunused -Wall -c `test -f &#39;zlibsupport.c&#39; || echo &#39;./&#39;`zlibsupport.c<br>
source=&#39;rmmod.c&#39; object=&#39;rmmod.o&#39; libtool=no \<br>    depfile=&#39;.deps/rmmod.Po&#39; tmpdepfile=&#39;.deps/rmmod.TPo&#39; \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;module-init-tools\&quot; -DVERSION=\&quot;3.2.2\&quot;  -I. -I.     -g -O2 -Wunused -Wall -c `test -f &#39;rmmod.c&#39; || echo &#39;./&#39;`rmmod.c<br>
source=&#39;depmod.c&#39; object=&#39;depmod.o&#39; libtool=no \<br>    depfile=&#39;.deps/depmod.Po&#39; tmpdepfile=&#39;.deps/depmod.TPo&#39; \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;module-init-tools\&quot; -DVERSION=\&quot;3.2.2\&quot;  -I. -I.     -g -O2 -Wunused -Wall -c `test -f &#39;depmod.c&#39; || echo &#39;./&#39;`depmod.c<br>
source=&#39;moduleops.c&#39; object=&#39;moduleops.o&#39; libtool=no \<br>    depfile=&#39;.deps/moduleops.Po&#39; tmpdepfile=&#39;.deps/moduleops.TPo&#39; \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;module-init-tools\&quot; -DVERSION=\&quot;3.2.2\&quot;  -I. -I.     -g -O2 -Wunused -Wall -c `test -f &#39;moduleops.c&#39; || echo &#39;./&#39;`moduleops.c<br>
source=&#39;tables.c&#39; object=&#39;tables.o&#39; libtool=no \<br>    depfile=&#39;.deps/tables.Po&#39; tmpdepfile=&#39;.deps/tables.TPo&#39; \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;module-init-tools\&quot; -DVERSION=\&quot;3.2.2\&quot;  -I. -I.     -g -O2 -Wunused -Wall -c `test -f &#39;tables.c&#39; || echo &#39;./&#39;`tables.c<br>
source=&#39;modinfo.c&#39; object=&#39;modinfo.o&#39; libtool=no \<br>    depfile=&#39;.deps/modinfo.Po&#39; tmpdepfile=&#39;.deps/modinfo.TPo&#39; \<br>    depmode=gcc3 /bin/sh ./depcomp \<br>    /usr/lib/ccache/gcc -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;module-init-tools\&quot; -DVERSION=\&quot;3.2.2\&quot;  -I. -I.     -g -O2 -Wunused -Wall -c `test -f &#39;modinfo.c&#39; || echo &#39;./&#39;`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&#39;<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&#39;<br><br><br><br>Thank you again, Sasha.<br><br>
</div>