Buildng ghc-devel from macports

Hello, I've been trying to build the ghc-devel package (6.7) from macports. However the build seems to fail half through. Specifically when running the setup for base-2.1: configure: Using compiler: ../../compiler/ghc-inplace configure: Compiler flavor: GHC configure: Compiler version: 6.7.20070411 configure: Using package tool: ../../utils/ghc-pkg/ghc-pkg-inplace configure: Using ar found on system at: /usr/bin/ar configure: Using haddock found on system at: /opt/local/bin/haddock configure: Using ld given by user at: /usr/bin/ld configure: No pfesetup found configure: Using ranlib found on system at: /usr/bin/ranlib configure: Using runghc found on system at: /opt/local/bin/runghc configure: No runhugs found configure: Using tar found on system at: /usr/bin/tar configure: Using happy: /opt/local/bin/happy configure: Using alex: /opt/local/bin/alex configure: Using hsc2hs: ../../utils/hsc2hs/hsc2hs-inplace configure: No c2hs found configure: No cpphs found configure: No greencard found Setup: Unrecognised flags: --with-cc=gcc make[1]: *** [stamp/configure.library.build-profiling.base] Error 1 make: *** [stage1] Error 2 Hope someone can help! kind regards, Chris.

Hi Chris, On Apr 12, 2007, at 9:48 AM, C.M.Brown wrote:
Hello,
I've been trying to build the ghc-devel package (6.7) from macports. However the build seems to fail half through. Specifically when running the setup for base-2.1:
configure: Using compiler: ../../compiler/ghc-inplace configure: Compiler flavor: GHC configure: Compiler version: 6.7.20070411 configure: Using package tool: ../../utils/ghc-pkg/ghc-pkg-inplace configure: Using ar found on system at: /usr/bin/ar configure: Using haddock found on system at: /opt/local/bin/haddock configure: Using ld given by user at: /usr/bin/ld configure: No pfesetup found configure: Using ranlib found on system at: /usr/bin/ranlib configure: Using runghc found on system at: /opt/local/bin/runghc configure: No runhugs found configure: Using tar found on system at: /usr/bin/tar configure: Using happy: /opt/local/bin/happy configure: Using alex: /opt/local/bin/alex configure: Using hsc2hs: ../../utils/hsc2hs/hsc2hs-inplace configure: No c2hs found configure: No cpphs found configure: No greencard found Setup: Unrecognised flags: --with-cc=gcc make[1]: *** [stamp/configure.library.build-profiling.base] Error 1 make: *** [stage1] Error 2
Hope someone can help! kind regards, Chris.
To tell what's going on I'll need the build.log output of > sudo port -dv build ghc-devel > build.log 2>&1 This will be quite long, and you might want to compress it. You can send it to me directly (I maintain the macports ghc-devel port) if you'd like. Please remember to run > sudo port clean ghc-devel first to clean out any previous stuff. Macports can not yet properly restart an interrupted build. Best Wishes, Greg

On Thu, Apr 12, 2007 at 11:07:03AM -0400, Gregory Wright wrote:
configure: No cpphs found configure: No greencard found Setup: Unrecognised flags: --with-cc=gcc make[1]: *** [stamp/configure.library.build-profiling.base] Error 1 make: *** [stage1] Error 2
it to me directly (I maintain the macports ghc-devel port) if you'd like.
It sounds like the port needs to be updated to run "sh boot" instead of "autoreconf". Thanks Ian

Hi Ian, On Apr 13, 2007, at 9:19 AM, Ian Lynagh wrote:
On Thu, Apr 12, 2007 at 11:07:03AM -0400, Gregory Wright wrote:
configure: No cpphs found configure: No greencard found Setup: Unrecognised flags: --with-cc=gcc make[1]: *** [stamp/configure.library.build-profiling.base] Error 1 make: *** [stage1] Error 2
it to me directly (I maintain the macports ghc-devel port) if you'd like.
It sounds like the port needs to be updated to run "sh boot" instead of "autoreconf".
I can do this, but the previous procedure worked until a couple of weeks ago. Has something changed? Greg

On Fri, Apr 13, 2007 at 10:27:54AM -0400, Gregory Wright wrote:
I can do this, but the previous procedure worked until a couple of weeks ago. Has something changed?
Yes; autoreconf and configure no longer recurse into the libraries (as cabal was running configure too, so it was being run twice unnecessarily). Thanks Ian

Hi Ian, On Apr 13, 2007, at 11:56 AM, Ian Lynagh wrote:
On Fri, Apr 13, 2007 at 10:27:54AM -0400, Gregory Wright wrote:
I can do this, but the previous procedure worked until a couple of weeks ago. Has something changed?
Yes; autoreconf and configure no longer recurse into the libraries (as cabal was running configure too, so it was being run twice unnecessarily).
The ghc-devel port in macports now uses the "boot" script instead of autoreconf. This fixes the reported problem. It seems as if someone has some work in progress that breaks the build, but that's the risk when building from HEAD. Best Wishes, Greg
participants (3)
-
C.M.Brown
-
Gregory Wright
-
Ian Lynagh