This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgomp/46967] lots of testsuite failures with libgomp on hppa-hp-hpux11.31


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46967

--- Comment #2 from dave at hiauly1 dot hia.nrc.ca 2011-01-27 20:24:02 UTC ---
>  With r163461 backported (compiler only built with --enable-languages=c this
> time) we ran the libgomp testsuite 3 times, failed 11/248 tests, 0/248 tests
> and 9/248 tests. So, still not fantastic, but the 0/248 was nice to see.

I believe that libgomp.sl is incorrectly linked:

# chatr libgomp.sl
libgomp.sl:
         shared library
     shared library dynamic path search:
         SHLIB_PATH     disabled  second
         embedded path  enabled   first  /opt/gnu/gcc/gcc-4.5/lib
     internal name:
         libgomp.sl.1
     shared library list:
         dynamic   /usr/lib/librt.2
         dynamic   /usr/lib/libc.2
         dynamic   /mnt/gnu/gcc/objdir/./gcc/libgcc_s.4
         dynamic   /opt/langtools/lib/libpthread.1

As can be seen, libgomp is linked against libc, and libc.2 comes
before libpthread.1 in the shared library list.  libc contains
non functional pthread functions, so it is likely pthread support
is not functional.  From the discussion, it appears there is a
difference in the behavior of the dynamic loader in 11.31 and
other hpux 11 releases.

HP recommends not linking shared libraries against libc.  libtool
adds -lc to the link command.  It doesn't come directly from the libgomp
configuration.  So, libtool needs to be fixed first.

Dave


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]