Closed CThuleHansen closed 2 years ago
I am also experiencing this issue.
Depending on whether it is a fresh build (i.e. I delete dist
and dist-newstyle
), I get different failures.
Fresh build:
$ cabal new-repl
Resolving dependencies...
Build profile: -w ghc-8.4.4 -O2
In order, the following will be built (use -v for more details):
- hw-json-simd-0.1.0.0 (lib) (first run)
Configuring library for hw-json-simd-0.1.0.0..
clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
Preprocessing library for hw-json-simd-0.1.0.0..
GHCi, version 8.4.4: http://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /Users/jky/.jky-secure/.ghci
[1 of 8] Compiling HaskellWorks.Data.Json.Simd.Internal.Foreign ( /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/HaskellWorks/Data/Json/Simd/Internal/Foreign.hs, interpreted )
src/HaskellWorks/Data/Json/Simd/Internal/Foreign.chs:11:1: warning: [-Wunused-imports]
The import of ‘System.IO.Unsafe’ is redundant
except perhaps to import instances from ‘System.IO.Unsafe’
To import instances alone, use: import System.IO.Unsafe()
|
11 | type UInt8 = {#type uint8_t #}
| ^^^^^^^^^^^^^^^^^^^^^^^
[2 of 8] Compiling HaskellWorks.Data.Json.Simd.Capabilities ( src/HaskellWorks/Data/Json/Simd/Capabilities.hs, interpreted )
[3 of 8] Compiling HaskellWorks.Data.Json.Simd.Internal.Index.Simple ( src/HaskellWorks/Data/Json/Simd/Internal/Index/Simple.hs, interpreted )
[4 of 8] Compiling HaskellWorks.Data.Json.Simd.Internal.Index.Standard ( src/HaskellWorks/Data/Json/Simd/Internal/Index/Standard.hs, interpreted )
[5 of 8] Compiling HaskellWorks.Data.Json.Simd.Index.Standard ( src/HaskellWorks/Data/Json/Simd/Index/Standard.hs, interpreted )
[6 of 8] Compiling HaskellWorks.Data.Json.Simd.Internal.List ( src/HaskellWorks/Data/Json/Simd/Internal/List.hs, interpreted )
[7 of 8] Compiling HaskellWorks.Data.Json.Simd.Index.Simple ( src/HaskellWorks/Data/Json/Simd/Index/Simple.hs, interpreted )
[8 of 8] Compiling Paths_hw_json_simd ( /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/autogen/Paths_hw_json_simd.hs, interpreted )
Ok, 8 modules loaded.
(0.45 secs,)
λ> import HaskellWorks.Data.Json.Simd.Capabilities
(0.00 secs, 0 bytes)
λ> avx_2
ghc: ^^ Could not load '_hw_json_simd_avx2_enabled', dependency unresolved. See top entry above.
ByteCodeLink: can't find label
During interactive linking, GHCi couldn't find the following symbol:
hw_json_simd_avx2_enabled
This may be due to you not asking GHCi to load extra object files,
archives or DLLs needed by your current session. Restart GHCi, specifying
the missing library using the -L/path/to/object/dir and -lmissinglibname
flags, or simply by naming the relevant files on the GHCi command line.
Alternatively, this link failure might indicate a bug in GHCi.
If you suspect the latter, please send a bug report to:
glasgow-haskell-bugs@haskell.org
Stale build:
$ cabal new-repl
Build profile: -w ghc-8.4.4 -O2
In order, the following will be built (use -v for more details):
- hw-json-simd-0.1.0.0 (lib) (first run)
Preprocessing library for hw-json-simd-0.1.0.0..
GHCi, version 8.4.4: http://www.haskell.org/ghc/ :? for help
ghc: panic! (the 'impossible' happened)
(GHC version 8.4.4 for x86_64-apple-darwin):
Loading temp shared object failed: dlopen(/var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc87418_0/libghc_7.dylib, 5): Symbol not found: _hw_json_simd_phi_table_32
Referenced from: /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc87418_0/libghc_7.dylib
Expected in: flat namespace
in /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc87418_0/libghc_7.dylib
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
cabal: repl failed for hw-json-simd-0.1.0.0.
I am using these versions:
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.4.4
$ cabal --version
cabal-install version 2.4.1.0
compiled using version 2.4.1.0 of the Cabal library
Also fails with ghc-8.6.3
.
More information:
$ cabal new-repl -v3
File monitor 'config' unchanged.
this build was affected by the following (project) config files:
- /Users/jky/wrk/haskell-works/hw-json-simd/cabal.project
- /Users/jky/wrk/haskell-works/hw-json-simd/cabal.project.local
File monitor 'improved-plan' unchanged.
PreExisting Cabal-2.2.0.1 (Cabal-2.2.0.1)
array-0.5.2.0
base-4.11.1.0
bytestring-0.10.8.2
containers-0.5.11.0
deepseq-1.4.3.0
filepath-1.4.2
pretty-1.1.3.6
process-1.6.3.0
time-1.8.0.2
transformers-0.5.5.0
mtl-2.2.2
text-1.2.3.1
parsec-3.1.13.0
directory-1.3.1.5
binary-0.8.5.1
unix-2.7.2.2
Installed StateVar-1.1.1.1 (SttVr-1.1.1.1-8d2ea68f)
base-4.11.1.0
stm-2.4.5.1
transformers-0.5.5.0
PreExisting array-0.5.2.0 (array-0.5.2.0) base-4.11.1.0
PreExisting base-4.11.1.0 (base-4.11.1.0)
rts
ghc-prim-0.5.2.0
integer-gmp-1.0.2.0
Installed bifunctors-5.5.3 (bfnctrs-5.5.3-37b4561c)
base-4.11.1.0
bs-rphns-0.8-75f1a313
cmnd-5.0.4-a148e07c
containers-0.5.11.0
smgrps-0.18.5-49bd42b4
tggd-0.8.6-61dc6d70
template-haskell-2.13.0.0
th-bstrctn-0.2.10.0-6514e401
transformers-0.5.5.0
PreExisting binary-0.8.5.1 (binary-0.8.5.1)
base-4.11.1.0
bytestring-0.10.8.2
containers-0.5.11.0
array-0.5.2.0
Installed base-orphans-0.8 (bs-rphns-0.8-75f1a313)
base-4.11.1.0
ghc-prim-0.5.2.0
PreExisting bytestring-0.10.8.2 (bytestring-0.10.8.2)
base-4.11.1.0
ghc-prim-0.5.2.0
deepseq-1.4.3.0
integer-gmp-1.0.2.0
Installed c2hs-0.28.6 (c2hs-0.28.6-814df22a)
array-0.5.2.0
base-4.11.1.0
bytestring-0.10.8.2
containers-0.5.11.0
directory-1.3.1.5
dlst-0.8.0.5-01ff6e24
filepath-1.4.2
lngg-c-0.8.2-e78e0a27
pretty-1.1.3.6
process-1.6.3.0
Installed cabal-doctest-1.0.6 (cbl-dctst-1.0.6-bf60e45c)
Cabal-2.2.0.1
base-4.11.1.0
directory-1.3.1.5
filepath-1.4.2
Installed call-stack-0.1.0 (cll-stck-0.1.0-8072eb05) base-4.11.1.0
Installed comonad-5.0.4 (cmnd-5.0.4-a148e07c)
base-4.11.1.0
containers-0.5.11.0
cntrvrnt-1.5-d0fcf5fe
dstrbtv-0.6-eb631e4b
smgrps-0.18.5-49bd42b4
tggd-0.8.6-61dc6d70
transformers-0.5.5.0
trnsfrmrs-cmpt-0.6.2-31744b41
Cabal-2.2.0.1
cbl-dctst-1.0.6-bf60e45c
Installed contravariant-1.5 (cntrvrnt-1.5-d0fcf5fe)
SttVr-1.1.1.1-8d2ea68f
base-4.11.1.0
transformers-0.5.5.0
PreExisting containers-0.5.11.0 (containers-0.5.11.0)
base-4.11.1.0
array-0.5.2.0
deepseq-1.4.3.0
ghc-prim-0.5.2.0
PreExisting deepseq-1.4.3.0 (deepseq-1.4.3.0)
base-4.11.1.0
array-0.5.2.0
PreExisting directory-1.3.1.5 (directory-1.3.1.5)
base-4.11.1.0
time-1.8.0.2
filepath-1.4.2
unix-2.7.2.2
Installed adjunctions-4.4 (djnctns-4.4-0a234db8)
array-0.5.2.0
base-4.11.1.0
cmnd-5.0.4-a148e07c
containers-0.5.11.0
cntrvrnt-1.5-d0fcf5fe
dstrbtv-0.6-eb631e4b
fr-5.1-60c030fa
mtl-2.2.2
prfnctrs-5.3-549cc3b0
smgrpds-5.3.2-9a441505
smgrps-0.18.5-49bd42b4
tggd-0.8.6-61dc6d70
transformers-0.5.5.0
trnsfrmrs-cmpt-0.6.2-31744b41
vd-0.7.2-a8b8f5f7
Installed dlist-0.8.0.5 (dlst-0.8.0.5-01ff6e24)
base-4.11.1.0
deepseq-1.4.3.0
Installed distributive-0.6 (dstrbtv-0.6-eb631e4b)
base-4.11.1.0
bs-rphns-0.8-75f1a313
tggd-0.8.6-61dc6d70
transformers-0.5.5.0
Cabal-2.2.0.1
cbl-dctst-1.0.6-bf60e45c
PreExisting filepath-1.4.2 (filepath-1.4.2) base-4.11.1.0
Installed free-5.1 (fr-5.1-60c030fa)
base-4.11.1.0
cmnd-5.0.4-a148e07c
containers-0.5.11.0
dstrbtv-0.6-eb631e4b
xcptns-0.10.0-f3e2842f
mtl-2.2.2
prfnctrs-5.3-549cc3b0
smgrpds-5.3.2-9a441505
template-haskell-2.13.0.0
transformers-0.5.5.0
trnsfrmrs-bs-0.4.5.2-f1c1ecf0
PreExisting ghc-boot-th-8.4.4 (ghc-boot-th-8.4.4) base-4.11.1.0
PreExisting ghc-prim-0.5.2.0 (ghc-prim-0.5.2.0) rts
Installed happy-1.19.9 (hppy-1.19.9-60f24dd8)
array-0.5.2.0
base-4.11.1.0
containers-0.5.11.0
mtl-2.2.2
Cabal-2.2.0.1
directory-1.3.1.5
filepath-1.4.2
Installed hashable-1.2.7.0 (hshbl-1.2.7.0-251d4bc2)
base-4.11.1.0
bytestring-0.10.8.2
deepseq-1.4.3.0
ghc-prim-0.5.2.0
integer-gmp-1.0.2.0
text-1.2.3.1
Configured hw-json-simd-0.1.0.0 (hw-json-simd-0.1.0.0-inplace)
base-4.11.1.0
bytestring-0.10.8.2
hw-prm-0.6.2.22-06d83abf
lns-4.17-668baaae
vctr-0.12.0.2-959087b8
c2hs-0.28.6-814df22a
Installed hw-prim-0.6.2.22 (hw-prm-0.6.2.22-06d83abf)
base-4.11.1.0
bytestring-0.10.8.2
mmp-0.5.9-38dba140
smgrps-0.18.5-49bd42b4
transformers-0.5.5.0
vctr-0.12.0.2-959087b8
PreExisting integer-gmp-1.0.2.0 (integer-gmp-1.0.2.0) ghc-prim-0.5.2.0
Installed kan-extensions-5.2 (kn-xtnsns-5.2-a3ca212e)
djnctns-4.4-0a234db8
array-0.5.2.0
base-4.11.1.0
cmnd-5.0.4-a148e07c
containers-0.5.11.0
cntrvrnt-1.5-d0fcf5fe
dstrbtv-0.6-eb631e4b
fr-5.1-60c030fa
nvrnt-0.5.1-775004b1
mtl-2.2.2
prfnctrs-5.3-549cc3b0
smgrpds-5.3.2-9a441505
tggd-0.8.6-61dc6d70
transformers-0.5.5.0
trnsfrmrs-cmpt-0.6.2-31744b41
Installed language-c-0.8.2 (lngg-c-0.8.2-e78e0a27)
array-0.5.2.0
base-4.11.1.0
bytestring-0.10.8.2
containers-0.5.11.0
deepseq-1.4.3.0
directory-1.3.1.5
filepath-1.4.2
pretty-1.1.3.6
process-1.6.3.0
syb-0.7-0fe44706
hppy-1.19.9-60f24dd8
lx-3.2.4-92ba087b
Installed lens-4.17 (lns-4.17-668baaae)
array-0.5.2.0
base-4.11.1.0
bs-rphns-0.8-75f1a313
bfnctrs-5.5.3-37b4561c
bytestring-0.10.8.2
cll-stck-0.1.0-8072eb05
cmnd-5.0.4-a148e07c
containers-0.5.11.0
cntrvrnt-1.5-d0fcf5fe
dstrbtv-0.6-eb631e4b
xcptns-0.10.0-f3e2842f
filepath-1.4.2
fr-5.1-60c030fa
ghc-prim-0.5.2.0
hshbl-1.2.7.0-251d4bc2
kn-xtnsns-5.2-a3ca212e
mtl-2.2.2
prlll-3.2.2.0-052fcf74
prfnctrs-5.3-549cc3b0
rflctn-2.1.4-0a0abdac
smgrpds-5.3.2-9a441505
smgrps-0.18.5-49bd42b4
tggd-0.8.6-61dc6d70
template-haskell-2.13.0.0
text-1.2.3.1
th-bstrctn-0.2.10.0-6514e401
transformers-0.5.5.0
trnsfrmrs-cmpt-0.6.2-31744b41
nrdrd-cntnrs-0.2.10.0-3c8c9be5
vctr-0.12.0.2-959087b8
vd-0.7.2-a8b8f5f7
Cabal-2.2.0.1
cbl-dctst-1.0.6-bf60e45c
Installed alex-3.2.4 (lx-3.2.4-92ba087b)
array-0.5.2.0
base-4.11.1.0
containers-0.5.11.0
directory-1.3.1.5
Installed mmap-0.5.9 (mmp-0.5.9-38dba140)
base-4.11.1.0
bytestring-0.10.8.2
PreExisting mtl-2.2.2 (mtl-2.2.2)
base-4.11.1.0
transformers-0.5.5.0
Installed unordered-containers-0.2.10.0 (nrdrd-cntnrs-0.2.10.0-3c8c9be5)
base-4.11.1.0
deepseq-1.4.3.0
hshbl-1.2.7.0-251d4bc2
Installed invariant-0.5.1 (nvrnt-0.5.1-775004b1)
SttVr-1.1.1.1-8d2ea68f
array-0.5.2.0
base-4.11.1.0
bfnctrs-5.5.3-37b4561c
cmnd-5.0.4-a148e07c
containers-0.5.11.0
cntrvrnt-1.5-d0fcf5fe
ghc-prim-0.5.2.0
prfnctrs-5.3-549cc3b0
smgrps-0.18.5-49bd42b4
stm-2.4.5.1
tggd-0.8.6-61dc6d70
template-haskell-2.13.0.0
th-bstrctn-0.2.10.0-6514e401
transformers-0.5.5.0
trnsfrmrs-cmpt-0.6.2-31744b41
nrdrd-cntnrs-0.2.10.0-3c8c9be5
PreExisting parsec-3.1.13.0 (parsec-3.1.13.0)
base-4.11.1.0
mtl-2.2.2
bytestring-0.10.8.2
text-1.2.3.1
PreExisting pretty-1.1.3.6 (pretty-1.1.3.6)
base-4.11.1.0
deepseq-1.4.3.0
ghc-prim-0.5.2.0
Installed profunctors-5.3 (prfnctrs-5.3-549cc3b0)
base-4.11.1.0
bs-rphns-0.8-75f1a313
bfnctrs-5.5.3-37b4561c
cmnd-5.0.4-a148e07c
cntrvrnt-1.5-d0fcf5fe
dstrbtv-0.6-eb631e4b
smgrps-0.18.5-49bd42b4
tggd-0.8.6-61dc6d70
transformers-0.5.5.0
Installed parallel-3.2.2.0 (prlll-3.2.2.0-052fcf74)
array-0.5.2.0
base-4.11.1.0
containers-0.5.11.0
deepseq-1.4.3.0
ghc-prim-0.5.2.0
Installed primitive-0.6.4.0 (prmtv-0.6.4.0-17480acb)
base-4.11.1.0
ghc-prim-0.5.2.0
transformers-0.5.5.0
PreExisting process-1.6.3.0 (process-1.6.3.0)
base-4.11.1.0
directory-1.3.1.5
filepath-1.4.2
deepseq-1.4.3.0
unix-2.7.2.2
Installed reflection-2.1.4 (rflctn-2.1.4-0a0abdac)
base-4.11.1.0
template-haskell-2.13.0.0
PreExisting rts-1.0 (rts)
Installed semigroupoids-5.3.2 (smgrpds-5.3.2-9a441505)
base-4.11.1.0
bs-rphns-0.8-75f1a313
bfnctrs-5.5.3-37b4561c
cmnd-5.0.4-a148e07c
containers-0.5.11.0
cntrvrnt-1.5-d0fcf5fe
dstrbtv-0.6-eb631e4b
hshbl-1.2.7.0-251d4bc2
tggd-0.8.6-61dc6d70
template-haskell-2.13.0.0
transformers-0.5.5.0
trnsfrmrs-cmpt-0.6.2-31744b41
nrdrd-cntnrs-0.2.10.0-3c8c9be5
Cabal-2.2.0.1
cbl-dctst-1.0.6-bf60e45c
Installed semigroups-0.18.5 (smgrps-0.18.5-49bd42b4) base-4.11.1.0
PreExisting stm-2.4.5.1 (stm-2.4.5.1)
base-4.11.1.0
array-0.5.2.0
Installed syb-0.7 (syb-0.7-0fe44706) base-4.11.1.0
PreExisting template-haskell-2.13.0.0 (template-haskell-2.13.0.0)
base-4.11.1.0
ghc-boot-th-8.4.4
pretty-1.1.3.6
PreExisting text-1.2.3.1 (text-1.2.3.1)
array-0.5.2.0
base-4.11.1.0
binary-0.8.5.1
deepseq-1.4.3.0
ghc-prim-0.5.2.0
bytestring-0.10.8.2
integer-gmp-1.0.2.0
Installed tagged-0.8.6 (tggd-0.8.6-61dc6d70)
base-4.11.1.0
deepseq-1.4.3.0
template-haskell-2.13.0.0
transformers-0.5.5.0
Installed th-abstraction-0.2.10.0 (th-bstrctn-0.2.10.0-6514e401)
base-4.11.1.0
containers-0.5.11.0
ghc-prim-0.5.2.0
template-haskell-2.13.0.0
PreExisting time-1.8.0.2 (time-1.8.0.2)
base-4.11.1.0
deepseq-1.4.3.0
PreExisting transformers-0.5.5.0 (transformers-0.5.5.0) base-4.11.1.0
Installed transformers-base-0.4.5.2 (trnsfrmrs-bs-0.4.5.2-f1c1ecf0)
base-4.11.1.0
bs-rphns-0.8-75f1a313
stm-2.4.5.1
transformers-0.5.5.0
trnsfrmrs-cmpt-0.6.2-31744b41
Installed transformers-compat-0.6.2 (trnsfrmrs-cmpt-0.6.2-31744b41)
base-4.11.1.0
ghc-prim-0.5.2.0
transformers-0.5.5.0
PreExisting unix-2.7.2.2 (unix-2.7.2.2)
base-4.11.1.0
bytestring-0.10.8.2
time-1.8.0.2
Installed vector-0.12.0.2 (vctr-0.12.0.2-959087b8)
base-4.11.1.0
deepseq-1.4.3.0
ghc-prim-0.5.2.0
prmtv-0.6.4.0-17480acb
Installed void-0.7.2 (vd-0.7.2-a8b8f5f7) base-4.11.1.0
Installed exceptions-0.10.0 (xcptns-0.10.0-f3e2842f)
base-4.11.1.0
mtl-2.2.2
stm-2.4.5.1
template-haskell-2.13.0.0
transformers-0.5.5.0
trnsfrmrs-cmpt-0.6.2-31744b41
Build profile: -w ghc-8.4.4 -O2
In order, the following will be built:
- hw-json-simd-0.1.0.0-inplace (lib) (first run)
Executing install plan in parallel using 8 threads.
creating /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build
creating /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/tmp
creating
/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt
creating
/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/cache
whenReRegister: nothing to register
Using self-exec internal setup method with build-type Simple and args:
["act-as-setup","--build-type=Simple","--","repl","--verbose=3","--builddir=/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt","lib:hw-json-simd"]
/Users/jky/.local/bin/cabal act-as-setup --build-type=Simple -- repl
--verbose=3
--builddir=/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt
lib:hw-json-simd
Component build order: library
Environment: [("AWS_HOME","/Users/jky/.aws"),("Apple_PubSub_Socket_Render","/private/tmp/com.apple.launchd.j85mKC3A52/Render"),("COLORFGBG","15;0"),("COLORTERM","truecolor"),("COMMAND_MODE","unix2003"),("DOCKER_IP","192.168.43.147"),("GEM_HOME","/Users/jky/.rvm/gems/ruby-2.1.5"),("GEM_PATH","/Users/jky/.rvm/gems/ruby-2.1.5:/Users/jky/.rvm/gems/ruby-2.1.5@global"),("GOPATH","/Users/jky/wrk/gocode"),("HASKELL_DIST_DIR","/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt"),("HISTSIZE","100000"),("HOME","/Users/jky"),("IRBRC","/Users/jky/.rvm/rubies/ruby-2.1.5/.irbrc"),("ITERM_PROFILE","John's profile"),("ITERM_SESSION_ID","w0t0p0:A1E34F7F-7ABC-490B-8283-8625156D97E4"),("JIRA_PREFIX","MAYH"),("JIRA_TOKEN","jky:mPtrJQ3iHV8jbV"),("JIRA_URL","https://mayhem.atlassian.net"),("LANG","en_AU.UTF-8"),("LC_CTYPE","en_AU.UTF-8"),("LESS","-R"),("LOGNAME","jky"),("LSCOLORS","Gxfxcxdxbxegedabagacad"),("MY_RUBY_HOME","/Users/jky/.rvm/rubies/ruby-2.1.5"),("NIX_PATH","nixpkgs=/Users/jky/.nix-defexpr/channels/nixpkgs"),("NIX_SSL_CERT_FILE","/Users/jky/.nix-profile/etc/ssl/certs/ca-bundle.crt"),("OLDPWD","/Users/jky"),("PAGER","less"),("PATH","/Users/jky/.cabal/store/ghc-8.4.4/c2hs-0.28.6-814df22a/bin:/Users/jky/wrk/haskell-works/arcanist/bin:/usr/local/opt/icu4c/sbin:/usr/local/opt/icu4c/bin:/Users/jky/anaconda3/bin:/Users/jky/.local/bin:/Users/.cabal/bin:/Users/jky/Library/Haskell/bin:/Users/jky/.nix-profile/bin:/Users/jky/.rvm/gems/ruby-2.1.5/bin:/Users/jky/.rvm/gems/ruby-2.1.5@global/bin:/Users/jky/.rvm/rubies/ruby-2.1.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/ghc/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/jky/.rvm/bin:/Users/jky/bin:/usr/local/opt/go@1.8/libexec/bin:/Users/jky/Library/Haskell/bin"),("PICO_PUBLISH_TO","s3://dl.john-ky.io/maven/releases"),("PWD","/Users/jky/wrk/haskell-works/hw-json-simd"),("RUBY_VERSION","ruby-2.1.5"),("SAVEHIST","10000"),("SECURITYSESSIONID","189ef"),("SHELL","/bin/zsh"),("SHLVL","1"),("SQLITE_EXEMPT_PATH_FROM_VNODE_GUARDS","/Users/jky/Library/WebKit/Databases"),("SSH_AUTH_SOCK","/private/tmp/com.apple.launchd.Y6PsMQdAFr/Listeners"),("TERM","xterm-256color"),("TERM_PROGRAM","iTerm.app"),("TERM_PROGRAM_VERSION","3.2.7"),("TERM_SESSION_ID","w0t0p0:A1E34F7F-7ABC-490B-8283-8625156D97E4"),("TMPDIR","/var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/"),("USER","jky"),("XPC_FLAGS","0x0"),("XPC_SERVICE_NAME","0"),("ZSH","/Users/jky/.oh-my-zsh"),("_","/Users/jky/.local/bin/cabal"),("__CF_USER_TEXT_ENCODING","0x0:0:0"),("_system_arch","x86_64"),("_system_name","OSX"),("_system_type","Darwin"),("_system_version","10.14"),("hw_json_simd_datadir","/Users/jky/wrk/haskell-works/hw-json-simd/."),("rvm_alias_expanded",""),("rvm_bin_flag",""),("rvm_bin_path","/Users/jky/.rvm/bin"),("rvm_docs_type",""),("rvm_gemstone_package_file",""),("rvm_gemstone_url",""),("rvm_hook",""),("rvm_niceness",""),("rvm_nightly_flag",""),("rvm_only_path_flag",""),("rvm_path","/Users/jky/.rvm"),("rvm_prefix","/Users/jky"),("rvm_proxy",""),("rvm_quiet_flag",""),("rvm_ruby_bits",""),("rvm_ruby_file",""),("rvm_ruby_make",""),("rvm_ruby_make_install",""),("rvm_ruby_mode",""),("rvm_script_name",""),("rvm_sdk",""),("rvm_silent_flag",""),("rvm_use_flag",""),("rvm_version","1.28.0 (latest)"),("rvm_wrapper_name","")]
/opt/ghc/bin/ghc-pkg init /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/package.conf.inplace -v2
GHC package manager version 8.4.4
writing cache /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/package.conf.inplace/package.cache
creating
/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build
creating
/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/autogen
creating
/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/autogen
Preprocessing library for hw-json-simd-0.1.0.0..
creating
/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build
Environment: [("AWS_HOME","/Users/jky/.aws"),("Apple_PubSub_Socket_Render","/private/tmp/com.apple.launchd.j85mKC3A52/Render"),("COLORFGBG","15;0"),("COLORTERM","truecolor"),("COMMAND_MODE","unix2003"),("DOCKER_IP","192.168.43.147"),("GEM_HOME","/Users/jky/.rvm/gems/ruby-2.1.5"),("GEM_PATH","/Users/jky/.rvm/gems/ruby-2.1.5:/Users/jky/.rvm/gems/ruby-2.1.5@global"),("GOPATH","/Users/jky/wrk/gocode"),("HASKELL_DIST_DIR","/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt"),("HISTSIZE","100000"),("HOME","/Users/jky"),("IRBRC","/Users/jky/.rvm/rubies/ruby-2.1.5/.irbrc"),("ITERM_PROFILE","John's profile"),("ITERM_SESSION_ID","w0t0p0:A1E34F7F-7ABC-490B-8283-8625156D97E4"),("JIRA_PREFIX","MAYH"),("JIRA_TOKEN","jky:mPtrJQ3iHV8jbV"),("JIRA_URL","https://mayhem.atlassian.net"),("LANG","en_AU.UTF-8"),("LC_CTYPE","en_AU.UTF-8"),("LESS","-R"),("LOGNAME","jky"),("LSCOLORS","Gxfxcxdxbxegedabagacad"),("MY_RUBY_HOME","/Users/jky/.rvm/rubies/ruby-2.1.5"),("NIX_PATH","nixpkgs=/Users/jky/.nix-defexpr/channels/nixpkgs"),("NIX_SSL_CERT_FILE","/Users/jky/.nix-profile/etc/ssl/certs/ca-bundle.crt"),("OLDPWD","/Users/jky"),("PAGER","less"),("PATH","/Users/jky/.cabal/store/ghc-8.4.4/c2hs-0.28.6-814df22a/bin:/Users/jky/wrk/haskell-works/arcanist/bin:/usr/local/opt/icu4c/sbin:/usr/local/opt/icu4c/bin:/Users/jky/anaconda3/bin:/Users/jky/.local/bin:/Users/.cabal/bin:/Users/jky/Library/Haskell/bin:/Users/jky/.nix-profile/bin:/Users/jky/.rvm/gems/ruby-2.1.5/bin:/Users/jky/.rvm/gems/ruby-2.1.5@global/bin:/Users/jky/.rvm/rubies/ruby-2.1.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/ghc/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/jky/.rvm/bin:/Users/jky/bin:/usr/local/opt/go@1.8/libexec/bin:/Users/jky/Library/Haskell/bin"),("PICO_PUBLISH_TO","s3://dl.john-ky.io/maven/releases"),("PWD","/Users/jky/wrk/haskell-works/hw-json-simd"),("RUBY_VERSION","ruby-2.1.5"),("SAVEHIST","10000"),("SECURITYSESSIONID","189ef"),("SHELL","/bin/zsh"),("SHLVL","1"),("SQLITE_EXEMPT_PATH_FROM_VNODE_GUARDS","/Users/jky/Library/WebKit/Databases"),("SSH_AUTH_SOCK","/private/tmp/com.apple.launchd.Y6PsMQdAFr/Listeners"),("TERM","xterm-256color"),("TERM_PROGRAM","iTerm.app"),("TERM_PROGRAM_VERSION","3.2.7"),("TERM_SESSION_ID","w0t0p0:A1E34F7F-7ABC-490B-8283-8625156D97E4"),("TMPDIR","/var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/"),("USER","jky"),("XPC_FLAGS","0x0"),("XPC_SERVICE_NAME","0"),("ZSH","/Users/jky/.oh-my-zsh"),("_","/Users/jky/.local/bin/cabal"),("__CF_USER_TEXT_ENCODING","0x0:0:0"),("_system_arch","x86_64"),("_system_name","OSX"),("_system_type","Darwin"),("_system_version","10.14"),("hw_json_simd_datadir","/Users/jky/wrk/haskell-works/hw-json-simd/."),("rvm_alias_expanded",""),("rvm_bin_flag",""),("rvm_bin_path","/Users/jky/.rvm/bin"),("rvm_docs_type",""),("rvm_gemstone_package_file",""),("rvm_gemstone_url",""),("rvm_hook",""),("rvm_niceness",""),("rvm_nightly_flag",""),("rvm_only_path_flag",""),("rvm_path","/Users/jky/.rvm"),("rvm_prefix","/Users/jky"),("rvm_proxy",""),("rvm_quiet_flag",""),("rvm_ruby_bits",""),("rvm_ruby_file",""),("rvm_ruby_make",""),("rvm_ruby_make_install",""),("rvm_ruby_mode",""),("rvm_script_name",""),("rvm_sdk",""),("rvm_silent_flag",""),("rvm_use_flag",""),("rvm_version","1.28.0 (latest)"),("rvm_wrapper_name","")]
/opt/ghc/bin/ghc --interactive -fbuilding-cabal-package -O0 -outputdir /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build -odir /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build -hidir /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build -stubdir /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build -i -i/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build -isrc -i/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/autogen -i/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/global-autogen -I/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/autogen -I/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/global-autogen -I/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build -Icbits -I/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/cbits -optP-include -optP/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/autogen/cabal_macros.h -this-unit-id hw-json-simd-0.1.0.0-inplace -hide-all-packages -Wmissing-home-modules -no-user-package-db -package-db /Users/jky/.cabal/store/ghc-8.4.4/package.db -package-db /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/packagedb/ghc-8.4.4 -package-db /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/package.conf.inplace -package-id base-4.11.1.0 -package-id bytestring-0.10.8.2 -package-id hw-prm-0.6.2.22-06d83abf -package-id lns-4.17-668baaae -package-id vctr-0.12.0.2-959087b8 -XHaskell2010 HaskellWorks.Data.Json.Simd.Capabilities HaskellWorks.Data.Json.Simd.Index.Simple HaskellWorks.Data.Json.Simd.Index.Standard HaskellWorks.Data.Json.Simd.Internal.Foreign HaskellWorks.Data.Json.Simd.Internal.Index.Simple HaskellWorks.Data.Json.Simd.Internal.Index.Standard HaskellWorks.Data.Json.Simd.Internal.List Paths_hw_json_simd /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/cbits/debug.o /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/cbits/simd.o /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/cbits/simd-spliced.o /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/cbits/simd-state.o /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/cbits/simd-phi-table-32.o /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.0/opt/build/cbits/simd-transition-table-32.o -Wall -msse4.2 -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -hide-all-packages
GHCi, version 8.4.4: http://www.haskell.org/ghc/ :? for help
ghc: panic! (the 'impossible' happened)
(GHC version 8.4.4 for x86_64-apple-darwin):
Loading temp shared object failed: dlopen(/var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc88700_0/libghc_7.dylib, 5): Symbol not found: _hw_json_simd_phi_table_32
Referenced from: /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc88700_0/libghc_7.dylib
Expected in: flat namespace
in /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc88700_0/libghc_7.dylib
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
/opt/ghc/bin/ghc returned ExitFailure 1
packages definitely up to date:
packages previously probably up to date: hw-json-simd-0.1.0.0-inplace
packages now probably up to date:
packages newly up to date:
packages out to date: hw-json-simd-0.1.0.0-inplace, hw-json-simd-0.1.0.0-inplace-hw-json-simd, hw-json-simd-0.1.0.0-inplace-hw-json-simd-test
packages invalid due to dep change: hw-json-simd-0.1.0.0-inplace, hw-json-simd-0.1.0.0-inplace-hw-json-simd, hw-json-simd-0.1.0.0-inplace-hw-json-simd-test
packages invalid due to build failure: hw-json-simd-0.1.0.0-inplace
CallStack (from HasCallStack):
die', called at ./Distribution/Client/ProjectOrchestration.hs:1002:55 in main:Distribution.Client.ProjectOrchestration
cabal: repl failed for hw-json-simd-0.1.0.0-inplace.
The relevant code is here:
@newhoggy I wonder if this isn't a GHC bug; the linker business in GHCi is known to break every now and then when something changes in the respective OS' C toolchain.
I forgot to mention:
$ uname -a
Darwin galois.lan 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains
$ ld -v
@(#)PROGRAM:ld PROJECT:ld64-409.12
BUILD 17:47:51 Sep 25 2018
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em arm64e arm64_32
LTO support using: LLVM version 10.0.0, (clang-1000.11.45.5) (static support for 21, runtime is 21)
TAPI support using: Apple TAPI version 10.0.0 (tapi-1000.11.8.2)
And that any binaries produced work, so it's just ghci
.
meh, it's because of Apple's emulation of ld
with lld
. Sounds like the linker has decided to force the symbol local as it only has one internal reference. does adding -optl-Wl,-export_dynamic
to hw-json-simd
's cabal file help? or specifying it to the cabal call (forgot what the option is named, think --with-ghc-options=-optl-Wl,-export_dynamic
.
The problem is GHC would need to know if the linker is Apple's "ld" or BFD "ld" in order to use the right flags here as Apple was kind enough not to name it the same as BFD.
Seems like addition to option to the cabal file doesn't help:
$ git diff | cat
diff --git a/hw-json-simd.cabal b/hw-json-simd.cabal
index 8839677..3c38f38 100644
--- a/hw-json-simd.cabal
+++ b/hw-json-simd.cabal
@@ -55,7 +55,7 @@ common semigroups { if (!impl(ghc >= 8.0.1)) { build-depends: { semigroups
common transformers { if (!impl(ghc >= 8.0.1)) { build-depends: { transformers >= 0.4 && < 0.6 } } }
common config
- ghc-options: -Wall
+ ghc-options: -Wall -optl-Wl,-export_dynamic
default-language: Haskell2010
if impl(ghc >= 8.0.1)
ghc-options: -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
$ cabal new-repl
Resolving dependencies...
Build profile: -w ghc-8.4.4 -O2
In order, the following will be built (use -v for more details):
- hw-json-simd-0.1.0.1 (lib) (configuration changed)
Configuring library for hw-json-simd-0.1.0.1..
Preprocessing library for hw-json-simd-0.1.0.1..
GHCi, version 8.4.4: http://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /Users/jky/.jky-secure/.ghci
[1 of 8] Compiling HaskellWorks.Data.Json.Simd.Internal.Foreign ( /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/HaskellWorks/Data/Json/Simd/Internal/Foreign.hs, interpreted )
[2 of 8] Compiling HaskellWorks.Data.Json.Simd.Capabilities ( src/HaskellWorks/Data/Json/Simd/Capabilities.hs, interpreted )
[3 of 8] Compiling HaskellWorks.Data.Json.Simd.Internal.Index.Simple ( src/HaskellWorks/Data/Json/Simd/Internal/Index/Simple.hs, interpreted )
[4 of 8] Compiling HaskellWorks.Data.Json.Simd.Internal.Index.Standard ( src/HaskellWorks/Data/Json/Simd/Internal/Index/Standard.hs, interpreted )
[5 of 8] Compiling HaskellWorks.Data.Json.Simd.Index.Standard ( src/HaskellWorks/Data/Json/Simd/Index/Standard.hs, interpreted )
[6 of 8] Compiling HaskellWorks.Data.Json.Simd.Internal.List ( src/HaskellWorks/Data/Json/Simd/Internal/List.hs, interpreted )
[7 of 8] Compiling HaskellWorks.Data.Json.Simd.Index.Simple ( src/HaskellWorks/Data/Json/Simd/Index/Simple.hs, interpreted )
[8 of 8] Compiling Paths_hw_json_simd ( /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/autogen/Paths_hw_json_simd.hs, interpreted )
Ok, 8 modules loaded.
(0.35 secs,)
λ> import HaskellWorks.Data.Json.Simd.Capabilities
(0.00 secs, 0 bytes)
λ> HaskellWorks.Data.Json.Simd.Capabilities.avx_2
ghc: ^^ Could not load '_hw_json_simd_sm_process_chunk', dependency unresolved. See top entry above.
ByteCodeLink: can't find label
During interactive linking, GHCi couldn't find the following symbol:
hw_json_simd_sm_process_chunk
This may be due to you not asking GHCi to load extra object files,
archives or DLLs needed by your current session. Restart GHCi, specifying
the missing library using the -L/path/to/object/dir and -lmissinglibname
flags, or simply by naming the relevant files on the GHCi command line.
Alternatively, this link failure might indicate a bug in GHCi.
If you suspect the latter, please send a bug report to:
glasgow-haskell-bugs@haskell.org
paste the -v3 output from ghc in a gist, (ghc not cabal)
/opt/ghc/bin/ghc --interactive -fbuilding-cabal-package -O0 -outputdir /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build -odir /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build -hidir /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build -stubdir /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build -i -i/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build -isrc -i/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/autogen -i/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/global-autogen -I/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/autogen -I/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/global-autogen -I/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build -Icbits -I/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits -optP-include -optP/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/autogen/cabal_macros.h -this-unit-id hw-json-simd-0.1.0.1-inplace -hide-all-packages -Wmissing-home-modules -no-user-package-db -package-db /Users/jky/.cabal/store/ghc-8.4.4/package.db -package-db /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/packagedb/ghc-8.4.4 -package-db /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/package.conf.inplace -package-id base-4.11.1.0 -package-id bytestring-0.10.8.2 -package-id hw-prm-0.6.2.22-06d83abf -package-id lns-4.17-668baaae -package-id vctr-0.12.0.2-959087b8 -XHaskell2010 HaskellWorks.Data.Json.Simd.Capabilities HaskellWorks.Data.Json.Simd.Index.Simple HaskellWorks.Data.Json.Simd.Index.Standard HaskellWorks.Data.Json.Simd.Internal.Foreign HaskellWorks.Data.Json.Simd.Internal.Index.Simple HaskellWorks.Data.Json.Simd.Internal.Index.Standard HaskellWorks.Data.Json.Simd.Internal.List Paths_hw_json_simd /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/debug.o /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd.o /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd-spliced.o /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd-state.o /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd-phi-table-32.o /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd-transition-table-32.o -Wall -optl-Wl,-export_dynamic -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -msse4.2 -hide-all-packages
GHCi, version 8.4.4: http://www.haskell.org/ghc/ :? for help
ghc: panic! (the 'impossible' happened)
(GHC version 8.4.4 for x86_64-apple-darwin):
Loading temp shared object failed: dlopen(/var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc68888_0/libghc_7.dylib, 5): Symbol not found: _hw_json_simd_phi_table_32
Referenced from: /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc68888_0/libghc_7.dylib
Expected in: flat namespace
in /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc68888_0/libghc_7.dylib
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
/opt/ghc/bin/ghc returned ExitFailure 1
that's the default verbosity, notice there's no -v3
in the call to ghc. add -v3 to ghc-options in the cabal ffile. use a gist for the paste as there will be a lot.
/opt/ghc/bin/ghc --interactive -fbuilding-cabal-package -O0 -outputdir /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build -odir /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build -hidir /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build -stubdir /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build -i -i/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build -isrc -i/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/autogen -i/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/global-autogen -I/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/autogen -I/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/global-autogen -I/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build -Icbits -I/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits -optP-include -optP/Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/autogen/cabal_macros.h -this-unit-id hw-json-simd-0.1.0.1-inplace -hide-all-packages -Wmissing-home-modules -no-user-package-db -package-db /Users/jky/.cabal/store/ghc-8.4.4/package.db -package-db /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/packagedb/ghc-8.4.4 -package-db /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/package.conf.inplace -package-id base-4.11.1.0 -package-id bytestring-0.10.8.2 -package-id hw-prm-0.6.2.22-06d83abf -package-id lns-4.17-668baaae -package-id vctr-0.12.0.2-959087b8 -XHaskell2010 HaskellWorks.Data.Json.Simd.Capabilities HaskellWorks.Data.Json.Simd.Index.Simple HaskellWorks.Data.Json.Simd.Index.Standard HaskellWorks.Data.Json.Simd.Internal.Foreign HaskellWorks.Data.Json.Simd.Internal.Index.Simple HaskellWorks.Data.Json.Simd.Internal.Index.Standard HaskellWorks.Data.Json.Simd.Internal.List Paths_hw_json_simd /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/debug.o /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd.o /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd-spliced.o /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd-state.o /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd-phi-table-32.o /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd-transition-table-32.o -Wall -optl-Wl,-export_dynamic -v3 -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -msse4.2 -hide-all-packages
GHCi, version 8.4.4: http://www.haskell.org/ghc/ :? for help
Glasgow Haskell Compiler, Version 8.4.4, stage 2 booted by GHC version 8.4.3
Using binary package database: /opt/ghc/8.4.4/lib/ghc-8.4.4/package.conf.d/package.cache
Using binary package database: /Users/jky/.cabal/store/ghc-8.4.4/package.db/package.cache
Using binary package database: /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/packagedb/ghc-8.4.4/package.cache
Using binary package database: /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/package.conf.inplace/package.cache
package flags [-package-id base-4.11.1.0{unit base-4.11.1.0 True ([])},
-package-id bytestring-0.10.8.2{unit bytestring-0.10.8.2 True ([])},
-package-id hw-prm-0.6.2.22-06d83abf{unit hw-prm-0.6.2.22-06d83abf True ([])},
-package-id lns-4.17-668baaae{unit lns-4.17-668baaae True ([])},
-package-id vctr-0.12.0.2-959087b8{unit vctr-0.12.0.2-959087b8 True ([])}]
loading package database /opt/ghc/8.4.4/lib/ghc-8.4.4/package.conf.d
loading package database /Users/jky/.cabal/store/ghc-8.4.4/package.db
loading package database /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/packagedb/ghc-8.4.4
loading package database /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/package.conf.inplace
wired-in package ghc-prim mapped to ghc-prim-0.5.2.0
wired-in package integer-gmp mapped to integer-gmp-1.0.2.0
wired-in package base mapped to base-4.11.1.0
wired-in package rts mapped to rts
wired-in package template-haskell mapped to template-haskell-2.13.0.0
wired-in package ghc mapped to ghc-8.4.4
wired-in package dph-seq not found.
wired-in package dph-par not found.
*** Parser [source]:
!!! Parser [source]: finished in 0.46 milliseconds, allocated 0.175 megabytes
*** Desugar:
*** Simplify [expr]:
!!! Simplify [expr]: finished in 0.52 milliseconds, allocated 0.121 megabytes
*** CorePrep [expr]:
!!! CorePrep [expr]: finished in 1.20 milliseconds, allocated 1.407 megabytes
*** ByteCodeGen [Ghci1]:
!!! ByteCodeGen [Ghci1]: finished in 0.38 milliseconds, allocated 0.132 megabytes
Loading package ghc-prim-0.5.2.0 ... linking ... done.
Loading package integer-gmp-1.0.2.0 ... linking ... done.
*** gcc:
gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -Wl,-export_dynamic -B/opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 --print-file-name libiconv.dylib
*** gcc:
gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -Wl,-export_dynamic -B/opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 --print-file-name liblibiconv.dylib
*** gcc:
gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -Wl,-export_dynamic -B/opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 --print-file-name iconv.lib
*** gcc:
gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -Wl,-export_dynamic -B/opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 --print-file-name libiconv.lib
*** gcc:
gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -Wl,-export_dynamic -B/opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 --print-file-name libiconv.dll.a
*** gcc:
gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -Wl,-export_dynamic -B/opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 --print-file-name iconv.dll.a
*** gcc:
gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -Wl,-export_dynamic -B/opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 --print-file-name libiconv.a
*** gcc:
gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -Wl,-export_dynamic -B/opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 --print-file-name iconv.a
Loading package base-4.11.1.0 ... linking ... done.
Loading package array-0.5.2.0 ... linking ... done.
Loading package base-orphans-0.8 ... linking ... done.
Loading package semigroups-0.18.5 ... linking ... done.
Loading package deepseq-1.4.3.0 ... linking ... done.
Loading package ghc-boot-th-8.4.4 ... linking ... done.
Loading package pretty-1.1.3.6 ... linking ... done.
Loading package template-haskell-2.13.0.0 ... linking ... done.
Loading package transformers-0.5.5.0 ... linking ... done.
Loading package tagged-0.8.6 ... linking ... done.
Loading package transformers-compat-0.6.2 ... linking ... done.
Loading package containers-0.5.11.0 ... linking ... done.
Loading package stm-2.4.5.1 ... linking ... done.
Loading package StateVar-1.1.1.1 ... linking ... done.
Loading package contravariant-1.5 ... linking ... done.
Loading package distributive-0.6 ... linking ... done.
Loading package comonad-5.0.4 ... linking ... done.
Loading package th-abstraction-0.2.10.0 ... linking ... done.
Loading package bifunctors-5.5.3 ... linking ... done.
Loading package bytestring-0.10.8.2 ... linking ... done.
Loading package call-stack-0.1.0 ... linking ... done.
Loading package filepath-1.4.2 ... linking ... done.
Loading package mtl-2.2.2 ... linking ... done.
Loading package exceptions-0.10.0 ... linking ... done.
Loading package profunctors-5.3 ... linking ... done.
Loading package binary-0.8.5.1 ... linking ... done.
Loading package text-1.2.3.1 ... linking ... done.
Loading package hashable-1.2.7.0 ... linking ... done.
Loading package unordered-containers-0.2.10.0 ... linking ... done.
Loading package semigroupoids-5.3.2 ... linking ... done.
Loading package transformers-base-0.4.5.2 ... linking ... done.
Loading package free-5.1 ... linking ... done.
Loading package void-0.7.2 ... linking ... done.
Loading package adjunctions-4.4 ... linking ... done.
Loading package invariant-0.5.1 ... linking ... done.
Loading package kan-extensions-5.2 ... linking ... done.
Loading package parallel-3.2.2.0 ... linking ... done.
Loading package reflection-2.1.4 ... linking ... done.
Loading package primitive-0.6.4.0 ... linking ... done.
Loading package vector-0.12.0.2 ... linking ... done.
Loading package lens-4.17 ... linking ... done.
Loading package mmap-0.5.9 ... linking ... done.
Loading package hw-prim-0.6.2.22 ... linking ... done.
Loading object (static) /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/debug.o ... Created temporary directory: /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0
*** Linker:
gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -Wl,-export_dynamic -dynamiclib -o /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0/libghc_1.dylib /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/debug.o -undefined dynamic_lookup -single_module -install_name '@rpath/libghc_1.dylib' -L/Users/jky/.cabal/store/ghc-8.4.4/lib -Xlinker -rpath -Xlinker /Users/jky/.cabal/store/ghc-8.4.4/lib -L/opt/ghc/8.4.4/lib/ghc-8.4.4/text-1.2.3.1 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/text-1.2.3.1 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/binary-0.8.5.1 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/binary-0.8.5.1 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/mtl-2.2.2 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/mtl-2.2.2 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/filepath-1.4.2 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/filepath-1.4.2 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/stm-2.4.5.1 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/stm-2.4.5.1 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/containers-0.5.11.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/containers-0.5.11.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/template-haskell-2.13.0.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/template-haskell-2.13.0.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/pretty-1.1.3.6 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/pretty-1.1.3.6 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-boot-th-8.4.4 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-boot-th-8.4.4 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/transformers-0.5.5.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/transformers-0.5.5.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/bytestring-0.10.8.2 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/bytestring-0.10.8.2 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/deepseq-1.4.3.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/deepseq-1.4.3.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/array-0.5.2.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/array-0.5.2.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/integer-gmp-1.0.2.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/integer-gmp-1.0.2.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-prim-0.5.2.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-prim-0.5.2.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/rts -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/rts -lHSlns-4.17-668baaae-ghc8.4.4 -lHSrflctn-2.1.4-0a0abdac-ghc8.4.4 -lHSprlll-3.2.2.0-052fcf74-ghc8.4.4 -lHSkn-xtnsns-5.2-a3ca212e-ghc8.4.4 -lHSnvrnt-0.5.1-775004b1-ghc8.4.4 -lHSdjnctns-4.4-0a234db8-ghc8.4.4 -lHSvd-0.7.2-a8b8f5f7-ghc8.4.4 -lHSfr-5.1-60c030fa-ghc8.4.4 -lHStrnsfrmrs-bs-0.4.5.2-f1c1ecf0-ghc8.4.4 -lHSsmgrpds-5.3.2-9a441505-ghc8.4.4 -lHSnrdrd-cntnrs-0.2.10.0-3c8c9be5-ghc8.4.4 -lHShshbl-1.2.7.0-251d4bc2-ghc8.4.4 -lHStext-1.2.3.1-ghc8.4.4 -lHSbinary-0.8.5.1-ghc8.4.4 -lHSprfnctrs-5.3-549cc3b0-ghc8.4.4 -lHSxcptns-0.10.0-f3e2842f-ghc8.4.4 -lHSmtl-2.2.2-ghc8.4.4 -lHSfilepath-1.4.2-ghc8.4.4 -lHScll-stck-0.1.0-8072eb05-ghc8.4.4 -lHSbfnctrs-5.5.3-37b4561c-ghc8.4.4 -lHSth-bstrctn-0.2.10.0-6514e401-ghc8.4.4 -lHScmnd-5.0.4-a148e07c-ghc8.4.4 -lHSdstrbtv-0.6-eb631e4b-ghc8.4.4 -lHScntrvrnt-1.5-d0fcf5fe-ghc8.4.4 -lHSSttVr-1.1.1.1-8d2ea68f-ghc8.4.4 -lHSstm-2.4.5.1-ghc8.4.4 -lHScontainers-0.5.11.0-ghc8.4.4 -lHStrnsfrmrs-cmpt-0.6.2-31744b41-ghc8.4.4 -lHStggd-0.8.6-61dc6d70-ghc8.4.4 -lHStemplate-haskell-2.13.0.0-ghc8.4.4 -lHSpretty-1.1.3.6-ghc8.4.4 -lHSghc-boot-th-8.4.4-ghc8.4.4 -lHSbs-rphns-0.8-75f1a313-ghc8.4.4 -lHShw-prm-0.6.2.22-06d83abf-ghc8.4.4 -lHSvctr-0.12.0.2-959087b8-ghc8.4.4 -lHSprmtv-0.6.4.0-17480acb-ghc8.4.4 -lHStransformers-0.5.5.0-ghc8.4.4 -lHSsmgrps-0.18.5-49bd42b4-ghc8.4.4 -lHSmmp-0.5.9-38dba140-ghc8.4.4 -lHSbytestring-0.10.8.2-ghc8.4.4 -lHSdeepseq-1.4.3.0-ghc8.4.4 -lHSarray-0.5.2.0-ghc8.4.4 -lHSbase-4.11.1.0-ghc8.4.4 -lHSinteger-gmp-1.0.2.0-ghc8.4.4 -lHSghc-prim-0.5.2.0-ghc8.4.4 -liconv
done
Loading object (static) /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd.o ... *** Linker:
gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -Wl,-export_dynamic -dynamiclib -o /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0/libghc_3.dylib /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd.o -undefined dynamic_lookup -single_module -install_name '@rpath/libghc_3.dylib' -L/var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0 -Xlinker -rpath -Xlinker /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0 -lghc_1 -L/Users/jky/.cabal/store/ghc-8.4.4/lib -Xlinker -rpath -Xlinker /Users/jky/.cabal/store/ghc-8.4.4/lib -L/opt/ghc/8.4.4/lib/ghc-8.4.4/text-1.2.3.1 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/text-1.2.3.1 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/binary-0.8.5.1 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/binary-0.8.5.1 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/mtl-2.2.2 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/mtl-2.2.2 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/filepath-1.4.2 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/filepath-1.4.2 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/stm-2.4.5.1 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/stm-2.4.5.1 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/containers-0.5.11.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/containers-0.5.11.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/template-haskell-2.13.0.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/template-haskell-2.13.0.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/pretty-1.1.3.6 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/pretty-1.1.3.6 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-boot-th-8.4.4 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-boot-th-8.4.4 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/transformers-0.5.5.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/transformers-0.5.5.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/bytestring-0.10.8.2 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/bytestring-0.10.8.2 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/deepseq-1.4.3.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/deepseq-1.4.3.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/array-0.5.2.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/array-0.5.2.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/integer-gmp-1.0.2.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/integer-gmp-1.0.2.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-prim-0.5.2.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-prim-0.5.2.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/rts -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/rts -lHSlns-4.17-668baaae-ghc8.4.4 -lHSrflctn-2.1.4-0a0abdac-ghc8.4.4 -lHSprlll-3.2.2.0-052fcf74-ghc8.4.4 -lHSkn-xtnsns-5.2-a3ca212e-ghc8.4.4 -lHSnvrnt-0.5.1-775004b1-ghc8.4.4 -lHSdjnctns-4.4-0a234db8-ghc8.4.4 -lHSvd-0.7.2-a8b8f5f7-ghc8.4.4 -lHSfr-5.1-60c030fa-ghc8.4.4 -lHStrnsfrmrs-bs-0.4.5.2-f1c1ecf0-ghc8.4.4 -lHSsmgrpds-5.3.2-9a441505-ghc8.4.4 -lHSnrdrd-cntnrs-0.2.10.0-3c8c9be5-ghc8.4.4 -lHShshbl-1.2.7.0-251d4bc2-ghc8.4.4 -lHStext-1.2.3.1-ghc8.4.4 -lHSbinary-0.8.5.1-ghc8.4.4 -lHSprfnctrs-5.3-549cc3b0-ghc8.4.4 -lHSxcptns-0.10.0-f3e2842f-ghc8.4.4 -lHSmtl-2.2.2-ghc8.4.4 -lHSfilepath-1.4.2-ghc8.4.4 -lHScll-stck-0.1.0-8072eb05-ghc8.4.4 -lHSbfnctrs-5.5.3-37b4561c-ghc8.4.4 -lHSth-bstrctn-0.2.10.0-6514e401-ghc8.4.4 -lHScmnd-5.0.4-a148e07c-ghc8.4.4 -lHSdstrbtv-0.6-eb631e4b-ghc8.4.4 -lHScntrvrnt-1.5-d0fcf5fe-ghc8.4.4 -lHSSttVr-1.1.1.1-8d2ea68f-ghc8.4.4 -lHSstm-2.4.5.1-ghc8.4.4 -lHScontainers-0.5.11.0-ghc8.4.4 -lHStrnsfrmrs-cmpt-0.6.2-31744b41-ghc8.4.4 -lHStggd-0.8.6-61dc6d70-ghc8.4.4 -lHStemplate-haskell-2.13.0.0-ghc8.4.4 -lHSpretty-1.1.3.6-ghc8.4.4 -lHSghc-boot-th-8.4.4-ghc8.4.4 -lHSbs-rphns-0.8-75f1a313-ghc8.4.4 -lHShw-prm-0.6.2.22-06d83abf-ghc8.4.4 -lHSvctr-0.12.0.2-959087b8-ghc8.4.4 -lHSprmtv-0.6.4.0-17480acb-ghc8.4.4 -lHStransformers-0.5.5.0-ghc8.4.4 -lHSsmgrps-0.18.5-49bd42b4-ghc8.4.4 -lHSmmp-0.5.9-38dba140-ghc8.4.4 -lHSbytestring-0.10.8.2-ghc8.4.4 -lHSdeepseq-1.4.3.0-ghc8.4.4 -lHSarray-0.5.2.0-ghc8.4.4 -lHSbase-4.11.1.0-ghc8.4.4 -lHSinteger-gmp-1.0.2.0-ghc8.4.4 -lHSghc-prim-0.5.2.0-ghc8.4.4 -liconv
done
Loading object (static) /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd-spliced.o ... *** Linker:
gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -Wl,-export_dynamic -dynamiclib -o /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0/libghc_5.dylib /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd-spliced.o -undefined dynamic_lookup -single_module -install_name '@rpath/libghc_5.dylib' -L/var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0 -Xlinker -rpath -Xlinker /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0 -lghc_3 -L/var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0 -Xlinker -rpath -Xlinker /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0 -lghc_1 -L/Users/jky/.cabal/store/ghc-8.4.4/lib -Xlinker -rpath -Xlinker /Users/jky/.cabal/store/ghc-8.4.4/lib -L/opt/ghc/8.4.4/lib/ghc-8.4.4/text-1.2.3.1 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/text-1.2.3.1 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/binary-0.8.5.1 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/binary-0.8.5.1 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/mtl-2.2.2 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/mtl-2.2.2 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/filepath-1.4.2 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/filepath-1.4.2 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/stm-2.4.5.1 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/stm-2.4.5.1 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/containers-0.5.11.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/containers-0.5.11.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/template-haskell-2.13.0.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/template-haskell-2.13.0.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/pretty-1.1.3.6 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/pretty-1.1.3.6 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-boot-th-8.4.4 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-boot-th-8.4.4 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/transformers-0.5.5.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/transformers-0.5.5.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/bytestring-0.10.8.2 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/bytestring-0.10.8.2 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/deepseq-1.4.3.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/deepseq-1.4.3.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/array-0.5.2.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/array-0.5.2.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/integer-gmp-1.0.2.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/integer-gmp-1.0.2.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-prim-0.5.2.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-prim-0.5.2.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/rts -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/rts -lHSlns-4.17-668baaae-ghc8.4.4 -lHSrflctn-2.1.4-0a0abdac-ghc8.4.4 -lHSprlll-3.2.2.0-052fcf74-ghc8.4.4 -lHSkn-xtnsns-5.2-a3ca212e-ghc8.4.4 -lHSnvrnt-0.5.1-775004b1-ghc8.4.4 -lHSdjnctns-4.4-0a234db8-ghc8.4.4 -lHSvd-0.7.2-a8b8f5f7-ghc8.4.4 -lHSfr-5.1-60c030fa-ghc8.4.4 -lHStrnsfrmrs-bs-0.4.5.2-f1c1ecf0-ghc8.4.4 -lHSsmgrpds-5.3.2-9a441505-ghc8.4.4 -lHSnrdrd-cntnrs-0.2.10.0-3c8c9be5-ghc8.4.4 -lHShshbl-1.2.7.0-251d4bc2-ghc8.4.4 -lHStext-1.2.3.1-ghc8.4.4 -lHSbinary-0.8.5.1-ghc8.4.4 -lHSprfnctrs-5.3-549cc3b0-ghc8.4.4 -lHSxcptns-0.10.0-f3e2842f-ghc8.4.4 -lHSmtl-2.2.2-ghc8.4.4 -lHSfilepath-1.4.2-ghc8.4.4 -lHScll-stck-0.1.0-8072eb05-ghc8.4.4 -lHSbfnctrs-5.5.3-37b4561c-ghc8.4.4 -lHSth-bstrctn-0.2.10.0-6514e401-ghc8.4.4 -lHScmnd-5.0.4-a148e07c-ghc8.4.4 -lHSdstrbtv-0.6-eb631e4b-ghc8.4.4 -lHScntrvrnt-1.5-d0fcf5fe-ghc8.4.4 -lHSSttVr-1.1.1.1-8d2ea68f-ghc8.4.4 -lHSstm-2.4.5.1-ghc8.4.4 -lHScontainers-0.5.11.0-ghc8.4.4 -lHStrnsfrmrs-cmpt-0.6.2-31744b41-ghc8.4.4 -lHStggd-0.8.6-61dc6d70-ghc8.4.4 -lHStemplate-haskell-2.13.0.0-ghc8.4.4 -lHSpretty-1.1.3.6-ghc8.4.4 -lHSghc-boot-th-8.4.4-ghc8.4.4 -lHSbs-rphns-0.8-75f1a313-ghc8.4.4 -lHShw-prm-0.6.2.22-06d83abf-ghc8.4.4 -lHSvctr-0.12.0.2-959087b8-ghc8.4.4 -lHSprmtv-0.6.4.0-17480acb-ghc8.4.4 -lHStransformers-0.5.5.0-ghc8.4.4 -lHSsmgrps-0.18.5-49bd42b4-ghc8.4.4 -lHSmmp-0.5.9-38dba140-ghc8.4.4 -lHSbytestring-0.10.8.2-ghc8.4.4 -lHSdeepseq-1.4.3.0-ghc8.4.4 -lHSarray-0.5.2.0-ghc8.4.4 -lHSbase-4.11.1.0-ghc8.4.4 -lHSinteger-gmp-1.0.2.0-ghc8.4.4 -lHSghc-prim-0.5.2.0-ghc8.4.4 -liconv
done
Loading object (static) /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd-state.o ... *** Linker:
gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -Wl,-export_dynamic -dynamiclib -o /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0/libghc_7.dylib /Users/jky/wrk/haskell-works/hw-json-simd/dist-newstyle/build/x86_64-osx/ghc-8.4.4/hw-json-simd-0.1.0.1/opt/build/cbits/simd-state.o -undefined dynamic_lookup -single_module -install_name '@rpath/libghc_7.dylib' -L/var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0 -Xlinker -rpath -Xlinker /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0 -lghc_5 -L/var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0 -Xlinker -rpath -Xlinker /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0 -lghc_3 -L/var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0 -Xlinker -rpath -Xlinker /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0 -lghc_1 -L/Users/jky/.cabal/store/ghc-8.4.4/lib -Xlinker -rpath -Xlinker /Users/jky/.cabal/store/ghc-8.4.4/lib -L/opt/ghc/8.4.4/lib/ghc-8.4.4/text-1.2.3.1 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/text-1.2.3.1 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/binary-0.8.5.1 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/binary-0.8.5.1 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/mtl-2.2.2 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/mtl-2.2.2 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/filepath-1.4.2 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/filepath-1.4.2 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/stm-2.4.5.1 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/stm-2.4.5.1 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/containers-0.5.11.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/containers-0.5.11.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/template-haskell-2.13.0.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/template-haskell-2.13.0.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/pretty-1.1.3.6 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/pretty-1.1.3.6 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-boot-th-8.4.4 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-boot-th-8.4.4 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/transformers-0.5.5.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/transformers-0.5.5.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/bytestring-0.10.8.2 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/bytestring-0.10.8.2 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/deepseq-1.4.3.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/deepseq-1.4.3.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/array-0.5.2.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/array-0.5.2.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/base-4.11.1.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/integer-gmp-1.0.2.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/integer-gmp-1.0.2.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-prim-0.5.2.0 -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/ghc-prim-0.5.2.0 -L/opt/ghc/8.4.4/lib/ghc-8.4.4/rts -Xlinker -rpath -Xlinker /opt/ghc/8.4.4/lib/ghc-8.4.4/rts -lHSlns-4.17-668baaae-ghc8.4.4 -lHSrflctn-2.1.4-0a0abdac-ghc8.4.4 -lHSprlll-3.2.2.0-052fcf74-ghc8.4.4 -lHSkn-xtnsns-5.2-a3ca212e-ghc8.4.4 -lHSnvrnt-0.5.1-775004b1-ghc8.4.4 -lHSdjnctns-4.4-0a234db8-ghc8.4.4 -lHSvd-0.7.2-a8b8f5f7-ghc8.4.4 -lHSfr-5.1-60c030fa-ghc8.4.4 -lHStrnsfrmrs-bs-0.4.5.2-f1c1ecf0-ghc8.4.4 -lHSsmgrpds-5.3.2-9a441505-ghc8.4.4 -lHSnrdrd-cntnrs-0.2.10.0-3c8c9be5-ghc8.4.4 -lHShshbl-1.2.7.0-251d4bc2-ghc8.4.4 -lHStext-1.2.3.1-ghc8.4.4 -lHSbinary-0.8.5.1-ghc8.4.4 -lHSprfnctrs-5.3-549cc3b0-ghc8.4.4 -lHSxcptns-0.10.0-f3e2842f-ghc8.4.4 -lHSmtl-2.2.2-ghc8.4.4 -lHSfilepath-1.4.2-ghc8.4.4 -lHScll-stck-0.1.0-8072eb05-ghc8.4.4 -lHSbfnctrs-5.5.3-37b4561c-ghc8.4.4 -lHSth-bstrctn-0.2.10.0-6514e401-ghc8.4.4 -lHScmnd-5.0.4-a148e07c-ghc8.4.4 -lHSdstrbtv-0.6-eb631e4b-ghc8.4.4 -lHScntrvrnt-1.5-d0fcf5fe-ghc8.4.4 -lHSSttVr-1.1.1.1-8d2ea68f-ghc8.4.4 -lHSstm-2.4.5.1-ghc8.4.4 -lHScontainers-0.5.11.0-ghc8.4.4 -lHStrnsfrmrs-cmpt-0.6.2-31744b41-ghc8.4.4 -lHStggd-0.8.6-61dc6d70-ghc8.4.4 -lHStemplate-haskell-2.13.0.0-ghc8.4.4 -lHSpretty-1.1.3.6-ghc8.4.4 -lHSghc-boot-th-8.4.4-ghc8.4.4 -lHSbs-rphns-0.8-75f1a313-ghc8.4.4 -lHShw-prm-0.6.2.22-06d83abf-ghc8.4.4 -lHSvctr-0.12.0.2-959087b8-ghc8.4.4 -lHSprmtv-0.6.4.0-17480acb-ghc8.4.4 -lHStransformers-0.5.5.0-ghc8.4.4 -lHSsmgrps-0.18.5-49bd42b4-ghc8.4.4 -lHSmmp-0.5.9-38dba140-ghc8.4.4 -lHSbytestring-0.10.8.2-ghc8.4.4 -lHSdeepseq-1.4.3.0-ghc8.4.4 -lHSarray-0.5.2.0-ghc8.4.4 -lHSbase-4.11.1.0-ghc8.4.4 -lHSinteger-gmp-1.0.2.0-ghc8.4.4 -lHSghc-prim-0.5.2.0-ghc8.4.4 -liconv
*** Deleting temp files:
Deleting: /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0/ghc_2.rsp /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0/ghc_4.rsp /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0/ghc_6.rsp /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0/ghc_8.rsp /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0/libghc_1.dylib /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0/libghc_3.dylib /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0/libghc_5.dylib /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0/libghc_7.dylib
*** Deleting temp dirs:
Deleting: /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0
ghc: panic! (the 'impossible' happened)
(GHC version 8.4.4 for x86_64-apple-darwin):
Loading temp shared object failed: dlopen(/var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0/libghc_7.dylib, 5): Symbol not found: _hw_json_simd_phi_table_32
Referenced from: /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0/libghc_7.dylib
Expected in: flat namespace
in /var/folders/8d/3xbnllbx76gcbk3wwy086vlm0000gn/T/ghc71806_0/libghc_7.dylib
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
ah right, -export_dynamic
doesn't work because for some reason it's linking the object files one at at time. Not sure but I thought MachO allowed dangling symbols in dynlibs? @angerman ?
I can try it on my case tonight
This is likely a GHC bug, unfortunately I don't know enough about Mach-O to be able to say for sure what is wrong and don't have a Mac to test. Can one of you report this upstream? Thanks.
It seems this a proper ghc bug and not sure if it is reproduced with newer versions. In any case it would need a issue upstream. I think we could close this here, feel free to reopen if you think this should be tracked here (in that case open a ghc ticket to link here would be great)
I am building a library using FFI. I have a file: FMU.hs with
foreign export ccall setup :: IO ()
I have a c file: hfmu.c with all thehs_init()
andhs_exit()
. It has an include:#include hfmu_stub.h
, which contains:extern void setup();
It then calls the functionsetup
afterhs_init()
.It works fine when performing
cabal new-build
, and an external application can load the library and call thesetup
function.However, with cabal new-repl I get the following error:
The actual sources are here: https://github.com/hfmu/hfmu
If I comment the setup() function call within hfmu.c, then it works fine.
Any ideas on how to fix it?