How to compile unregisterised build?

Simon Marlow marlowsd at gmail.com
Tue Jan 4 15:14:55 CET 2011


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