id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
5735	Build failure on s390(x): Don't know if ArchUnknown is 32bit	nomeata	simonmar	"Hi,

the 7.4.1 release candidate failed to build on s390(x); previous versions built fine. It would be great if s390(x) support would not be dropped, if it can be helped:

{{{
""inplace/bin/ghc-stage1""   -H32m -O -lffi -optl-pthread    -package-name base-4.5.0.0 -hide-all-packages -i -ilibraries/base/. -ilibraries/base/dist-install/build -ilibraries/base/dist-install/build/autogen -Ilibraries/base/dist-install/build -Ilibraries/base/dist-install/build/autogen -Ilibraries/base/include   -optP-DOPTIMISE_INTEGER_GCD_LCM -optP-include -optPlibraries/base/dist-install/build/autogen/cabal_macros.h -package ghc-prim-0.2.0.0 -package integer-gmp-0.4.0.0 -package rts-1.0  -package-name base -XHaskell98 -XCPP -O2  -no-user-package-conf -rtsopts     -odir libraries/base/dist-install/build -hidir libraries/base/dist-install/build -stubdir libraries/base/dist-install/build -hisuf hi -osuf  o -hcsuf hc -c libraries/base/./GHC/Err.lhs-boot -o libraries/base/dist-install/build/GHC/Err.o-boot
ghc-stage1: panic! (the 'impossible' happened)
  (GHC version 7.4.0.20111219 for s390-ibm-linux):
	Don't know if ArchUnknown is 32bit

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

ghc-stage1: panic! (the 'impossible' happened)
  (GHC version 7.4.0.20111219 for s390-ibm-linux):
	Don't know if ArchUnknown is 32bit

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

make[2]: *** [libraries/ghc-prim/dist-install/build/GHC/Types.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [libraries/ghc-prim/dist-install/build/GHC/Magic.o] Error 1
ghc-stage1: panic! (the 'impossible' happened)
  (GHC version 7.4.0.20111219 for s390-ibm-linux):
	Don't know if ArchUnknown is 32bit

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

make[2]: *** [libraries/base/dist-install/build/GHC/Err.o-boot] Error 1
ghc-stage1: panic! (the 'impossible' happened)
  (GHC version 7.4.0.20111219 for s390-ibm-linux):
	Don't know if ArchUnknown is 32bit

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

make[2]: *** [libraries/integer-gmp/dist-install/build/GHC/Integer/GMP/Prim.o] Error 1
}}}
https://buildd.debian.org/status/fetch.php?pkg=ghc&arch=s390&ver=7.4.0.20111219-2&stamp=1324640606 and https://buildd.debian.org/status/fetch.php?pkg=ghc&arch=s390x&ver=7.4.0.20111219-2&stamp=1324642276

The s390 port is 32 bit (or is it 31? anyways, it has worked before), while the s390x port ist 64 bit.

Thanks, Joachim on behalf of the Debian Haskell Team "	bug	closed	highest	7.4.1	Compiler	7.3	fixed			Linux	Other	Building GHC failed	Unknown				
