LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 04-21-2012, 01:27 AM   #1
Zssfssz
Member
 
Registered: Sep 2011
Location: Las Vegas!
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339

Rep: Reputation: Disabled
Eglibc loops when compiling! Why do Libc's hate me!!


I am sick and tired of the problem in building my cross-compiler (x86_64 to i586) is always in the Standard C Library (Dramatic Music). Both the generic eglibc and it with all the debian patches I could find it still wont compile!
This reapeats 1000s of times when compileing eglibc:
Code:
make[2]: Entering directory `/home/todd/lang/eglibc-2.14/libc/csu'
/usr/bin/install -c -m 644 /home/todd/lang/eglibc-build/../include/linux/limits.h /usr/local/lang/include/linux/limits.h
/usr/bin/install -c -m 644 /home/todd/lang/eglibc-build/../include/linux/param.h /usr/local/lang/include/linux/param.h
make[2]: Circular /home/todd/lang/eglibc-build/tcb-offsets.h <- /home/todd/lang/eglibc-build/tcb-offsets.h dependency dropped.
/usr/bin/install -c -m 644 /home/todd/lang/eglibc-build/../include/linux/errno.h /usr/local/lang/include/linux/errno.h
/usr/bin/install -c -m 644 /home/todd/lang/eglibc-build/../include/asm-generic/errno-base.h /usr/local/lang/include/asm-generic/errno-base.h
gawk -f ../scripts/gen-as-const.awk ../nptl/sysdeps/i386/tcb-offsets.sym \
	| i586-linux-gcc -S -o /home/todd/lang/eglibc-build/tcb-offsets.hT3 -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=4     -I../include -I/home/todd/lang/eglibc-build/csu -I/home/todd/lang/eglibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i586 -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../nptl/sysdeps/i386/i586 -I../sysdeps/i386/i586 -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 /usr/local/lang/lib/gcc/i586-linux/4.5.3/include -isystem /usr/local/lang/lib/gcc/i586-linux/4.5.3/include-fixed -isystem /usr/local/lang/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DHAVE_INITFINI -x c - \
		-MD -MP -MF /home/todd/lang/eglibc-build/tcb-offsets.h.dT -MT '/home/todd/lang/eglibc-build/tcb-offsets.h.d /home/todd/lang/eglibc-build/tcb-offsets.h'
sed -n 's/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$/#define \1 \2/p' \
		/home/todd/lang/eglibc-build/tcb-offsets.hT3 > /home/todd/lang/eglibc-build/tcb-offsets.hT
rm -f /home/todd/lang/eglibc-build/tcb-offsets.hT3
sed -e 's@ /home/todd/lang/eglibc-build/@ $(common-objpfx)@g' -e 's@^/home/todd/lang/eglibc-build/@$(common-objpfx)@g' -e 's@  *\.\.\/\([^ 	\]*\)@ $(..)\1@g' -e 's@^\.\.\/\([^ 	\]*\)@$(..)\1@g' \
	    /home/todd/lang/eglibc-build/tcb-offsets.h.dT > /home/todd/lang/eglibc-build/tcb-offsets.h.dT2
rm -f /home/todd/lang/eglibc-build/tcb-offsets.h.dT
mv -f /home/todd/lang/eglibc-build/tcb-offsets.h.dT2 /home/todd/lang/eglibc-build/tcb-offsets.h.d
mv -f /home/todd/lang/eglibc-build/tcb-offsets.hT /home/todd/lang/eglibc-build/tcb-offsets.h
gawk -f ../scripts/gen-as-const.awk ../sysdeps/i386/tlsdesc.sym \
	| i586-linux-gcc -S -o /home/todd/lang/eglibc-build/tlsdesc.hT3 -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=4     -I../include -I/home/todd/lang/eglibc-build/csu -I/home/todd/lang/eglibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i586 -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../nptl/sysdeps/i386/i586 -I../sysdeps/i386/i586 -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 /usr/local/lang/lib/gcc/i586-linux/4.5.3/include -isystem /usr/local/lang/lib/gcc/i586-linux/4.5.3/include-fixed -isystem /usr/local/lang/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DHAVE_INITFINI -x c - \
		-MD -MP -MF /home/todd/lang/eglibc-build/tlsdesc.h.dT -MT '/home/todd/lang/eglibc-build/tlsdesc.h.d /home/todd/lang/eglibc-build/tlsdesc.h'
sed -n 's/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$/#define \1 \2/p' \
		/home/todd/lang/eglibc-build/tlsdesc.hT3 > /home/todd/lang/eglibc-build/tlsdesc.hT
rm -f /home/todd/lang/eglibc-build/tlsdesc.hT3
sed -e 's@ /home/todd/lang/eglibc-build/@ $(common-objpfx)@g' -e 's@^/home/todd/lang/eglibc-build/@$(common-objpfx)@g' -e 's@  *\.\.\/\([^ 	\]*\)@ $(..)\1@g' -e 's@^\.\.\/\([^ 	\]*\)@$(..)\1@g' \
	    /home/todd/lang/eglibc-build/tlsdesc.h.dT > /home/todd/lang/eglibc-build/tlsdesc.h.dT2
rm -f /home/todd/lang/eglibc-build/tlsdesc.h.dT
mv -f /home/todd/lang/eglibc-build/tlsdesc.h.dT2 /home/todd/lang/eglibc-build/tlsdesc.h.d
mv -f /home/todd/lang/eglibc-build/tlsdesc.hT /home/todd/lang/eglibc-build/tlsdesc.h
make[2]: Leaving directory `/home/todd/lang/eglibc-2.14/libc/csu'
Is there a simple (hopefuly a tag for the configure script) that will clear this up?
 
Old 04-21-2012, 01:37 AM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 13,469

Rep: Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800Reputation: 1800
besides the normal target
Code:
 export target=i686-pc-linux-gnu
 
Old 04-21-2012, 02:14 AM   #3
Zssfssz
Member
 
Registered: Sep 2011
Location: Las Vegas!
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339

Original Poster
Rep: Reputation: Disabled
Why is that a normal target?
The toolchain is intended for i586. I could bump it up to i686 but only if it would be absolutely nessery to the building of eglibc.
i686-pc-linux-gnu makes the executables ugly, i586-linux is more elagent (yeah; I got issues...)
 
  


Reply

Tags
building, eglibc, make


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling with non primary libc ammayappan Linux - Embedded & Single-board computer 2 03-21-2012 02:47 AM
cross compiling eglibc with Linaro toolchain ammayappan Linux - Embedded & Single-board computer 7 02-07-2012 02:40 AM
LXer: I hate Unity. I hate GNOME. I hate Windows 8. The ultimate desktop search continues. LXer Syndicated Linux News 1 11-09-2011 08:20 PM
compiling software without libc dependency augustocv Linux - Software 4 12-10-2006 07:52 PM
i hate compiling fakie_flip Linux - Software 10 08-17-2006 10:58 AM


All times are GMT -5. The time now is 05:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration