Problem compiling GHC
Andre-John Mas
ajmas at sympatico.ca
Fri May 25 08:47:43 PDT 2007
Hi,
I wanted to install darcs, and ran into problems with GHS. I have the
developer tools installed and I have managed to create binaries before:
$ sudo port install darcs
Password:
---> Fetching pkgconfig
---> Attempting to fetch pkg-config-0.21.tar.gz from http://
mirror.opensysadmin.com/pkg-config/
---> Verifying checksum(s) for pkgconfig
---> Extracting pkgconfig
---> Configuring pkgconfig
---> Building pkgconfig with target all
---> Staging pkgconfig into destroot
---> Installing pkgconfig 0.21_0
---> Activating pkgconfig 0.21_0
---> Cleaning pkgconfig
---> Fetching curl
---> Attempting to fetch curl-7.16.2.tar.bz2 from http://
curl.haxx.se/download/
---> Verifying checksum(s) for curl
---> Extracting curl
---> Configuring curl
---> Building curl with target all
---> Staging curl into destroot
---> Installing curl 7.16.2_0+darwin_8
---> Activating curl 7.16.2_0+darwin_8
---> Cleaning curl
---> Fetching gmp
---> Attempting to fetch gmp-4.2.1.tar.bz2 from http://ftp.gnu.org/
gnu/gmp
---> Verifying checksum(s) for gmp
---> Extracting gmp
---> Configuring gmp
---> Building gmp with target all
---> Staging gmp into destroot
---> Running ranlib on static libraries
---> Installing gmp 4.2.1_4+test
---> Activating gmp 4.2.1_4+test
---> Cleaning gmp
---> Fetching perl5.8
---> Attempting to fetch perl-5.8.8.tar.bz2 from http://www.cpan.org/
src/5.0/
---> Verifying checksum(s) for perl5.8
---> Extracting perl5.8
---> Applying patches to perl5.8
---> Configuring perl5.8
---> Building perl5.8 with target all
---> Staging perl5.8 into destroot
---> Installing perl5.8 5.8.8_0+darwin_8
---> Activating perl5.8 5.8.8_0+darwin_8
---> Cleaning perl5.8
---> Fetching ncursesw
---> Attempting to fetch ncurses-5.6.tar.gz from http://ftp.gnu.org/
gnu/ncurses
---> Verifying checksum(s) for ncursesw
---> Extracting ncursesw
---> Applying patches to ncursesw
---> Configuring ncursesw
---> Building ncursesw with target all
---> Staging ncursesw into destroot
---> Installing ncursesw 5.6_0+darwin_8
---> Activating ncursesw 5.6_0+darwin_8
---> Cleaning ncursesw
---> Fetching ncurses
---> Verifying checksum(s) for ncurses
---> Extracting ncurses
---> Applying patches to ncurses
---> Configuring ncurses
---> Building ncurses with target all
---> Staging ncurses into destroot
---> Installing ncurses 5.6_0+darwin_8
---> Activating ncurses 5.6_0+darwin_8
---> Cleaning ncurses
---> Fetching readline
---> Attempting to fetch readline52-001 from http://ftp.gnu.org/gnu/
readline/readline-5.2-patches/
---> Attempting to fetch readline-5.2.tar.gz from http://ftp.gnu.org/
gnu/readline
---> Verifying checksum(s) for readline
---> Extracting readline
---> Applying patches to readline
---> Configuring readline
---> Building readline with target all
---> Staging readline into destroot
---> Installing readline 5.2.001_0
---> Activating readline 5.2.001_0
---> Cleaning readline
---> Fetching ghc
---> Attempting to fetch ghc-6.6.1-src.tar.bz2 from http://
www.haskell.org/ghc/dist/6.6.1/
---> Attempting to fetch ghc-6.6.1-src-extralibs.tar.bz2 from http://
www.haskell.org/ghc/dist/6.6.1/
---> Attempting to fetch ghc-6.6-i386-apple-darwin-bootstrap.tar.bz2
from http://www.haskell.org/ghc/dist/6.6/
---> Verifying checksum(s) for ghc
---> Extracting ghc
---> Applying patches to ghc
---> Configuring ghc
Error: Target com.apple.configure returned: configure failure: shell
command " cd "/opt/local/var/db/dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp
orts_lang_ghc/work/ghc-6.6.1" && ./configure --prefix=/opt/local --
prefix=/opt/local/var/db/dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp
orts_lang_ghc/work/destroot//opt/local --mandir=/opt/local/var/db/
dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp
orts_lang_ghc/work/destroot//opt/local/share/man/ --with-readline-
includes=/opt/local/include --with-readline-libraries=/opt/local/lib
--disable-openal --disable-alut --with-ghc='/opt/local/var/db/dports/
build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp
orts_lang_ghc/work/ghc-bootstrap/bin/ghc' " returned error 77
Command output: checking build system type... i686-apple-darwin8.9.1
checking host system type... i686-apple-darwin8.9.1
checking target system type... i686-apple-darwin8.9.1
Canonicalised to: i386-apple-darwin
checking for path to top of build tree... /opt/local/var/db/dports/
build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp
orts_lang_ghc/work/ghc-6.6.1
checking version of ghc... 6.6
checking for ghc-pkg matching /opt/local/var/db/dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp
orts_lang_ghc/work/ghc-bootstrap/bin/ghc... 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
checking whether #! works in shell scripts... yes
checking for perl... /opt/local/bin/perl
checking if your perl works in shell scripts... yes
checking for python... /usr/bin/python
checking for gcc... gcc
checking for C compiler default output file name... configure: error:
C compiler cannot create executables
See `config.log' for more details.
Error: The following dependencies failed to build: ghc
Error: Status 1 encountered during processing.
More information about the macports-users
mailing list