christianepeters / homomorphic-encryption

how to install and run examples with helib, SEAL, fhe-toolkit-linux, etc
7 stars 1 forks source link

HElib v2.0.0 on Tiger Lake : compile fails #1

Closed christianepeters closed 3 years ago

christianepeters commented 3 years ago

HElib v2.0.0 works on my old Acer Aspire 7 (bought 2014). New machine (January 2021) does not allow installation of HElib v2.0.0. Opened issue here: https://github.com/homenc/HElib/issues/434

christianepeters commented 3 years ago

Fix requires going to gcc version 10. On Ubuntu 20.04 as root:

apt-get install g++-10 gcc-10
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 50
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 50
update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-9 100
update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-10 50
update-alternatives --set g++ /usr/bin/g++-10
update-alternatives --set gcc /usr/bin/gcc-10
update-alternatives --set cpp-bin /usr/bin/cpp-10