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
Create an optional GCC-4.7.2 package #13150
Comments
This comment has been minimized.
This comment has been minimized.
Author: Jeroen Demeyer |
This comment has been minimized.
This comment has been minimized.
comment:4
Replying to @jdemeyer:
Also
(Ubuntu 10.04 x86_64) Don't know whether that's intended. |
comment:5
FWIW, R 2.14.0 still fails to build (segfault when byte-compiling package "base") with GCC 4.7.1 and More related to this ticket (or the GCC spkg in general), ECL somehow gets confused if the "native" GCC has libffi, and fails to build because the spkg's GCC doesn't provide it (and ECL doesn't build its own either). But maybe my installation is somehow "messed up", or at least untypical: While Ah, while writing, I did again take a closer look at the build logs... The following should certainly get fixed:
(Note the It's rather luck that only the ECL spkg is affected; we should either set Similar is probably true for $ ./sage --sh -c 'env | egrep -w "CC|CPP|CXX|FC|F77"'
CPP=cpp-4.7.0
F77=gfortran-4.7.0
CXX=g++
FC=gfortran-4.7.0
CC=gcc (I don't set |
comment:6
Looks like we just have to extend the following part of
I'm not sure how to handle Java, Objective C/C++ etc. if compilers for these get also built by Sage's GCC spkg. (I only recall some Objective C was used on MacOS X by some spkg[s].) |
comment:7
P.S.: More problems will arise if |
comment:8
Replying to @nexttime:
Something along these lines: diff --git a/spkg/bin/sage-env b/spkg/bin/sage-env
--- a/spkg/bin/sage-env
+++ b/spkg/bin/sage-env
@@ -418,6 +418,8 @@
if [ -z "$CXX" ]; then
CXX=g++
fi
+# We may set CPP, FC, F77 (to sage_fortran?) etc. here as well;
+# letting at least CPP have a default value ('cpp') probably makes sense.
# An Objective-C compiler is needed for R on Darwin.
# On Darwin, /usr/bin/cc supports Objective-C. The gcc shipped with
@@ -431,14 +433,24 @@
fi
fi
-# Override CC and CXX if the gcc spkg was installed.
+# Override CC, CPP, CXX, FC, F77 and F95 if the GCC spkg was installed:
+# (We *may* also just unset FC/F77/F95 in case $SAGE_LOCAL/bin/gfortran is
+# present.)
if [ -x "$SAGE_LOCAL/bin/gcc" ]; then
CC=gcc
fi
+if [ -x "$SAGE_LOCAL/bin/cpp" ]; then
+ CPP=cpp
+fi
if [ -x "$SAGE_LOCAL/bin/g++" ]; then
CXX=g++
fi
-export CC CXX
+export CC CPP CXX
+if [ -x "$SAGE_LOCAL/bin/gfortran" ]; then
+ for var in FC F77 F95; do
+ export ${var}=gfortran
+ done
+fi
if [ "$LD" = "" ]; then Don't know whether that interferes / is consistent with the Setting / overriding |
comment:9
I've opened #13287 for the issue with compiler-related environment variables (not [yet] addressing potential problems with |
comment:10
ping Can this be reviewed please? This is an optional package, so it should not cause much harm. |
This comment has been minimized.
This comment has been minimized.
comment:13
Looks good to me! |
Reviewer: Volker Braun |
comment:15
(Never mind, I did something silly.) |
comment:16
spkg is on server + mirrors |
comment:17
Since this is an optional spkg (rather independent from releases), and is on the servers now, can we close this ticket? |
This comment has been minimized.
This comment has been minimized.
comment:18
Replying to @nexttime:
Yes. |
For testing purposes, or just to have the latest GCC, some people might prefer GCC-4.7.2 over the Sage-shipped GCC-4.6.3.
spkg: http://boxen.math.washington.edu/home/jdemeyer/spkg/gcc-4.7.2.spkg (based on the gcc-4.6.3 spkg by just bumping the
src/
directory version).md5sum:
ea1018aa0020d534b830d2952ea6c7cc gcc-4.7.2.spkg
This includes all of GCC, i.e. also Java, Go, Objective-C,... compilers in addition to C, C++ and Fortran in the Sage GCC spkg.
CC: @nexttime
Component: packages: optional
Author: Jeroen Demeyer
Reviewer: Volker Braun
Issue created by migration from https://trac.sagemath.org/ticket/13150
The text was updated successfully, but these errors were encountered: