How to compile unregisterised build?

Karel Gardas karel.gardas at centrum.cz
Fri Dec 31 20:53:59 CET 2010


Hello,

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

ARMv7:
"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
/tmp/ghc29691_0/ghc29691_0.hc: In function
‘ghczmprim_GHCziGenerics_zdgtoUnit_entry’:

/tmp/ghc29691_0/ghc29691_0.hc:18: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

IA64:
"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
/tmp/ghc15668_0/ghc15668_0.hc: In function
‘__stginit_ghczmprim_GHCziGenerics’:

/tmp/ghc15668_0/ghc15668_0.hc:331:0:
      warning: function called through a non-compatible type

/tmp/ghc15668_0/ghc15668_0.hc:331:0:
      note: if this code is reached, the program will abort
ghc-stage1: could not execute:
/home/kgardas/src/unreg/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


Is that my own mistake or is it really ghc 6.12.3 unregisterised build 
that broken?

Thanks,
Karel
-- 
Karel Gardas                  kgardas at objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com



More information about the Glasgow-haskell-users mailing list