Opened 13 years ago

Closed 13 years ago

Last modified 48 years ago

#238 closed bug (Fixed)

ghc won't build/run on Fedora Core 2 on AMD Opteron 64's

Reported by: jeffbuhrt Owned by: simonmar
Priority: high Milestone:
Component: Build System Version: 6.2.1
Keywords: Cc:
Operating System: Architecture:
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


6.2.1 and 5.04.3 will not build on Fedora Core 2 on a
AMD Opteron 64 machine.

1) Basic ghc build bombs
ghc-6.2.1]$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Canonicalised to: x86_64-unknown-linux
checking for path to top of build tree...
checking for ghc... no
checking for nhc... no
checking for nhc98... no
checking for hbc... no
configure: error: GHC is required unless bootstrapping
from .hc files.

2) Forcing ghc to run fails:
rpm -iv --nodeps ghc-6.2.1-1.i386.rpm
Copied from 32bit AMD FC2

darcs-0.9.22]$ ./configure
Setting config.command to 'sh ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ghc... ghc
configure: error: Compile failed.

3) tricks to bootstrap ghc
./configure --without-ghc
==fptools== make boot - --no-print-directory -r;
 in /home/jbuhrt/ghc-6.2.1/ghc/utils/hasktags
no -M -optdep-f -optdep.depend  -osuf o    -H16m -O
make[3]: no: Command not found
make[3]: *** [depend] Error 127

4) The fallback seems to be a darcs compiled on a i686
Fedora Core 2 box after bringing along:
Note the same trick allows ghc to output a help, but
bomb on any compiles.

Change History (4)

comment:1 Changed 13 years ago by simonmar

Logged In: YES 

(1) is expected: GHC requires an installed GHC in order to 
build.  If you don't have an installed GHC, then the docs 
describe how to bootstrap.

Installing from the RPM ought to work (I presume).  You said 
it "bombs" on a compile - what was the error exactly?

comment:2 Changed 13 years ago by juhp

Logged In: YES 

ghc.i386 works fine for me on Fedora Core x86_64.

A unregisterised build of ghc-6.2.2.x86_64 is available
from <>.

comment:3 Changed 13 years ago by simonmar

Status: assignedclosed
Logged In: YES 

Closing this bug.  We still don't have a registerised x86_64
port of ghc, but that won't be the case for very long
(hardware arriving soon! *rubs hands with glee*).

comment:4 Changed 13 years ago by jeffbuhrt

Logged In: YES 

Works fine. We are now running darcs 1.0.1 on Fedora Core 3
on the AMD64 machine.


Note: See TracTickets for help on using tickets.