Re: Glibc make fails with Error 2
Kyle Brennan wrote: >>> >> These types of errors usually means you don't have CFLAGS set correctly, >> which points to some problem with configparms. Do "cat configparms". >> > It worked, and just a quick question, when you go for pass 2, 3, etc... > do you start over with a clean build directory? > ex: > do you remove the binutils-build directory and then create a new one? > for the binutils pass 2 build? Yes! Remove both the binutils- directory and -build (if any) directory and re-extract from the tarballs. Do that for every package. Go back and re-read Chapter 5.3, Important Note 1. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Glibc make fails with Error 2
On 05/23/2010 09:57 PM, Chris Staub wrote: > On 05/24/2010 12:45 AM, Kyle Brennan wrote: > >> I solved the original error (it was a symlink problem with the gcc stem) >> and i got another error: >> >> mv -f /mnt/lfs/build/glibc-build/shlib.ldsT >> /mnt/lfs/build/glibc-build/shlib.lds >> i686-lfs-linux-gnu-gcc -shared -static-libgcc -Wl,-O1 -Wl,-z,defs >> -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2 >> -B/mnt/lfs/build/glibc-build/csu/ >> -Wl,--version-script=/mnt/lfs/build/glibc-build/libc.map >> -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro >> -Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main >> -L/mnt/lfs/build/glibc-build -L/mnt/lfs/build/glibc-build/math >> -L/mnt/lfs/build/glibc-build/elf -L/mnt/lfs/build/glibc-build/dlfcn >> -L/mnt/lfs/build/glibc-build/nss -L/mnt/lfs/build/glibc-build/nis >> -L/mnt/lfs/build/glibc-build/rt -L/mnt/lfs/build/glibc-build/resolv >> -L/mnt/lfs/build/glibc-build/crypt -L/mnt/lfs/build/glibc-build/nptl >> -Wl,-rpath-link=/mnt/lfs/build/glibc-build:/mnt/lfs/build/glibc-build/math:/mnt/lfs/build/glibc-build/elf:/mnt/lfs/build/glibc-build/dlfcn:/mnt/lfs/build/glibc-build/nss:/mnt/lfs/build/glibc-build/nis:/mnt/lfs/build/glibc-build/rt:/mnt/lfs/build/glibc-build/resolv:/mnt/lfs/build/glibc-build/crypt:/mnt/lfs/build/glibc-build/nptl >> -o /mnt/lfs/build/glibc-build/libc.so -T >> /mnt/lfs/build/glibc-build/shlib.lds >> /mnt/lfs/build/glibc-build/csu/abi-note.o >> /mnt/lfs/build/glibc-build/elf/soinit.os >> /mnt/lfs/build/glibc-build/libc_pic.os >> /mnt/lfs/build/glibc-build/elf/sofini.os >> /mnt/lfs/build/glibc-build/elf/interp.os >> /mnt/lfs/build/glibc-build/elf/ld.so -lgcc >> /mnt/lfs/build/glibc-build/libc_pic.os: In function `__libc_fork': >> /mnt/lfs/build/glibc-2.11.1/posix/../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:79: >> undefined reference to `__sync_bool_compare_and_swap_4' >> /mnt/lfs/build/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': >> /mnt/lfs/build/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference >> to `__sync_fetch_and_add_4' >> /mnt/lfs/build/glibc-build/libc_pic.os: In function `nscd_getpw_r': >> /mnt/lfs/build/glibc-2.11.1/nscd/nscd_getpw_r.c:233: undefined reference >> to `__sync_fetch_and_add_4' >> /mnt/lfs/build/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': >> >> I looked at this output and I could not find anything aside from >> libc_pic.os seems to be throwing errors that i do not understand. >> >> Thanks, >> --Kyle >> > These types of errors usually means you don't have CFLAGS set correctly, > which points to some problem with configparms. Do "cat configparms". > It worked, and just a quick question, when you go for pass 2, 3, etc... do you start over with a clean build directory? ex: do you remove the binutils-build directory and then create a new one? for the binutils pass 2 build? thanks, Kyle -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Glibc make fails with Error 2
On 05/24/2010 12:45 AM, Kyle Brennan wrote: > I solved the original error (it was a symlink problem with the gcc stem) > and i got another error: > > mv -f /mnt/lfs/build/glibc-build/shlib.ldsT > /mnt/lfs/build/glibc-build/shlib.lds > i686-lfs-linux-gnu-gcc -shared -static-libgcc -Wl,-O1 -Wl,-z,defs > -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2 > -B/mnt/lfs/build/glibc-build/csu/ > -Wl,--version-script=/mnt/lfs/build/glibc-build/libc.map > -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro > -Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main > -L/mnt/lfs/build/glibc-build -L/mnt/lfs/build/glibc-build/math > -L/mnt/lfs/build/glibc-build/elf -L/mnt/lfs/build/glibc-build/dlfcn > -L/mnt/lfs/build/glibc-build/nss -L/mnt/lfs/build/glibc-build/nis > -L/mnt/lfs/build/glibc-build/rt -L/mnt/lfs/build/glibc-build/resolv > -L/mnt/lfs/build/glibc-build/crypt -L/mnt/lfs/build/glibc-build/nptl > -Wl,-rpath-link=/mnt/lfs/build/glibc-build:/mnt/lfs/build/glibc-build/math:/mnt/lfs/build/glibc-build/elf:/mnt/lfs/build/glibc-build/dlfcn:/mnt/lfs/build/glibc-build/nss:/mnt/lfs/build/glibc-build/nis:/mnt/lfs/build/glibc-build/rt:/mnt/lfs/build/glibc-build/resolv:/mnt/lfs/build/glibc-build/crypt:/mnt/lfs/build/glibc-build/nptl > -o /mnt/lfs/build/glibc-build/libc.so -T > /mnt/lfs/build/glibc-build/shlib.lds > /mnt/lfs/build/glibc-build/csu/abi-note.o > /mnt/lfs/build/glibc-build/elf/soinit.os > /mnt/lfs/build/glibc-build/libc_pic.os > /mnt/lfs/build/glibc-build/elf/sofini.os > /mnt/lfs/build/glibc-build/elf/interp.os > /mnt/lfs/build/glibc-build/elf/ld.so -lgcc > /mnt/lfs/build/glibc-build/libc_pic.os: In function `__libc_fork': > /mnt/lfs/build/glibc-2.11.1/posix/../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:79: > undefined reference to `__sync_bool_compare_and_swap_4' > /mnt/lfs/build/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': > /mnt/lfs/build/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference > to `__sync_fetch_and_add_4' > /mnt/lfs/build/glibc-build/libc_pic.os: In function `nscd_getpw_r': > /mnt/lfs/build/glibc-2.11.1/nscd/nscd_getpw_r.c:233: undefined reference > to `__sync_fetch_and_add_4' > /mnt/lfs/build/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': > > I looked at this output and I could not find anything aside from > libc_pic.os seems to be throwing errors that i do not understand. > > Thanks, > --Kyle These types of errors usually means you don't have CFLAGS set correctly, which points to some problem with configparms. Do "cat configparms". -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Glibc make fails with Error 2
On 05/23/2010 08:29 PM, Kyle Brennan wrote: > On 05/23/2010 08:07 PM, Kyle Brennan wrote: > >> On 05/23/2010 07:05 PM, Kyle Brennan wrote: >> >> >>> On 05/23/2010 06:49 PM, Bruce Dubbs wrote: >>> There wouldn't be a problem as long as you didn't install anything over a file in the /usr tree, but I suggest you delete /tools and any subdirectories in /mnt/lfs/sources and completely and start over. -- Bruce >>> Just an update now that I checked, I do have some directories in the >>> $LFS/tools directory. I will remove them and try building it all again. >>> >>> >>> >> so I was running the gcc configure and I saw this warning message. I >> wanted to check to see if it was normal or not. >> >> checking whether we are using the GNU C++ compiler... no >> checking whether g++ accepts -g... no >> checking for gnatbind... no >> checking for gnatmake... no >> checking whether compiler driver understands Ada... no >> checking how to compare bootstrapped objects... cmp --ignore-initial=16 >> $$f1 $$f2 >> checking for version 0.10 of PPL... no >> checking for correct version of CLooG... no >> *** This configuration is not supported in the following subdirectories: >> target-libada gnattools target-libstdc++-v3 target-libgfortran >> target-libffi target-zlib target-libjava zlib target-libobjc >> target-libgomp target-libmudflap target-libssp target-boehm-gc >>(Any other directories should still work fine.) >> checking for bison... bison -y >> checking for bison... bison >> checking for gm4... no >> checking for gnum4... no >> checking for m4... m4 >> >> --Kyle >> >> >Bruce, > I think I figured it out. when I was looking at the Gcc compile > instructions, it wanted to make a symlink to the libgcc_eh.a but I do > not think that I made that link properly. I will work on that as well. > I will get that fixed and then post again if it works. > I solved the original error (it was a symlink problem with the gcc stem) and i got another error: mv -f /mnt/lfs/build/glibc-build/shlib.ldsT /mnt/lfs/build/glibc-build/shlib.lds i686-lfs-linux-gnu-gcc -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2 -B/mnt/lfs/build/glibc-build/csu/ -Wl,--version-script=/mnt/lfs/build/glibc-build/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main -L/mnt/lfs/build/glibc-build -L/mnt/lfs/build/glibc-build/math -L/mnt/lfs/build/glibc-build/elf -L/mnt/lfs/build/glibc-build/dlfcn -L/mnt/lfs/build/glibc-build/nss -L/mnt/lfs/build/glibc-build/nis -L/mnt/lfs/build/glibc-build/rt -L/mnt/lfs/build/glibc-build/resolv -L/mnt/lfs/build/glibc-build/crypt -L/mnt/lfs/build/glibc-build/nptl -Wl,-rpath-link=/mnt/lfs/build/glibc-build:/mnt/lfs/build/glibc-build/math:/mnt/lfs/build/glibc-build/elf:/mnt/lfs/build/glibc-build/dlfcn:/mnt/lfs/build/glibc-build/nss:/mnt/lfs/build/glibc-build/nis:/mnt/lfs/build/glibc-build/rt:/mnt/lfs/build/glibc-build/resolv:/mnt/lfs/build/glibc-build/crypt:/mnt/lfs/build/glibc-build/nptl -o /mnt/lfs/build/glibc-build/libc.so -T /mnt/lfs/build/glibc-build/shlib.lds /mnt/lfs/build/glibc-build/csu/abi-note.o /mnt/lfs/build/glibc-build/elf/soinit.os /mnt/lfs/build/glibc-build/libc_pic.os /mnt/lfs/build/glibc-build/elf/sofini.os /mnt/lfs/build/glibc-build/elf/interp.os /mnt/lfs/build/glibc-build/elf/ld.so -lgcc /mnt/lfs/build/glibc-build/libc_pic.os: In function `__libc_fork': /mnt/lfs/build/glibc-2.11.1/posix/../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:79: undefined reference to `__sync_bool_compare_and_swap_4' /mnt/lfs/build/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': /mnt/lfs/build/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4' /mnt/lfs/build/glibc-build/libc_pic.os: In function `nscd_getpw_r': /mnt/lfs/build/glibc-2.11.1/nscd/nscd_getpw_r.c:233: undefined reference to `__sync_fetch_and_add_4' /mnt/lfs/build/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': /mnt/lfs/build/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4' /mnt/lfs/build/glibc-build/libc_pic.os: In function `nscd_getgr_r': /mnt/lfs/build/glibc-2.11.1/nscd/nscd_getgr_r.c:322: undefined reference to `__sync_fetch_and_add_4' /mnt/lfs/build/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': /mnt/lfs/build/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4' /mnt/lfs/build/glibc-build/libc_pic.os:/mnt/lfs/build/glibc-2.11.1/nscd/nscd_gethst_r.c:415: more undefined references to `__sync_fetch_and_add_4' follow /mnt/lfs/build/glibc-build/libc_pic.os: In function `__nscd_get_map_ref': /mnt/lfs/build/glibc-2.11.1/nscd/nscd_helper.c:433: undefined reference to `__sync_val_compare_and_swap_4' /mnt/lfs/build/glibc-build/libc_pic.os: In function `*__GI___libc_freeres': /mnt/lfs/build
Re: Glibc make fails with Error 2
On 05/23/2010 08:07 PM, Kyle Brennan wrote: > On 05/23/2010 07:05 PM, Kyle Brennan wrote: > >> On 05/23/2010 06:49 PM, Bruce Dubbs wrote: >> >> >>> Kyle Brennan wrote: >>> >>> >>> On 05/23/2010 06:07 PM, Bruce Dubbs wrote: > Kyle Brennan wrote: > > > > > >> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../i686-lfs-linux-gnu/bin/ld: >> >> >> >> > > >> cannot find -lgcc_eh >> >> >> >> > It looks like a problem with the gcc build. You should have: > > /mnt/lfs/tools/gcc/x86_64-unknown-linux-gnu/4.4.3/libgcc_eh.a or > /mnt/lfs/tools/gcc/i686-pc-linux-gnu/4.4.3/libgcc_eh.a > >-- Bruce > > > > > I got it from the tarball that was on the linux from scratch site. there may be a problem with my host system. because when i was building in the tools directory I did not reinstall. there may be a error there because there is supposed to be a symlink there right? so if that is correct, I would need to fix my host system. >>> There wouldn't be a problem as long as you didn't install anything over >>> a file in the /usr tree, but I suggest you delete /tools and any >>> subdirectories in /mnt/lfs/sources and completely and start over. >>> >>> -- Bruce >>> >>> >>> >> Just an update now that I checked, I do have some directories in the >> $LFS/tools directory. I will remove them and try building it all again. >> >> > so I was running the gcc configure and I saw this warning message. I > wanted to check to see if it was normal or not. > > checking whether we are using the GNU C++ compiler... no > checking whether g++ accepts -g... no > checking for gnatbind... no > checking for gnatmake... no > checking whether compiler driver understands Ada... no > checking how to compare bootstrapped objects... cmp --ignore-initial=16 > $$f1 $$f2 > checking for version 0.10 of PPL... no > checking for correct version of CLooG... no > *** This configuration is not supported in the following subdirectories: >target-libada gnattools target-libstdc++-v3 target-libgfortran > target-libffi target-zlib target-libjava zlib target-libobjc > target-libgomp target-libmudflap target-libssp target-boehm-gc > (Any other directories should still work fine.) > checking for bison... bison -y > checking for bison... bison > checking for gm4... no > checking for gnum4... no > checking for m4... m4 > >--Kyle > Bruce, I think I figured it out. when I was looking at the Gcc compile instructions, it wanted to make a symlink to the libgcc_eh.a but I do not think that I made that link properly. I will work on that as well. I will get that fixed and then post again if it works. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Glibc make fails with Error 2
On 05/23/2010 07:05 PM, Kyle Brennan wrote: > On 05/23/2010 06:49 PM, Bruce Dubbs wrote: > >> Kyle Brennan wrote: >> >> >>> On 05/23/2010 06:07 PM, Bruce Dubbs wrote: >>> >>> Kyle Brennan wrote: > /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../i686-lfs-linux-gnu/bin/ld: > > > > cannot find -lgcc_eh > > > It looks like a problem with the gcc build. You should have: /mnt/lfs/tools/gcc/x86_64-unknown-linux-gnu/4.4.3/libgcc_eh.a or /mnt/lfs/tools/gcc/i686-pc-linux-gnu/4.4.3/libgcc_eh.a -- Bruce >>> I got it from the tarball that was on the linux from scratch site. >>> there may be a problem with my host system. because when i was building >>> in the tools directory I did not reinstall. there may be a error there >>> because there is supposed to be a symlink there right? so if that is >>> correct, I would need to fix my host system. >>> >>> >> There wouldn't be a problem as long as you didn't install anything over >> a file in the /usr tree, but I suggest you delete /tools and any >> subdirectories in /mnt/lfs/sources and completely and start over. >> >> -- Bruce >> >> > Just an update now that I checked, I do have some directories in the > $LFS/tools directory. I will remove them and try building it all again. > so I was running the gcc configure and I saw this warning message. I wanted to check to see if it was normal or not. checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking for gnatbind... no checking for gnatmake... no checking whether compiler driver understands Ada... no checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2 checking for version 0.10 of PPL... no checking for correct version of CLooG... no *** This configuration is not supported in the following subdirectories: target-libada gnattools target-libstdc++-v3 target-libgfortran target-libffi target-zlib target-libjava zlib target-libobjc target-libgomp target-libmudflap target-libssp target-boehm-gc (Any other directories should still work fine.) checking for bison... bison -y checking for bison... bison checking for gm4... no checking for gnum4... no checking for m4... m4 --Kyle -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Glibc make fails with Error 2
On 05/23/2010 06:49 PM, Bruce Dubbs wrote: > Kyle Brennan wrote: > >> On 05/23/2010 06:07 PM, Bruce Dubbs wrote: >> >>> Kyle Brennan wrote: >>> >>> >>> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../i686-lfs-linux-gnu/bin/ld: >>> >>> cannot find -lgcc_eh >>> It looks like a problem with the gcc build. You should have: >>> >>> /mnt/lfs/tools/gcc/x86_64-unknown-linux-gnu/4.4.3/libgcc_eh.a or >>> /mnt/lfs/tools/gcc/i686-pc-linux-gnu/4.4.3/libgcc_eh.a >>> >>> -- Bruce >>> >>> >>> >> I got it from the tarball that was on the linux from scratch site. >> there may be a problem with my host system. because when i was building >> in the tools directory I did not reinstall. there may be a error there >> because there is supposed to be a symlink there right? so if that is >> correct, I would need to fix my host system. >> > There wouldn't be a problem as long as you didn't install anything over > a file in the /usr tree, but I suggest you delete /tools and any > subdirectories in /mnt/lfs/sources and completely and start over. > > -- Bruce > Just an update now that I checked, I do have some directories in the $LFS/tools directory. I will remove them and try building it all again. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Glibc make fails with Error 2
On 05/23/2010 06:49 PM, Bruce Dubbs wrote: > Kyle Brennan wrote: > >> On 05/23/2010 06:07 PM, Bruce Dubbs wrote: >> >>> Kyle Brennan wrote: >>> >>> >>> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../i686-lfs-linux-gnu/bin/ld: >>> >>> cannot find -lgcc_eh >>> It looks like a problem with the gcc build. You should have: >>> >>> /mnt/lfs/tools/gcc/x86_64-unknown-linux-gnu/4.4.3/libgcc_eh.a or >>> /mnt/lfs/tools/gcc/i686-pc-linux-gnu/4.4.3/libgcc_eh.a >>> >>> -- Bruce >>> >>> >>> >> I got it from the tarball that was on the linux from scratch site. >> there may be a problem with my host system. because when i was building >> in the tools directory I did not reinstall. there may be a error there >> because there is supposed to be a symlink there right? so if that is >> correct, I would need to fix my host system. >> > There wouldn't be a problem as long as you didn't install anything over > a file in the /usr tree, but I suggest you delete /tools and any > subdirectories in /mnt/lfs/sources and completely and start over. > > -- Bruce > I did clear out the $LFS/tools directory structure so that it was empty and I restarted the build process except in the $LFS/sources directory. by gcc build, you mean the one that was built in the book or the one that was on the host system? --kyle -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Glibc make fails with Error 2
Kyle Brennan wrote: > On 05/23/2010 06:07 PM, Bruce Dubbs wrote: >> Kyle Brennan wrote: >> >> >>> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../i686-lfs-linux-gnu/bin/ld: >>> >> >>> cannot find -lgcc_eh >>> >> It looks like a problem with the gcc build. You should have: >> >> /mnt/lfs/tools/gcc/x86_64-unknown-linux-gnu/4.4.3/libgcc_eh.a or >> /mnt/lfs/tools/gcc/i686-pc-linux-gnu/4.4.3/libgcc_eh.a >> >> -- Bruce >> >> > I got it from the tarball that was on the linux from scratch site. > there may be a problem with my host system. because when i was building > in the tools directory I did not reinstall. there may be a error there > because there is supposed to be a symlink there right? so if that is > correct, I would need to fix my host system. There wouldn't be a problem as long as you didn't install anything over a file in the /usr tree, but I suggest you delete /tools and any subdirectories in /mnt/lfs/sources and completely and start over. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Glibc make fails with Error 2
On 05/23/2010 06:07 PM, Bruce Dubbs wrote: > Kyle Brennan wrote: > > >> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../i686-lfs-linux-gnu/bin/ld: >> > >> cannot find -lgcc_eh >> > It looks like a problem with the gcc build. You should have: > > /mnt/lfs/tools/gcc/x86_64-unknown-linux-gnu/4.4.3/libgcc_eh.a or > /mnt/lfs/tools/gcc/i686-pc-linux-gnu/4.4.3/libgcc_eh.a > > -- Bruce > > I got it from the tarball that was on the linux from scratch site. there may be a problem with my host system. because when i was building in the tools directory I did not reinstall. there may be a error there because there is supposed to be a symlink there right? so if that is correct, I would need to fix my host system. -- Kyle -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Glibc make fails with Error 2
Kyle Brennan wrote: > /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../i686-lfs-linux-gnu/bin/ld: > > cannot find -lgcc_eh It looks like a problem with the gcc build. You should have: /mnt/lfs/tools/gcc/x86_64-unknown-linux-gnu/4.4.3/libgcc_eh.a or /mnt/lfs/tools/gcc/i686-pc-linux-gnu/4.4.3/libgcc_eh.a -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Glibc make fails with Error 2
On 05/22/2010 04:11 PM, Bruce Dubbs wrote: Kyle Brennan wrote: Hi, I am new here and I am attempting my first LFS build. I get to Glibc in chapter 5.7 and everything goes smoothly until i get to the "make" command. I run the command and it works for about fifteen minutes and it Gives me the following error: make: *** [all] Error 2 then it quits to the prompt. That's a little light on info. Give us the last 20-30 lines before the final error message. -- Bruce sorry about the late reply, my emails were being classified as spam. Here Is the console output: make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1/string' make subdir=time -C ../time ..=../ objdir=/mnt/lfs/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-setitimer.os' make[4]: Entering directory `/mnt/lfs/sources/glibc-2.11.1/time' make[4]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1/time' make[4]: Entering directory `/mnt/lfs/sources/glibc-2.11.1/time' make[4]: Nothing to be done for `rtld-all'. make[4]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1/time' make[3]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1/elf' make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1/elf' make subdir=csu -C csu ..=../ others make[2]: Entering directory `/mnt/lfs/sources/glibc-2.11.1/csu' make[2]: Nothing to be done for `others'. make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1/csu' make subdir=iconv -C iconv ..=../ others make[2]: Entering directory `/mnt/lfs/sources/glibc-2.11.1/iconv' i686-lfs-linux-gnu-gcc -nostdlib -nostartfiles -o /mnt/lfs/sources/glibc-build/iconv/iconvconfig -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both /mnt/lfs/sources/glibc-build/csu/crt1.o /mnt/lfs/sources/glibc-build/csu/crti.o `i686-lfs-linux-gnu-gcc --print-file-name=crtbegin.o` /mnt/lfs/sources/glibc-build/iconv/iconvconfig.o /mnt/lfs/sources/glibc-build/iconv/strtab.o /mnt/lfs/sources/glibc-build/iconv/xmalloc.o /mnt/lfs/sources/glibc-build/iconv/hash-string.o -Wl,-rpath-link=/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt/lfs/sources/glibc-build/nptl /mnt/lfs/sources/glibc-build/libc.so.6 /mnt/lfs/sources/glibc-build/libc_nonshared.a -lgcc -lgcc_eh `i686-lfs-linux-gnu-gcc --print-file-name=crtend.o` /mnt/lfs/sources/glibc-build/csu/crtn.o /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../i686-lfs-linux-gnu/bin/ld: cannot find -lgcc_eh collect2: ld returned 1 exit status make[2]: *** [/mnt/lfs/sources/glibc-build/iconv/iconvconfig] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1/iconv' make[1]: *** [iconv/others] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1' make: *** [all] Error 2 Thanks, Kyle -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: infinite loop while making Glibc-2.11.1 - Chapter 5
On Sun, May 23, 2010 at 5:30 PM, Timothy Powell wrote: > After a couple of hours running I stopped the make and notice that the > following kept repeating in the log. Has anyone else had this problem and > if so how did you correct it? I've seen this happen when the system clock is not set correctly. Make is tricked into rebuilding targets because they are stamped with a time that is older than their source files. When I saw this, it was on a friend's LFS build. He had quickly installed some Linux distribution without bothering to set the correct time. So check the host system's clock is correctly set. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
infinite loop while making Glibc-2.11.1 - Chapter 5
After a couple of hours running I stopped the make and notice that the following kept repeating in the log. Has anyone else had this problem and if so how did you correct it? Thanks. Timothy make[4]: Entering directory `/mnt/lfs/sources/glibc-2.11.1/nptl' /usr/bin/install -c -m 644 ../include/limits.h /tools/include/limits.h gawk -f ../scripts/gen-as-const.awk ../nptl/sysdeps/unix/sysv/linux/structsem.sym \ | i686-lfs-linux-gnu-gcc -S -o /mnt/lfs/sources/glibc-build/structsem.hT3 -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -march=i486 -mtune=native -Wstrict-prototypes -mpreferred-stack-boundary=2 -I../include -I/mnt/lfs/sources/glibc-build/nptl -I/mnt/lfs/sources/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/include -isystem /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/include-fixed -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -x c - \ -MD -MP -MF /mnt/lfs/sources/glibc-build/structsem.h.dT -MT '/mnt/lfs/sources/glibc-build/structsem.h.d /mnt/lfs/sources/glibc-build/structsem.h' sed -n 's/^.*@@@name@@@\([...@]*\)@@@value@ @@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$/#define \1 \2/p' \ /mnt/lfs/sources/glibc-build/structsem.hT3 > /mnt/lfs/sources/glibc-build/structsem.hT rm -f /mnt/lfs/sources/glibc-build/structsem.hT3 sed -e 's@ /mnt/lfs/sources/glibc-build/@ $(common-objpfx)@g' -e 's...@^/mnt/lfs/sources/glibc-build/@$(common-objpfx)@g' -e 's@ *\.\.\/\([^ \]*\)@ $(..)\...@g' -e 's...@^\.\.\/\([^ \]*\)@$(..)\...@g' \ /mnt/lfs/sources/glibc-build/structsem.h.dT > /mnt/lfs/sources/glibc-build/structsem.h.dT2 rm -f /mnt/lfs/sources/glibc-build/structsem.h.dT mv -f /mnt/lfs/sources/glibc-build/structsem.h.dT2 /mnt/lfs/sources/glibc-build/structsem.h.d mv -f /mnt/lfs/sources/glibc-build/structsem.hT /mnt/lfs/sources/glibc-build/structsem.h gawk -f ../scripts/gen-as-const.awk ../nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym \ | i686-lfs-linux-gnu-gcc -S -o /mnt/lfs/sources/glibc-build/pthread-pi-defines.hT3 -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -march=i486 -mtune=native -Wstrict-prototypes -mpreferred-stack-boundary=2 -I../include -I/mnt/lfs/sources/glibc-build/nptl -I/mnt/lfs/sources/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/include -isystem /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/include-fixed -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -x c - \ -MD -MP -MF /mnt/lfs/sources/glibc-build/pthread-pi-defines.h.dT -MT '/mnt/lfs/sources/glibc-build/pthread-pi-defines.h.d /mnt/lfs/sources/glibc-build/pthread-pi-defines.h' sed -n 's/^.*@@@name@@@\([...@]*\)@@@value@ @@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$/#define \1 \2/p' \ /mnt/lfs/sources/glibc-build/pthread-pi-defines.hT3 > /mnt/lfs/sources/glibc-build/pthread-pi-defines.hT rm -f /mnt/lfs/sources/glibc-build/pthread-pi-defines.hT3 sed -e 's@