pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: ghc88 build failure
Hi,
I tried a few things, with not much success.
Noticing that the log file shows --with-iconv-includes="/usr/include"
--configure-option=--with-iconv-libraries="/usr/lib", which seems
wrong, even if there is an include of the libinconv buildlink3 file, I
went with the obviouslhy wrong way and soft-linked the needed bits of
libiconv, the include files, the archive and shared libraries, under
/usr/include and /usr/lib. The build completed and I was then able to
build xmonad and xmonad-extras, which was the reason I built ghc88 in
the first place; unfortunately I also have to link libiconv.so.2 in
/usr/lib on the target system as well, so obviously this is not a
solution.
On Wed, 13 May 2020 at 15:34, Chavdar Ivanov <ci4ic4%gmail.com@localhost> wrote:
>
> Hi,
>
> On up-to-date pkgsrc and yesterday's -current I get:
> ......
>
> <<ghc: 1664465376 bytes, 152 GCs, 20407617/62364152 avg/max bytes
> residency (8 samples), 141M in use, 0.000 INIT (0.000 elapsed), 2.020
> MUT (2.324 elapsed), 1.330 GC (1.283 elapsed) :ghc>>
> "inplace/bin/ghc-stage1" -hisuf hi -osuf o -hcsuf hc -static -H32m
> -O -Wall -Iincludes -Iincludes/dist
> -Iincludes/dist-derivedconstants/header
> -Iincludes/dist-ghcconstants/header -this-unit-id ghc-8.8.1 -hi
> de-all-packages -i -icompiler/backpack -icompiler/basicTypes
> -icompiler/cmm -icompiler/codeGen -icompiler/coreSyn
> -icompiler/deSugar -icompiler/ghci -icompiler/hsSyn -icompiler/iface
> -icompiler/llvmGen -icompiler
> /main -icompiler/nativeGen -icompiler/parser -icompiler/prelude
> -icompiler/profiling -icompiler/rename -icompiler/simplCore
> -icompiler/simplStg -icompiler/specialise -icompiler/stgSyn
> -icompiler/stranal -icompile
> r/typecheck -icompiler/types -icompiler/utils -icompiler/hieFile
> -icompiler/stage2/build -Icompiler/stage2/build
> -icompiler/stage2/build/./autogen -Icompiler/stage2/build/./autogen
> -Icompiler/. -Icompiler/parser
> -Icompiler/utils -Icompiler/../rts/dist/build -Icompiler/stage2
> -Icompiler/stage2/build/. -Icompiler/stage2/build/parser
> -Icompiler/stage2/build/utils
> -Icompiler/stage2/build/../rts/dist/build -Icompiler/stage2/b
> uild/stage2 -I/usr/pkg/include -optP-DGHCI -optP-DINTEGER_GMP
> -optP-include -optPcompiler/stage2/build/./autogen/cabal_macros.h
> -package-id array-0.5.4.0 -package-id base-4.13.0.0 -package-id
> binary-0.8.7.0 -pac
> kage-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-boot-8.8.1 -package-id
> ghc-boot-th-8.8.1 -package-
> id ghc-heap-8.8.1 -package-id ghci-8.8.1 -package-id hpc-0.6.0.3
> -package-id integer-gmp-1.0.2.0 -package-id process-1.6.5.1
> -package-id template-haskell-2.15.0.0 -package-id terminfo-0.4.1.4
> -package-id time-1.9
> .3 -package-id transformers-0.5.6.2 -package-id unix-2.7.2.2 -Wall
> -Wno-name-shadowing -Wnoncanonical-monad-instances
> -Wnoncanonical-monoid-instances -this-unit-id ghc -XHaskell2010
> -XNoImplicitPrelude -optc-DTHR
> EADED_RTS -DGHCI_TABLES_NEXT_TO_CODE -DSTAGE=2 -Rghc-timing -O2
> -haddock -Wcpp-undef -no-user-package-db -rtsopts
> -Wnoncanonical-monad-instances -outputdir compiler/stage2/build
> -dynamic-too -c compiler
> /nativeGen/BlockLayout.hs -o compiler/stage2/build/BlockLayout.o -dyno
> compiler/stage2/build/BlockLayout.dyn_o
> ld: /usr/pkgsrc/lang/ghc88/work/ghc-8.8.1/libraries/base/dist-install/build/libHSbase-4.13.0.0_p.a(iconv.p_o):
> in function `hs_iconv_open':
> iconv.c:(.text.hs_iconv_open+0x1): 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_p.a(iconv.p_o):
> in function `hs_iconv':
> iconv.c:(.text.hs_iconv+0x1): undefined reference to `libiconv'
> ld: /usr/pkgsrc/lang/ghc88/work/ghc-8.8.1/libraries/base/dist-install/build/libHSbase-4.13.0.0_p.a(iconv.p_o):
> in function `hs_iconv_close':
> iconv.c:(.text.hs_iconv_close+0x1): undefined reference to `libiconv_close'
> "inplace/bin/ghc-stage1" -hisuf hi -osuf o -hcsuf hc -static -H32m
> -O -Wall -Iincludes -Iincludes/dist
> -Iincludes/dist-derivedconstants/header
> -Iincludes/dist-ghcconstants/header -this-unit-id ghc-8.8.1 -hi
> de-all-packages -i -icompiler/backpack -icompiler/basicTypes
> -icompiler/cmm -icompiler/codeGen -icompiler/coreSyn
> -icompiler/deSugar -icompiler/ghci -icompiler/hsSyn -icompiler/iface
> -icompiler/llvmGen -icompiler
> /main -icompiler/nativeGen -icompiler/parser -icompiler/prelude
> -icompiler/profiling -icompiler/rename -icompiler/simplCore
> -icompiler/simplStg -icompiler/specialise -icompiler/stgSyn
> -icompiler/stranal -icompile
> r/typecheck -icompiler/types -icompiler/utils -icompiler/hieFile
> -icompiler/stage2/build -Icompiler/stage2/build
> -icompiler/stage2/build/./autogen -Icompiler/stage2/build/./autogen
> -Icompiler/. -Icompiler/parser
> -Icompiler/utils -Icompiler/../rts/dist/build -Icompiler/stage2
> -Icompiler/stage2/build/. -Icompiler/stage2/build/parser
> -Icompiler/stage2/build/utils
> -Icompiler/stage2/build/../rts/dist/build -Icompiler/stage2/b
> uild/stage2 -I/usr/pkg/include -optP-DGHCI -optP-DINTEGER_GMP
> -optP-include -optPcompiler/stage2/build/./autogen/cabal_macros.h
> -package-id array-0.5.4.0 -package-id base-4.13.0.0 -package-id
> binary-0.8.7.0 -pac
> kage-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-boot-8.8.1 -package-id
> ghc-boot-th-8.8.1 -package-
> id ghc-heap-8.8.1 -package-id ghci-8.8.1 -package-id hpc-0.6.0.3
> -package-id integer-gmp-1.0.2.0 -package-id process-1.6.5.1
> -package-id template-haskell-2.15.0.0 -package-id terminfo-0.4.1.4
> -package-id time-1.9
> .3 -package-id transformers-0.5.6.2 -package-id unix-2.7.2.2 -Wall
> -Wno-name-shadowing -Wnoncanonical-monad-instances
> -Wnoncanonical-monoid-instances -this-unit-id ghc -XHaskell2010
> -XNoImplicitPrelude -optc-DTHR
> EADED_RTS -DGHCI_TABLES_NEXT_TO_CODE -DSTAGE=2 -Rghc-timing -O2
> -haddock -Wcpp-undef -no-user-package-db -rtsopts
> -Wnoncanonical-monad-instances -outputdir compiler/stage2/build
> -dynamic-too -c compiler
> /nativeGen/RegAlloc/Graph/SpillCost.hs -o
> compiler/stage2/build/RegAlloc/Graph/SpillCost.o -dyno
> compiler/stage2/build/RegAlloc/Graph/SpillCost.dyn_o
> `gcc' failed in phase `Linker'. (Exit code: 1)
> gmake[1]: *** [utils/iserv/ghc.mk:104:
> utils/iserv/stage2_p/build/tmp/ghc-iserv-prof] Error 1
> gmake[1]: *** Waiting for unfinished jobs....
> .....
>
> Any pointers ?
>
>
>
> --
> ----
--
----
Home |
Main Index |
Thread Index |
Old Index