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.
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.
On 25-May-07, at 17:51 , Ryan Schmidt wrote:
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)
$ gcc_select Current default compiler: gcc version 4.0.1 (Apple Computer, Inc. build 5250)
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-*"
configure:3037: gcc -V </dev/null >&5 dyld: Library not loaded: /usr/i686-apple-darwin8/lib/libgcc_s.1.dylib Referenced from: /usr/bin/gcc Reason: image not found ./configure: line 1: 23232 Trace/BPT trap $CC -V configure:3040: $? = 133 configure:3063: checking for C compiler default output file name configure:3066: gcc -I/opt/local/include -O2 -I/opt/local/include -I/ opt/local/include -L/opt/local/lib -L/usr/lib -L/opt/local/lib conft est.c >&5 dyld: Library not loaded: /usr/i686-apple-darwin8/lib/libgcc_s.1.dylib Referenced from: /usr/bin/gcc Reason: image not found ./configure: line 1: 23243 Trace/BPT trap $CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 configure:3069: $? = 133 I'll see if I can get a more update version of xcode and see if that changes anything. AJ
On 26-May-07, at 11:18 , Andre-John Mas wrote:
On 25-May-07, at 17:51 , Ryan Schmidt wrote:
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)
$ gcc_select Current default compiler: gcc version 4.0.1 (Apple Computer, Inc. build 5250)
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-*"
Updated to the latest version of XCode, did a clean on GHC and then restarted the GHC install. Works now :) Andre
participants (2)
-
Andre-John Mas
-
Ryan Schmidt