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

gfortran/gcc: simplify & clean up on Darwin #24152

Merged
merged 1 commit into from Mar 21, 2017

Conversation

copumpkin
Copy link
Member

@copumpkin copumpkin commented Mar 21, 2017

This should eliminate the branched logic for gfortran on Darwin, as well as preventing accidental inclusion of impure paths in gcc and gfortran builds.

Note that I don't think this will be a mass Linux rebuild, because I null out the prePatch on anything but a Darwin stdenv. It also won't mass-rebuild Darwin, so it should be pretty safe.

cc @adnelson

P.S: I tested the new gfortran expression with numpy on Darwin and it seemed to be building fine...

Motivation for this change

The forked gfortran expression had broken on the latest LLVM 4 branch of the Darwin stdenv, so I noticed the fork and decided to kill it.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

This should eliminate the branched logic for gfortran on Darwin, as well
as preventing accidental inclusion of impure paths in gcc and gfortran
builds.
@mention-bot
Copy link

@copumpkin, thanks for your PR! By analyzing the history of the files in this pull request, we identified @adnelson, @datakurre and @globin to be potential reviewers.

Copy link
Contributor

@adnelson adnelson left a comment

Choose a reason for hiding this comment

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

looks like a big win 👍

@copumpkin
Copy link
Member Author

Just tested that there's no mass rebuild on NixOS, so I'm going to merge.

@copumpkin copumpkin merged commit 555a37e into NixOS:master Mar 21, 2017
@vbgl
Copy link
Contributor

vbgl commented Mar 21, 2017

Now csdp fails to build. This might be related to the changes in this PR.

clang -O3 -ansi -Wall -DNOSHORTS -DUSEGETTIME -I../include  csdp.o -L../lib -lsdp -llapack -lblas -lgfortran -lm -o csdp
clang-3.7: warning: argument unused during compilation: '-ansi'
ld: library not found for -lgfortran

@copumpkin
Copy link
Member Author

copumpkin commented Mar 21, 2017 via email

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.

None yet

5 participants