bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[glibc-2.3.2] install-headers fails on pt-machine.h


From: Arno Schuring
Subject: [glibc-2.3.2] install-headers fails on pt-machine.h
Date: Thu, 26 Feb 2004 23:47:29 +0100

Hello all!

I was in the process of issuing a bug report, but I realized I might try
this here first, maybe I missed a configuration option. Here's the story
(I'm sorry if it's too long):

I am trying to build a cross-toolchain from i586 to sparc, using
binutils-2.14, gcc-3.3.2, and glibc-2.3.2. I have already located some
scripts (faqs, manuals) for doing this but can't seem to succeed. This one
problem appears to relate only to glibc, so I thought I'd start here. Please
redirect me if I'm wrong...

native system:
- i586-pc-linux-gnu
- binutils-2.14
- gcc-3.3.2
- glibc-2.3.2
- kernel 2.4.24


make install-headers fails when configured with linuxthreads, but succeeds
when linuxthreads are excluded.


The commands used:

##> export CC=/usr/bin/gcc ;
./glibc-2.3.2/configure --prefix=/tools --with-headers=/tools/include --hos
t=sparc-pc-linux --enable-add-ons ; export CC=

##> make cross-compiling=yes install_root=/tools prefix= install-headers
(...)
make  -C stdio-common install-headers
make[2]: Entering directory `/usr/src/lfs/glibc-2.3.2/stdio-common'
gawk -v maxerr=`\


/usr/bin/gcc -S  -I../include -I. -I/usr/src/lfs/Glibc-HEADERS-sparc/stdio-c
ommon -I.. -I../libio  -I/usr/src/lfs/Glibc-HEADERS-sparc -I../sysdeps/sparc
/sparc32/elf -I../linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc32 -I../li
nuxthreads/sysdeps/unix/sysv/linux/sparc -I../linuxthreads/sysdeps/unix/sysv
/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthre
ads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysde
ps/sparc/sparc32 -I../linuxthreads/sysdeps/sparc -I../sysdeps/unix/sysv/linu
x/sparc/sparc32 -I../sysdeps/unix/sysv/linux/sparc -I../sysdeps/unix/sysv/li
nux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sy
sdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/sparc -I../sysdeps/
unix -I../sysdeps/posix -I../sysdeps/sparc/sparc32/fpu -I../sysdeps/sparc/sp
arc32 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee
754/dbl-64 -I../sysdeps/sparc/sparc32/soft-fp -I../sysdeps/sparc/fpu -I../sy
sdeps/sparc -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/gener
ic  -nostdinc -isystem
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.2/include -isystem
/tools/include -D_LIBC_REENTRANT -include
lude/libc-symbols.h       -D_IO_MTSAFE_IO -std=gnu99 -O2 -Wall -Winline -Wst
rict-prototypes -Wwrite-strings -g     -DNOT_IN_libc -DEMIT_ERR_MAX
./sysdeps/gnu/errlist.c -o - \
  | sed -n 's/^.*@@@[^0-9]*\([0-9]*\)[^0-9]*@@@.*$/\1/p'` \
       -f ../sysdeps/gnu/errlist-compat.awk \
       ../linuxthreads/sysdeps/unix/sysv/linux/Versions
./sysdeps/unix/sysv/linux/sparc/sparc32/Versions
./sysdeps/unix/sysv/linux/sparc/Versions
./sysdeps/unix/sysv/linux/Versions ../sysdeps/unix/sysv/Versions
./sysdeps/sparc/sparc32/Versions ../linuxthreads/Versions >
/usr/src/lfs/Glibc-HEADERS-sparc/stdio-common/errlist-compat.cT
In file included from ../linuxthreads/sysdeps/sparc/tls.h:25,
                 from ../include/tls.h:3,
                 from ../include/errno.h:22,
                 from ../sysdeps/gnu/errlist.c:3:
./linuxthreads/sysdeps/sparc/sparc32/pt-machine.h:59: error: invalid
register name for `__thread_self'
*** errlist.c count 1 vs Versions address@hidden count 128
make[2]: ***
[/usr/src/lfs/Glibc-HEADERS-sparc/stdio-common/errlist-compat.c] Error 1
make[2]: Leaving directory `/usr/src/lfs/glibc-2.3.2/stdio-common'
make[1]: *** [stdio-common/install-headers] Error 2
make[1]: Leaving directory `/usr/src/lfs/glibc-2.3.2'
make: *** [install-headers] Error 2


pt-machine.h line 59 refers to a register "%g7". However, I do not have any
knowledge of SPARC architecture, and I have no clue of how to search for a
solution myself.


When using this configure command:

##> export CC=/usr/bin/gcc ;
./glibc-2.3.2/configure --prefix=/tools --with-headers=/tools/include --hos
t=sparc-pc-linux --disable-sanity-checks ; export CC=

the same make command succeeds.


For completeness, /tools/include has been filled using the following
commands (though I don't think it matters):
##> cd linux
##> make ARCH=sparc symlinks include/linux/version.h
##> cp -r include/linux /tools/include
##> cp -r include/asm-sparc /tools/include/asm
##> cp -r include/asm-generic /tools/include/asm-generic


Am I missing something? I am new to crosscompiling, so I may have missed
something along the way.


I'd be grateful for anything that helps me past this problem (and onto the
next). Do you think it'd be a problem to start building the cross-gcc
without the linuxthreads headers?

Thanks for your time,
Arno Schuring




reply via email to

[Prev in Thread] Current Thread [Next in Thread]