Opened 12 years ago

Closed 12 years ago

#36973 closed defect (invalid)

ghc: build fails with permission denied on symlink creation

Reported by: cdeil (Christoph Deil) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: kitchen.andy@…, neverpanic (Clemens Lang)
Port: ghc

Description

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.

Attachments (2)

main.log (7.6 MB) - added by cdeil (Christoph Deil) 12 years ago.
main.2.log (7.7 KB) - added by cdeil (Christoph Deil) 12 years ago.
hs-platform-ghc_main_log.txt

Change History (8)

Changed 12 years ago by cdeil (Christoph Deil)

Attachment: main.log added

comment:1 in reply to:  description ; Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to 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.

comment:2 in reply to:  1 Changed 12 years ago by cdeil (Christoph Deil)

Replying to ryandesign@…:

Replying to 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

comment:3 Changed 12 years ago by cdeil (Christoph Deil)

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?

comment:4 in reply to:  3 Changed 12 years ago by neverpanic (Clemens Lang)

Please clean ghc and re-try. If the issue persists, please attach main.log.

Replying to 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 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.

comment:5 Changed 12 years ago by cdeil (Christoph Deil)

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.

Changed 12 years ago by cdeil (Christoph Deil)

Attachment: main.2.log added

hs-platform-ghc_main_log.txt

comment:6 Changed 12 years ago by neverpanic (Clemens Lang)

Resolution: invalid
Status: newclosed

That's #36608. Your previous problem probably was a permission issue in your ports tree.

Note: See TracTickets for help on using tickets.