pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
ghc doesn't link
Hi There!
I have an issue building any versions of ghc (7.x,8.x) on NetBSD 9
stable. See the linker error below. I do have built and installed libiconv.
Do you have an idea how to resolve?
Thanks,
FeZ
----
"inplace/bin/ghc-stage1" -o ghc/stage2/build/tmp/ghc-stage2 -hisuf
dyn_hi -osuf dyn_o -hcsuf dyn_hc -fPIC -dynamic -H32m -O -Wall
-hide-all-packages -i -ighc/. -ighc/stage2/build -Ighc/stage2/build
-ighc/stage2/build/ghc/autogen -Ighc/stage2/build/ghc/autogen
-optP-DGHCI -optP-include
-optPghc/stage2/build/ghc/autogen/cabal_macros.h -package-id
array-0.5.4.0 -package-id base-4.13.0.0 -package-id bytestring-0.10.9.0
-package-id containers-0.6.2.1 -package-id deepseq-1.4.4.0 -package-id
directory-1.3.3.2 -package-id filepath-1.4.2.1 -package-id ghc-8.8.1
-package-id ghc-boot-8.8.1 -package-id ghc-prim-0.5.3 -package-id
ghci-8.8.1 -package-id haskeline-0.7.5.0 -package-id process-1.6.5.1
-package-id time-1.9.3 -package-id transformers-0.5.6.2 -package-id
unix-2.7.2.2 -Wall -Wnoncanonical-monad-instances
-Wnoncanonical-monoid-instances -fno-warn-name-shadowing -threaded
-XHaskell2010 -XNoImplicitPrelude -O2 -haddock -Wcpp-undef -no-hs-main
-threaded -no-user-package-db -rtsopts -Wnoncanonical-monad-instances
-outputdir ghc/stage2/build -fPIC -dynamic -H32m -O -Wall
-hide-all-packages -i -ighc/. -ighc/stage2/build -Ighc/stage2/build
-ighc/stage2/build/ghc/autogen -Ighc/stage2/build/ghc/autogen
-optP-DGHCI -optP-include
-optPghc/stage2/build/ghc/autogen/cabal_macros.h -package-id
array-0.5.4.0 -package-id base-4.13.0.0 -package-id bytestring-0.10.9.0
-package-id containers-0.6.2.1 -package-id deepseq-1.4.4.0 -package-id
directory-1.3.3.2 -package-id filepath-1.4.2.1 -package-id ghc-8.8.1
-package-id ghc-boot-8.8.1 -package-id ghc-prim-0.5.3 -package-id
ghci-8.8.1 -package-id haskeline-0.7.5.0 -package-id process-1.6.5.1
-package-id time-1.9.3 -package-id transformers-0.5.6.2 -package-id
unix-2.7.2.2 -Wall -Wnoncanonical-monad-instances
-Wnoncanonical-monoid-instances -fno-warn-name-shadowing -threaded
-XHaskell2010 -XNoImplicitPrelude -O2 -haddock -Wcpp-undef -no-hs-main
-threaded -no-user-package-db -rtsopts -Wnoncanonical-monad-instances
-fno-use-rpaths -optl-Wl,-rpath -optl-Wl,'$ORIGIN/../haskeline-0.7.5.0'
-optl-Wl,-rpath -optl-Wl,'$ORIGIN/../stm-2.5.0.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../ghc-8.8.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../terminfo-0.4.1.4' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../process-1.6.5.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../hpc-0.6.0.3' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../ghci-8.8.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../transformers-0.5.6.2' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../template-haskell-2.15.0.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../pretty-1.1.3.6' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../ghc-heap-8.8.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../ghc-boot-8.8.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../ghc-boot-th-8.8.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../directory-1.3.3.2' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../unix-2.7.2.2' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../time-1.9.3' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../filepath-1.4.2.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../binary-0.8.7.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../containers-0.6.2.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../bytestring-0.10.9.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../deepseq-1.4.4.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../array-0.5.4.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../base-4.13.0.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../integer-gmp-1.0.2.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../ghc-prim-0.5.3' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../rts' -optl-Wl,-zorigin ghc/stage2/build/Main.dyn_o
ghc/stage2/build/GHCi/Leak.dyn_o ghc/stage2/build/GHCi/UI.dyn_o
ghc/stage2/build/GHCi/UI/Info.dyn_o ghc/stage2/build/GHCi/UI/Monad.dyn_o
ghc/stage2/build/GHCi/UI/Tags.dyn_o ghc/stage2/build/GHCi/Util.dyn_o
ghc/stage2/build/hschooks.dyn_o
Warning: -rtsopts and -with-rtsopts have no effect with -no-hs-main.
Call hs_init_ghc() from your main() function to set these options.
ld:
/usr/pkgsrc/lang/ghc88/work/ghc-8.8.1/libraries/base/dist-install/build/libHSbase-4.13.0.0-ghc8.8.1.so:
undefined reference to `libiconv_open'
ld:
/usr/pkgsrc/lang/ghc88/work/ghc-8.8.1/libraries/base/dist-install/build/libHSbase-4.13.0.0-ghc8.8.1.so:
undefined reference to `libiconv'
ld:
/usr/pkgsrc/lang/ghc88/work/ghc-8.8.1/libraries/base/dist-install/build/libHSbase-4.13.0.0-ghc8.8.1.so:
undefined reference to `libiconv_close'
`gcc' failed in phase `Linker'. (Exit code: 1)
gmake[1]: *** [ghc/ghc.mk:118: ghc/stage2/build/tmp/ghc-stage2] Error 1
gmake: *** [Makefile:128: all] Error 2
*** Error code 2
Stop.
make[1]: stopped in /usr/pkgsrc/lang/ghc88
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/lang/ghc88
Home |
Main Index |
Thread Index |
Old Index