[MacPorts] #31781: ghc will not build on Lion

MacPorts noreply at macports.org
Wed Oct 26 04:05:32 PDT 2011


#31781: ghc will not build on Lion
----------------------------------+-----------------------------------------
  Reporter:  bowman@…             |       Owner:  ryandesign@…           
      Type:  defect               |      Status:  reopened               
  Priority:  Normal               |   Milestone:                         
 Component:  ports                |     Version:  2.0.3                  
Resolution:                       |    Keywords:                         
      Port:  ghc                  |  
----------------------------------+-----------------------------------------
Changes (by bowman@…):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 Thank you, that addresses the problem above.  Now the build fails a bit
 further on.  Here's the relevant excerpt from the log:


 :info:build <<ghc: 482406536 bytes, 35 GCs, 7261302/12616368 avg/max bytes
 residency (4 samples), 33M in use, 0.00 INIT (0.00 elapsed), 0.56 MUT
 (9.97 elapsed), 0.18 GC (0.24 elapsed) :ghc>>
 :info:build
 :info:build GHC/Float.lhs:621:18:
 :info:build     Warning: Defaulting the following constraint(s) to type
 `Double'
 :info:build              `Floating a' arising from a use of `log' at
 GHC/Float.lhs:621:18-40
 :info:build              `RealFrac a'
 :info:build                arising from a use of `ceiling' at
 GHC/Float.lhs:(621,8)-(623,41)
 :info:build     In the first argument of `(+)', namely `log (fromInteger
 (f + 1))'
 :info:build     In the first argument of `(/)', namely
 :info:build         `(log (fromInteger (f + 1))
 :info:build         +   fromIntegral e * log (fromInteger b))'
 :info:build     In the first argument of `ceiling', namely
 :info:build         `((log (fromInteger (f + 1))
 :info:build          +   fromIntegral e * log (fromInteger b))
 :info:build         / log (fromInteger base))'
 :info:build <<ghc: 2240166912 bytes, 1900 GCs, 16639963/30502480 avg/max
 bytes residency (14 samples), 80M in use, 0.00 INIT (0.00 elapsed), 2.25
 MUT (13.73 elapsed), 1.48 GC (1.92 elapsed) :ghc>>
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-6.10.4/ghc/stage1-inplace/ghc
 -package-name base-4.1.0.0 -hide-all-packages -no-user-package-conf
 -split-objs -i -idist/build -i. -idist/build/autogen -Idist/build/autogen
 -Idist/build -Iinclude -I/opt/local/include -optP-include
 -optPdist/build/autogen/cabal_macros.h -#include "HsBase.h" -odir
 dist/build -hidir dist/build -stubdir dist/build -package ghc-prim-0.1.0.0
 -package integer-0.1.0.1 -package rts-1.0 -O -package-name base
 -XMagicHash -XExistentialQuantification -XRank2Types -XScopedTypeVariables
 -XUnboxedTuples -XForeignFunctionInterface -XUnliftedFFITypes
 -XDeriveDataTypeable -XGeneralizedNewtypeDeriving -XFlexibleInstances
 -XStandaloneDeriving -XPatternGuards -XEmptyDataDecls -XCPP -idist/build
 -H32m -O
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-6.10.4/libffi
 -I/opt/local/include -L/opt/local/lib -O2 -Rghc-timing -XGenerics -Wall
 -fno-warn-deprecated-flags -c GHC/Read.lhs -o dist/build/GHC/Read.o  -ohi
 dist/build/GHC/Read.hi
 :info:build ghc: could not execute: /opt/local/bin/gcc-apple-4.2
 :info:build <<ghc: 810911728 bytes, 75 GCs, 8666062/14457080 avg/max bytes
 residency (5 samples), 37M in use, 0.00 INIT (0.00 elapsed), 0.83 MUT
 (4.39 elapsed), 0.33 GC (0.35 elapsed) :ghc>>
 :info:build make[2]: *** [dist/build/GHC/Read.o] Error 1
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-6.10.4/libraries/base'
 :info:build make[1]: *** [make.library.base] Error 2
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-6.10.4/libraries'
 :info:build make: *** [stage1] 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-6.10.4'
 :info:build shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-6.10.4"
 && /usr/bin/make -j2 -w all " returned error 2
 :error:build Target org.macports.build returned: shell command failed (see
 log for details)
 :debug:build Backtrace: shell command failed (see log for details)
     while executing
 "command_exec build"
     (procedure "portbuild::build_main" line 8)
     invoked from within
 "$procedure $targetname"
 :info:build Warning: the following items did not execute (for ghc):
 org.macports.activate org.macports.build org.macports.destroot
 org.macports.install
 :notice:build Log for ghc is at:
 /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/31781#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list