logo       

[ ghc-Bugs-992106 ] ghc won't build/run on Fedora Core 2 on AMD Opteron 64': msg#00056

lang.haskell.glasgow.bugs

Subject: [ ghc-Bugs-992106 ] ghc won't build/run on Fedora Core 2 on AMD Opteron 64's

Bugs item #992106, was opened at 2004-07-16 03:42
Message generated for change (Settings changed) made by simonmar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=992106&group_id=8032

Category: Build System
Group: 6.2.1
Status: Open
Resolution: None
>Priority: 7
Submitted By: Jeff Buhrt (jeffbuhrt)
Assigned to: Nobody/Anonymous (nobody)
Summary: ghc won't build/run on Fedora Core 2 on AMD Opteron 64's

Initial Comment:
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.

----------------------------------------------------------------------

Comment By: Simon Marlow (simonmar)
Date: 2004-07-16 10:10

Message:
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?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=992106&group_id=8032


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise