[GHC] #11154: Problems using GHC-API on MacOS X

GHC ghc-devs at haskell.org
Fri Dec 11 07:23:54 UTC 2015


#11154: Problems using GHC-API on MacOS X
-------------------------------------+-------------------------------------
        Reporter:  svenk             |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.2
      Resolution:                    |             Keywords:
Operating System:  MacOS X           |         Architecture:  x86_64
 Type of failure:  Compile-time      |  (amd64)
  crash                              |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by svenk):

 The `updateWays` fix works, `ghc -dynamic test.hs` also works. Here is the
 interesting part of the output of `ghc -v3 -dynamic test.hs`:
 {{{
 Glasgow Haskell Compiler, Version 7.10.2, stage 2 booted by GHC version
 7.8.4
 Using binary package database: /nix/store
 /cgmak4wilmf1p5ps2063w0hignmxgjzx-
 ghc-7.10.2/lib/ghc-7.10.2/package.conf.d/package.cache
 wired-in package ghc-prim mapped to ghc-
 prim-0.4.0.0-af16264bc80979d06e37ac63e3ba9a21
 wired-in package integer-gmp mapped to integer-
 gmp-1.0.0.0-8e0f14d0262184533b417ca1f8b44482
 wired-in package base mapped to
 base-4.8.1.0-075aa0db10075facc5aaa59a7991ca2f
 wired-in package rts mapped to builtin_rts
 wired-in package template-haskell mapped to template-
 haskell-2.10.0.0-161ca39a5ae657ff216d049e722e60ea
 wired-in package ghc mapped to ghc-7.10.2-7f9cf5112c3d0cf538f2bf65ccb929b3
 wired-in package dph-seq not found.
 wired-in package dph-par not found.
 Hsc static flags:
 wired-in package ghc-prim mapped to ghc-
 prim-0.4.0.0-af16264bc80979d06e37ac63e3ba9a21
 wired-in package integer-gmp mapped to integer-
 gmp-1.0.0.0-8e0f14d0262184533b417ca1f8b44482
 wired-in package base mapped to
 base-4.8.1.0-075aa0db10075facc5aaa59a7991ca2f
 wired-in package rts mapped to builtin_rts
 wired-in package template-haskell mapped to template-
 haskell-2.10.0.0-161ca39a5ae657ff216d049e722e60ea
 wired-in package ghc mapped to ghc-7.10.2-7f9cf5112c3d0cf538f2bf65ccb929b3
 wired-in package dph-seq not found.
 wired-in package dph-par not found.
 *** Chasing dependencies:
 <<<cut>>>
 *** Assembler:
 /nix/store/2bf6xr0v5mxlfx0lawgk6lcnw5dibk1a-clang-wrapper-3.6.2/bin/cc
 -m64 -fno-stack-protector -DTABLES_NEXT_TO_CODE -I. -fno-common -U__PIC__
 -D__PIC__ -Qunused-arguments -x assembler -c
 /var/folders/qs/963nksq94bxdb3tv41w194fh0000gn/T/ghc20157_0/ghc_2.s -o
 test.o
 Upsweep completely successful.
 *** Deleting temp files:
 Deleting:
 /var/folders/qs/963nksq94bxdb3tv41w194fh0000gn/T/ghc20157_0/ghc_3.c
 /var/folders/qs/963nksq94bxdb3tv41w194fh0000gn/T/ghc20157_0/ghc_2.s
 /var/folders/qs/963nksq94bxdb3tv41w194fh0000gn/T/ghc20157_0/ghc_1.s
 Warning: deleting non-existent
 /var/folders/qs/963nksq94bxdb3tv41w194fh0000gn/T/ghc20157_0/ghc_3.c
 Warning: deleting non-existent
 /var/folders/qs/963nksq94bxdb3tv41w194fh0000gn/T/ghc20157_0/ghc_1.s
 link: linkables are ...
 LinkableM (2015-12-11 07:08:36 UTC) Main
    [DotO test.o]
 Linking test ...
 *** C Compiler:
 /nix/store/2bf6xr0v5mxlfx0lawgk6lcnw5dibk1a-clang-wrapper-3.6.2/bin/cc
 -m64 -fno-stack-protector -DTABLES_NEXT_TO_CODE -c
 /var/folders/qs/963nksq94bxdb3tv41w194fh0000gn/T/ghc20157_0/ghc_4.c -o
 /var/folders/qs/963nksq94bxdb3tv41w194fh0000gn/T/ghc20157_0/ghc_5.o
 -I/nix/store/65vl06cjwmd2y985fl372r9nfchy9m6d-
 ghc-7.10.2/lib/ghc-7.10.2/include -fno-common -U__PIC__ -D__PIC__
 *** Linker:
 /nix/store/2bf6xr0v5mxlfx0lawgk6lcnw5dibk1a-clang-wrapper-3.6.2/bin/cc
 -m64 -fno-stack-protector -DTABLES_NEXT_TO_CODE -m64 -o test
 -Wl,-no_compact_unwind test.o -L/nix/store
 /65vl06cjwmd2y985fl372r9nfchy9m6d-
 ghc-7.10.2/lib/ghc-7.10.2/base_GDytRqRVSUX7zckgKqJjgw -Wl,-rpath
 -Wl,/nix/store/65vl06cjwmd2y985fl372r9nfchy9m6d-
 ghc-7.10.2/lib/ghc-7.10.2/base_GDytRqRVSUX7zckgKqJjgw -L/nix/store
 /vm4zm9mh0ias79f7bqknls1xfga0lp5r-libiconv-41/lib -Wl,-rpath
 -Wl,/nix/store/vm4zm9mh0ias79f7bqknls1xfga0lp5r-libiconv-41/lib
 -L/nix/store/65vl06cjwmd2y985fl372r9nfchy9m6d-
 ghc-7.10.2/lib/ghc-7.10.2/integ_2aU3IZNMF9a7mQ0OzsZ0dS -Wl,-rpath
 -Wl,/nix/store/65vl06cjwmd2y985fl372r9nfchy9m6d-
 ghc-7.10.2/lib/ghc-7.10.2/integ_2aU3IZNMF9a7mQ0OzsZ0dS -L/nix/store
 /aw51dk2wbmnvm9hxg75gmwmcl2xral6q-gmp-5.1.3/lib -Wl,-rpath -Wl,/nix/store
 /aw51dk2wbmnvm9hxg75gmwmcl2xral6q-gmp-5.1.3/lib -L/nix/store
 /65vl06cjwmd2y985fl372r9nfchy9m6d-
 ghc-7.10.2/lib/ghc-7.10.2/ghcpr_8TmvWUcS1U1IKHT0levwg3 -Wl,-rpath
 -Wl,/nix/store/65vl06cjwmd2y985fl372r9nfchy9m6d-
 ghc-7.10.2/lib/ghc-7.10.2/ghcpr_8TmvWUcS1U1IKHT0levwg3 -L/nix/store
 /65vl06cjwmd2y985fl372r9nfchy9m6d-ghc-7.10.2/lib/ghc-7.10.2/rts -Wl,-rpath
 -Wl,/nix/store/65vl06cjwmd2y985fl372r9nfchy9m6d-
 ghc-7.10.2/lib/ghc-7.10.2/rts
 /var/folders/qs/963nksq94bxdb3tv41w194fh0000gn/T/ghc20157_0/ghc_5.o
 -Wl,-u,_ghczmprim_GHCziTypes_Izh_static_info
 -Wl,-u,_ghczmprim_GHCziTypes_Czh_static_info
 -Wl,-u,_ghczmprim_GHCziTypes_Fzh_static_info
 -Wl,-u,_ghczmprim_GHCziTypes_Dzh_static_info
 -Wl,-u,_base_GHCziPtr_Ptr_static_info
 -Wl,-u,_ghczmprim_GHCziTypes_Wzh_static_info
 -Wl,-u,_base_GHCziInt_I8zh_static_info
 -Wl,-u,_base_GHCziInt_I16zh_static_info
 -Wl,-u,_base_GHCziInt_I32zh_static_info
 -Wl,-u,_base_GHCziInt_I64zh_static_info
 -Wl,-u,_base_GHCziWord_W8zh_static_info
 -Wl,-u,_base_GHCziWord_W16zh_static_info
 -Wl,-u,_base_GHCziWord_W32zh_static_info
 -Wl,-u,_base_GHCziWord_W64zh_static_info
 -Wl,-u,_base_GHCziStable_StablePtr_static_info
 -Wl,-u,_ghczmprim_GHCziTypes_Izh_con_info
 -Wl,-u,_ghczmprim_GHCziTypes_Czh_con_info
 -Wl,-u,_ghczmprim_GHCziTypes_Fzh_con_info
 -Wl,-u,_ghczmprim_GHCziTypes_Dzh_con_info
 -Wl,-u,_base_GHCziPtr_Ptr_con_info -Wl,-u,_base_GHCziPtr_FunPtr_con_info
 -Wl,-u,_base_GHCziStable_StablePtr_con_info
 -Wl,-u,_ghczmprim_GHCziTypes_False_closure
 -Wl,-u,_ghczmprim_GHCziTypes_True_closure
 -Wl,-u,_base_GHCziPack_unpackCString_closure
 -Wl,-u,_base_GHCziIOziException_stackOverflow_closure
 -Wl,-u,_base_GHCziIOziException_heapOverflow_closure
 -Wl,-u,_base_ControlziExceptionziBase_nonTermination_closure
 -Wl,-u,_base_GHCziIOziException_blockedIndefinitelyOnMVar_closure
 -Wl,-u,_base_GHCziIOziException_blockedIndefinitelyOnSTM_closure
 -Wl,-u,_base_GHCziIOziException_allocationLimitExceeded_closure
 -Wl,-u,_base_ControlziExceptionziBase_nestedAtomically_closure
 -Wl,-u,_base_GHCziEventziThread_blockedOnBadFD_closure
 -Wl,-u,_base_GHCziWeak_runFinalizzerBatch_closure
 -Wl,-u,_base_GHCziTopHandler_flushStdHandles_closure
 -Wl,-u,_base_GHCziTopHandler_runIO_closure
 -Wl,-u,_base_GHCziTopHandler_runNonIO_closure
 -Wl,-u,_base_GHCziConcziIO_ensureIOManagerIsRunning_closure
 -Wl,-u,_base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure
 -Wl,-u,_base_GHCziConcziSync_runSparks_closure
 -Wl,-u,_base_GHCziConcziSignal_runHandlersPtr_closure
 -Wl,-search_paths_first -lHSbase-4.8.1.0-GDytRqRVSUX7zckgKqJjgw-ghc7.10.2
 -lHSinteger-gmp-1.0.0.0-2aU3IZNMF9a7mQ0OzsZ0dS-ghc7.10.2 -lHSghc-
 prim-0.4.0.0-8TmvWUcS1U1IKHT0levwg3-ghc7.10.2 -lHSrts-ghc7.10.2 -lffi
 -liconv -lgmp -lm -ldl
 link: done
 *** Deleting temp files:
 Deleting:
 /var/folders/qs/963nksq94bxdb3tv41w194fh0000gn/T/ghc20157_0/ghc_5.o
 /var/folders/qs/963nksq94bxdb3tv41w194fh0000gn/T/ghc20157_0/ghc_4.c
 *** Deleting temp dirs:
 Deleting: /var/folders/qs/963nksq94bxdb3tv41w194fh0000gn/T/ghc20157_0
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11154#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list