[MacPorts] #36788: clang-3.1 @3.1 org.macports.destroot: command execution failed
#36788: clang-3.1 @3.1 org.macports.destroot: command execution failed ------------------------------------+-------------------------------- Reporter: renaud@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: clang staging destroot | Port: clang-3.1 ------------------------------------+-------------------------------- {{{ ---> Staging clang-3.1 into destroot Error: org.macports.destroot for port clang-3.1 returned: command execution failed }}} Macport installed from sources using {{{ --prefix="${HOME}/depinxi/macports" --with-no-root-privileges }}} -- Ticket URL: <https://trac.macports.org/ticket/36788> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36788: clang-3.1 @3.1 org.macports.destroot: command execution failed ------------------------+------------------------------------ Reporter: renaud@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: clang staging destroot Port: clang-3.1 | ------------------------+------------------------------------ Comment (by renaud@…): Configuration: Mac OS X 10.6.8 on a Mac mini {{{ Darwin miniao.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 }}} -- Ticket URL: <https://trac.macports.org/ticket/36788#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36788: clang-3.1: Operation not permitted ------------------------+------------------------ Reporter: renaud@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: clang-3.1 | ------------------------+------------------------ Changes (by ryandesign@…): * owner: macports-tickets@… => jeremyhu@… * keywords: clang staging destroot => Comment: The only errors in the log are "Operation not permitted", which is odd. (Are you sure you're using "sudo"?) Since the log also shows this was not a clean attempt, please "sudo port clean clang-3.1", then try again, then attach the new main.log if it fails again. -- Ticket URL: <https://trac.macports.org/ticket/36788#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36788: clang-3.1: Operation not permitted ------------------------+------------------------ Reporter: renaud@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: clang-3.1 | ------------------------+------------------------ Comment (by jeremyhu@…): The user is using --with-no-root-privileges, and the error is from trying to chown to root: {{{ :info:destroot chown -R root:wheel /Users/renaud/depinxi/macports/var/macports/build/_Users_renaud_depinxi_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.1/clang-3.1/work/destroot/Users/renaud/depinxi/macports/libexec/llvm-3.1/lib/c++ :info:destroot chown: /Users/renaud/depinxi/macports/var/macports/build/_Users_renaud_depinxi_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.1/clang-3.1/work/destroot/Users/renaud/depinxi/macports/libexec/llvm-3.1/lib/c++/v1/__bit_reference: Operation not permitted ... }}} -- Ticket URL: <https://trac.macports.org/ticket/36788#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36788: clang-3.1: Operation not permitted ------------------------+-------------------------------- Reporter: renaud@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: no-root-privileges Port: clang-3.1 | ------------------------+-------------------------------- Changes (by jeremyhu@…): * keywords: => no-root-privileges -- Ticket URL: <https://trac.macports.org/ticket/36788#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36788: clang-3.1: Operation not permitted ------------------------+-------------------------------- Reporter: renaud@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: no-root-privileges Port: clang-3.1 | ------------------------+-------------------------------- Comment (by renaud@…): I confirm I (voluntary) does not give macports the root privileges (I doesn't have admin access on all machines I have to deal with) -- Ticket URL: <https://trac.macports.org/ticket/36788#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36788: clang-3.1: tries to chown when not installing as root ------------------------+-------------------------------- Reporter: renaud@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: no-root-privileges Port: clang-3.1 | ------------------------+-------------------------------- -- Ticket URL: <https://trac.macports.org/ticket/36788#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36788: clang-3.1: tries to chown when not installing as root ------------------------+-------------------------------- Reporter: renaud@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: no-root-privileges Port: clang-3.1 | ------------------------+-------------------------------- Comment (by macports@…): I'm also running into this problem. The bug looks to be on Clang's end. The `installheaders` target is not parameterized for whether or not to `chown`. If I comment out the `chown` line for the version of the file in my work directory, then the install is able to complete successfully as far as I can tell. Relative path to patch: `clang-3.3/work/trunk/projects/libcxx/Makefile` Clang file with issue: http://llvm.org/svn/llvm-project/libcxx/trunk/Makefile -- Ticket URL: <https://trac.macports.org/ticket/36788#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36788: clang-3.1: tries to chown when not installing as root ------------------------+-------------------------------- Reporter: renaud@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: no-root-privileges Port: clang-3.1 | ------------------------+-------------------------------- Comment (by mcalhoun@…): It is perhaps not the loveliest of fixes, but we could just let MacPorts handle ownership instead of clang (see attached patch). -- Ticket URL: <https://trac.macports.org/ticket/36788#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#36788: clang-3.1: tries to chown when not installing as root ------------------------+----------------------------------------- Reporter: renaud@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: no-root-privileges haspatch Port: clang-3.1 | ------------------------+----------------------------------------- Changes (by ryandesign@…): * cc: mcalhoun@… (added) * keywords: no-root-privileges => no-root-privileges haspatch -- Ticket URL: <https://trac.macports.org/ticket/36788#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#36788: clang-3.1: tries to chown when not installing as root ------------------------+----------------------------------------- Reporter: renaud@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: duplicate | Keywords: no-root-privileges haspatch Port: clang-3.1 | ------------------------+----------------------------------------- Changes (by jeremyhu@…): * status: new => closed * resolution: => duplicate Comment: #39230 -- Ticket URL: <https://trac.macports.org/ticket/36788#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts