[MacPorts] #40950: ghc @7.6.3_2 build failed: package-data.mk: No such file or directory

MacPorts noreply at macports.org
Sat Nov 9 08:34:39 PST 2013


#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


More information about the macports-tickets mailing list