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
libffi: Does not build on OSX 10.7.5 #907
Comments
Hmm, it does build on hydra, but there seem to be impurities, not just on darwin. At the very least we don't want the configure script to detect -march= according to the build machine (I see corei7-avx and amdfam10 in hydra logs). This can be serious, as many packages depend on libffi through mesa or llvm (I don't know how strongly they depend). |
Would you try if the following patch solves this problem? It should make the resulting binaries portable, at least... diff --git a/pkgs/development/libraries/libffi/default.nix b/pkgs/development/libraries/libffi/default.nix
index 27c3e9f..3e71663 100644
--- a/pkgs/development/libraries/libffi/default.nix
+++ b/pkgs/development/libraries/libffi/default.nix
@@ -8,6 +8,9 @@ stdenv.mkDerivation (rec {
sha256 = "077ibkf84bvcd6rw1m6jb107br63i2pp301rkmsbgg6300adxp8x";
};
+ # no detection of -march= or -mtune=
+ configureFlags = [ "--enable-portable-binary" "--with-gcc-arch=generic" ];
+
doCheck = true;
postInstall = |
Yes, that makes it build. Thank you! |
We should thank you. It was lucky that they misdetected architecture on your machine, otherwise we would still be distributing unportable libffi. |
Started completely clean
Then build from #902
Fails to build
Log files
The text was updated successfully, but these errors were encountered: