trouble building 6.7 on ubuntu

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

trouble building 6.7 on ubuntu

Thomas Hartman

I have gotten ghc 6.7 to compile, but not with extra libs.  I'm on linux x86, ubuntu.

Can someone suggest a download date that worked for them, or how to fix one or more of the problems described below?

When I build from source (this is for august 2, unknown linux, as conal spoke well of it :) but I have tried with several other dates in august with the same result)

I get

Linux linuxpt 2.6.15-23-386 #1 PREEMPT Tue May 23 13:49:40 UTC 2006 i686 GNU/Linux

The programs included with the Ubuntu system are free software;
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Which we'll further canonicalise into: i386-unknown-linux
checking for path to top of build tree... ./configure: line 1433: cd: utils/pwd:
 No such file or directory
./configure: line 1438: -v0: command not found
./configure: line 1441: utils/pwd/pwd: No such file or directory
configure: error: cannot determine current directory

when I try unzip src and extralibs I get

(aug 15... tail of a large out file after >1.5 hours of configure; make > out.txt)

......
make[1]: Leaving directory `/home/hartthoma/installs/ghc6.7/aug15/ghc-6.7.20070815/libraries'
make -C libraries all
make[1]: Entering directory `/home/hartthoma/installs/ghc6.7/aug15/ghc-6.7.20070815/libraries'
rm -f -f stamp/configure.library.*.base base/unbuildable
( cd base && setup/Setup configure \
                    --enable-library-profiling --enable-split-objs \
                   --prefix='$topdir' \
                   --datadir='$prefix/share/ghc' \
                   --datasubdir='.' \
                   --libsubdir='$compiler/lib/$pkgid' \
                   --with-compiler=../../compiler/stage1/ghc-inplace\
                   --with-hc-pkg=../../utils/ghc-pkg/ghc-pkg-inplace\
                   --with-hsc2hs=../../utils/hsc2hs/hsc2hs-inplace \
                   --with-ld=/usr/bin/ld \
                   --haddock-args="--use-contents=../index.html \
                                   --use-index=../doc-index.html" \
                      \
                   --configure-option=--with-cc=gcc ) \
              && touch stamp/configure.library.build-profiling-splitting.base || touch base/unbuildable
Setup: Warning: Unknown fields: nhc98-options (line 173)
Fields allowed in this section:
    buildable, cc-options, ld-options, frameworks, c-sources,
    extensions, extra-libraries, extra-lib-dirs, includes,
    install-includes, include-dirs, hs-source-dirs, other-modules,
    ghc-prof-options, ghc-options, hugs-options, nhc-options,
    jhc-options, exposed-modules
Setup: Warning: A package using section syntax should require
"Cabal-Version: >= 1.2" or equivalent.
HsColour 1.6
configure: Reading installed packages...
Configuring base-2.1...
configure: Flags chosen: isghc=True
configure: Dependency rts-any: using rts-1.0
Setup: executing external program failed (exit 1) : /usr/local/bin/HsColour -version
rm -f base/GNUmakefile
cp Makefile.local base
if ifBuildable/ifBuildable base; then \
           cd base && setup/Setup makefile -f GNUmakefile; \
        fi
Setup: error reading dist/setup-config; run "setup configure" command?

make[1]: *** [base/GNUmakefile] Error 1
make[1]: Leaving directory `/home/hartthoma/installs/ghc6.7/aug15/ghc-6.7.20070815/libraries'
make: *** [stage1] Error 2

very weird error because when I execute /usr/local/bin/HsColour -version it doesn't fail but outputs 1.6.

Can somebody suggest a download date known to compile (with extralibs) for ubuntu? Or suggest a fix?

By the way I have also tried

darcs get http://hackage.haskell.org/trac/ghc

but this dies about halfway through (in the patch 10000s ) with libcurl error 18 or libcurl error 404 depending on the phase of the moon.

I'm currently trying a build from darcs checkout with get --partial. If this is the preferred way of doing a checkout due to "crapping out halfway" issues maybe it should be said in the readme. (to be honest I forget what the difference between a partial darcs get and a complete get is.)

Much obliged,

thomas.
 

"Conal Elliott" <[hidden email]>
Sent by: [hidden email]

08/15/2007 06:38 PM

To
[hidden email]
cc
Subject
Fwd: how to get packages for HEAD snapshot ?





oops -- meant to cc cvs-ghc

btw, 20070802 does run and does have libs included.  

---------- Forwarded message ----------
From: Conal Elliott <
conal@...>
Date: Aug 15, 2007 2:56 PM
Subject: Re: how to get packages for HEAD snapshot ?
To: Stefan O'Rear <
stefanor@...>

Thank Stefan,

The latest mingw32 snapshot I see is 20070811.  I installed it also, and when I run ghc, it just crashes (WinXP).  Happens when I run it inside of emacs and also in a cygwin bash window.

Is that a known problem?

- Conal

On 8/15/07, Stefan O'Rear < stefanor@...> wrote:
On Wed, Aug 15, 2007 at 02:20:53PM -0700, Conal Elliott wrote:
> I installed ghc-6.7.20070810-i386-unknown-mingw32.exe.  Though it runs, I
> don't know how to get other packages installed, including Cabal.  "ghc-pkg
> list" tells me that I have only {ghc-6.7.20070810}, rts-1.0.
>
> Any suggestions?

Upgrade GHC; Cabal should be installed but wasn't due to a bug in that
snapshot.

Stefan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGw3AnFBz7OZ2P+dIRArOwAKCMEEzbB/JwEYnA21wZb4gf1rCoDQCeL1DG
u5ljAbmfp5j0sd5X51nf3wk=
=hewc
-----END PGP SIGNATURE-----

_______________________________________________
Cvs-ghc mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/cvs-ghc


---

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: trouble building 6.7 on ubuntu

Stefan O'Rear
On Thu, Aug 16, 2007 at 01:01:12PM -0400, Thomas Hartman wrote:
> I repeated the install attempt described below using darcs head, including
> the extra libs.
>
> I got the exact same error as before.
>
> Setup: Warning: Unknown fields: nhc98-options (line 173)  .... and then a
> cryptic error involving HsColour

I'm running a full get from 20070712 without problems.  (admittedly not
Ubuntu)

Stefan

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: trouble building 6.7 on ubuntu

Esa Ilari Vuokko
In reply to this post by Thomas Hartman


On 8/16/07, Thomas Hartman <[hidden email]> wrote:

I repeated the install attempt described below using darcs head, including the extra libs.

I got the exact same error as before.

Setup: Warning: Unknown fields: nhc98-options (line 173)  .... and then a cryptic error involving HsColour


I think you run into Cabal bug - you need to remove (or upgrade?) HsColour in your path, if that's the case.

Best regards,
Esa


_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: Re: trouble building 6.7 on ubuntu

Duncan Coutts
On Thu, 2007-08-16 at 22:22 +0300, Esa Ilari Vuokko wrote:

> On 8/16/07, Thomas Hartman <[hidden email]> wrote:
>         Setup: Warning: Unknown fields: nhc98-options (line 173)  ....
>         and then a cryptic error involving HsColour

> I think you run into Cabal bug - you need to remove (or upgrade?)
> HsColour in your path, if that's the case.

Thanks to Esa for tracking down this bug. Now fixed in Cabal.
(or it will be shortly in the next batch of patches)

Duncan

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: trouble building 6.7 on ubuntu

Ian Lynagh
In reply to this post by Thomas Hartman
On Thu, Aug 16, 2007 at 09:39:54AM -0400, Thomas Hartman wrote:

>
> The programs included with the Ubuntu system are free software;
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> Which we'll further canonicalise into: i386-unknown-linux
> checking for path to top of build tree... ./configure: line 1433: cd:
> utils/pwd:
>  No such file or directory
> ./configure: line 1438: -v0: command not found
> ./configure: line 1441: utils/pwd/pwd: No such file or directory
> configure: error: cannot determine current directory

What commands are you running? Is the above the complete output?

> By the way I have also tried
>
> darcs get http://hackage.haskell.org/trac/ghc
>
> but this dies about halfway through (in the patch 10000s ) with libcurl
> error 18 or libcurl error 404 depending on the phase of the moon.

You're probably best off downloading and untarring:

http://darcs.haskell.org/ghc-HEAD-2007-08-14-ghc-corelibs.tar.bz2

and then "./darcs-all pull -a" to get up-to-date. These are --complete
repos.

Unfortunately we don't have a tarball that includes the extralibs at the
moment, so you'll still need to "./darcs-all --extralibs get" them
(either partially or completely).

> I'm currently trying a build from darcs checkout with get --partial. If
> this is the preferred way of doing a checkout

If you don't want to hack on it then --partial is prefered as it's
quicker and takes up less disk space.

> due to "crapping out halfway" issues

I don't know what's going on there.


Thanks
Ian

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe