Skip to content
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

fflas and linbox broken with gcc 8.1.0 #25353

Closed
videlec opened this issue May 13, 2018 · 13 comments
Closed

fflas and linbox broken with gcc 8.1.0 #25353

videlec opened this issue May 13, 2018 · 13 comments

Comments

@videlec
Copy link
Contributor

videlec commented May 13, 2018

In file included from ../../linbox/matrix/densematrix/blas-matrix.h:54,
                 from ../../linbox/matrix/dense-matrix.h:79,
                 from ../../linbox/algorithms/rational-solver.h:43,
                 from ../../linbox/algorithms/diophantine-solver.h:29,
                 from diophantine-solver.C:26:
../../linbox/matrix/densematrix/blas-transposed-matrix.h:74:8: error: too many template-parameter-lists
  class TransposedBlasMatrix< TransposedBlasMatrix< Matrix > > : public Matrix {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../../../../../../include/fflas-ffpack/fflas/fflas_simd/simd256.inl:186,
                 from ../../../../../../../../include/fflas-ffpack/fflas/fflas_simd.h:208,
                 from ../../../../../../../../include/fflas-ffpack/fflas/fflas_freduce.h:33,
                 from ../../../../../../../../include/fflas-ffpack/fflas/fflas.h:104,
                 from ../../../../../../../../include/fflas-ffpack/ffpack/ffpack.h:47,
                 from ../../linbox/matrix/matrixdomain/blas-matrix-domain.h:45,
                 from ../../linbox/matrix/matrix-domain.h:68,
                 from ../../linbox/matrix/transpose-matrix.h:47,
                 from ../../linbox/matrix/matrixdomain/matrix-domain.inl:34,
                 from ../../linbox/matrix/matrixdomain/matrix-domain.h:1233,
                 from ../../linbox/matrix/densematrix/blas-matrix.h:55,
                 from ../../linbox/matrix/dense-matrix.h:79,
                 from ../../linbox/algorithms/rational-solver.h:43,
                 from ../../linbox/algorithms/diophantine-solver.h:29,
                 from diophantine-solver.C:26:
../../../../../../../../include/fflas-ffpack/fflas/fflas_simd/simd256_int64.inl:247:90: warning: 'const' attribute on function returning 'void' [-Wattributes]
  static INLINE CONST void unpacklohi(vect_t& l, vect_t& h, const vect_t a, const vect_t b) {
                                                                                          ^
In file included from ../../../../../../../../include/fflas-ffpack/fflas/fflas_simd/simd256.inl:187,
                 from ../../../../../../../../include/fflas-ffpack/fflas/fflas_simd.h:208,
                 from ../../../../../../../../include/fflas-ffpack/fflas/fflas_freduce.h:33,
                 from ../../../../../../../../include/fflas-ffpack/fflas/fflas.h:104,
                 from ../../../../../../../../include/fflas-ffpack/ffpack/ffpack.h:47,
                 from ../../linbox/matrix/matrixdomain/blas-matrix-domain.h:45,
                 from ../../linbox/matrix/matrix-domain.h:68,
                 from ../../linbox/matrix/transpose-matrix.h:47,
                 from ../../linbox/matrix/matrixdomain/matrix-domain.inl:34,
                 from ../../linbox/matrix/matrixdomain/matrix-domain.h:1233,
                 from ../../linbox/matrix/densematrix/blas-matrix.h:55,
                 from ../../linbox/matrix/dense-matrix.h:79,
                 from ../../linbox/algorithms/rational-solver.h:43,
                 from ../../linbox/algorithms/diophantine-solver.h:29,
                 from diophantine-solver.C:26:
../../../../../../../../include/fflas-ffpack/fflas/fflas_simd/simd256_int32.inl:258:92: warning: 'const' attribute on function returning 'void' [-Wattributes]
  static INLINE CONST void unpacklohi(vect_t& s1, vect_t& s2, const vect_t a, const vect_t b) {
                                                                                            ^
In file included from ../../../../../../../../include/fflas-ffpack/fflas/fflas_simd/simd256.inl:188,
                 from ../../../../../../../../include/fflas-ffpack/fflas/fflas_simd.h:208,
                 from ../../../../../../../../include/fflas-ffpack/fflas/fflas_freduce.h:33,
                 from ../../../../../../../../include/fflas-ffpack/fflas/fflas.h:104,
                 from ../../../../../../../../include/fflas-ffpack/ffpack/ffpack.h:47,
                 from ../../linbox/matrix/matrixdomain/blas-matrix-domain.h:45,
                 from ../../linbox/matrix/matrix-domain.h:68,
                 from ../../linbox/matrix/transpose-matrix.h:47,
                 from ../../linbox/matrix/matrixdomain/matrix-domain.inl:34,
                 from ../../linbox/matrix/matrixdomain/matrix-domain.h:1233,
                 from ../../linbox/matrix/densematrix/blas-matrix.h:55,
                 from ../../linbox/matrix/dense-matrix.h:79,
                 from ../../linbox/algorithms/rational-solver.h:43,
                 from ../../linbox/algorithms/diophantine-solver.h:29,
                 from diophantine-solver.C:26:
../../../../../../../../include/fflas-ffpack/fflas/fflas_simd/simd256_int16.inl:258:92: warning: 'const' attribute on function returning 'void' [-Wattributes]
  static INLINE CONST void unpacklohi(vect_t& s1, vect_t& s2, const vect_t a, const vect_t b) {

Upstream: Fixed upstream, but not in a stable release.

CC: @ClementPernet @slel

Component: packages: standard

Keywords: fflas, linbox, gcc-8

Author: Clement Pernet

Branch/Commit: cb566ea

Reviewer: Julian Rüth

Issue created by migration from https://trac.sagemath.org/ticket/25353

@videlec videlec added this to the sage-8.3 milestone May 13, 2018
@videlec
Copy link
Contributor Author

videlec commented May 13, 2018

comment:1

Solve the const void in fflas with

$ sed -i s/INLINE\ CONST\ void/INLINE\ void/g $(find . -name "*inl")

@videlec videlec changed the title linbox fail to build with gcc 8.1.0 fflas and linbox broken with gcc 8.1.0 May 13, 2018
@slel
Copy link
Member

slel commented May 17, 2018

comment:3

See a discussion and a patch at
https://groups.google.com/forum/#!topic/sage-devel/NgzlZknrizg

@ClementPernet
Copy link
Contributor

@ClementPernet
Copy link
Contributor

Changed branch from u/cpernet/fflas_and_linbox_broken_with_gcc_8_1_0 to none

@ClementPernet
Copy link
Contributor

comment:5

I agree with the proposed fixes for fflas given here and the simple removal of the double template proposed on sage-devel by fidelbc and Dario Asprone.
I have fixed both libraries upstream and add the corresponding patches to the branch for this ticket.

@ClementPernet
Copy link
Contributor

@slel
Copy link
Member

slel commented May 18, 2018

comment:7

Don't forget to set to "needs review" if this is ready for review.


New commits:

cb566eafixing gcc-8.1 compilation errors.

@slel
Copy link
Member

slel commented May 18, 2018

Changed keywords from none to fflas, linbox, gcc-8

@slel
Copy link
Member

slel commented May 18, 2018

Commit: cb566ea

@ClementPernet
Copy link
Contributor

Author: Clement Pernet

@slel
Copy link
Member

slel commented May 18, 2018

Upstream: Fixed upstream, but not in a stable release.

@saraedum
Copy link
Member

Reviewer: Julian Rüth

@vbraun
Copy link
Member

vbraun commented May 20, 2018

Changed branch from u/cpernet/fflas_and_linbox_broken_with_gcc_8_1_0 to cb566ea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants