spack: Cannot copy Xcode to Spack

I just updated Spack on macOS and tried installing a package to debug #2359. While I was able to reproduce the issue, I think the cause is unrelated. I’m seeing the following error message:

==> Warning: Copying Xcode from /Library to /Users/Adam/spack/var/spack/stage/xcode-select/clang/8.0.0-apple in order to add spack wrappers to it. Please do not interrupt.
==> Error: Error: [('/Library/Application Support/Apple/ParentalControls/Users', '/Users/Adam/spack/var/spack/stage/xcode-select/clang/8.0.0-apple/Application Support/Apple/ParentalControls/Users', "[Errno 13] Permission denied: 
...
thousands of lines of permission denied/operation not permitted
...
"[Errno 1] Operation not permitted: '/Users/Adam/spack/var/spack/stage/xcode-select/clang/8.0.0-apple'")]
/Users/Adam/spack/lib/spack/spack/build_environment.py:563, in child_execution:
     548      def child_execution(child_connection, input_stream):
     549          try:
     550              setup_package(pkg, dirty=dirty)
     551              function(input_stream)
     552              child_connection.send(None)
     553          except:
     554              # catch ANYTHING that goes wrong in the child process
     555              exc_type, exc, tb = sys.exc_info()
     556  
     557              # Need to unwind the traceback in the child because traceback
     558              # objects can't be sent to the par     558              # objects can't be sent to the parent.
     559              tb_string = traceback.format_exc()
     560  
     561              # build up some context from the offending package so we can
     562              # show that, too.
  >> 563              package_context = get_package_context(tb)
     564  
     565              build_log = None
     566              if hasattr(pkg, 'log_path'):
     567                  build_log = pkg.log_path
     568  
     569              # make a pickleable exception to send to parent.
     570              msg = "%s: %s" % (str(exc_type.__name__), str(exc))
     571  
     572              ce = ChildError(msg, tb_string, build_log, package_context)
     573              child_connection.send(ce)
     574  
     575          finally:
     576              child_connection.close()

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 30 (30 by maintainers)

Most upvoted comments

We probably shouldn’t require Spack to be run with sudo on macOS, even if it is only the first time

+1000000

Yeah, there is one. I’ll try and run a test later today, but I probably won’t have results until Monday.