Macaulay2 / M2

The primary source code repository for Macaulay2, a system for computing in commutative algebra, algebraic geometry and related fields.
https://macaulay2.com
347 stars 231 forks source link

`const` errror with givaro #1431

Closed DanGrayson closed 4 years ago

DanGrayson commented 4 years ago

Has anyone seen this before?:

make: Entering directory '/Users/dan/src/M2/M2.git/M2/BUILD/dan/builds.tmp/einsteinium-development/Macaulay2/d'
g++ -std=gnu++14 -g3 -O2  -Wno-mismatched-tags -Werror -Wincompatible-pointer-types-discards-qualifiers -pipe -Wall -Wno-shadow -Wcast-qual -Wno-sign-conversion -Wno-sign-compare -Wno-parentheses -Wno-sign-compare  -fno-stack-protector -Wuninitialized -Wno-error=pragmas -Wreturn-type -Wunused-function -Wfatal-errors -Wno-unknown-pragmas -Wno-mismatched-tags -I. -I/Users/dan/src/M2/M2.git/M2/Macaulay2/d -I/Users/dan/src/M2/M2.git/M2/Macaulay2/d/../e -I/Users/dan/src/M2/M2.git/M2/Macaulay2/d/../system -I/Users/dan/src/M2/M2.git/M2/Macaulay2/d/../../include -I/Users/dan/src/M2/M2.git/M2/Macaulay2/d/../c -I/Users/dan/src/M2/M2.git/M2/Macaulay2/d/../regex -I/Users/dan/src/M2/M2.git/M2/include -I/Users/dan/src/M2/M2.git/M2/BUILD/dan/builds.tmp/einsteinium-development/include -I/Users/dan/src/M2/M2.git/M2/BUILD/dan/builds.tmp/einsteinium-development/usr-host/include -I/Users/dan/src/M2/M2.git/M2/BUILD/dan/builds.tmp/einsteinium-development/usr-host/include/cdd  -I/Users/dan/src/M2/M2.git/M2/submodules/memtailor/src  -I/Users/dan/src/M2/M2.git/M2/submodules/mathic/src  -I/Users/dan/src/M2/M2.git/M2/submodules/mathicgb/src  -I/Users/dan/src/M2/M2.git/M2/submodules/fflas_ffpack/src  -I/Users/dan/src/M2/M2.git/M2/submodules/givaro/src -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/libxml2 -isystem /usr/local/Cellar/libatomic_ops/7.6.10/include -isystem /usr/local/Cellar/bdw-gc/8.0.4/include  -I/usr/include -I/usr/local/include -DNDEBUG -I/usr/local/Cellar/eigen/3.3.7/include/eigen3 -DNDEBUG -Wno-unknown-pragmas -I/Users/dan/src/M2/M2.git/M2/Macaulay2/d/../e  -c -Wno-parentheses-equality -Wsometimes-uninitialized -Wno-unused-value interface-tmp.cc -o interface.o
In file included from /Users/dan/src/M2/M2.git/M2/Macaulay2/d/interface.dd:16:
In file included from /Users/dan/src/M2/M2.git/M2/Macaulay2/d/../e/aring-glue.hpp:7:
In file included from /Users/dan/src/M2/M2.git/M2/Macaulay2/d/../e/aring-translate.hpp:18:
In file included from /Users/dan/src/M2/M2.git/M2/Macaulay2/d/../e/aring-zzp-ffpack.hpp:21:
In file included from /Users/dan/src/M2/M2.git/M2/BUILD/dan/builds.tmp/einsteinium-development/usr-host/include/fflas-ffpack/ffpack/ffpack.h:38:
In file included from /Users/dan/src/M2/M2.git/M2/BUILD/dan/builds.tmp/einsteinium-development/usr-host/include/givaro/givpoly1.h:22:
/Users/dan/src/M2/M2.git/M2/BUILD/dan/builds.tmp/einsteinium-development/usr-host/include/givaro/givops.h:126:81: fatal error: 
      cast from 'const typename type-parameter-0-0::Type_t' to 'typename
      type-parameter-0-0::Type_t &' drops const qualifier [-Wcast-qual]
        Curried1( const Domain_t& D, const Type_t& val ) : OP(D), _val((Type_t&)val) {}
                                                                                ^
1 error generated.
make: *** [../../include/config.Makefile:199: interface.o] Error 1
make: Leaving directory '/Users/dan/src/M2/M2.git/M2/BUILD/dan/builds.tmp/einsteinium-development/Macaulay2/d'
mahrud commented 4 years ago

Fixed by #1433.