cschwan / sage-on-gentoo

(Unofficial) Gentoo Overlay for Sage- and Sage-related ebuilds
84 stars 26 forks source link

8.4.beta2 fails in Prefix using gcc-8.2.0-r2 #518

Closed strogdon closed 6 years ago

strogdon commented 6 years ago

I used MAKEOPTS="-j1" to hopefully isolate the first failure:

[159/488] x86_64-pc-linux-gnu-g++ -march=native -O0 -pipe -g -ggdb -fPIC -I/storage/strogdon/gentoo-rap/usr/include -I/storage/strogdon/gentoo-rap/usr/include/python2.7 -I/storage/strogdon/gentoo-rap/usr/lib64/python2.7/site-packages/numpy/core/include -I/storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7 -I/storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/sage/ext -I/storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/cythonized -I/storage/strogdon/gentoo-rap/usr/include/python2.7 -c /storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/cythonized/sage/libs/linbox/linbox_flint_interface.cpp -o /storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/temp.linux-x86_64-2.7/storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/cythonized/sage/libs/linbox/linbox_flint_interface.o -fno-strict-aliasing -DCYTHON_CLINE_IN_TRACEBACK=1 -O2 -Wall -g -DNDEBUG -U_LB_DEBUG -DDISABLE_COMMENTATOR -DARCH_X86_64=1 -DOPENBLAS___64BIT__=1 -fopenmp -DFFLAS_COMPILED -DFFPACK_COMPILED -fabi-version=6 -I/storage/strogdon/gentoo-rap/usr/include/openblas -std=gnu++11
In file included from /storage/strogdon/gentoo-rap/usr/include/linbox/matrix/densematrix/blas-matrix.h:54,
                 from /storage/strogdon/gentoo-rap/usr/include/linbox/matrix/dense-matrix.h:79,
                 from /storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/cythonized/sage/libs/linbox/linbox_flint_interface.cpp:694:
/storage/strogdon/gentoo-rap/usr/include/linbox/matrix/densematrix/blas-transposed-matrix.h:74:8: error: too many template-parameter-lists
  class TransposedBlasMatrix< TransposedBlasMatrix< Matrix > > : public Matrix {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/cythonized/sage/libs/linbox/linbox_flint_interface.cpp: In function ‘void __pyx_f_4sage_4libs_6linbox_22linbox_flint_interface_fmpz_mat_get_linbox(LinBox::DenseMatrix<Givaro::ZRing<Givaro::Integer> >&, fmpz_mat_struct*)’:
/storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/cythonized/sage/libs/linbox/linbox_flint_interface.cpp:1193:33: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘long int’ [-Wsign-compare]
   for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
                       ~~~~~~~~~~^~~~~~~~~~~
/storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/cythonized/sage/libs/linbox/linbox_flint_interface.cpp:1205:35: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘long int’ [-Wsign-compare]
     for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
                         ~~~~~~~~~~^~~~~~~~~~~
[160/488] creating /storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/temp.linux-x86_64-2.7/storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/cythonized/sage/libs/lcalc
x86_64-pc-linux-gnu-g++ -march=native -O0 -pipe -g -ggdb -fPIC -Isage/libs/lcalc -I/storage/strogdon/gentoo-rap/usr/lib64/python2.7/site-packages/cypari2 -I./sage/cpython -Isage/cpython -I./sage/libs/ntl -I/storage/strogdon/gentoo-rap/usr/lib64/python2.7/site-packages/cysignals -I/storage/strogdon/gentoo-rap/usr/include -I/storage/strogdon/gentoo-rap/usr/include/python2.7 -I/storage/strogdon/gentoo-rap/usr/lib64/python2.7/site-packages/numpy/core/include -I/storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7 -I/storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/sage/ext -I/storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/cythonized -I/storage/strogdon/gentoo-rap/usr/include/python2.7 -c /storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/cythonized/sage/libs/lcalc/lcalc_Lfunction.cpp -o /storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/temp.linux-x86_64-2.7/storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/cythonized/sage/libs/lcalc/lcalc_Lfunction.o -fno-strict-aliasing -DCYTHON_CLINE_IN_TRACEBACK=1 -std=gnu++98 -O3 -ffast-math
error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1
strogdon commented 6 years ago

So maybe the headers in linbox-1.5.2 are not up to using 8.2.0-r2.

strogdon commented 6 years ago

linbox-1.5.2 builds here with gcc-8.2.0-r2.

kiwifb commented 6 years ago

I have a fix for gcc-8.1 in linbox but I don't know about 8.2. I haven't seen reports about that yet. For 8.1 that was a silent bump since building was failing with that compiler. I will look it up.

kiwifb commented 6 years ago

That looks like https://github.com/linbox-team/linbox/issues/116 but it should be fixed with the current ebuild. Have tried recompiling sage after recompiling linbox?

strogdon commented 6 years ago

Well that was easy. Rebuilding linbox was needed and then the build of Sage went smoothly.