Bug 65155 - libgomp-plugin-host_nonshm installation failure
Summary: libgomp-plugin-host_nonshm installation failure
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: libgomp (show other bugs)
Version: 5.0
: P3 normal
Target Milestone: ---
Assignee: Thomas Schwinge
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-21 15:30 UTC by David Edelsohn
Modified: 2020-01-14 11:40 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Edelsohn 2015-02-21 15:30:41 UTC
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.
Comment 1 David Edelsohn 2015-02-21 17:22:24 UTC
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.
Comment 2 Thomas Schwinge 2020-01-14 11:40:49 UTC
(We don't understand how/why the libgomp host_nonshm plugin is special in that regard, however) the libgomp host_nonshm plugin has been removed long ago (r226763 "[PR libgomp/65742, PR middle-end/66332] libgomp: Remove plugin for non-shared memory host execution"), so this specific issue cannot be a problem anymore.