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)

main.log (98.7 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.

Download all attachments as: .zip

Change History (7)

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

This was on OS X 10.9.1 Mavericks with Xcode 5.0.2; I have not tested other versions.

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

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 10 years ago by neverpanic (Clemens Lang)

Resolution: wontfix
Status: newclosed

This has been superseded by #44891.

Note: See TracTickets for help on using tickets.