Hi Konrad,
(Sorry for the delay.)
Konrad Hinsen <[email protected]> skribis:
> I tried to build (using nix-build) the very same gcc-4.2.1 that I
> installed as a binary package, i.e. gcc without Fortran. As expected,
> it fails. Which makes me wonder how the binary package I installed
> could ever have been compiled.
I had noticed it too. Actually, ‘stdenv’ on Darwin builds fine because
it uses ‘noSysDirs = false’ somehow, so the faulty patch didn’t get
applied.
Anyway, I just fixed ‘no-sys-dirs.patch’ so that it actually applies.
As for GFortran, I don’t know what to do. Apple’s latest GCC 4.2
tarballs don’t include it (although previous versions did). I tried
pulling in GCC’s GFortran (patch attached), but that doesn’t work:
configure: error:
The following requested languages could not be built: fortran
Recognised languages are: c,c++,objc,obj-c++
Any other ideas?
Thanks,
Ludo’.
svn: Skipping argument: '.svn' ends in a reserved name
Index: gcc/4.2-apple64/builder.sh
===================================================================
--- gcc/4.2-apple64/builder.sh (revision 33620)
+++ gcc/4.2-apple64/builder.sh (working copy)
@@ -59,7 +59,7 @@
langs="$langs,c++"
fi
if test -n "$langF77"; then
- langs="$langs,f95"
+ langs="$langs,fortran"
fi
if test -n "$langObjC"; then
langs="$langs,objc"
Index: gcc/4.2-apple64/default.nix
===================================================================
--- gcc/4.2-apple64/default.nix (revision 33773)
+++ gcc/4.2-apple64/default.nix (working copy)
@@ -25,6 +25,13 @@
stdenv.lib.optional langCC (fetchurl {
url = http://www.opensource.apple.com/tarballs/libstdcxx/libstdcxx-39.tar.gz;
sha256 = "ccf4cf432c142778c766affbbf66b61001b6c4f1107bc2b2c77ce45598786b6d";
+ }) ++
+
+ # Interestingly, GFortran is in Apple's `gcc-5493.tar.gz' but not in
+ # subsequent versions.
+ stdenv.lib.optional langF77 (fetchurl {
+ url = "mirror://gnu/gcc/gcc-${version}/gcc-fortran-4.2.4.tar.bz2";
+ sha256 = "013yqiqhdavgxzjryvylgf3lcnknmw89fx41jf2v4899srn0bhkg";
});
enableParallelBuilding = true;
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev