Skip to contentSkip to conversation

glibc is broken because of gcc

parisc-linux John David Anglin 3 participants 5 messages Jul 5, 2007 – Jul 10, 2007 3 messages not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 4 lines
Quoted 2 lines

Could you do glibc builds with the gcc trunk before and after the change? It's best to base the PR on an unmodified version of gcc.

The test with the gcc-trunk (Main 4.3.0 head) shows the same error at the same place.

Ok, it would be useful to file a gcc PR to start. However, it's not clear that gcc is a fault.

It may be that glibc isn't using the visibility attribute correctly for this symbol (i.e., hiding a symbol that is externally referenced). You could try building glibc with the attribute removed. This might be somewhat hppa specific because of the nptl issue.

Quoted 5 lines
Quoted 3 lines

It would help to know the exact details of the linker command that fails, the assembler code generated for mq_timedreceive, and the __librt_multiple_threads symbols in __librt_multiple_threads librt.so.

Did you had a look at the info I sent you (see my previous message) ?

I looked at it briefly but don't have a comment at the moment. I was hoping to figure out which package is responsible for this problem.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#3 lore raw
In reply to a message not in the archive
Quoted 5 lines · John David Anglin
Quoted 4 lines
Quoted 2 lines

Could you do glibc builds with the gcc trunk before and after the change? It's best to base the PR on an unmodified version of gcc.

The test with the gcc-trunk (Main 4.3.0 head) shows the same error at the same place.

Quoted 7 lines

Ok, it would be useful to file a gcc PR to start. However, it's not clear that gcc is a fault.

It may be that glibc isn't using the visibility attribute correctly for this symbol (i.e., hiding a symbol that is externally referenced). You could try building glibc with the attribute removed. This might be somewhat hppa specific because of the nptl issue.

As long as LinuxThreads isn't built, this problem doesn't come up. It seems very likely that it's a glibc problem, then. The Ubuntu builds are NPTL-only and don't show this problem.

Signature · 6 lines
Jeff Bailey - http://www.raspberryginger.com/jbailey/


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
#5 lore raw
In reply to a message not in the archive
Quoted 7 lines · Jeff Bailey
Quoted 6 lines · John David Anglin
Quoted 3 lines
Quoted 2 lines

Could you do glibc builds with the gcc trunk before and after the change? It's best to base the PR on an unmodified version of gcc.

The test with the gcc-trunk (Main 4.3.0 head) shows the same error at the same place.

Ok, it would be useful to file a gcc PR to start. However, it's not clear that gcc is a fault.

Quoted 9 lines
Quoted 4 lines

It may be that glibc isn't using the visibility attribute correctly for this symbol (i.e., hiding a symbol that is externally referenced). You could try building glibc with the attribute removed. This might be somewhat hppa specific because of the nptl issue.

As long as LinuxThreads isn't built, this problem doesn't come up. It seems very likely that it's a glibc problem, then. The Ubuntu builds are NPTL-only and don't show this problem.

On the other hand, the LinuxThreads build on other architectures are still fine even with the latest gcc in Debian.

Signature · 8 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#6 lore raw
In reply to a message not in the archive
Quoted 7 lines · Jeff Bailey
Quoted 6 lines · John David Anglin
Quoted 3 lines
Quoted 2 lines

Could you do glibc builds with the gcc trunk before and after the change? It's best to base the PR on an unmodified version of gcc.

The test with the gcc-trunk (Main 4.3.0 head) shows the same error at the same place.

Ok, it would be useful to file a gcc PR to start. However, it's not clear that gcc is a fault.

Quoted 8 lines
Quoted 4 lines

It may be that glibc isn't using the visibility attribute correctly for this symbol (i.e., hiding a symbol that is externally referenced). You could try building glibc with the attribute removed. This might be somewhat hppa specific because of the nptl issue.

As long as LinuxThreads isn't built, this problem doesn't come up. It seems very likely that it's a glibc problem, then. The Ubuntu builds are NPTL-only and don't show this problem.

NPTL does not use this symbol at all, that's why the problem does not appear.

Signature · 9 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
#7 lore raw
In reply to a message not in the archive
Quoted 10 lines · John David Anglin
Quoted 4 lines
Quoted 2 lines

Could you do glibc builds with the gcc trunk before and after the change? It's best to base the PR on an unmodified version of gcc.

The test with the gcc-trunk (Main 4.3.0 head) shows the same error at the same place.

Ok, it would be useful to file a gcc PR to start. However, it's not clear that gcc is a fault.

It may be that glibc isn't using the visibility attribute correctly for this symbol (i.e., hiding a symbol that is externally referenced).

The patch below based on the m68k version of sysdep-cancel.h fixes the problem.

2007-07-10 Aurelien Jarno <[email protected]>

* sysdeps/unix/sysv/linux/hppa/linuxthreads/sysdep-cancel.h:
(__local_multiple_threads): Declare as hidden only in libc and in libpthread.

sysdeps/unix/sysv/linux/hppa/linuxthreads/sysdep-cancel.h renamed from sysdeps/unix/sysv/linux/hppa/linuxthreads/sysdep-cancel.h.orig +5 -1
Index: ports/sysdeps/unix/sysv/linux/hppa/linuxthreads/sysdep-cancel.h 
===================================================================
@@ -206,7 +206,11 @@
 # endif
 
 # ifndef __ASSEMBLER__
- extern int __local_multiple_threads attribute_hidden;
+#  if !defined NOT_IN_libc || defined IS_IN_libpthread
+extern int __local_multiple_threads attribute_hidden;
+#  else
+extern int __local_multiple_threads;
+#  endif
 #  define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1)
 # else
 /* This ALT version requires newer kernel support */
Signature · 9 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]