Open ALIEN-orBoT opened 8 months ago
It seems that the Docker build file is outdated. You could try adapting the docker/install_dpendencies.sh
to use a more recent compiler, the newest available should hopefully work.
Alternatively, you can try building it locally with a more recent compiler.
Sorry to bother,
I adapt the docker/install_dpendencies.sh
, but when I make
again, the error happened:
In file included from /home/alien/motion/MOTION/src/motioncore/utility/bit_vector.h:38,
from /home/alien/motion/MOTION/src/motioncore/oblivious_transfer/ot_flavors.h:30,
from /home/alien/motion/MOTION/src/motioncore/multiplication_triple/mt_provider.h:29,
from /home/alien/motion/MOTION/src/motioncore/protocols/arithmetic_gmw/arithmetic_gmw_gate.h:34,
from /home/alien/motion/MOTION/src/motioncore/base/backend.h:32,
from /home/alien/motion/MOTION/src/motioncore/base/backend.cpp:27:
/home/alien/motion/MOTION/src/motioncore/utility/helpers.h: In function ‘auto encrypto::motion::ToTwosComplement(T)’:
/home/alien/motion/MOTION/src/motioncore/utility/helpers.h:516:15: error: ‘bit_cast’ is not a member of ‘std’; did you mean ‘bad_cast’?
516 | return std::bit_cast<U>(input);
| ^~~~~~~~
| bad_cast
/home/alien/motion/MOTION/src/motioncore/utility/helpers.h:516:25: error: expected primary-expression before ‘>’ token
516 | return std::bit_cast<U>(input);
| ^
/home/alien/motion/MOTION/src/motioncore/utility/helpers.h: In function ‘auto encrypto::motion::FromTwosComplement(T)’:
/home/alien/motion/MOTION/src/motioncore/utility/helpers.h:531:15: error: ‘bit_cast’ is not a member of ‘std’; did you mean ‘bad_cast’?
531 | return std::bit_cast<S>(input);
| ^~~~~~~~
| bad_cast
/home/alien/motion/MOTION/src/motioncore/utility/helpers.h:531:25: error: expected primary-expression before ‘>’ token
531 | return std::bit_cast<S>(input);
| ^
make[2]: *** [src/motioncore/CMakeFiles/motion.dir/build.make:108: src/motioncore/CMakeFiles/motion.dir/base/backend.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:166: src/motioncore/CMakeFiles/motion.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
Hi, When I Create Docker image, run "docker build -t motion ."in the /MOTION/docker directory, the error occured. My version: gcc version 11.4.0 boost 1.74 OpenSSL 3.0.2
Thanks