#1843: ghc 6.8.1 broken on Mac OS X Leopard PPC
----------------------+-----------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: high | Milestone: 6.8.2
Component: Compiler | Version: 6.8.1
Severity: critical | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: powerpc
Os: MacOS X |
----------------------+-----------------------------------------------------
Comment (by ChrisKuklewicz):
Using -fvia-C and setting -O to -Onot did build ghc-6.8.1 as was reported
above.
The exact stanza of mk/build.mk was
{{{
HADDOCK_DOCS = NO
SRC_CC_OPTS = -Werror
SRC_HC_OPTS = -Werror -H64m -Onot -fvia-C
GhcStage1HcOpts = -Onot -fvia-C
GhcStage2HcOpts = -Onot -fvia-C
GhcLibHcOpts = -Onot -fvia-C
GhcLibWays =
SplitObjs = NO
NoFibWays =
STRIP = :
GhcBootLibs = YES
}}}
Simply recompiling ghc-6.8.1 with itself then failed because the configure
script uses ghc without the -fvia-C option (it has the unknown...4 error
when linking the utils/pwd/pwd program).
So I changed the "ghc" program shell script to add the -fvia-C options to
every invocation. This has allowed ghc-6.8.1 to start compiling itself...
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1843#comment:19>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs