[MacPorts] #51298: libgcc and libgcc-devel interfere
#51298: libgcc and libgcc-devel interfere ------------------------+---------------------------------- Reporter: dstrubbe@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: libgcc, libgcc-devel ------------------------+---------------------------------- There is some kind of problem with libgcc and libgcc-devel, such that they cannot activate and deactivate cleanly in the presence of the other. Possibly this is related to the warnings that the Portfile from the registry could not be executed. $ sudo port activate libgcc ---> Computing dependencies for libgcc Warning: Failed to execute portfile from registry for libgcc @5.2.0_0 ---> Activating libgcc @5.2.0_0 Error: port activate failed: Image error: /opt/local/lib/libgcc/libatomic.1.dylib is being used by the active libgcc-devel port. Please deactivate this port first, or use 'port -f activate libgcc' to force the activation. $ port installed libgcc The following ports are currently installed: libgcc @5.2.0_0 $ sudo port -f deactivate libgcc-devel $ sudo port install libgc $ sudo port activate libgcc-devel @6-20160410_0 ---> Computing dependencies for libgcc-devel Warning: Failed to execute portfile from registry for libgcc-devel @6-20160410_0 ---> Activating libgcc-devel @6-20160410_0 Error: port activate failed: Image error: /opt/local/lib/libgcc/libatomic.1.dylib is being used by the active libgcc port. Please deactivate this port first, or use 'port -f activate libgcc- devel' to force the activation. $ port installed libgcc libgcc @5.3.0_1 (active) -- Ticket URL: <https://trac.macports.org/ticket/51298> MacPorts <https://www.macports.org/> Ports system for OS X
#51298: libgcc and libgcc-devel interfere -----------------------------------+------------------- Reporter: dstrubbe@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: libgcc, libgcc-devel | -----------------------------------+------------------- Old description:
There is some kind of problem with libgcc and libgcc-devel, such that they cannot activate and deactivate cleanly in the presence of the other. Possibly this is related to the warnings that the Portfile from the registry could not be executed.
$ sudo port activate libgcc ---> Computing dependencies for libgcc Warning: Failed to execute portfile from registry for libgcc @5.2.0_0 ---> Activating libgcc @5.2.0_0 Error: port activate failed: Image error: /opt/local/lib/libgcc/libatomic.1.dylib is being used by the active libgcc-devel port. Please deactivate this port first, or use 'port -f activate libgcc' to force the activation. $ port installed libgcc The following ports are currently installed: libgcc @5.2.0_0 $ sudo port -f deactivate libgcc-devel $ sudo port install libgc $ sudo port activate libgcc-devel @6-20160410_0 ---> Computing dependencies for libgcc-devel Warning: Failed to execute portfile from registry for libgcc-devel @6-20160410_0 ---> Activating libgcc-devel @6-20160410_0 Error: port activate failed: Image error: /opt/local/lib/libgcc/libatomic.1.dylib is being used by the active libgcc port. Please deactivate this port first, or use 'port -f activate libgcc-devel' to force the activation. $ port installed libgcc libgcc @5.3.0_1 (active)
New description: There is some kind of problem with libgcc and libgcc-devel, such that they cannot activate and deactivate cleanly in the presence of the other. Possibly this is related to the warnings that the Portfile from the registry could not be executed. {{{ $ sudo port activate libgcc ---> Computing dependencies for libgcc Warning: Failed to execute portfile from registry for libgcc @5.2.0_0 ---> Activating libgcc @5.2.0_0 Error: port activate failed: Image error: /opt/local/lib/libgcc/libatomic.1.dylib is being used by the active libgcc-devel port. Please deactivate this port first, or use 'port -f activate libgcc' to force the activation. $ port installed libgcc The following ports are currently installed: libgcc @5.2.0_0 $ sudo port -f deactivate libgcc-devel $ sudo port install libgc $ sudo port activate libgcc-devel @6-20160410_0 ---> Computing dependencies for libgcc-devel Warning: Failed to execute portfile from registry for libgcc-devel @6-20160410_0 ---> Activating libgcc-devel @6-20160410_0 Error: port activate failed: Image error: /opt/local/lib/libgcc/libatomic.1.dylib is being used by the active libgcc port. Please deactivate this port first, or use 'port -f activate libgcc- devel' to force the activation. $ port installed libgcc libgcc @5.3.0_1 (active) }}} -- Comment (by dstrubbe@…): For the record, this is with OSX 10.10.5. -- Ticket URL: <https://trac.macports.org/ticket/51298#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#51298: libgcc and libgcc-devel interfere -----------------------------------+------------------- Reporter: dstrubbe@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: libgcc, libgcc-devel | -----------------------------------+------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: The libgcc and libgcc-devel ports are intentionally marked as conflicting with one another. They are drop-in replacements for one another, but intentionally only one or the other can be active at once. I don't understand why MacPorts did not notify you of the conflict earlier in the process. Your ports are outdated. The current version of libgcc is 6.1.0; the current version of libgcc-devel is 7-20160501. Run `sudo port selfupdate` to get these updates. -- Ticket URL: <https://trac.macports.org/ticket/51298#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#51298: libgcc and libgcc-devel interfere -----------------------------------+------------------- Reporter: dstrubbe@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: libgcc, libgcc-devel | -----------------------------------+------------------- Comment (by dstrubbe@…): Yes, I know they are conflicting; the fact that an appropriate message about that did not come up is the problem. My upgrade is blocked by #51245. -- Ticket URL: <https://trac.macports.org/ticket/51298#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#51298: libgcc and libgcc-devel interfere -----------------------------------+------------------- Reporter: dstrubbe@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: libgcc, libgcc-devel | -----------------------------------+------------------- Comment (by ryandesign@…): Replying to [comment:5 dstrubbe@…]:
Yes, I know they are conflicting; the fact that an appropriate message about that did not come up is the problem.
Well the ports declare the conflict. If MacPorts didn't notify you of it, that would be a bug in MacPorts base, though I don't think I've encountered it before. -- Ticket URL: <https://trac.macports.org/ticket/51298#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#51298: libgcc and libgcc-devel interfere -------------------------+------------------- Reporter: dstrubbe@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.4 Resolution: | Keywords: Port: | -------------------------+------------------- Changes (by dstrubbe@…): * component: ports => base * port: libgcc, libgcc-devel => Comment: I ran with -d and I get: {{{ DEBUG: Found Dependency: receipt exists for libgcc DEBUG: Can't install libgcc-devel because conflicting ports are active: libgcc while executing "_mporterrorifconflictsinstalled $mport" (procedure "mportdepends" line 17) invoked from within "mportdepends $mport $target" (procedure "mportexec" line 48) invoked from within "mportexec $mport $target" Warning: Failed to execute portfile from registry for libgcc-devel @6-20160410_0 ---> Activating libgcc-devel @6-20160410_0 }}} So, the "failure to execute the Portfie" is in fact the meaningful error, but which is not being shown to the user, and is not stopping the activation process. That is the base bug, evidently. -- Ticket URL: <https://trac.macports.org/ticket/51298#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts