-
Notifications
You must be signed in to change notification settings - Fork 79
Description
thornhill@abydos:~/d.roar/d.gecode/gecode-master$ cat /etc/os-release
NAME="Rocky Linux"
VERSION="10.0 (Red Quartz)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="10.0"
PLATFORM_ID="platform:el10"
PRETTY_NAME="Rocky Linux 10.0 (Red Quartz)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:10::baseos"
HOME_URL="https://rockylinux.org/"
VENDOR_NAME="RESF"
VENDOR_URL="https://resf.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2035-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-10"
ROCKY_SUPPORT_PRODUCT_VERSION="10.0"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="10.0"
thornhill@abydos:~/d.roar/d.gecode/gecode-master$ g++ --version
g++ (GCC) 14.2.1 20250110 (Red Hat 14.2.1-7)
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Having issues building gecode.
I config'd as follows:
thornhill@abydos:~/d.roar/d.gecode/gecode-master$ ./configure --prefix=$HOME/local --enable-qt=no
1st I had to remove the "-Wall -Wextra" flags to stop the build failing from too many warnings, then I get a compilation error:
:
:
:
g++ -I. -fcx-limited-range -fno-signaling-nans -fno-rounding-math -ffinite-math-only -fno-math-errno -fno-strict-aliasing -O3 -fvisibility=hidden -ggdb -std=c++11 -pipe -fPIC -pthread -DNDEBUG
-c -o gecode/set/rel-op/post-compl.o gecode/set/rel-op/post-compl.cpp
In file included from ./gecode/set/int.hh:296,
from gecode/set/cardinality.cpp:39:
./gecode/set/int/weights.hpp: In member function ‘void Gecode::Set::Int::OverweightValues::init(int, Gecode::SharedArray&, Gecode::SharedArray&, I&)’:
./gecode/set/int/weights.hpp:127:16: error: no match for ‘operator=’ (operand types are ‘const Gecode::SharedArray’ and ‘Gecode::SharedArray’)
127 | elements = elements0; weights = weights0;
| ^~~~~~~~~
In file included from ./gecode/kernel.hh:177,
from ./gecode/set.hh:43,
from gecode/set/cardinality.cpp:38:
./gecode/kernel/data/shared-array.hpp:53:9: note: candidate: ‘Gecode::SharedArray& Gecode::SharedArray::operator=(const Gecode::SharedArray&)’ (near match)
53 | class SharedArray : public SharedHandle {
| ^~~~~~~~~~~
./gecode/kernel/data/shared-array.hpp:53:9: note: passing ‘const Gecode::SharedArray’ as ‘this’ argument discards qualifiers
./gecode/set/int/weights.hpp:127:37: error: no match for ‘operator=’ (operand types are ‘const Gecode::SharedArray’ and ‘Gecode::SharedArray’)
127 | elements = elements0; weights = weights0;
| ^~~~~~~~
./gecode/kernel/data/shared-array.hpp:53:9: note: candidate: ‘Gecode::SharedArray& Gecode::SharedArray::operator=(const Gecode::SharedArray&)’ (near match)
53 | class SharedArray : public SharedHandle {
| ^~~~~~~~~~~
./gecode/kernel/data/shared-array.hpp:53:9: note: passing ‘const Gecode::SharedArray’ as ‘this’ argument discards qualifiers
In file included from ./gecode/set/int.hh:296,
from gecode/set/rel.cpp:39:
./gecode/set/int/weights.hpp: In member function ‘void Gecode::Set::Int::OverweightValues::init(int, Gecode::SharedArray&, Gecode::SharedArray&, I&)’:
./gecode/set/int/weights.hpp:127:16: error: no match for ‘operator=’ (operand types are ‘const Gecode::SharedArray’ and ‘Gecode::SharedArray’)
127 | elements = elements0; weights = weights0;
| ^~~~~~~~~
In file included from ./gecode/kernel.hh:177,
from ./gecode/set.hh:43,
from ./gecode/set/rel.hh:43,
from gecode/set/rel.cpp:37:
./gecode/kernel/data/shared-array.hpp:53:9: note: candidate: ‘Gecode::SharedArray& Gecode::SharedArray::operator=(const Gecode::SharedArray&)’ (near match)
53 | class SharedArray : public SharedHandle {
| ^~~~~~~~~~~
./gecode/kernel/data/shared-array.hpp:53:9: note: passing ‘const Gecode::SharedArray’ as ‘this’ argument discards qualifiers
./gecode/set/int/weights.hpp:127:37: error: no match for ‘operator=’ (operand types are ‘const Gecode::SharedArray’ and ‘Gecode::SharedArray’)
127 | elements = elements0; weights = weights0;
| ^~~~~~~~
./gecode/kernel/data/shared-array.hpp:53:9: note: candidate: ‘Gecode::SharedArray& Gecode::SharedArray::operator=(const Gecode::SharedArray&)’ (near match)
53 | class SharedArray : public SharedHandle {
| ^~~~~~~~~~~
./gecode/kernel/data/shared-array.hpp:53:9: note: passing ‘const Gecode::SharedArray’ as ‘this’ argument discards qualifiers
make[1]: *** [Makefile:1393: gecode/set/cardinality.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1393: gecode/set/rel.o] Error 1
make[1]: Leaving directory '/home/thornhill/d.roar/d.gecode/gecode-master'
make: *** [Makefile:1266: compilelib] Error 2