Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ghc is buildable on darwin by hard-fixing darwin platform to 10.9. #1552

Closed
wants to merge 2 commits into from

Conversation

wavewave
Copy link
Contributor

ghc was not buildable on Mac OS X darwin system (#1157), but with this workaround that fixes darwin platform to 10.9 in configure in a brute force way, ghc can be now buildable and works.

Squashed commit of the following:

commit d8eb6cb
Author: Ian-Woo Kim [email protected]
Date: Wed Jan 15 01:05:00 2014 +0100

remove xcodebuild back. working ghc without xcodebuild modification in stdenv

commit a22fa75
Author: Ian-Woo Kim [email protected]
Date: Fri Jan 10 16:08:34 2014 +0100

ghc-7.6.3 buildable on MacOSX darwin system with hard-coded platform information

commit f5a7212
Author: Ian-Woo Kim [email protected]
Date: Thu Jan 9 22:27:20 2014 +0100

gmp-4.3.2 is compilable with forced x86_64 architecture

commit 58f5dff
Author: Ian-Woo Kim [email protected]
Date: Thu Jan 9 21:36:40 2014 +0100

add xcodebuild in native-darwin-cctools-wrapper

Squashed commit of the following:

commit d8eb6cb
Author: Ian-Woo Kim <[email protected]>
Date:   Wed Jan 15 01:05:00 2014 +0100

    remove xcodebuild back. working ghc without xcodebuild modification in stdenv

commit a22fa75
Author: Ian-Woo Kim <[email protected]>
Date:   Fri Jan 10 16:08:34 2014 +0100

    ghc-7.6.3 buildable on MacOSX darwin system with hard-coded platform information

commit f5a7212
Author: Ian-Woo Kim <[email protected]>
Date:   Thu Jan 9 22:27:20 2014 +0100

    gmp-4.3.2 is compilable with forced x86_64 architecture

commit 58f5dff
Author: Ian-Woo Kim <[email protected]>
Date:   Thu Jan 9 21:36:40 2014 +0100

    add xcodebuild in native-darwin-cctools-wrapper
@@ -19,10 +19,14 @@ stdenv.mkDerivation rec {
libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp}/include"
'';

preConfigure = ''
preConfigure = if !stdenv.isDarwin then ''
echo "${buildMK}" > mk/build.mk
sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure
export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/ghc-${version}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the setting export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/ghc-${version}" hurt the GHC build in any way? If it does not, then I'd rather have it set (even though it's not necessary) to avoid complicating the build expression.

@shlevy
Copy link
Member

shlevy commented Mar 14, 2014

@wavewave Are you still working on this?

@peti
Copy link
Member

peti commented Mar 15, 2014

This issue has been fixed a while ago. I believe the ticket can be closed.

@peti
Copy link
Member

peti commented Mar 15, 2014

Please re-open in case you run into this problem again.

@peti peti closed this Mar 15, 2014
@nh2 nh2 mentioned this pull request Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants