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
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-version directory and package-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
Perl make error: Error 1.
Hi, I have yet another error, this time with the perl-5.10.1 package. It ran for about 2 minutes and encountered this error. below is my build log. including HvNAME including gv including warn including pvs including magic including cop including grok including snprintf including sprintf including exception including strlfuncs including pv_tools running /mnt/lfs/build/perl-5.10.1/miniperl -I../../lib ppport_h.PL ppport.h in ext/IPC-SysV is up-to-date ppport.h in ext/Time-HiRes is up-to-date ppport.h in ext/Win32API-File is up-to-date ppport.h in ext/DB_File is up-to-date removing temporary file PPPort.pm removing temporary file ppport.h ./miniperl -Ilib make_ext.pl lib/auto/Data/Dumper/Dumper.a MAKE=make LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS= Making Data::Dumper (all) make[1]: Entering directory `/mnt/lfs/build/perl-5.10.1/ext/Data-Dumper' make[1]: Leaving directory `/mnt/lfs/build/perl-5.10.1/ext/Data-Dumper' Making all in ext/Data-Dumper make all PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS= make[1]: Entering directory `/mnt/lfs/build/perl-5.10.1/ext/Data-Dumper' make[1]: Leaving directory `/mnt/lfs/build/perl-5.10.1/ext/Data-Dumper' ./miniperl -Ilib make_ext.pl lib/auto/Fcnt1/Fcnt1.a MAKE=make LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS= Making Fcnt1 (all) Cannot cd to ext/Fcnt1: No such file or directory at make_ext.pl line 220. ./miniperl -Ilib make_ext.pl lib/auto/IO/IO.a MAKE=make LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS= Making IO (all) make[1]: Entering directory `/mnt/lfs/build/perl-5.10.1/ext/IO' make[1]: Leaving directory `/mnt/lfs/build/perl-5.10.1/ext/IO' Making all in ext/IO make all PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS= make[1]: Entering directory `/mnt/lfs/build/perl-5.10.1/ext/IO' make[1]: Leaving directory `/mnt/lfs/build/perl-5.10.1/ext/IO' ./miniperl -Ilib make_ext.pl lib/auto/POSIX/POSIX.a MAKE=make LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS= Making POSIX (all) make[1]: Entering directory `/mnt/lfs/build/perl-5.10.1/ext/POSIX' make[1]: Leaving directory `/mnt/lfs/build/perl-5.10.1/ext/POSIX' Making all in ext/POSIX make all PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS= make[1]: Entering directory `/mnt/lfs/build/perl-5.10.1/ext/POSIX' make[1]: Leaving directory `/mnt/lfs/build/perl-5.10.1/ext/POSIX' cc -o perl -fstack-protector -Wl,-E perlmain.o lib/auto/Data/Dumper/Dumper.a lib/auto/Fcnt1/Fcnt1.a lib/auto/IO/IO.a lib/auto/POSIX/POSIX.a libperl.a `cat ext.libs` -lnsl -ldl -lm -lcrypt -lutil -lc cc: lib/auto/Fcnt1/Fcnt1.a: No such file or directory make: *** [perl] Error 1 Thanks, Kyle -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Perl make error: Error 1.
EDIT: got it working: the error was in the make command it was Fcntl (letter) not Fcnt1 (one) On 05/24/2010 08:02 PM, Kyle Brennan wrote: Hi, I have yet another error, this time with the perl-5.10.1 package. It ran for about 2 minutes and encountered this error. below is my build log. including HvNAME including gv including warn including pvs including magic including cop including grok including snprintf including sprintf including exception including strlfuncs including pv_tools running /mnt/lfs/build/perl-5.10.1/miniperl -I../../lib ppport_h.PL ppport.h in ext/IPC-SysV is up-to-date ppport.h in ext/Time-HiRes is up-to-date ppport.h in ext/Win32API-File is up-to-date ppport.h in ext/DB_File is up-to-date removing temporary file PPPort.pm removing temporary file ppport.h ./miniperl -Ilib make_ext.pl lib/auto/Data/Dumper/Dumper.a MAKE=make LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS= Making Data::Dumper (all) make[1]: Entering directory `/mnt/lfs/build/perl-5.10.1/ext/Data-Dumper' make[1]: Leaving directory `/mnt/lfs/build/perl-5.10.1/ext/Data-Dumper' Making all in ext/Data-Dumper make all PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS= make[1]: Entering directory `/mnt/lfs/build/perl-5.10.1/ext/Data-Dumper' make[1]: Leaving directory `/mnt/lfs/build/perl-5.10.1/ext/Data-Dumper' ./miniperl -Ilib make_ext.pl lib/auto/Fcnt1/Fcnt1.a MAKE=make LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS= Making Fcnt1 (all) Cannot cd to ext/Fcnt1: No such file or directory at make_ext.pl line 220. ./miniperl -Ilib make_ext.pl lib/auto/IO/IO.a MAKE=make LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS= Making IO (all) make[1]: Entering directory `/mnt/lfs/build/perl-5.10.1/ext/IO' make[1]: Leaving directory `/mnt/lfs/build/perl-5.10.1/ext/IO' Making all in ext/IO make all PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS= make[1]: Entering directory `/mnt/lfs/build/perl-5.10.1/ext/IO' make[1]: Leaving directory `/mnt/lfs/build/perl-5.10.1/ext/IO' ./miniperl -Ilib make_ext.pl lib/auto/POSIX/POSIX.a MAKE=make LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS= Making POSIX (all) make[1]: Entering directory `/mnt/lfs/build/perl-5.10.1/ext/POSIX' make[1]: Leaving directory `/mnt/lfs/build/perl-5.10.1/ext/POSIX' Making all in ext/POSIX make all PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS= make[1]: Entering directory `/mnt/lfs/build/perl-5.10.1/ext/POSIX' make[1]: Leaving directory `/mnt/lfs/build/perl-5.10.1/ext/POSIX' cc -o perl -fstack-protector -Wl,-E perlmain.o lib/auto/Data/Dumper/Dumper.a lib/auto/Fcnt1/Fcnt1.a lib/auto/IO/IO.a lib/auto/POSIX/POSIX.a libperl.a `cat ext.libs` -lnsl -ldl -lm -lcrypt -lutil -lc cc: lib/auto/Fcnt1/Fcnt1.a: No such file or directory make: *** [perl] Error 1 Thanks, Kyle -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Glibc build CH6.9 Awk: command not found
Hi again, Big problem here, It appears that Gawk was improperly configured and now when I try to configure my Glibc build, it runs into an error where it cannot find the awk command. root:/build/glibc-build# ../glibc-2.11.1/configure --prefix=/usr \ --disable-profile --enable-add-ons \ --enable-kernel=2.6.18 --libexecdir=/usr/lib/glibc checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes configure: running configure fragment for add-on libidn configure: running configure fragment for add-on nptl checking sysdep dirs... sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/i386 nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu nptl/sysdeps/i386/i686 sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu nptl/sysdeps/i386 sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic checking for a BSD-compatible install... /tools/bin/install -c checking whether ln -s works... yes checking whether /tools/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/as is GNU as... yes checking whether /tools/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld is GNU ld... yes checking for /tools/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/as... /tools/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/as checking version of /tools/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/as... 2.20, ok checking for /tools/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld... /tools/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld checking version of /tools/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld... 2.20, ok checking for pwd... /bin/pwd checking for gcc... gcc checking version of gcc... 4.4.3, ok checking for gnumake... no checking for gmake... no checking for make... make checking version of make... 3.81, ok checking for gnumsgfmt... no checking for gmsgfmt... no checking for msgfmt... msgfmt checking version of msgfmt... 0.17, ok checking for makeinfo... makeinfo checking version of makeinfo... 4.13, ok checking for sed... sed checking version of sed... 4.2.1, ok checking for autoconf... no configure: WARNING: *** These auxiliary programs are missing or incompatible versions: autoconf *** some features will be disabled. *** Check the INSTALL file for required versions. checking whether ranlib is necessary... no checking LD_LIBRARY_PATH variable... ok checking whether GCC supports -static-libgcc... -static-libgcc checking for bash... /bin/bash checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... no checking for perl... /usr/bin/perl checking for install-info... /tools/bin/install-info checking for bison... no checking for signed size_t type... no checking for libc-friendly stddef.h... yes checking whether we need to use -P to assemble .S files... no checking whether .text pseudo-op must be used... yes checking for assembler global-symbol directive... .globl checking for .set assembler directive... yes checking for assembler .type directive prefix... @ checking for assembler gnu_unique_object symbol type... yes checking for .symver assembler directive... yes checking for ld --version-script... yes checking for .previous assembler directive... yes checking for .protected and .hidden assembler directive... yes checking whether __attribute__((visibility())) is supported... yes checking for broken __attribute__((visibility()))... no checking for broken __attribute__((alias()))... no checking whether to put _rtld_local into .sdata section... no checking for .preinit_array/.init_array/.fini_array support... yes checking for libunwind-support in compiler... no checking for -z nodelete option... yes checking for -z nodlopen option... yes checking for -z initfirst option... yes checking for -z relro option... yes checking for -Bgroup option... yes checking for libgcc_s suffix... checking for --as-needed option... yes checking whether --noexecstack is desirable for .S files... yes checking for -z combreloc... yes checking for -z execstack...
Re: Glibc build CH6.9 Awk: command not found
Kyle Brennan wrote: Hi again, Big problem here, It appears that Gawk was improperly configured and now when I try to configure my Glibc build, it runs into an error where it cannot find the awk command. Read section vii. Host System Requirements. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page