Magicloud Magiclouds | 10 Oct 07:40 2012
Picon

Does ghc 7.6.1 support gold ld?

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
(Continue reading)

Magicloud Magiclouds | 10 Oct 08:45 2012
Picon

Re: Does ghc 7.6.1 support gold ld?

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
(Continue reading)


Gmane