Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit ca0d8a4

Browse files
author
Matthias Koeppe
committed
build/pkgs/gcc/spkg-configure.m4: Reject gcc (gnu) >= 10
1 parent a13e5e9 commit ca0d8a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build/pkgs/gcc/spkg-configure.m4

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,13 @@ SAGE_SPKG_CONFIGURE_BASE([gcc], [
8888
fi
8989
9090
# Figuring out if we are using clang instead of gcc.
91+
AC_LANG_PUSH(C)
9192
AX_COMPILER_VENDOR()
9293
IS_REALLY_GCC=no
9394
if test "x$ax_cv_c_compiler_vendor" = xgnu ; then
9495
IS_REALLY_GCC=yes
9596
fi
97+
AC_LANG_POP()
9698
9799
# Save the value of CXX without special flags to enable C++11 support
98100
AS_VAR_SET([SAGE_CXX_WITHOUT_STD], [$CXX])
@@ -144,6 +146,11 @@ SAGE_SPKG_CONFIGURE_BASE([gcc], [
144146
[[[0-3]].*|4.[[0-7]].*], [
145147
# Install our own GCC if the system-provided one is older than gcc-4.8.
146148
SAGE_SHOULD_INSTALL_GCC([you have $CXX version $GXX_VERSION, which is quite old])
149+
],
150+
[1?.*], [
151+
# Install our own GCC if the system-provided one is newer than 9.x.
152+
# See https://trac.sagemath.org/ticket/29456
153+
SAGE_SHOULD_INSTALL_GCC([$CXX is g++ version $GXX_VERSION, which is too recent for this version of Sage])
147154
])
148155
fi
149156

0 commit comments

Comments
 (0)