ghc won't build/run on Fedora Core 2 on AMD Opteron 64's
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.
Trac metadata
Trac field |
Value |
Version |
6.2.1 |
Type |
Bug |
TypeOfFailure |
OtherFailure |
Priority |
high |
Resolution |
ResolvedFixed |
Component |
Build System |
Test case |
|
Differential revisions |
|
BlockedBy |
|
Related |
|
Blocking |
|
CC |
|
Operating system |
|
Architecture |
|