Skip to content

Commit 3f4547f

Browse files
author
Release Manager
committed
Trac #31624: fedora-34-standard: eclib, singular, ipykernel build failures with system ntl, zeromq
from https://groups.google.com/g/sage- release/c/6WjKQt_e_B8/m/dpx1qILOCwAJ (for 9.3.rc2): 9.3.beta8> fedora-34-standard: 9.3.beta8> [eclib-20190909] /usr/bin/ld: /usr/lib64/libntl.so: undefined reference to `std::__exception_ptr::exception_ptr::_M_release()@CXXABI_1.3.13' fedora-34-standard eclib problem is unchanged in 9.3.rc2, and also issues with ntl show up in singular See also: https://groups.google.com/g/sage- release/c/PAeKAGNJIJA/m/Rrncqdp7AQAJ URL: https://trac.sagemath.org/31624 Reported by: mkoeppe Ticket author(s): Matthias Koeppe Reviewer(s): Volker Braun
2 parents c27d4d6 + 3197044 commit 3f4547f

File tree

8 files changed

+19
-35
lines changed

8 files changed

+19
-35
lines changed

build/pkgs/brial/spkg-configure.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
SAGE_SPKG_CONFIGURE([brial], [
2-
SAGE_SPKG_DEPCHECK([boost m4ri], [
2+
dnl Trac #31624: Avoid C++ ABI issues
3+
SAGE_SPKG_DEPCHECK([gcc boost m4ri], [
34
# If we're using the system m4ri and boost, ensure that we can
45
# compile and run an executable linked against both libbrial and
56
# libbrial_groebner (both are used by SageMath).

build/pkgs/fplll/spkg-configure.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SAGE_SPKG_CONFIGURE([fplll], [
2-
SAGE_SPKG_DEPCHECK([mpfr], [
2+
SAGE_SPKG_DEPCHECK([gcc mpfr], [
33
dnl If we're using the system mpfr, use pkgconfig to determine
44
dnl if there's a usable system copy of fplll. Unless there's
55
dnl a system that ships fplll without fplll.pc file, falling

build/pkgs/fplll/spkg-install.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ if [ "x$SAGE_DEBUG" = "xyes" ]; then
2020
CONFIGUREFLAGS="$CONFIGUREFLAGS --enable-debug"
2121
fi
2222

23+
if [ -x "$SAGE_LOCAL"/bin/gcc ]; then
24+
# Trac #31624: Avoid C++ ABI issues
25+
CONFIGUREFLAGS="$CONFIGUREFLAGS --without-qd"
26+
fi
27+
2328
export CXXFLAGS="$CXXFLAGS"
2429
export CPPFLAGS="$CPPFLAGS"
2530
export CXX="$CXX"

build/pkgs/freetype/spkg-configure.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SAGE_SPKG_CONFIGURE([freetype], [
2-
SAGE_SPKG_DEPCHECK([libpng], [
2+
SAGE_SPKG_DEPCHECK([gcc libpng], [
33
dnl freetype versions are libtool's ones, cf trac #30014
44
PKG_CHECK_MODULES([FREETYPE], [freetype2 >= 16.1], [], [sage_spkg_install_freetype=yes])
55
])

build/pkgs/libgd/spkg-configure.m4

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
SAGE_SPKG_CONFIGURE([libgd], [
2-
AC_REQUIRE([SAGE_SPKG_CONFIGURE_LIBPNG])
3-
AC_REQUIRE([SAGE_SPKG_CONFIGURE_FREETYPE])
4-
AC_MSG_CHECKING([Installing freetype? ])
5-
if test x$sage_spkg_install_freetype = xyes; then
6-
AC_MSG_RESULT([Yes. Install libgd as well.])
7-
sage_spkg_install_libgd=yes
8-
else
9-
dnl do not just rely on libpng being a dependency of freetype
10-
AC_MSG_CHECKING([Installing libpng? ])
11-
if test x$sage_spkg_install_libpng = xyes; then
12-
AC_MSG_RESULT([Yes. Install libgd as well.])
13-
sage_spkg_install_libgd=yes
14-
else
15-
AC_MSG_RESULT([No.])
2+
dnl Trac #31624: Avoid C++ ABI issues
3+
SAGE_SPKG_DEPCHECK([gcc libpng freetype], [
164
PKG_CHECK_MODULES([LIBGD], [gdlib >= 2.1], [], [sage_spkg_install_libgd=yes])
17-
fi
18-
fi
5+
])
196
])
20-
21-

build/pkgs/ntl/spkg-configure.m4

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
SAGE_SPKG_CONFIGURE([ntl], [
2-
AC_REQUIRE([SAGE_SPKG_CONFIGURE_GMP])
3-
AC_MSG_CHECKING([installing gmp/mpir? ])
4-
if test x$sage_spkg_install_mpir = xyes -o x$sage_spkg_install_gmp = xyes; then
5-
AC_MSG_RESULT([yes; install ntl as well])
6-
sage_spkg_install_ntl=yes
7-
else
8-
AC_MSG_RESULT([no])
9-
fi
10-
112
m4_pushdef(SAGE_NTL_VERSION_MAJOR, [10])
123
m4_pushdef(SAGE_NTL_VERSION_MINOR, [3])
13-
14-
if test x$sage_spkg_install_ntl != xyes; then
4+
SAGE_SPKG_DEPCHECK([gmp mpir gcc], [
155
AC_CHECK_HEADER([NTL/ZZ.h], [], [sage_spkg_install_ntl=yes])
166
AC_MSG_CHECKING([whether we can link a program using NTL])
177
NTL_SAVED_LIBS=$LIBS
@@ -40,7 +30,7 @@ SAGE_SPKG_CONFIGURE([ntl], [
4030
AC_MSG_RESULT([no])
4131
sage_spkg_install_ntl=yes
4232
])
43-
fi
33+
])
4434
4535
m4_popdef([SAGE_NTL_VERSION_MAJOR])
4636
m4_popdef([SAGE_NTL_VERSION_MINOR])

build/pkgs/ppl/spkg-configure.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SAGE_SPKG_CONFIGURE([ppl], [
2-
SAGE_SPKG_DEPCHECK([glpk gmp mpir], [
2+
SAGE_SPKG_DEPCHECK([gcc glpk gmp mpir], [
33
# If our dependencies come from the system, then we can use the
44
# system ppl, too. This macro works sort-of like the
55
# PKG_CHECK_MODULES macro, defining e.g. PPL_CFLAGS when a

build/pkgs/zeromq/spkg-configure.m4

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
SAGE_SPKG_CONFIGURE([zeromq], [
2-
AX_ZMQ([4.2.5], [], [sage_spkg_install_zeromq=yes])
2+
dnl Trac #31624: Avoid C++ ABI issues
3+
SAGE_SPKG_DEPCHECK([gcc], [
4+
AX_ZMQ([4.2.5], [], [sage_spkg_install_zeromq=yes])
5+
])
36
])

0 commit comments

Comments
 (0)