How to compile unregisterised build?

Karel Gardas karel.gardas at centrum.cz
Tue Jan 4 16:17:00 CET 2011


Hello Simon,

scratch that. I've been able to do unregistered build on IA64 and also 
on Mips64 (ARM still building). The issue I've had was with whitespace 
after the YES/NO in the mk/build.mk which was caused by the copy&paste 
directly from Wiki. I'm thinking about adding clear note there about 
this issue to warn potential confused user like me in the future.

Thanks,
Karel

On 01/ 4/11 03:14 PM, Simon Marlow wrote:
> On 31/12/2010 19:53, Karel Gardas wrote:
>
>> before going to fill some bugreports about broken unregisterised builds
>> I'd like to be sure I understand the topic and know well how to
>> configure it.
>>
>> So, I do have three platforms with Linux OS:
>> - mips64: gcc 4.3.2 + ghc 6.8.2 (debian)
>> - ARMv7: gcc 4.4.1 + ghc 6.10.4 (Ubuntu)
>> - IA64: gcc 4.3.2 + ghc 6.8.2 (debian)
>>
>> on all three, I attempted to build 6.12.3 unregisterised by:
>>
>> ./boot
>> ./configure
>> cat > mk/build.mk
>> GhcUnregisterised=YES
>> GhcWithNativeCodeGen=NO
>> SplitObjs=NO
>> ^D
>> make
>>
>> On all three platforms this failed with:
>>
>> mips64:
>> "inplace/bin/ghc-stage1" -H32m -O -package-name ghc-prim-0.2.0.0
>> -hide-all-packages -i -ilibraries/ghc-prim/.
>> -ilibraries/ghc-prim/dist-install/build
>> -ilibraries/ghc-prim/dist-install/build/autogen
>> -Ilibraries/ghc-prim/dist-install/build
>> -Ilibraries/ghc-prim/dist-install/build/autogen -Ilibraries/ghc-prim/.
>> -optP-include
>> -optPlibraries/ghc-prim/dist-install/build/autogen/cabal_macros.h
>> -package rts-1.0 -package-name ghc-prim -XCPP -XMagicHash
>> -XForeignFunctionInterface -XUnliftedFFITypes -XUnboxedTuples
>> -XEmptyDataDecls -XNoImplicitPrelude -O2 -XGenerics
>> -fno-warn-deprecated-flags -odir
>> libraries/ghc-prim/dist-install/build -hidir
>> libraries/ghc-prim/dist-install/build -stubdir
>> libraries/ghc-prim/dist-install/build -hisuf hi -osuf o -hcsuf hc -c
>> libraries/ghc-prim/./GHC/Generics.hs -o
>> libraries/ghc-prim/dist-install/build/GHC/Generics.o
>> In file included from /home/kgardas/src/ghc-6.12.3/includes/Stg.h:230,
>>
>> from /tmp/ghc14979_0/ghc14979_0.hc:3:0:
>> /tmp/ghc14979_0/ghc14979_0.hc: In function
>> ‘ghczmprim_GHCziGenerics_zdgtoUnit_entry’:
>>
>> /tmp/ghc14979_0/ghc14979_0.hc:17:0:
>> warning: implicit declaration of function ‘JMP_’
>> ghc-stage1: could not execute:
>> /home/kgardas/src/ghc-6.12.3/inplace/lib/ghc-asm
>> make[1]: *** [libraries/ghc-prim/dist-install/build/GHC/Generics.o]
>> Error 1
>> make: *** [all] Error 2
>
> That ought to work, I think. We had an unregisterised nightly builder
> until fairly recently - that's something we should resurrect. In the
> meantime I'll try an unregisterised build manually and see if I can
> reproduce the problem.
>
> Cheers,
> Simon
>
>




More information about the Glasgow-haskell-users mailing list