public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/65155] New: libgomp-plugin-host_nonshm installation failure
@ 2015-02-21 17:22 dje at gcc dot gnu.org
  2015-02-21 18:41 ` [Bug libgomp/65155] " dje at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: dje at gcc dot gnu.org @ 2015-02-21 17:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65155

            Bug ID: 65155
           Summary: libgomp-plugin-host_nonshm installation failure
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dje at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org

Installation of libgomp-plugin-host_nonshm fails because of relinking. 
libgomp-plugin-host_nonshm.la contains a "relink" command because libtool is
invoked with --tag disatable-static.  However, the plugin somehow is in use
during the linking process.

libtool: relink: /home/dje/build/20150218/./gcc/xgcc
-B/home/dje/build/20150218/./gcc/
-B/home/dje/install/powerpc-ibm-aix7.1.2.0-20150218/powerpc-ibm-aix7.1.2.0/bin/
-B/home/dje/install/powerpc-ibm-aix7.1.2.0-20150218/powerpc-ibm-aix7.1.2.0/lib/
-isystem
/home/dje/install/powerpc-ibm-aix7.1.2.0-20150218/powerpc-ibm-aix7.1.2.0/include
-isystem
/home/dje/install/powerpc-ibm-aix7.1.2.0-20150218/powerpc-ibm-aix7.1.2.0/sys-include
   -shared -o .libs/libgomp-plugin-host_nonshm.so.1 
.libs/libgomp_plugin_host_nonshm_la-plugin-host.o  
-Wl,-blibpath:/home/dje/install/powerpc-ibm-aix7.1.2.0-20150218/lib:/home/dje/build/20150218/./gcc:/usr/lib:/lib
-L/home/dje/install/powerpc-ibm-aix7.1.2.0-20150218/lib -lgomp -lpthread -ldl
-lc -Wl,-bnoentry  -pthread   -Wl,-bE:.libs/libgomp-plugin-host_nonshm.exp
-Wl,-berok
ld: 0711-851 SEVERE ERROR: Output file: .libs/libgomp-plugin-host_nonshm.so.1
        The file is in use and cannot be overwritten.
collect2: error: ld returned 12 exit status

I am not sure how the plugin shared object is being referenced, but that seems
like a bug.

Possible solutions:

1) Don't reference the shared object unnecessarily.
2) Don't generate relink command for libtool
3) Ignore relink command on AIX (like cygwin?)
4) Relink should delete shared object before trying to regenerate it.


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

* [Bug libgomp/65155] libgomp-plugin-host_nonshm installation failure
  2015-02-21 17:22 [Bug libgomp/65155] New: libgomp-plugin-host_nonshm installation failure dje at gcc dot gnu.org
@ 2015-02-21 18:41 ` dje at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: dje at gcc dot gnu.org @ 2015-02-21 18:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65155

--- Comment #1 from David Edelsohn <dje at gcc dot gnu.org> ---
This is caused by AIX keeping the plugin shared object cached after running the
testsuite.  I guess this means the best solution is deleting the library before
relinking it.


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

end of thread, other threads:[~2015-02-21 17:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-21 17:22 [Bug libgomp/65155] New: libgomp-plugin-host_nonshm installation failure dje at gcc dot gnu.org
2015-02-21 18:41 ` [Bug libgomp/65155] " dje at gcc dot gnu.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).