Does ghc 7.6.1 support gold ld?

Magicloud Magiclouds magicloud.magiclouds at gmail.com
Wed Oct 10 08:45:38 CEST 2012


Never mind. `make clean` helps. Though I have no idea why....

On Wed, Oct 10, 2012 at 1:40 PM, Magicloud Magiclouds
<magicloud.magiclouds at gmail.com> wrote:
> Hi,
>   Since gold ld (GNU gold (GNU Binutils for Debian 2.22) 1.11) somehow
> better than ld, so I am using it in my debian box.
>   Now I want to compile ghc 7.6.1 with it. And I have modified the
> configure script to skip checking --hash-size,
> --reduce-memory-overheads and if is gnu ld (all fixed to NO). And
> using normal build ghc 7.6.1.
>   I got following errors. What should I do?
>
> 2012/10/10 Wed 13:32:01 magicloud at ctu1-tes-02 ~/src/ghc-7.6.1
> 4617 $ make
> ===--- building phase 0
> make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds
> make[1]: Nothing to be done for `phase_0_builds'.
> ===--- building phase 1
> make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds
> make[1]: Nothing to be done for `phase_1_builds'.
> ===--- building final phase
> make -r --no-print-directory -f ghc.mk phase=final all
>   HC [stage 1] libraries/base/dist-install/build/GHC/Exception.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
>   HC [stage 1] libraries/base/dist-install/build/GHC/Err.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
>   HC [stage 1] libraries/base/dist-install/build/GHC/Char.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
>   HC [stage 1] libraries/base/dist-install/build/GHC/Enum.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
>   HC [stage 1] libraries/base/dist-install/build/GHC/Real.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
>   HC [stage 1] libraries/base/dist-install/build/Text/ParserCombinators/ReadP.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
>   HC [stage 1] libraries/base/dist-install/build/Text/Read/Lex.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
>   HC [stage 1] libraries/base/dist-install/build/GHC/ST.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
>   HC [stage 1] libraries/base/dist-install/build/GHC/Arr.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
>   HC [stage 1] libraries/base/dist-install/build/Data/Bits.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
>   HC [stage 1] libraries/base/dist-install/build/GHC/Float.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
>   HC [stage 1] libraries/base/dist-install/build/Text/ParserCombinators/ReadPrec.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
>   HC [stage 1] libraries/base/dist-install/build/GHC/Read.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
>   HC [stage 1] libraries/base/dist-install/build/Numeric.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
>   HC [stage 1] libraries/base/dist-install/build/GHC/Ptr.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
>   HC [stage 1] libraries/base/dist-install/build/GHC/STRef.o
> ghc-stage1: fd:5: hGetContents: invalid argument (invalid byte sequence)
> make[1]: *** [libraries/base/dist-install/build/GHC/STRef.o] Error 2
> make[1]: *** Deleting file `libraries/base/dist-install/build/GHC/STRef.o'
> make: *** [all] Error 2
> --
> 竹密岂妨流水过
> 山高哪阻野云飞
>
> And for G+, please use magiclouds#gmail.com.



-- 
竹密岂妨流水过
山高哪阻野云飞

And for G+, please use magiclouds#gmail.com.



More information about the Glasgow-haskell-users mailing list