public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/28482]  New: Cannot use libgomp in shared library
@ 2006-07-25 15:06 mozilla at weilbacher dot org
  2006-07-25 15:48 ` [Bug libgomp/28482] " rguenth at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: mozilla at weilbacher dot org @ 2006-07-25 15:06 UTC (permalink / raw)
  To: gcc-bugs

I made some tests using gcc version 4.2.0 20060708 (experimental) to see if I
can make use of the OpenMP feature and libgomp in my data processing
environment. This environment runs on Unix systems (here: Linux) and consists
of a main program and several .so plugins that do the actual work. If I use
libgomp I cannot load these plugins any more because libgomp is built with "-z
nodlopen". From libgomp/configure.tgt:

   # Optimize TLS usage by avoiding the overhead of dynamic allocation.
   # This does require that the library be present during process
   # startup, so mark the library as not to be dlopened.
   if test $have_tls = yes && test "$with_gnu_ld" = "yes"; then
           XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
           XLDFLAGS="${XLDFLAGS} -Wl,-z,nodlopen"
   fi

I guess that for some uses this really makes sense but I didn't find this
documented anywhere and had to post to newsgroups to get someone to help me
find this.

I suggest you remove this and add a configure switch instead.


-- 
           Summary: Cannot use libgomp in shared library
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mozilla at weilbacher dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

end of thread, other threads:[~2008-07-04 19:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-25 15:06 [Bug libgomp/28482] New: Cannot use libgomp in shared library mozilla at weilbacher dot org
2006-07-25 15:48 ` [Bug libgomp/28482] " rguenth at gcc dot gnu dot org
2006-07-25 15:53 ` pinskia at gcc dot gnu dot org
2007-05-04 19:21 ` jakub at gcc dot gnu dot org
2007-05-10  8:45 ` mozilla at weilbacher dot org
2007-06-15 15:48 ` tiago at forked dot de
2007-09-11 21:47 ` aldot at gcc dot gnu dot org
2007-10-09 19:27 ` mmitchel at gcc dot gnu dot org
2007-12-18  0:15 ` tiago at forked dot de
2008-01-23 21:35 ` peter dot waller at gmail dot com
2008-02-01 17:05 ` jsm28 at gcc dot gnu dot org
2008-02-06 15:38 ` ilmarw at simula dot no
2008-04-29 13:37 ` ilmarw at simula dot no
2008-05-19 20:25 ` jsm28 at gcc dot gnu dot org
2008-07-04 19:48 ` jsm28 at gcc dot gnu dot org

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).