Skip to content

Conversation

eamsden
Copy link
Contributor

@eamsden eamsden commented Jan 22, 2020

This PR contains everything I had to do to actually cross-compile stuff with ghc-8.6.4 and ghc-8.6.5. It mostly involves bringing over patches that were left behind when cross-compilation infrastructure was moved from iohk-nix to haskell.nix.

Copy link
Collaborator

@angerman angerman left a comment

Choose a reason for hiding this comment

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

Except for the perf part and the indentation, looks good to me.

BTW. do you know if we upstreamed the prim-no-arm-atomics, and global-offset-table patches?

@eamsden, @hamishmack am I the only one who reads versionOlder to mean (>) and versionAtLeast as (>=)? Should we rename versionOlder to something better?

};
ghcDrvOverrides = drv: {
hardeningDisable = (drv.hardeningDisable or []) ++ [ "stackprotector" "format" ];
hardeningDisable = (drv.hardeningDisable or []) ++ [ "stackprotector" "format" ] ++ lib.optionals super.stdenv.hostPlatform.isAarch32 [ "pic" "pie" ];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ohh we lost those? I thought we had kept them.

@@ -99,6 +99,9 @@ in {
++ self.lib.optional (version == "8.6.4") ./patches/ghc/ghc-8.6.4-better-plusSimplCountErrors.patch
++ self.lib.optional (versionAtLeast "8.6.4" && self.stdenv.isDarwin) ./patches/ghc/ghc-macOS-loadArchive-fix.patch
++ self.lib.optional (versionAtLeast "8.4.4" && self.stdenv.isDarwin) ./patches/ghc/ghc-darwin-gcc-version-fix.patch
++ self.lib.optional (versionAtLeast "8.6.4" && versionOlder "8.8") ./patches/ghc/ghc-8.6.4-prim-no-arm-atomics.patch
Copy link
Collaborator

Choose a reason for hiding this comment

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

Indentation seems off.

@hamishmack
Copy link
Collaborator

am I the only one who reads versionOlder to mean (>) and versionAtLeast as (>=)? Should we rename versionOlder to something better?

I changed it in the ghc 8.8 PR to from, until and fromUntil.

Co-Authored-By: Moritz Angermann <moritz.angermann@gmail.com>
@angerman angerman merged commit 563e18c into input-output-hk:master Jan 31, 2020
@eamsden
Copy link
Contributor Author

eamsden commented Feb 4, 2020

BTW. do you know if we upstreamed the prim-no-arm-atomics, and global-offset-table patches?

I don't recall. I recall not being happy with them and wanting to work on making the linker not use a page per label.

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