Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#40950 closed defect (fixed)

ghc @7.6.3_2 build failed: package-data.mk: No such file or directory

Reported by: max-arnold (Max Arnold) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: mavericks Cc: kazenyuk@…, gregbg@…, cielartisan@…, marco.comini@…, lmarti@…, fefe.wyx@…, splaisan (Stephane Plaisance), lord@…, alex.rudy+ports@…, justin.graham+macports@…, Superlokkus (Markus Klemm), hahn.seb@…, macports.org@…, bricklemacho@…, poorsod@…, egon.geerardyn@…, boersn@…, macports@…, crossd@…, evan@…, aaraines@…, christopherbalz@…, ryan@…, Ionic (Mihai Moldovan), macports.org@…
Port: ghc

Description

OS X Mavericks Xcode 5.0.1, Build version 5A2053

version:1
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 20
:debug:main euid changed to: 501
:debug:main Executing org.macports.main (ghc)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.archivefetch (ghc)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (ghc)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (ghc)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (ghc)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (ghc)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (ghc)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Sat Oct 26 08:11:34 NOVT 2013
:notice:build --->  Building ghc
:debug:build Executing org.macports.build (ghc)
:debug:build port disallows a parallel build
:debug:build Environment: CPATH='/usr/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/usr/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.9'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-7.6.3" && /usr/bin/make -w all'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-7.6.3" && /usr/bin/make -w all 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-7.6.3'
:info:build Makefile:62: target `all' given more than once in the same rule.
:info:build ===--- building phase 0
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds
:info:build libraries/hpc/ghc.mk:3: libraries/hpc/dist-boot/package-data.mk: No such file or directory
:info:build libraries/Cabal/Cabal/ghc.mk:3: libraries/Cabal/Cabal/dist-boot/package-data.mk: No such file or directory
:info:build libraries/binary/ghc.mk:3: libraries/binary/dist-boot/package-data.mk: No such file or directory
:info:build libraries/bin-package-db/ghc.mk:3: libraries/bin-package-db/dist-boot/package-data.mk: No such file or directory
:info:build libraries/hoopl/ghc.mk:3: libraries/hoopl/dist-boot/package-data.mk: No such file or directory
:info:build compiler/ghc.mk:450: compiler/stage1/package-data.mk: No such file or directory
:info:build utils/hsc2hs/ghc.mk:14: utils/hsc2hs/dist/package-data.mk: No such file or directory
:info:build ghc/ghc.mk:106: ghc/stage1/package-data.mk: No such file or directory
:info:build "inplace/bin/mkdirhier" bootstrapping/.
:info:build mkdir: bootstrapping/.: No such file or directory
:info:build make[1]: *** [bootstrapping/.] Error 1
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-7.6.3'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-7.6.3" && /usr/bin/make -w all 
:info:build Exit code: 2
:error:build org.macports.build for port ghc returned: command execution failed
:debug:build Error code: CHILDSTATUS 1606 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for ghc: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install ghc
:debug:build couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
:notice:build 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

Attachments (2)

main.log (61.8 KB) - added by max-arnold (Max Arnold) 11 years ago.
main.2.log (58.9 KB) - added by kazenyuk@… 11 years ago.

Download all attachments as: .zip

Change History (45)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: cal@… added
Owner: changed from macports-tickets@… to kitchen.andy@…
Port: ghc added

This is not a clean log. Please clean and try again and attach the new log.

Changed 11 years ago by max-arnold (Max Arnold)

Attachment: main.log added

comment:2 Changed 11 years ago by kazenyuk@…

Cc: kazenyuk@… added

Cc Me!

comment:3 Changed 11 years ago by kazenyuk@…

Same for me on Mavericks 10.9 / XCode 5.0.1 (5A2053) / MacPorts 2.2.1

$ sudo port install ghc
--->  Computing dependencies for ghc
--->  Dependencies to be installed: ghc-bootstrap
--->  Fetching archive for ghc-bootstrap
--->  Attempting to fetch ghc-bootstrap-7.0.4_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/ghc-bootstrap
--->  Attempting to fetch ghc-bootstrap-7.0.4_0.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/ghc-bootstrap
--->  Attempting to fetch ghc-bootstrap-7.0.4_0.darwin_13.x86_64.tbz2 from http://packages.macports.org/ghc-bootstrap
--->  Fetching distfiles for ghc-bootstrap
--->  Verifying checksums for ghc-bootstrap
--->  Extracting ghc-bootstrap
--->  Configuring ghc-bootstrap
--->  Building ghc-bootstrap
--->  Staging ghc-bootstrap into destroot
--->  Installing ghc-bootstrap @7.0.4_0
--->  Activating ghc-bootstrap @7.0.4_0
--->  Cleaning ghc-bootstrap
--->  Fetching archive for ghc
--->  Attempting to fetch ghc-7.6.3_2+gcc48.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/ghc
--->  Attempting to fetch ghc-7.6.3_2+gcc48.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/ghc
--->  Attempting to fetch ghc-7.6.3_2+gcc48.darwin_13.x86_64.tbz2 from http://packages.macports.org/ghc
--->  Fetching distfiles for ghc
--->  Verifying checksums for ghc
--->  Extracting ghc
--->  Applying patches to ghc
--->  Configuring ghc
--->  Building ghc
Error: org.macports.build for port ghc returned: command execution failed
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
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port ghc failed
Last edited 11 years ago by kazenyuk@… (previous) (diff)

Changed 11 years ago by kazenyuk@…

Attachment: main.2.log added

comment:4 Changed 11 years ago by kazenyuk@…

Couldn't it be the bootstrapping compiler (ghc-bootstrap) problem?

I get the following when I'm trying to install ghc-bootstrap separately (note HSffi.o warning):

$ sudo port install ghc-bootstrap 
--->  Fetching archive for ghc-bootstrap
--->  Attempting to fetch ghc-bootstrap-7.0.4_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/ghc-bootstrap
--->  Attempting to fetch ghc-bootstrap-7.0.4_0.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/ghc-bootstrap
--->  Attempting to fetch ghc-bootstrap-7.0.4_0.darwin_13.x86_64.tbz2 from http://packages.macports.org/ghc-bootstrap
--->  Fetching distfiles for ghc-bootstrap
--->  Verifying checksums for ghc-bootstrap
--->  Extracting ghc-bootstrap
--->  Configuring ghc-bootstrap
--->  Building ghc-bootstrap
--->  Staging ghc-bootstrap into destroot
--->  Installing ghc-bootstrap @7.0.4_0
--->  Activating ghc-bootstrap @7.0.4_0
--->  Cleaning ghc-bootstrap
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 98.1%
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.

comment:5 Changed 11 years ago by neverpanic (Clemens Lang)

Cc: cal@… removed
Owner: changed from kitchen.andy@… to cal@…
Status: newassigned

No, the HSffi.o warning is a red herring.

comment:6 Changed 11 years ago by gregbg@…

Cc: gregbg@… added

Cc Me!

comment:7 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: cielartisan@… added
Keywords: mavericks added

Has duplicate #40992.

comment:8 Changed 11 years ago by cielartisan@…

Cc: cielartisan@… removed

Cc Me!

comment:9 Changed 11 years ago by cielartisan@…

Cc: cielartisan@… added

Cc Me!

comment:10 Changed 11 years ago by schmunk@…

I played around with the sources, based on the error here:

:info:build "inplace/bin/mkdirhier" bootstrapping/.
:info:build mkdir: bootstrapping/.: No such file or directory
:info:build make[1]: *** [bootstrapping/.] Error 1

I created the bootstrapping directory manually

mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/ghc/work/ghc-7.6.3/bootstrapping

I starts the compilation process now, but fails with parsing errors.

I changed some of the error by moving the closing bracket onto the previous line, like

"flush/flush"
    append flush flush = flush #-}

But without luck at the end.

Related: https://github.com/haskell/cabal/issues/1496

comment:11 Changed 11 years ago by marco.comini@…

Cc: marco.comini@… added

Cc Me!

comment:12 Changed 11 years ago by lmarti@…

Same here

comment:13 Changed 11 years ago by lmarti@…

Cc: lmarti@… added

Cc Me!

comment:14 Changed 11 years ago by fefe.wyx@…

Cc: fefe.wyx@… added

Cc Me!

comment:15 in reply to:  description Changed 11 years ago by info@…

comment:16 Changed 11 years ago by splaisan (Stephane Plaisance)

Cc: stephane.plaisance@… added

Cc Me!

comment:17 Changed 11 years ago by cielartisan@…

pivoting /usr/bin/llvm-gcc-4.2 might help, but currently it still triggers HSffi.o warning. Maybe ghc-bootstrap's port needs to be modified?

Last edited 11 years ago by cielartisan@… (previous) (diff)

comment:18 Changed 11 years ago by lord@…

Cc: lord@… added

Cc Me!

comment:19 Changed 11 years ago by alex.rudy+ports@…

Cc: alex.rudy+ports@… added

Cc Me!

comment:20 Changed 11 years ago by justin.graham+macports@…

Cc: justin.graham+macports@… added

Cc Me!

comment:21 Changed 11 years ago by Superlokkus (Markus Klemm)

Cc: markus@… added

Cc Me!

comment:22 Changed 11 years ago by hahn.seb@…

Cc: hahn.seb@… added

Cc Me!

comment:23 Changed 11 years ago by macports.org@…

Cc: macports.org@… added

Cc Me!

comment:24 Changed 11 years ago by bricklemacho@…

Cc: bricklemacho@… added

Cc Me!

comment:25 Changed 11 years ago by poorsod@…

Cc: poorsod@… added

Cc Me!

comment:26 Changed 11 years ago by egon.geerardyn@…

Cc: egon.geerardyn@… added

Cc Me!

comment:27 Changed 11 years ago by boersn@…

Cc: boersn@… added

Cc Me!

comment:28 Changed 11 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:29 Changed 11 years ago by crossd@…

Cc: crossd@… added

Cc Me!

comment:30 Changed 11 years ago by evan@…

Cc: evan@… added

Cc Me!

comment:31 Changed 11 years ago by aaraines@…

Cc: aaraines@… added

Cc Me!

comment:32 Changed 11 years ago by christopherbalz@…

Cc me!

comment:33 in reply to:  32 Changed 11 years ago by larryv (Lawrence Velázquez)

Cc: christopherbalz@… added

You need to click the “CcMe!” button next to the Cc list to actually be Cc’d. I’ve added you manually.

comment:34 Changed 11 years ago by ryan@…

Cc: ryan@… added

Cc Me!

comment:35 Changed 11 years ago by Ionic (Mihai Moldovan)

I got ghc building via forcing /opt/local/bin/gcc-mp-4.7 in ghc-bootstrap (ghc itself will use the selected gcc variant anyway), changing mkdir to gmkdir in utils/mkdirhier/mkdirhier.sh (though I like the "other patch" at the end of this comment better) and patching rts/RtsProbes.h, as well as include/HsFFI.h as outlined here (but changing

#ifdef __APPLE__ && __MACH__

to

#if defined(__APPLE__) && defined(__MACH__)

and

#if defined HAVE_STDINT_H && !defined USE_INTTYPES_H_FOR_RTS_PROBES_D

to

#if defined(HAVE_STDINT_H) && !defined(USE_INTTYPES_H_FOR_RTS_PROBES_D)

): https://github.com/mxcl/homebrew/pull/21960/files

Seems to work for me that way. It will however unfortunately require changing ghc-bootstrap as well.

Forcing -j1 for make also seems necessary.

ghc is currently somewhat of a mess. :/

comment:36 Changed 11 years ago by Ionic (Mihai Moldovan)

Cc: ionic@… added

Cc Me!

comment:37 Changed 11 years ago by Ionic (Mihai Moldovan)

Disclaimer: I have almost no idea of Haskell/GHC, and while the provided workaround compiles and installs for me and I can load a simple Haskell file I created years ago via ghci, I can't really proclaim that everything is working just fine.

comment:38 Changed 11 years ago by macports.org@…

Cc: macports.org@… added

Cc Me!

comment:39 Changed 11 years ago by neverpanic (Clemens Lang)

Working on a fix.

comment:40 Changed 11 years ago by neverpanic (Clemens Lang)

Seems like Ionic's workaround will work – my test build still isn't finished yet, though, so this won't be happening today. I'll come back to this tomorrow.

comment:41 Changed 11 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed

r113404, please test and re-open if it still doesn't build for you.

comment:42 in reply to:  41 Changed 11 years ago by marco.comini@…

Replying to cal@…:

r113404, please test and re-open if it still doesn't build for you.

On my Mac works! Thanks

comment:43 in reply to:  41 Changed 11 years ago by splaisan (Stephane Plaisance)

Replying to cal@…:

r113404, please test and re-open if it still doesn't build for you.

worked for me too and I finally could build my remaining uninstalled packages and return to pre-mavericks state (hopefully!) Thanks for your great work!

Note: See TracTickets for help on using tickets.