More from the TLS glibc front.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 1 line
Still tacking:
Hmm.... I guess I must be using slightly different sources, and I see different problems....
I'm using:
binutils CVS HEAD (20050409)
gcc-4.0-20050402 (ftp'ed)
glibc CVS HEAD (20050409)
First of all, the patches seem to be out of date. I've updated the binutils and gcc ones.
http://www.parisc-linux.org/~tausq/hppa-tls-gcc.diff
http://www.parisc-linux.org/~tausq/hppa-tls-binutils.diff
I find some other issues with the glibc build. Carlos, a few of your patches are malformed. They have CVS conflict markers in them.. :)
Right now my build fails when building tst-tlsmod14a.c with a gcc ICE. I think my gcc patches are broken (no surprise there...)
I'll try to take a closer look at the gcc failure. The failure looks like this (simplified to a small test program):
$ /home/tausq/tls/bin/gcc -O2 -fPIC -c tlstst.c
tlstst.c: In function 'in_dso1':
tlstst.c:21: error: unable to find a register to spill in class 'R1_REGS'
tlstst.c:21: error: this is the insn:
(insn 26 20 23 0 (set (reg:SI 28 %r28 [106])
(plus:SI (reg:SI 19 %r19)
(high:SI (symbol_ref/v/f:SI ("*.LC0") [flags 0x2] <string_cst 0x400b8780>)))) 46 {*pa.md:2717} (nil)
(nil))
tlstst.c:21: confused by earlier errors, bailing outOnly happens with -fPIC. Likely I'm doing the rtl wrong in legitimize_tls_address ()
tlstst.c is at http://www.parisc-linux.org/~tausq/tlstst.c
btw, Carlos, are you building glibc with linuxthreads or nptl when you enable TLS? If I use nptl I get a lot of build errors very early in the build process.
randolph
Signature · 7 lines
Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/ _______________________________________________ parisc-linux mailing list [email protected] http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
Quoted 3 lines · Randolph Chung
btw, Carlos, are you building glibc with linuxthreads or nptl when you enable TLS? If I use nptl I get a lot of build errors very early in the build process.
Disable nptl, we don't have the patches for that to work yet, since we don't have a working futex prototype.
I am building with:
$SRC/$LIBC/configure --host=$ARCH-linux --build=$ARCH-linux --target=$ARCH-linux --prefix=$GINSTALL --enable-add-ons=linuxthreads --enable-tls --enable-__thread --enable-all-warnings >& ../configure-$BUILDNAME-$ARCH.log
c.
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
Quoted 2 lines · Randolph Chung
I find some other issues with the glibc build. Carlos, a few of your patches are malformed. They have CVS conflict markers in them.. :)
Oh, yes. I'm not always as careful as I want to be with that patch generation. I fix the upstream glibc problems too fast, and the update script does a 'cvs up' and then generates patches. Not always optimal.
c.
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
Quoted 8 lines · Randolph Chung
I'm using:
binutils CVS HEAD (20050409)
gcc-4.0-20050402 (ftp'ed)
glibc CVS HEAD (20050409)First of all, the patches seem to be out of date. I've updated the binutils and gcc ones.
Quoted 8 lines
http://www.parisc-linux.org/~tausq/hppa-tls-gcc.diff
http://www.parisc-linux.org/~tausq/hppa-tls-binutils.diffI find some other issues with the glibc build. Carlos, a few of your patches are malformed. They have CVS conflict markers in them.. :)
Right now my build fails when building
tst-tlsmod14a.cwith a gcc ICE. I think my gcc patches are broken (no surprise there...)
Woah, wait a second. You have a working build? You got to atleast the check phase if you are building the tests. Are you sure your build made it all the way through?
How did you fix this:/mnt/flaire/src/tls-toolchain/install/bin/../lib/gcc/hppa-linux/3.4.3/../../../../hppa-linux/bin/ld:__libc_errno: TLS definition in /home/carlos/fsrc/tls-toolchain/build/libc/2005-04-08-hppa/libc_pic.a(errno.os) section .tbss mismatches non-TLS reference in /home/carlos/fsrc/tls-toolchain/build/libc/2005-04-08-hppa/libc_pic.a(getcwd.os)
c.
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux