[MacPorts] #40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory ----------------------+-------------------------------- Reporter: lwarxx@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: | Port: ----------------------+-------------------------------- 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/40950> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+---------------------------- Reporter: lwarxx@… | Owner: kitchen.andy@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: ghc | -----------------------+---------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => kitchen.andy@… * cc: cal@… (added) * port: => ghc Comment: This is not a clean log. Please [http://guide.macports.org/chunked/project.html#project.tickets.prerequisites clean and try again] and attach the new log. -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+---------------------------- Reporter: lwarxx@… | Owner: kitchen.andy@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: ghc | -----------------------+---------------------------- Comment (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 ---> 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+---------------------------- Reporter: lwarxx@… | Owner: kitchen.andy@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: ghc | -----------------------+---------------------------- Comment (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. }}} -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+---------------------- Reporter: lwarxx@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: ghc | -----------------------+---------------------- Changes (by cal@…): * owner: kitchen.andy@… => cal@… * cc: cal@… (removed) * status: new => assigned Comment: No, the HSffi.o warning is a red herring. -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+----------------------- Reporter: lwarxx@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: mavericks Port: ghc | -----------------------+----------------------- Changes (by ryandesign@…): * keywords: => mavericks * cc: cielartisan@… (added) Comment: Has duplicate #40992. -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+----------------------- Reporter: lwarxx@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: mavericks Port: ghc | -----------------------+----------------------- Comment (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 -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+----------------------- Reporter: lwarxx@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: mavericks Port: ghc | -----------------------+----------------------- Comment (by lmarti@…): Same here -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+----------------------- Reporter: lwarxx@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: mavericks Port: ghc | -----------------------+----------------------- Comment (by info@…): Maybe this will help : http://d.hatena.ne.jp/kazu- yamamoto/20131028/1382921924 ?? -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+----------------------- Reporter: lwarxx@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: mavericks Port: ghc | -----------------------+----------------------- Comment (by cielartisan@…): pivoting llvm-gcc-4.2 might help, but currently it still triggers HSffi.o warning. Maybe ghc-bootstrap's port needs to be modified? -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+----------------------- Reporter: lwarxx@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: mavericks Port: ghc | -----------------------+----------------------- Comment (by christopherbalz@…): Cc me! -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:32> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+----------------------- Reporter: lwarxx@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: mavericks Port: ghc | -----------------------+----------------------- Changes (by larryv@…): * cc: christopherbalz@… (added) Comment: You need to click the “CcMe!” button next to the Cc list to actually be Cc’d. I’ve added you manually. -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:33> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+----------------------- Reporter: lwarxx@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: mavericks Port: ghc | -----------------------+----------------------- Comment (by ionic@…): 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. :/ -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:35> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+----------------------- Reporter: lwarxx@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: mavericks Port: ghc | -----------------------+----------------------- Comment (by ionic@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:37> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+----------------------- Reporter: lwarxx@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: mavericks Port: ghc | -----------------------+----------------------- Comment (by cal@…): Working on a fix. -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:39> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+----------------------- Reporter: lwarxx@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: mavericks Port: ghc | -----------------------+----------------------- Comment (by cal@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:40> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+----------------------- Reporter: lwarxx@… | Owner: cal@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: mavericks Port: ghc | -----------------------+----------------------- Changes (by cal@…): * status: assigned => closed * resolution: => fixed Comment: r113404, please test and re-open if it still doesn't build for you. -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:41> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+----------------------- Reporter: lwarxx@… | Owner: cal@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: mavericks Port: ghc | -----------------------+----------------------- Comment (by marco.comini@…): Replying to [comment:41 cal@…]:
r113404, please test and re-open if it still doesn't build for you.
On my Mac works! Thanks -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:42> MacPorts <http://www.macports.org/> Ports system for OS X
#40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory -----------------------+----------------------- Reporter: lwarxx@… | Owner: cal@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: mavericks Port: ghc | -----------------------+----------------------- Comment (by stephane.plaisance@…): Replying to [comment:41 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! -- Ticket URL: <https://trac.macports.org/ticket/40950#comment:43> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts