Opened 10 years ago

Closed 9 years ago

Last modified 44 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: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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...
/home/jbuhrt/ghc-6.2.1
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
/usr/lib/libgmp.so*
/usr/lib/libreadline.so.4*

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
HaskTags.hs
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:
/usr/lib/libgmp.so*
/usr/lib/libreadline.so.4*
Note the same trick allows ghc to output a help, but
bomb on any compiles.

Change History (4)

comment:1 Changed 10 years ago by simonmar

Logged In: YES 
user_id=48280

(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 9 years ago by juhp

Logged In: YES 
user_id=139853

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

A unregisterised build of ghc-6.2.2.x86_64 is available
from <http://haskell.org/fedora/>.

comment:3 Changed 9 years ago by simonmar

  • Status changed from assigned to closed
Logged In: YES 
user_id=48280

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 9 years ago by jeffbuhrt

Logged In: YES 
user_id=877056

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

Thanks.

-Jeff
Note: See TracTickets for help on using tickets.