Chapter 5.6: Glibc-2.3.4 symbol definition loop errors

2006-05-21 Thread Andrew Price
On a Fedora Core 5 host system I'm at chapter 5.6 of the stable LFS, 
building glibc-2.3.4.


I installed the patch as per the manual and the configure step goes 
fine with no errors but the make step throws up these errors:



gcc -B/tools/bin/ ../sysdeps/wordsize-32/divdi3.c -c -std=gnu99 -O2 -Wall 
-Winline -Wstrict-prototypes -Wwrite-strings -g -mpreferred-stack-boundary=4  
-fPIC-I../include -I. -I/mnt/lfs/sources/glibc-build/csu -I.. -I../libio 
-I../nptl -I/mnt/lfs/sources/glibc-build -I../sysdeps/i386/elf 
-I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv 
-I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -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../sysdeps/unix/sysv -I../sysdeps/unix/i386 
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu 
-I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 
-I../sysdeps/i386/fpu -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 -nostdinc -isystem 
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/include -isystem 
/tools/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include 
../include/libc-symbols.h  -DPIC -DSHARED -DHAVE_INITFINI -o 
/mnt/lfs/sources/glibc-build/csu/divdi3.os -MD -MP -MF 
/mnt/lfs/sources/glibc-build/csu/divdi3.os.dt -MT 
/mnt/lfs/sources/glibc-build/csu/divdi3.os

/tmp/cc7sQmkl.s: Assembler messages:
/tmp/cc7sQmkl.s:1632: Error: symbol definition loop encountered at 
`__divdi3_internal'
/tmp/cc7sQmkl.s:1632: Error: symbol definition loop encountered at 
`__udivdi3_internal'
/tmp/cc7sQmkl.s:1632: Error: symbol definition loop encountered at 
`__moddi3_internal'
/tmp/cc7sQmkl.s:1632: Error: symbol definition loop encountered at 
`__umoddi3_internal'
make[2]: *** [/mnt/lfs/sources/glibc-build/csu/divdi3.os] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4'
make: *** [all] Error 2


I've looked around for solutions to this problem but haven't found 
anything in the errata, the FAQ or from googling and searching the LFS site.


Any light you could shed on the matter would be most appreciated.

Thank you in advance.

--
Andrew Price

--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Chapter 5.6: Glibc-2.3.4 symbol definition loop errors

2006-05-21 Thread Ken Moffat
On Sun, May 21, 2006 at 08:32:46PM +0100, Andrew Price wrote:
 On a Fedora Core 5 host system I'm at chapter 5.6 of the stable LFS, 
 building glibc-2.3.4.
 
[...] 
 /mnt/lfs/sources/glibc-build/csu/divdi3.os
 /tmp/cc7sQmkl.s: Assembler messages:
 /tmp/cc7sQmkl.s:1632: Error: symbol definition loop encountered at 
 `__divdi3_internal'
[...]
 /tmp/cc7sQmkl.s:1632: Error: symbol definition loop encountered at 
 `__umoddi3_internal'
 make[2]: *** [/mnt/lfs/sources/glibc-build/csu/divdi3.os] Error 1

 I've looked around for solutions to this problem but haven't found 
 anything in the errata, the FAQ or from googling and searching the LFS site.
 
 I'm assuming this is not an athlon64 with a multilib host system.

 One possibility is that FC-5 is far too new to build LFS-6.1.1
(e.g. you probably have some sort of gcc-4.1, and maybe glibc-2.4,
and you are asking it to build something too many versions older).

 At this point, you should be using the LFS binutils for doing
assembly, so I'm guessing that was built wrongly.

 We are close to a new release, but I can't wholeheartedly recommend
the current svn book at the moment (a problem with some man pages
has been reported), and we don't know exactly what went wrong in
your build. It might be a problem with fedora's binutils, it might
be yet another gcc bug if it is indeed using gcc-4.1, or anything,
so we can't assume that the development LFS (gcc-4.0 etc) will be
any better for you.

 If your FC-5 system is not up to date, perhaps any updates to
binutils, gcc, glibc might help.  Otherwise, I recommend you to use
a different host system, such as the LFS Live CD.

Ken
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Chapter 5.6: Glibc-2.3.4 symbol definition loop errors

2006-05-21 Thread Andrew Price

On 21/05/06 23:53, Ken Moffat wrote:

...

Thanks for replying, Ken.


 If your FC-5 system is not up to date, perhaps any updates to
binutils, gcc, glibc might help.  Otherwise, I recommend you to use
a different host system, such as the LFS Live CD.
I thought this might be the case. I'll get the live CD burned now. 
Should be a more stable base to start from I guess :)


Thanks again

--
Andrew Price

--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Chapter 5.6: Glibc-2.3.4 symbol definition loop errors

2006-05-21 Thread Andrew Price

On 22/05/06 00:10, Andrew Price wrote:

On 21/05/06 23:53, Ken Moffat wrote:

...

Thanks for replying, Ken.


 If your FC-5 system is not up to date, perhaps any updates to
binutils, gcc, glibc might help.  Otherwise, I recommend you to use
a different host system, such as the LFS Live CD.
I thought this might be the case. I'll get the live CD burned now. 
Should be a more stable base to start from I guess :)
For the benefit of anyone else who has the same problem and finds this 
thread (and for the sake of closure), using the livecd did solve the 
problem and the glibc compilation is chugging along nicely at the moment.


Cheers

--
Andrew Price

--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page