LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Eglibc loops when compiling! Why do Libc's hate me!! (http://www.linuxquestions.org/questions/linux-software-2/eglibc-loops-when-compiling-why-do-libcs-hate-me-940952/)

Zssfssz 04-21-2012 01:27 AM

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?

John VV 04-21-2012 01:37 AM

besides the normal target
Code:

export target=i686-pc-linux-gnu

Zssfssz 04-21-2012 02:14 AM

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...)


All times are GMT -5. The time now is 01:00 AM.