[ ghc-Bugs-686622 ] Shell syntax error when building from source
SourceForge.net
noreply at sourceforge.net
Mon Feb 17 06:36:29 EST 2003
Bugs item #686622, was opened at 2003-02-14 16:35
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=686622&group_id=8032
Category: Build System
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: John A. Murdie (jamurdie)
Assigned to: Nobody/Anonymous (nobody)
Summary: Shell syntax error when building from source
Initial Comment:
When attempting to build 5.04.2 from source on a
Slackware 8.1
Linux system and the following commands, I see:
$ rpm2tgz ghc-5.04.2-1.src.rpm
$ cd ghc-5.04.2
$ ./configure --prefix=/usr/local/ghc-5.04.2
--enable-hopengl --with-x --with-Mesa
$ make
...
Creating main/Config.hs ... done.
rm -f prelude/primops.txt
gcc -E -I../includes -traditional -x c
prelude/primops.txt.pp | /usr/bin/sed -e '/^#/d' >
prelude/primops.txt
../utils/genprimopcode/genprimopcode --data-decl
< prelude/primops.txt > primop-data-decl.hs-incl
/bin/sh: ../utils/genprimopcode/genprimopcode: No such
file or directory
make[2]: *** [primop-data-decl.hs-incl] Error 127
make[1]: *** [boot] Error 1
make[1]: Leaving directory
`/usr/local/src/ghc/ghc-5.04.2/ghc'
make: *** [all] Error 1
$
I think I've followed the `Building from source'
chapter of the
`Building' document carefully.
I can supply more detail if you wish.
John A. Murdie
Department of Computer Science
University of York
UK
----------------------------------------------------------------------
>Comment By: Simon Marlow (simonmar)
Date: 2003-02-17 11:36
Message:
Logged In: YES
user_id=48280
You need to have GHC installed in order to build GHC from
source. If you don't have GHC installed, then see the section
on "Porting GHC" in the building guide.
I thought the documentation mentioned this, but now that I
look it doesn't seem to, and the error message is far from
enlightening. I'll look into fixing these.
----------------------------------------------------------------------
Comment By: John A. Murdie (jamurdie)
Date: 2003-02-14 17:37
Message:
Logged In: YES
user_id=709964
My guess is that this problem occurred because I haven't
built `Happy'.
That being so, why ddn't the configure script stop with an
error message
to this effect? Also, there's no mention of the need for
`Happy' in chapter
7 `Building from source' that I can see, only in chapter 6
of the documentation.
Am I right?
John A. Murdie
----------------------------------------------------------------------
Comment By: Simon Marlow (simonmar)
Date: 2003-02-14 17:12
Message:
Logged In: YES
user_id=48280
Please attach the complete log of the build, including the
configure output.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=686622&group_id=8032
More information about the Glasgow-haskell-bugs
mailing list