[prev in list] [next in list] [prev in thread] [next in thread]
List: haskell-jhc
Subject: [jhc] Compiling JHC on OS X
From: Chris Eidhof <chris () eidhof ! nl>
Date: 2009-11-16 11:01:50
Message-ID: DEB5BB3C-A8AA-40E4-B9D5-F7F5A5D0595B () eidhof ! nl
[Download RAW message or body]
Hey all,
I'm trying to compile JHC on OS X. However, when I do a 'make jhc', I
got the following error:
> make jhc
> perl ./utils/opt_sets.prl -n src/FlagDump.flags src/FlagDump.flags
> > src/FlagDump.hs
> Use of uninitialized value in hash element at ./utils/opt_sets.prl
> line 44, <> line 84.
> perl ./utils/opt_sets.prl -n src/FlagOpts.flags src/FlagOpts.flags
> > src/FlagOpts.hs
> Use of uninitialized value in hash element at ./utils/opt_sets.prl
> line 44, <> line 45.
> Use of uninitialized value in hash element at ./utils/opt_sets.prl
> line 44, <> line 45.
> happy -a -g -c src/FrontEnd/HsParser.y -o src/FrontEnd/HsParser.hs
> unused rules: 2
> shift/reduce conflicts: 73
> reduce/reduce conflicts: 23
> sed -e 's/^{-# OPTIONS[A-Z_]*/{-# OPTIONS_GHC -w /' -i src/FrontEnd/
> HsParser.hs
> sed: -i may not be used with stdin
> make: *** [src/FrontEnd/HsParser.hs] Error 1
> make: *** Deleting file `src/FrontEnd/HsParser.hs'
I fixed that by adding the extension to sed -i (I've attached a patch
for that, my sendmail is broken).
For future reference: I had some problems installing readline (using
fink's readline). There's a thread [1] on haskell-café that solves that.
After changing the line and installing readline, it started compiling.
After a while, the compiler stopped with:
> src/E/Subst.hs:143:22:
> No instance for (T.Traversable (Lit TVr))
This was because I had an old version of Drift installed. I didn't see
an error, it should probably fail as early as possible and notify me
that I had an old version that didn't support deriving Traversable.
Finally, JHC was compiled! When compiling the libraries, however, it
failed again:
> lib/containers/Data/Sequence.hs:312:16: Parse error
> make[1]: *** [containers-0.2.0.hl] Error 1
Is somebody already working on that? If not, I'd be happy to dive in
and fix it.
(BTW, the culprit is the following line:)
> {-# SPECIALIZE INLINE deep :: Digit (Elem a) -> FingerTree (Node
> (Elem a)) -> Digit (Elem a) -> FingerTree (Elem a) #-}
Thanks,
-chris
[1]: http://www.haskell.org/pipermail/libraries/2009-May/011597.html
["mac-build.darcs" (mac-build.darcs)]
Mon Nov 16 11:34:41 CET 2009 chris@eidhof.nl
* Fix build on OS X
New patches:
[Fix build on OS X
chris@eidhof.nl**20091116103441
Ignore-this: 48712f8600b8474e9f0e3fa4495da126
] hunk ./Makefile.am 169
src/FrontEnd/HsParser.hs: src/FrontEnd/HsParser.y
happy -a -g -c $< -o $@
- sed -e 's/^{-# OPTIONS[A-Z_]*/{-# OPTIONS_GHC -w /' -i $@
+ sed -e 's/^{-# OPTIONS[A-Z_]*/{-# OPTIONS_GHC -w /' -i hs $@
.SECONDARY: _darcs/hashed_inventory src/data/shortchange.txt
Context:
[fix rewriting of OPTIONS pragma generated by new versions of happy
John Meacham <john@repetae.net>**20091114225422
Ignore-this: 595dbaa521f08378fe406525a0b66623
]
[FrontEnd.Rename: add qualification to unqualified method names in instance \
declarations jhc@henning-thielemann.de**20091114175751
Ignore-this: 26d46fa52c4640cd2fe8d529cdb26a07
]
[HsParser, Lexer: ignore optimizer phase information for INLINE pragmas as available \
in GHC jhc@henning-thielemann.de**20091114214829
Ignore-this: 2a7ac0d6484724bd19be7148e377163a
ToDo: emit warning that phase information is ignored
]
[include errno.h in generated files to get around bug
John Meacham <john@repetae.net>**20091105041651
Ignore-this: d9fe744060be5229c5c4abb475bd5f7
]
[bug update
John Meacham <john@repetae.net>**20091105041451
Ignore-this: ee99b48918175328ffb16fe37f7c736f
]
[use appropriate mingw gcc in targets.ini
David Roundy <roundyd@physics.oregonstate.edu>**20090923113532
Ignore-this: b57826eb6a9bc173787e757978da84aa6bca48a5
]
[add System.IO.Pipe.
David Roundy <roundyd@physics.oregonstate.edu>**20090920222021
Ignore-this: 41e186c1bb31ebcfea1dbaade4198b52f7cfefc6
]
[allow selecting libraries by hash or name-version
John Meacham <john@repetae.net>**20090916092017
Ignore-this: 791898f2515ce09fdf14bcfa55374d0f
]
[removed use of RecordWildCards, which is buggy in ghc 6.8.
David Roundy <droundy@darcs.net>**20090909104653
Ignore-this: a25acfe97b9d49f3d671e7de713398c42d480084
]
[change description of -c command.
David Roundy <roundyd@physics.oregonstate.edu>**20090909214755
Ignore-this: 9dfd9feacaae12d3a9347795c9218a3edccdca97
]
[add warnings not to edit auto-generated Prim.hs file.
David Roundy <roundyd@physics.oregonstate.edu>**20090905163828
Ignore-this: 8ea3a7ae45154a7065dd3c6cca027d21b0fd6d14
]
[expand --list-libraries output with lots of new info
John Meacham <john@repetae.net>**20090908001803
Ignore-this: d2eb4972842f4d2537723145b8f4aa46
]
[add Util.YAML
John Meacham <john@repetae.net>**20090908000054
Ignore-this: 710d1cc5bb1eb25a071a1303a0a295ae
]
[perform dependency analysis on type synonyms before expansion, detect recursive \
synonyms. John Meacham <john@repetae.net>**20090907110339
Ignore-this: dbdc78dd0f53b0d4d88f5bde202859ce
]
[add Ord instances for 3 and 4-tuples
John Meacham <john@repetae.net>**20090906093322
Ignore-this: b5501f8a6af7447f5270c9929099c4a0
]
[fix ord instance for lists
John Meacham <john@repetae.net>**20090906015622
Ignore-this: 7474720527a381364a95f637fdde4be7
]
[have the ho cache names depend on the compiler version, to avoid cache poisoning by \
fixed bugs John Meacham <john@repetae.net>**20090906001329
Ignore-this: 92b4b18987980ccbcad1acc382049db1
]
[add 'constraints' test from nobench to regression tests
John Meacham <john@repetae.net>**20090905231129
Ignore-this: 968420a6871dedfe09835d329dea7b4d
]
[allow deadcode and node analysis to see constant partial applications that are \
arguments to a store John Meacham <john@repetae.net>**20090905224714
Ignore-this: f046a8c860f832b6185d8868fa474c0
]
[bump version number
John Meacham <john@repetae.net>**20090905112620
Ignore-this: 94f12cb57766a0ad6087282b05ddcf3e
]
[enable storage analysis to enable allocation on the stack
John Meacham <john@repetae.net>**20090905112613
Ignore-this: 698cba1f286da15511ab00db0f641348
]
[clean up fixIO
David Roundy <droundy@darcs.net>**20090905130434
Ignore-this: a54d45a08fed774311a62f397aa277d763c9b55d
]
[allow C generator to handle unknown values properly
John Meacham <john@repetae.net>**20090905070241
Ignore-this: 45b178166521d1415a83296a417637ad
]
[fix desugaring inside of list comprehensions
John Meacham <john@repetae.net>**20090905063231
Ignore-this: 45bfed7194caf9b2d121a8c6ee5eef3d
]
[use strict writer monad as suggested by Taral
John Meacham <john@repetae.net>**20090905061722
Ignore-this: 4ad850e2a1eaa59b18100781892a002
]
[fix strict newtypes bug
John Meacham <john@repetae.net>**20090905061645
Ignore-this: 5def4f36458cb6dbec327fe3bdcb3979
]
[clean ups
John Meacham <john@repetae.net>**20090905042239
Ignore-this: d586cddf774cd044103288aa1554b6cd
]
[fix instance of U2U primitive not being processed properly
John Meacham <john@repetae.net>**20090905042149
Ignore-this: 24858b196abd2eb0d1362edf16c85894
]
[add regression test for strict newtype bug
John Meacham <john@repetae.net>**20090905042131
Ignore-this: d1d47e60b8e131aec734ec755026fe7d
]
[start adding storage analysis support
John Meacham <john@repetae.net>**20090905015718
Ignore-this: 2a1f36882b7824cbb4f40403afd46ec1
]
[bug updates
John Meacham <john@repetae.net>**20090905010650
Ignore-this: fda7e81bf1e7d0323adfd175babb4f02
]
[add mockbuild.sh to repo
John Meacham <john@repetae.net>**20090902002058
Ignore-this: 3d00049b26da191f4950b973c8e36df
]
[ add a lot of new regression tests, many bugs that the lhc developers found, make \
regress.prl check the 'mustfail' status of tests John Meacham \
<john@repetae.net>**20090902002017 Ignore-this: 455861464ee8627b72f3dc343d7447e9
]
[include $PREFIX/{share,lib}/{jhc,jhc-$SHORTVERSION} in search path.
David Roundy <roundyd@physics.oregonstate.edu>**20090902162853
Ignore-this: 640fb797a3d27327bd6cb9f4333b5793cf974529
I find it a little annoying that the default search path doesn't
include the location where I installed jhc, except the
../share/jhc-0.7 directory, which I'd rather not put stuff in, so I
can easily delete all non-standard packages.
I also took the liberty of reordering the default search path, so that
all the ~/* entries would be before all the /usr/local/* entries, etc.
]
[give nicer error message on jhc --show-ho foo
David Roundy <roundyd@physics.oregonstate.edu>**20090902162143
Ignore-this: 187d8cf167aa67786882e458400edc2b20c4a6db
]
[make type of System.Info.compilerVersion match that of ghc.
David Roundy <droundy@darcs.net>**20090902124418
Ignore-this: cc1d7ba17598da69f8dc7d2d96c3d266811413c0
]
[introduce System.Exit and System.Cmd in base.
David Roundy <droundy@darcs.net>**20090831150645
Ignore-this: 0b2496708bc3741a0500d796cb144939cc868578
]
[fix grammatical error in warning message.
David Roundy <roundyd@physics.oregonstate.edu>**20090902192312
Ignore-this: ff2af3d11325d300c217ac7776b82097bbb2c3a9
]
[fix bug when 'do' expressions used with infix expressions, add test case to \
regression John Meacham <john@repetae.net>**20090901180831
Ignore-this: 3feaf0ddff33116c54017f18d8fb372a
]
[TAG 0.7.2
John Meacham <john@repetae.net>**20090901063747
Ignore-this: 15bfbae8da4d333a8d2777e7e49144a0
]
Patch bundle hash:
ae2096d5aafa4bbc4feebda84695a01dbd6e2155
_______________________________________________
jhc mailing list
jhc@haskell.org
http://www.haskell.org/mailman/listinfo/jhc
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic