[MacPorts] #49552: problem for install libgcc on El capitan 10.11.1
#49552: problem for install libgcc on El capitan 10.11.1 -------------------------------+-------------------------------- Reporter: wanghaotian2280@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: -------------------------------+-------------------------------- Hello I have a difficulty to build libgcc on my recent upgraded El Capitan 10.11.1. I did follow the Xcode and macports installation and run "sudo port install libgcc". However, it gives the error as {{{ error:build org.macports.build for port libgcc returned: command execution failed }}} Details can be found in log (see attachment). Then I did the same way as Ticket #49060 but it still does not work. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/49552> MacPorts <https://www.macports.org/> Ports system for OS X
#49552: problem for install libgcc on El capitan 10.11.1 --------------------------------+------------------- Reporter: wanghaotian2280@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: libgcc | --------------------------------+------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => mww@… * cc: mww@… (removed) * cc: ryandesign@… (added) * port: => libgcc Comment: The error in #49060 sounds unrelated to the error you're experiencing. Rather, your issue sounds like a duplicate of #40998. Does /usr/include/malloc.h exist on your system? It should not. -- Ticket URL: <https://trac.macports.org/ticket/49552#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#49552: problem for install libgcc on El capitan 10.11.1 --------------------------------+------------------- Reporter: wanghaotian2280@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: libgcc | --------------------------------+------------------- Comment (by wanghaotian2280@…): Replying to [comment:1 ryandesign@…]:
The error in #49060 sounds unrelated to the error you're experiencing. Rather, your issue sounds like a duplicate of #40998. Does /usr/include/malloc.h exist on your system? It should not.
Yes, the malloc.h is there because previously I make a link to it. Now I'm try to delete it in /usr/include, by using both "rm" and "sudo rm", however it shows {{{ rm: malloc.h: Operation not permitted }} Could you help me? Thanks. -- Ticket URL: <https://trac.macports.org/ticket/49552#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#49552: problem for install libgcc on El capitan 10.11.1 --------------------------------+-------------------- Reporter: wanghaotian2280@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: duplicate | Keywords: Port: libgcc | --------------------------------+-------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => duplicate Comment: El Capitan introduces a new feature called System Integrity Protection which prevents you from modifying the contents of /usr and other system directories, even as root. The El Capitan installer should have removed foreign items from protected locations, but apparently it missed /usr/include/malloc.h. I'll file a bug report with Apple about this. You'll have to boot to the recovery partition, disable SIP, remove /usr/include/malloc.h (and if you've previously made any other changes in system directories, now would be a good opportunity to undo them, if they're still there), then re-enable SIP. -- Ticket URL: <https://trac.macports.org/ticket/49552#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#49552: problem for install libgcc on El capitan 10.11.1 --------------------------------+-------------------- Reporter: wanghaotian2280@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: duplicate | Keywords: Port: libgcc | --------------------------------+-------------------- Comment (by ryandesign@…): Replying to [comment:3 ryandesign@…]:
The El Capitan installer should have removed foreign items from protected locations, but apparently it missed /usr/include/malloc.h. I'll file a bug report with Apple about this.
I didn't file a bug report because I was not able to reproduce this problem. On a Yosemite system, I placed a malloc.h symlink (and another symlink, and a file) in /usr/include, then upgraded to El Capitan. The file I placed in /usr/include was moved to the QuarantineRoot, as it should have been. The symlinks I created and everything else in /usr/include were silently deleted, as they should be. I used the El Capitan 10.11.1 installer; maybe an earlier version of the installer had this problem but it has since been fixed. -- Ticket URL: <https://trac.macports.org/ticket/49552#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#49552: problem for install libgcc on El capitan 10.11.1 --------------------------------+-------------------- Reporter: wanghaotian2280@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: duplicate | Keywords: Port: libgcc | --------------------------------+-------------------- Comment (by wanghaotian2280@…): Replying to [comment:4 ryandesign@…]:
Replying to [comment:3 ryandesign@…]:
The El Capitan installer should have removed foreign items from protected locations, but apparently it missed /usr/include/malloc.h. I'll file a bug report with Apple about this.
I didn't file a bug report because I was not able to reproduce this problem. On a Yosemite system, I placed a malloc.h symlink (and another symlink, and a file) in /usr/include, then upgraded to El Capitan. The file I placed in /usr/include was moved to the QuarantineRoot, as it should have been. The symlinks I created and everything else in /usr/include were silently deleted, as they should be. I used the El Capitan 10.11.1 installer; maybe an earlier version of the installer had this problem but it has since been fixed.
Thanks for the help. The problem found is due to the fact that El Capitan prevents users from modifying the contents under /usr. After disable SIP, it works fine. Thank you very much. -- Ticket URL: <https://trac.macports.org/ticket/49552#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts