[MacPorts] #13039: ghc 6.6.1 does not build on Mac OS X 10.5
Leopard
MacPorts
trac at macosforge.org
Tue Nov 20 22:27:32 PST 2007
#13039: ghc 6.6.1 does not build on Mac OS X 10.5 Leopard
---------------------------------------+------------------------------------
Reporter: rzilibowitz at yahoo.com.au | Owner: gwright at macports.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.5.2
Resolution: | Keywords: GHC Leopard
---------------------------------------+------------------------------------
Comment (by jeremy at hinegardner.org):
I have tried both of the mechanisms posted here. My results from the
patch are the same as rzilibowitz.
The 2nd option, the MACOSX_DEPLOYMENT_TARGET I attempted as pasting this
into the Portfile:
{{{
platform darwin 9 {
# In DP 1.6...
# macosx_deployment_target 10.4
# For now, specify manually to build with Tiger-style:
configure.env-append MACOSX_DEPLOYMENT_TARGET=10.4
build.env-append MACOSX_DEPLOYMENT_TARGET=10.4
destroot.env-append MACOSX_DEPLOYMENT_TARGET=10.4
}
}}}
This resulted in :
{{{
[ ... snipped ... ]
---> Configuring ghc
DEBUG: Executing org.macports.configure (ghc)
DEBUG: No compiler collection selected explicitly
DEBUG: Environment: CXXFLAGS='-O2' CPPFLAGS='-I/opt/local/include'
CFLAGS='-O2 -I/opt/local/include'
DYLD_FALLBACK_LIBRARY_PATH='/opt/local/lib' LDFLAGS='-L/opt/local/lib
-L/usr/lib' MACOSX_DEPLOYMENT_TARGET='10.4'
DEBUG: Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-6.6.1"
&& ./configure --prefix=/opt/local
--prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/destroot//opt/local
--mandir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/destroot//opt/local/share/man/
--with-readline-includes=/opt/local/include --with-readline-
libraries=/opt/local/lib --disable-openal --disable-alut'
checking build system type... i686-apple-darwin9.1.0
checking host system type... i686-apple-darwin9.1.0
checking target system type... i686-apple-darwin9.1.0
Canonicalised to: i386-apple-darwin
checking for path to top of build tree...
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-6.6.1
checking for ghc... no
checking for ghc-pkg matching ... no
checking for ghc-pkg... no
checking whether ghc has readline package... no
checking for nhc... no
checking for nhc98... no
checking for hbc... no
configure: error: GHC is required unless bootstrapping from .hc files.
Error: Target org.macports.configure returned: configure failure: shell
command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-6.6.1"
&& ./configure --prefix=/opt/local
--prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/destroot//opt/local
--mandir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/destroot//opt/local/share/man/
--with-readline-includes=/opt/local/include --with-readline-
libraries=/opt/local/lib --disable-openal --disable-alut " returned error
1
Command output: checking build system type... i686-apple-darwin9.1.0
checking host system type... i686-apple-darwin9.1.0
checking target system type... i686-apple-darwin9.1.0
Canonicalised to: i386-apple-darwin
checking for path to top of build tree...
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-6.6.1
checking for ghc... no
checking for ghc-pkg matching ... no
checking for ghc-pkg... no
checking whether ghc has readline package... no
checking for nhc... no
checking for nhc98... no
checking for hbc... no
configure: error: GHC is required unless bootstrapping from .hc files.
Warning: the following items did not execute (for ghc):
org.macports.activate org.macports.configure org.macports.build
org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
}}}
It doesn't look like that works either. I really don't know much about
ports, but I use darcs a considerable amount and need to get ghc built so
that I can build darcs.
In the meantime, can I fake out ports with a installation from a 10.4
machine ? And how would I go about doing that ?
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13039#comment:8>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list