Does ghc 7.6.1 support gold ld?

Magicloud Magiclouds magicloud.magiclouds at gmail.com
Thu Oct 11 03:33:48 CEST 2012


The exact message is:
$ sudo make install_packages
...
CROSS_COMPILE="" "inplace/bin/ghc-cabal" install
"/usr/local/lib/ghc-7.6.1/ghc" "/usr/local/lib/ghc-7.6.1/ghc-pkg"
"strip" "/usr/local/lib/ghc-7.6.1" libraries/base dist-install ''
'/usr/local' '/usr/local/lib/ghc-7.6.1'
'/usr/local/share/doc/ghc/html/libraries' NO
Installing library in /usr/local/lib/ghc-7.6.1/base-4.6.0.0
ghc-cabal: dist-install/build/HSbase-4.6.0.0.o: does not exist
make[1]: *** [install_packages] Error 1
make: *** [install_packages] Error 2

On Thu, Oct 11, 2012 at 9:21 AM, Magicloud Magiclouds
<magicloud.magiclouds at gmail.com> wrote:
> Well, it does not seem so.
> Although around 7.0, there were patches to make gold ld work. But
> until now, the configure script is still missing something. For
> example, it checks that gold ld is GNU ld. Thus it uses ldscript to
> input .o files. But in fact, at least the version I am using, gold ld
> does not take relative paths from ldscript.
> After a few modifications to the root configure script (not others for
> libraries). I got it make-able. Now I am stuck at install step. The
> error is no HsBase.o file....
>
> On Wed, Oct 10, 2012 at 7:04 PM, Achim Krause <info at achim-krause.de> wrote:
>> Well, the build system is intelligent enough to know what to rebuild after
>> files got changed, and what to keep, but it does not know what files depend
>> on what configurational changes. This gives you errors, because make still
>> tries to use the previously built object files. Usually, many changes only
>> go well with a clean build.
>>
>>
>> Von Samsung Mobile gesendet
>>
>> Magicloud Magiclouds <magicloud.magiclouds at gmail.com> hat geschrieben:
>> 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.
>>
>> _______________________________________________
>> Glasgow-haskell-users mailing list
>> Glasgow-haskell-users at haskell.org
>> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>
>
>
> --
> 竹密岂妨流水过
> 山高哪阻野云飞
>
> 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