Opened 11 years ago
Closed 10 years ago
#42091 closed defect (wontfix)
ghc does not build
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | kitchen.andy@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | neverpanic (Clemens Lang) | |
Port: | ghc |
Description
See log.
Attachments (1)
Change History (7)
Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 11 years ago by neverpanic (Clemens Lang)
That looks a lot like the error you'd get when building GHC with clang, because its C preprocessor is much more strict in what it accepts. I'm not sure why this happens, since GHC should use MacPorts GCC to build itself. Do you have a file called "settings" somewhere below $prefix/share/ghc-bootstrap
?
comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Nope, no settings file. I see the log says
checking how to run the C preprocessor... /opt/local/bin/gcc-mp-4.8 -E
but maybe it's falling back on /usr/bin/cpp at some point.
comment:4 Changed 10 years ago by neverpanic (Clemens Lang)
This problem occurs if the bootstrap GHC compiler tries to use clang to bootstrap. Currently, the ghc-bootstrap port has GCC variants, that should be used instead. Maybe those are broken?
Anyway, it doesn't really matter, because #44891 will supersede that and has a fix for ghc-bootstrap.
comment:5 Changed 10 years ago by mnencia@…
My workaround to get ghc installed on Yosemite is to edit /opt/local/share/ghc-bootstrap/bin/ghc-7.0.4 replacing the line
pgmgcc="/usr/bin/gcc"
with
pgmgcc="/opt/local/bin/gcc-mp-4.8"
maybe you could fix the ghc-bootstrap package with that simple fix (replacing the compiler with the one selected from the variant) to alleviate the problem until #44891 will be fixed
comment:6 Changed 10 years ago by neverpanic (Clemens Lang)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
This has been superseded by #44891.
This was on OS X 10.9.1 Mavericks with Xcode 5.0.2; I have not tested other versions.