[MacPorts] #36973: ghc: build fails with permission denied on symlink creation
#36973: ghc: build fails with permission denied on symlink creation ------------------------------+-------------------------------- Reporter: Deil.Christoph@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: ghc ------------------------------+-------------------------------- I got this error trying to install {{{ghc}}} on Mac OS X 10.8: {{{ ---> Building ghc symlink: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/ghc/work -> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work: permission denied Error: Failed to install ghc Please see the log file for port ghc for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/main.log Error: The following dependencies were not installed: hs-citeproc ghc hs- json hs-mtl hs-transformers hs-pandoc-types hs-utf8-string hs-xml hs-dlist hs-haddock hs-ghc-paths hs-http hs-network hs-parsec hs-text hs-tagsoup hs-texmath hs-zip-archive hs-binary hs-digest hs-zlib }}} Here's what I have at the paths mentioned: {{{ $ ls -lh /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/ghc/work ls: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/ghc/work: No such file or directory $ ls -lh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work total 0 drwxr-xr-x 43 macports admin 1.4K Nov 12 23:07 ghc-7.4.2 $ ls -lh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/ total 0 drwxr-xr-x 6 macports admin 204B Nov 12 23:07 work }}} Full log attached. -- Ticket URL: <https://trac.macports.org/ticket/36973> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36973: ghc: build fails with permission denied on symlink creation -------------------------------+-------------------------------- Reporter: Deil.Christoph@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: ghc | -------------------------------+-------------------------------- Comment (by ryandesign@…): Replying to [ticket:36973 Deil.Christoph@…]:
I got this error trying to install {{{ghc}}} on Mac OS X 10.8: {{{ ---> Building ghc symlink: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/ghc/work -> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work: permission denied }}}
That doesn't appear to be relevant, and that's not what's in the log you attached. But I'm unfamiliar with the ghc build system and I'm having a little trouble figuring out from the attached log what the relevant error is. -- Ticket URL: <https://trac.macports.org/ticket/36973#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36973: ghc: build fails with permission denied on symlink creation -------------------------------+-------------------------------- Reporter: Deil.Christoph@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: ghc | -------------------------------+-------------------------------- Comment (by Deil.Christoph@…): Replying to [comment:1 ryandesign@…]:
Replying to [ticket:36973 Deil.Christoph@…]:
I got this error trying to install {{{ghc}}} on Mac OS X 10.8: {{{ ---> Building ghc symlink: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/ghc/work -> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work: permission denied }}}
That doesn't appear to be relevant, and that's not what's in the log you attached. But I'm unfamiliar with the ghc build system and I'm having a little trouble figuring out from the attached log what the relevant error is.
I simply copy & pasted the output on my console and attached the log. I'm not familiar with {{{ghc}}} either, all I want is to install {{{pandoc}}}, which is a dependency for nbconvert (https://github.com/ipython/nbconvert), a python tool I want to use. {{{hs-platform-ghc}}} did install for me without problems and seems to contain the same thing as the {{{ghc}}} port. Unfortunately {{{pandoc}}} can't be built with {{{hs-platfrom-ghc}}} apparently: {{{ $ sudo port install pandoc Password: ---> Computing dependencies for pandoc Error: Unable to execute port: Can't install ghc because conflicting ports are installed: hs-platform-ghc }}} -- Ticket URL: <https://trac.macports.org/ticket/36973#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36973: ghc: build fails with permission denied on symlink creation -------------------------------+-------------------------------- Reporter: Deil.Christoph@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: ghc | -------------------------------+-------------------------------- Comment (by Deil.Christoph@…): During a Macports update I saw this: {{{ ... ---> Activating ruby19 @1.9.3-p327_0+doc ---> Cleaning ruby19 ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 93.9% Warning: Error parsing file /opt/local/share/ghc- bootstrap/lib/ghc-7.0.4/HSffi.o: Premature end of data, possibly corrupt file ---> Scanning binaries for linking errors: 100.0% ---> No broken files found. $ port installed ghc-bootstrap The following ports are currently installed: ghc-bootstrap @7.0.4_0 (active) $ file /opt/local/share/ghc-bootstrap/lib/ghc-7.0.4/HSffi.o /opt/local/share/ghc-bootstrap/lib/ghc-7.0.4/HSffi.o: Mach-O 64-bit object x86_64 $ cat /opt/local/share/ghc-bootstrap/lib/ghc-7.0.4/HSffi.o ????? ??__text__TEXT?? $ }}} Is it relevant? Should I simply try uninstalling and re-installing {{{ghc- bootstrap}}} and {{{ghc}}}? -- Ticket URL: <https://trac.macports.org/ticket/36973#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36973: ghc: build fails with permission denied on symlink creation -------------------------------+-------------------------------- Reporter: Deil.Christoph@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: ghc | -------------------------------+-------------------------------- Comment (by cal@…): Please clean `ghc` and re-try. If the issue persists, please attach `main.log`. Replying to [comment:2 Deil.Christoph@…]:
{{{hs-platform-ghc}}} did install for me without problems and seems to contain the same thing as the {{{ghc}}} port. Unfortunately {{{pandoc}}} can't be built with {{{hs-platfrom-ghc}}} apparently: {{{ $ sudo port install pandoc Password: ---> Computing dependencies for pandoc Error: Unable to execute port: Can't install ghc because conflicting ports are installed: hs-platform-ghc }}}
Yes, this is unfortunate, and I'm currently thinking of a solution for this problem. Replying to [comment:3 Deil.Christoph@…]:
During a Macports update I saw this: {{{ Warning: Error parsing file /opt/local/share/ghc- bootstrap/lib/ghc-7.0.4/HSffi.o: Premature end of data, possibly corrupt file }}}
See #36996. -- Ticket URL: <https://trac.macports.org/ticket/36973#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36973: ghc: build fails with permission denied on symlink creation -------------------------------+-------------------------------- Reporter: Deil.Christoph@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: ghc | -------------------------------+-------------------------------- Comment (by Deil.Christoph@…): OK, I did this: {{{ sudo port uninstall --follow-dependents hs-platform-ghc sudo port clean --all ghc sudo port install ghc sudo port install pandoc }}} Installing {{{ghc}}} now worked without problems, but trying to install {{{pandoc}}} I ran into this error with the {{{hs-pandoc-types}}} port: {{{ ... ---> Configuring hs-pandoc-types Error: org.macports.configure for port hs-pandoc-types returned: configure failure: command execution failed Error: Failed to install hs-pandoc-types Please see the log file for port hs-pandoc-types for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_devel_hs-pandoc-types/hs-pandoc-types/main.log Error: The following dependencies were not installed: hs-citeproc hs- pandoc-types hs-utf8-string hs-xml hs-dlist hs-haddock hs-ghc-paths hs- http hs-network hs-parsec hs-text hs-tagsoup hs-texmath hs-zip-archive hs- binary hs-digest hs-zlib }}} Logfile attached. -- Ticket URL: <https://trac.macports.org/ticket/36973#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36973: ghc: build fails with permission denied on symlink creation -------------------------------+-------------------------------- Reporter: Deil.Christoph@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: invalid | Keywords: Port: ghc | -------------------------------+-------------------------------- Changes (by cal@…): * status: new => closed * resolution: => invalid Comment: That's #36608. Your previous problem probably was a permission issue in your ports tree. -- Ticket URL: <https://trac.macports.org/ticket/36973#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts