logo       

RE: Compiling from CVS on Sparc/Solaris: msg#00039

lang.haskell.glasgow.bugs

Subject: RE: Compiling from CVS on Sparc/Solaris

On 18 October 2004 18:29, Ulf Norell wrote:

> I'm trying to compile ghc from the CVS (checked out today, Oct 18)
> on a Sparc machine running Solaris. These are the things I ran into
> (I won't attach a patch file since some (most?) of my proposed fixes
> are a bit dubious):

The native code generator has received an overhaul in CVS as part of the
back-end rewrite. Unfortunately we didn't have the time or hardware to
update the Sparc native code generator at the same time, so you're
running into a lot of bitrotted code.

I've now disabled the NCG on Sparc in CVS for the time being. If anyone
really has the time to tackle this, we'd really appreciate it.
Otherwise 6.4 is going to ship without a Sparc native code generator
(which means compiles will be slower, but apart from that everything
will still work).

> A less machine dependent problem is that the configure script seems
> to ignore the CPPFLAGS and LDFLAGS environment variables. In my mind,
> a reasonable thing
> would be to add these to SRC_CC_OPTS. My proposed fix is to change
> line 820 of configure.ac to
>
> SRC_CC_OPTS="-O $CPPFLAGS $LDFLAGS"

It's not quite that simple. Should these flags be passed to
compilations of .hc code by GHC itself? What about C compilations
performed by GHC? On the host or target platform or both? Since there
are complex issues here, we prefer not to pass these flags at all and
force the user to think about exactly what they mean.

Cheers,
Simon


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

News | FAQ | advertise