[GHC] #470: build fails on Linux/sparc (genprimopcode: parse
error at)
GHC
trac at galois.com
Thu Dec 8 10:03:38 EST 2005
#470: build fails on Linux/sparc (genprimopcode: parse error at)
-------------------------+--------------------------------------------------
Reporter: arekm | Owner: nobody
Type: bug | Status: assigned
Priority: normal | Milestone:
Component: Compiler | Version: 6.4.1
Severity: normal | Resolution: None
Keywords: | Os: Linux
Architecture: sparc |
-------------------------+--------------------------------------------------
Changes (by simonmar):
* architecture: => sparc
* os: => Linux
Old description:
> {{{
> Build fails when building ghc 6.4.x (tested 6.4 and 6.4.1) on Linux/
> sparc and using ghc 6.4 binaries for bootstrap:
>
> mkdir stage1/ndpFlatten
> mkdir stage1/iface
> mkdir stage1/cmm
> mkdir stage1/ghci
> Creating main/Config.hs ...
> done.
> Creating stage1/ghc_boot_platform.h...
> Done.
> sparc-pld-linux-gcc -E -undef -traditional -P -I../includes -x c
> prelude/primops.txt.pp | \
> grep -v '^#pragma GCC' > prelude/primops.txt
> ../utils/genprimopcode/genprimopcode --data-decl < prelude/
> primops.txt > primop-data-decl.hs-incl
> genprimopcode: parse error at (line 579, column 1):
> unexpected "\t"
> expecting "primop", "section" or "thats_all_folks"
> make[2]: *** [primop-data-decl.hs-incl] Error 1
> make[2]: *** Deleting file `primop-data-decl.hs-incl'
> make[1]: *** [boot] Error 1
> make[1]: Leaving directory `/home/users/builder/rpm/BUILD/ghc-6.
> 4.1/ghc'
>
> The same problem doesn't exists when using ghc 6.2.x for
> bootstrapping (generated primops.txt is the same in both cases,
> tested via md5sum). Problem doesn't exists on other arch like x86,
> ppc, amd64, too.
> }}}
New description:
{{{
Build fails when building ghc 6.4.x (tested 6.4 and 6.4.1) on Linux/
sparc and using ghc 6.4 binaries for bootstrap:
mkdir stage1/ndpFlatten
mkdir stage1/iface
mkdir stage1/cmm
mkdir stage1/ghci
Creating main/Config.hs ...
done.
Creating stage1/ghc_boot_platform.h...
Done.
sparc-pld-linux-gcc -E -undef -traditional -P -I../includes -x c
prelude/primops.txt.pp | \
grep -v '^#pragma GCC' > prelude/primops.txt
../utils/genprimopcode/genprimopcode --data-decl < prelude/
primops.txt > primop-data-decl.hs-incl
genprimopcode: parse error at (line 579, column 1):
unexpected "\t"
expecting "primop", "section" or "thats_all_folks"
make[2]: *** [primop-data-decl.hs-incl] Error 1
make[2]: *** Deleting file `primop-data-decl.hs-incl'
make[1]: *** [boot] Error 1
make[1]: Leaving directory `/home/users/builder/rpm/BUILD/ghc-6.
4.1/ghc'
The same problem doesn't exists when using ghc 6.2.x for
bootstrapping (generated primops.txt is the same in both cases,
tested via md5sum). Problem doesn't exists on other arch like x86,
ppc, amd64, too.
}}}
--
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/470>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list