#8820 closed bug (fixed)

7.8 RC1 unregisterised fails selfbootstrap on 64 bit Linux

Reported by: trommler Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.8.1-rc1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: #8819 Differential Revisions:

Description

Selfbootstrap of an unregisterised ghc fails on 64 bit PowerPC and AMD but not on 32 bit (PowerPC or Intel):

[10021s] "inplace/bin/ghc-stage1" -static  -H32m -O -optc-mminimal-toc -optc-fno-builtin -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -package-name rts -optc-DNOSMP -dcmm-lint      -i -irts -irts/dist/build -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen           -O2    -c rts/StgStartup.cmm -o rts/dist/build/StgStartup.o
[10021s] ghc-stage1: panic! (the 'impossible' happened)
[10021s]   (GHC version 7.8.0.20140220 for powerpc64-unknown-linux):
[10021s] 	no ppt
[10021s]     ct ct: _cj::P64 = P64[(old + 16)];
[10021s]            _ck::P64 = R1;
[10021s]            goto cl;
[10021s] 
[10021s] Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

I disabled gcc's built in functions through -fno-builtin which got rid of a load of warnings (incompatible types for the built-ins) but still fails as shown above.

Change History (3)

comment:1 follow-up: Changed 12 months ago by thoughtpolice

Isn't this the same as #8748? If so, it's already fixed in RC2.

comment:2 in reply to: ↑ 1 Changed 12 months ago by trommler

Replying to thoughtpolice:

Isn't this the same as #8748? If so, it's already fixed in RC2.

No it isn't.
I'm at commit 8a2989c5df76712d5cd52ff918d4e6c1a741a90b and I managed to bootstrap RC2 up to that commit.

This ticket is about self-bootstrapping using RC2 which I did for openSUSE's ghc so far. IIRC a selfbootstrapped ghc is required because of ABI changes between releases.

comment:3 Changed 12 months ago by trommler

  • Resolution set to fixed
  • Status changed from new to closed

This seems to be fixed in the official RC2. Selfbootstrap, however, fails now at a later step. I will close this ticket and file a new ticket against RC2.

Note: See TracTickets for help on using tickets.