Opened 8 years ago

Closed 8 years ago

#5735 closed bug (fixed)

Build failure on s390(x): Don't know if ArchUnknown is 32bit

Reported by: nomeata Owned by: simonmar
Priority: highest Milestone: 7.4.1
Component: Compiler Version: 7.3
Keywords: Cc:
Operating System: Linux Architecture: Other
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

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

Attachments (1)

0001-Note-bitness-of-S390-S390x.patch (1.6 KB) - added by nomeata 8 years ago.
The change as a git patch

Download all attachments as: .zip

Change History (8)

comment:2 Changed 8 years ago by nomeata

That should be #5732, sorry.

comment:3 Changed 8 years ago by igloo

difficulty: Unknown
Milestone: 7.4.1
Priority: normalhighest

Changed 8 years ago by nomeata

The change as a git patch

comment:4 Changed 8 years ago by simonmar

Owner: set to simonmar

comment:5 Changed 8 years ago by marlowsd@…

commit 8387f0198e7a925d9d0754b2befb021ffa1307d7

Author: Simon Marlow <marlowsd@gmail.com>
Date:   Wed Jan 4 11:37:47 2012 +0000

    Store the word size as determined by configure, in the settings file (#5735)
    
    Now target32bit works for all targets without any manual intervention,
    as it should do.  #5735 was a portability regression.

 compiler/main/SysTools.lhs |    2 ++
 compiler/utils/Platform.hs |   11 ++---------
 configure.ac               |    4 ++++
 distrib/configure.ac.in    |    5 +++++
 settings.in                |    1 +
 5 files changed, 14 insertions(+), 9 deletions(-)

comment:6 Changed 8 years ago by simonmar

Status: newmerge

comment:7 Changed 8 years ago by igloo

Resolution: fixed
Status: mergeclosed
Note: See TracTickets for help on using tickets.