public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/25936]  New: FAIL: libgomp.c/appendix-a/a.15.1.c (test for excess errors)
@ 2006-01-24  0:03 danglin at gcc dot gnu dot org
  2006-01-24  0:59 ` [Bug libgomp/25936] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: danglin at gcc dot gnu dot org @ 2006-01-24  0:03 UTC (permalink / raw)
  To: gcc-bugs

Executing on host: /mnt/gnu/gcc-3.3/objdir/gcc/xgcc
-B/mnt/gnu/gcc-3.3/objdir/gc
c/ /mnt/gnu/gcc-3.3/gcc/libgomp/testsuite/libgomp.c/appendix-a/a.15.1.c 
-B/mnt/
gnu/gcc-3.3/objdir/hppa64-hp-hpux11.11/./libgomp/
-I/mnt/gnu/gcc-3.3/objdir/hppa
64-hp-hpux11.11/./libgomp -I/mnt/gnu/gcc-3.3/gcc/libgomp/testsuite/..
-fmessage-
length=0 -fopenmp  -O2 -fopenmp  
-L/mnt/gnu/gcc-3.3/objdir/hppa64-hp-hpux11.11/
./libgomp/.libs -lgomp -lm   -o ./a.15.1.exe    (timeout = 300)
ld: (Warning) Unsatisfied symbol "sem_init" in file
/mnt/gnu/gcc-3.3/objdir/hppa
64-hp-hpux11.11/./libgomp/.libs/libgomp.sl
ld: (Warning) Unsatisfied symbol "sem_post" in file
/mnt/gnu/gcc-3.3/objdir/hppa
64-hp-hpux11.11/./libgomp/.libs/libgomp.sl
ld: (Warning) Unsatisfied symbol "sem_wait" in file
/mnt/gnu/gcc-3.3/objdir/hppa
64-hp-hpux11.11/./libgomp/.libs/libgomp.sl
ld: (Warning) Unsatisfied symbol "sem_destroy" in file
/mnt/gnu/gcc-3.3/objdir/h
ppa64-hp-hpux11.11/./libgomp/.libs/libgomp.sl
4 warnings.
output is:
ld: (Warning) Unsatisfied symbol "sem_init" in file
/mnt/gnu/gcc-3.3/objdir/hppa
64-hp-hpux11.11/./libgomp/.libs/libgomp.sl
ld: (Warning) Unsatisfied symbol "sem_post" in file
/mnt/gnu/gcc-3.3/objdir/hppa
64-hp-hpux11.11/./libgomp/.libs/libgomp.sl
ld: (Warning) Unsatisfied symbol "sem_wait" in file
/mnt/gnu/gcc-3.3/objdir/hppa
64-hp-hpux11.11/./libgomp/.libs/libgomp.sl
ld: (Warning) Unsatisfied symbol "sem_destroy" in file
/mnt/gnu/gcc-3.3/objdir/h
ppa64-hp-hpux11.11/./libgomp/.libs/libgomp.sl
4 warnings.

FAIL: libgomp.c/appendix-a/a.15.1.c (test for excess errors)

I'm not sure what's going on here.  While the header files and manpages seem
to indicate the presence of POSIX semaphores, they seem missing from the
libraries.


-- 
           Summary: FAIL: libgomp.c/appendix-a/a.15.1.c (test for excess
                    errors)
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa64-hp-hpux11.11
  GCC host triplet: hppa64-hp-hpux11.11
GCC target triplet: hppa64-hp-hpux11.11


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgomp/25936] FAIL: libgomp.c/appendix-a/a.15.1.c (test for excess errors)
  2006-01-24  0:03 [Bug libgomp/25936] New: FAIL: libgomp.c/appendix-a/a.15.1.c (test for excess errors) danglin at gcc dot gnu dot org
@ 2006-01-24  0:59 ` pinskia at gcc dot gnu dot org
  2006-01-24  2:12 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-24  0:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-01-24 00:59 -------
I bet -lrt has to be linked in as sem_* are part of the real time extensions of
POSIX.


-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgomp/25936] FAIL: libgomp.c/appendix-a/a.15.1.c (test for excess errors)
  2006-01-24  0:03 [Bug libgomp/25936] New: FAIL: libgomp.c/appendix-a/a.15.1.c (test for excess errors) danglin at gcc dot gnu dot org
  2006-01-24  0:59 ` [Bug libgomp/25936] " pinskia at gcc dot gnu dot org
@ 2006-01-24  2:12 ` dave at hiauly1 dot hia dot nrc dot ca
  2006-01-29 20:26 ` [Bug libgomp/25936] libgomp needs to link against rt on HPUX pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2006-01-24  2:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dave at hiauly1 dot hia dot nrc dot ca  2006-01-24 02:12 -------
Subject: Re:  FAIL: libgomp.c/appendix-a/a.15.1.c (test for excess errors)

> I bet -lrt has to be linked in as sem_* are part of the real time extensions of
> POSIX.

I believe that you would win that bet:

-bash-2.05b$ nm librt.2|less
Symbols from librt.2:

[Index]    Value                  Size    Type  Bind  O Shndx    Name
...
[98]     |   4611686018427395792|     100|FUNC |GLOB |0|   .text|sem_close
[119]    |   4611686018427395280|     164|FUNC |GLOB |0|   .text|sem_destroy
[60]     |   4611686018427396688|     160|FUNC |GLOB |0|   .text|sem_getvalue
[88]     |   4611686018427395072|     208|FUNC |GLOB |0|   .text|sem_init
[96]     |   4611686018427395464|     308|FUNC |GLOB |0|   .text|sem_open
[102]    |   4611686018427396512|     172|FUNC |GLOB |0|   .text|sem_post
[72]     |   4611686018427396208|     300|FUNC |GLOB |0|   .text|sem_trywait
[67]     |   4611686018427395896|     132|FUNC |GLOB |0|   .text|sem_unlink
[109]    |   4611686018427396032|     172|FUNC |GLOB |0|   .text|sem_wait

Dave


-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgomp/25936] libgomp needs to link against rt on HPUX
  2006-01-24  0:03 [Bug libgomp/25936] New: FAIL: libgomp.c/appendix-a/a.15.1.c (test for excess errors) danglin at gcc dot gnu dot org
  2006-01-24  0:59 ` [Bug libgomp/25936] " pinskia at gcc dot gnu dot org
  2006-01-24  2:12 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2006-01-29 20:26 ` pinskia at gcc dot gnu dot org
  2006-02-08 17:46 ` roger at eyesopen dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-29 20:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-01-29 20:26 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|hppa64-hp-hpux11.11         |
   GCC host triplet|hppa64-hp-hpux11.11         |
   Last reconfirmed|0000-00-00 00:00:00         |2006-01-29 20:26:54
               date|                            |
            Summary|FAIL: libgomp.c/appendix-   |libgomp needs to link
                   |a/a.15.1.c (test for excess |against rt on HPUX
                   |errors)                     |


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgomp/25936] libgomp needs to link against rt on HPUX
  2006-01-24  0:03 [Bug libgomp/25936] New: FAIL: libgomp.c/appendix-a/a.15.1.c (test for excess errors) danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-01-29 20:26 ` [Bug libgomp/25936] libgomp needs to link against rt on HPUX pinskia at gcc dot gnu dot org
@ 2006-02-08 17:46 ` roger at eyesopen dot com
  2006-02-08 18:17 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: roger at eyesopen dot com @ 2006-02-08 17:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from roger at eyesopen dot com  2006-02-08 17:46 -------
This problem affects both hppa*-hp-hpux* and ia64-hp-hpux*.  It appears that
the required sem_init, sem_wait, sem_post, etc... symbols are defined both in
the -lrt libraries on HPUX and in the -lc_r libraries.  The fix is to update
LIB_SPEC, perhaps in the -pthread clause, for HPUX, but I'm not sure if it
requires adding -lrt or changing -lc to -lc_r, or adding -lc_r?  I notice that
config/pa/pa-hpux10.h does mention -lc_r, but for use with -threads.

Should -pthread pull in the required symbols?  i.e. is this a libgomp problem
or a target problem?


-- 

roger at eyesopen dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roger at eyesopen dot com


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgomp/25936] libgomp needs to link against rt on HPUX
  2006-01-24  0:03 [Bug libgomp/25936] New: FAIL: libgomp.c/appendix-a/a.15.1.c (test for excess errors) danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-02-08 17:46 ` roger at eyesopen dot com
@ 2006-02-08 18:17 ` dave at hiauly1 dot hia dot nrc dot ca
  2006-02-13  2:33 ` sayle at gcc dot gnu dot org
  2006-02-13 19:02 ` roger at eyesopen dot com
  6 siblings, 0 replies; 8+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2006-02-08 18:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dave at hiauly1 dot hia dot nrc dot ca  2006-02-08 18:17 -------
Subject: Re:  libgomp needs to link against rt on HPUX

> This problem affects both hppa*-hp-hpux* and ia64-hp-hpux*.  It appears that
> the required sem_init, sem_wait, sem_post, etc... symbols are defined both in
> the -lrt libraries on HPUX and in the -lc_r libraries.  The fix is to update
> LIB_SPEC, perhaps in the -pthread clause, for HPUX, but I'm not sure if it
> requires adding -lrt or changing -lc to -lc_r, or adding -lc_r?  I notice that
> config/pa/pa-hpux10.h does mention -lc_r, but for use with -threads.

I'm not 100% certain but I believe libc_r needs to be used with dce
threads, and librt with posix threads.  HP-UX 10 doesn't have the latter.
We only support posix threads on hppa*-hp-hpux11*.

> Should -pthread pull in the required symbols?  i.e. is this a libgomp problem
> or a target problem?

Although it's relatively easy to change LIB_SPEC, I'd like to keep the
number of libraries that are linked against to a minimum.

Dave


-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgomp/25936] libgomp needs to link against rt on HPUX
  2006-01-24  0:03 [Bug libgomp/25936] New: FAIL: libgomp.c/appendix-a/a.15.1.c (test for excess errors) danglin at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-02-08 18:17 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2006-02-13  2:33 ` sayle at gcc dot gnu dot org
  2006-02-13 19:02 ` roger at eyesopen dot com
  6 siblings, 0 replies; 8+ messages in thread
From: sayle at gcc dot gnu dot org @ 2006-02-13  2:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from sayle at gcc dot gnu dot org  2006-02-13 02:33 -------
Subject: Bug 25936

Author: sayle
Date: Mon Feb 13 02:33:37 2006
New Revision: 110908

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110908
Log:
2006-02-12  Roger Sayle  <roger@eyesopen.com>
            John David Anglin  <dave@hiauly1.hia.nrc.ca>

        PR libgomp/25936
        * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.


Modified:
    trunk/libgomp/ChangeLog
    trunk/libgomp/configure.tgt


-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgomp/25936] libgomp needs to link against rt on HPUX
  2006-01-24  0:03 [Bug libgomp/25936] New: FAIL: libgomp.c/appendix-a/a.15.1.c (test for excess errors) danglin at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-02-13  2:33 ` sayle at gcc dot gnu dot org
@ 2006-02-13 19:02 ` roger at eyesopen dot com
  6 siblings, 0 replies; 8+ messages in thread
From: roger at eyesopen dot com @ 2006-02-13 19:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from roger at eyesopen dot com  2006-02-13 19:02 -------
This has now been fixed on mainline.


-- 

roger at eyesopen dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.2.0


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-02-13 19:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-24  0:03 [Bug libgomp/25936] New: FAIL: libgomp.c/appendix-a/a.15.1.c (test for excess errors) danglin at gcc dot gnu dot org
2006-01-24  0:59 ` [Bug libgomp/25936] " pinskia at gcc dot gnu dot org
2006-01-24  2:12 ` dave at hiauly1 dot hia dot nrc dot ca
2006-01-29 20:26 ` [Bug libgomp/25936] libgomp needs to link against rt on HPUX pinskia at gcc dot gnu dot org
2006-02-08 17:46 ` roger at eyesopen dot com
2006-02-08 18:17 ` dave at hiauly1 dot hia dot nrc dot ca
2006-02-13  2:33 ` sayle at gcc dot gnu dot org
2006-02-13 19:02 ` roger at eyesopen dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).