Re: Glibc make fails with Error 2

2010-05-24 Thread Kyle Brennan
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

2010-05-24 Thread Bruce Dubbs
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


Re: Glibc make fails with Error 2

2010-05-23 Thread Kyle Brennan

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: Glibc make fails with Error 2

2010-05-23 Thread Bruce Dubbs
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

2010-05-23 Thread Kyle Brennan
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

2010-05-23 Thread Bruce Dubbs
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

2010-05-23 Thread Kyle Brennan
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

2010-05-23 Thread Kyle Brennan
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

2010-05-23 Thread Kyle Brennan
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

2010-05-23 Thread Kyle Brennan
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

2010-05-23 Thread Kyle Brennan
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/glibc-2.11.1/malloc/set-freeres.c:39: undefined reference 
to `__sync_bool_compare_and_swap_4'
collect2: ld returned 1 

Re: Glibc make fails with Error 2

2010-05-23 Thread Chris Staub
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

2010-05-22 Thread William Immendorf
On Sat, May 22, 2010 at 5:47 PM, Kyle Brennan kyle_b...@live.com 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
Please, give me more info. What was the command that failed, and what
errors did it produce?


-- 
William Immendorf
The ultimate in free computing.
Messages in plain text, please, no HTML.
GPG key ID: 1697BE98
If it's not signed, it's not from me.

--

Every nonfree program has a lord, a master --
and if you use the program, he is your master.  Richard Stallman
-- 
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

2010-05-22 Thread Bruce Dubbs
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
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page