On May 25, 2007, at 10:47, Andre-John Mas wrote:
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
[snip]
---> 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_ dports_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_ dports_lang_ghc/work/destroot//opt/local --mandir=/opt/local/var/db/ dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_ dports_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_ dports_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_ dports_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_ dports_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.
Interesting. You're on an Intel Mac with Mac OS X 10.4.9, it looks like. And you have Xcode 2.4.1 installed? What version of gcc is selected? It should be 4.0.1. On my system: $ gcc_select Current default compiler: gcc version 4.0.1 (Apple Computer, Inc. build 5367) Do you have the latest MacPorts? "sudo port selfupdate" to make sure. What does the config.log say? It'll be in the work directory. "cd `port dir ghc`/work/ghc-*" The ghc portfile does look very complicated. Maybe the maintainer has more to say on the matter. I'm Cc'ing him.