Opened 19 years ago

Closed 18 years ago

#7431 closed defect (fixed)

ghc does not compile on Intel Mac, OSX 10.4.5

Reported by: nathan+darwinports@… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc: nathan+darwinports@…, markd@…
Port:

Description

$ uname -a Darwin hostname.local 8.5.1 Darwin Kernel Version 8.5.1: Mon Jan 30 21:07:08 PST 2006; root:xnu-792.8.36.obj~1/RELEASE_I386 i386 i386

$ port version Version: 1.200

$ sudo port -dv install ghc DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/lang/ghc DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/lang/ghc DEBUG: Requested variant darwin is not provided by port ghc. DEBUG: Requested variant i386 is not provided by port ghc. DEBUG: Requested variant macosx is not provided by port ghc. DEBUG: Executing variant darwin_8 provides darwin_8 DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/readline DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/readline DEBUG: Searching for dependency: readline DEBUG: Found Dependency: receipt exists for readline DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/gmp DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/gmp DEBUG: Searching for dependency: gmp DEBUG: Found Dependency: receipt exists for gmp DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/lang/perl5.8 DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/lang/perl5.8 DEBUG: Searching for dependency: perl5.8 DEBUG: Found Dependency: receipt exists for perl5.8 DEBUG: Skipping completed com.apple.main (ghc) DEBUG: Skipping completed com.apple.unarchive (ghc) DEBUG: Skipping completed com.apple.fetch (ghc) DEBUG: Skipping completed com.apple.checksum (ghc) DEBUG: setting option extract.cmd to /usr/bin/bzip2 DEBUG: Skipping completed com.apple.extract (ghc) DEBUG: Skipping completed com.apple.patch (ghc) ---> Configuring ghc DEBUG: Executing proc-pre-com.apple.configure-configure-0 DEBUG: Executing com.apple.configure (ghc) DEBUG: Assembled 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.4.1" && LDFLAGS="-L/usr/lib -L/opt/local/lib" CPPFLAGS="-I/opt/local/include" CFLAGS="-I/opt/local/include" DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib ./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/destrootopt/local --mandir=/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_ghc/work/destrootopt/local/share/man/ --enable-src-tree-happy --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 checking build system type... i686-apple-darwin8.5.1 checking host system type... i686-apple-darwin8.5.1 checking target system type... i686-apple-darwin8.5.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.4.1 checking version of ghc... unknown 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: 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.4.1" && LDFLAGS="-L/usr/lib -L/opt/local/lib" CPPFLAGS="-I/opt/local/include" CFLAGS="-I/opt/local/include" DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib ./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/destrootopt/local --mandir=/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_ghc/work/destrootopt/local/share/man/ --enable-src-tree-happy --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.5.1 checking host system type... i686-apple-darwin8.5.1 checking target system type... i686-apple-darwin8.5.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.4.1 checking version of ghc... unknown 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.

Warning: the following items did not execute (for ghc): com.apple.activate com.apple.configure com.apple.build com.apple.destroot com.apple.archive com.apple.install Error: /opt/local/bin/port: Status 1 encountered during processing.

Change History (6)

comment:1 Changed 19 years ago by nathan+darwinports@…

I suspect this may have something to do with the CFLAGS passed to ./configure. In order to build this DP install on this Intel Mac, I had to configure it like so:

env CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" ./configure --disable-dependency-tracking

comment:2 Changed 19 years ago by nathan+darwinports@…

from config.log:

configure:2850: checking for C compiler default output file name configure:2853: gcc -I/opt/local/include -I/opt/local/include -L/usr/lib -L/opt/local/lib conftest.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: 4044 Trace/BPT trap $CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 configure:2856: $? = 133 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "fptools build system" | #define PACKAGE_TARNAME "fptools" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "fptools build system 1.0" | #define PACKAGE_BUGREPORT "cvs-fptools@…" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2895: error: C compiler cannot create executables

comment:3 Changed 19 years ago by gwright@…

Owner: changed from darwinports-bugs@… to gwright@…

GHC will not compile on Intel/mac until support is provided upstream. I will patch the portfile to cause the build to fail with a message if an attempt is made to build on x86.

-Greg

comment:4 Changed 19 years ago by gwright@…

Resolution: later
Status: newclosed

An error message should now be produced if you try to build on an Intel Mac. I will add Intel-Mac support when it is provided by the developers upstream.

-Greg

comment:5 Changed 18 years ago by mellon85@…

Resolution: later
Status: closedreopened

Instruction on how to build Ghc on intel can be found here http://hackage.haskell.org/trac/ghc/wiki/X86OSXGhc

comment:6 Changed 18 years ago by markd@…

Cc: markd@… added
Resolution: fixed
Status: reopenedclosed

This is now updated to 6.6 and builds on Intel.

Note: See TracTickets for help on using tickets.