Skip to content

Commit 9ceaaea

Browse files
author
Release Manager
committed
Trac #33153: opensuse-tumbleweed: sagelib build fails
As reported in https://groups.google.com/g/sage- devel/c/81unMG60MyU/m/JdMKMFOSBQAJ Workaround: `export CFLAGS="${CFLAGS} -Wno-error=return-type"` (https://groups.google.com/g/sage-devel/c/81unMG60MyU/m/TfBT8KOsBQAJ) This is caused by strict compiler flags leaking from the opensuse python3 package into user packages via sysconfig/distutils. Same mechanism as the failures with misconfigured python3 in #31132 (homebrew), #33078 (cygwin), #32531 (pyenv) Upstream issue: - https://bugzilla.opensuse.org/show_bug.cgi?id=1194605 URL: https://trac.sagemath.org/33153 Reported by: mkoeppe Ticket author(s): Matthias Koeppe Reviewer(s): Michael Orlitzky
2 parents 3da1b22 + fa2e672 commit 9ceaaea

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/sage/libs/linbox/fflas.pxd

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
# distutils: extra_compile_args = FFLASFFPACK_CFLAGS
1+
# Trac #33153: fflas-ffpack-2.4.3 is missing a return value in one of
2+
# its functions and runs afoul of -Werror=return-type. Compounding the
3+
# problem on openSUSE tumbleweed, the CFLAGS in python's sysconfig
4+
# contain -Werror=return-type and wind up being used to compile this
5+
# extension. To avoid a compilation failure on that platform, we
6+
# temporarily append "-Wno-error=return-type" to those flags.
7+
#
8+
# distutils: extra_compile_args = FFLASFFPACK_CFLAGS -Wno-error=return-type
9+
#
210
# distutils: include_dirs = FFLASFFPACK_INCDIR
311
# distutils: libraries = FFLASFFPACK_LIBRARIES
412
# distutils: library_dirs = FFLASFFPACK_LIBDIR

0 commit comments

Comments
 (0)