Closed thomergil closed 4 years ago
I found out that if you comment out two places where configure
, you can fix it.
dependencies/gmp/CMakeLists.txt
, comment out lines 27 and 28dependencies/ntl/CMakeLists.txt
, comment out line 64checkout PR #359
Hi @thomergil and @XuesongHu We have investigated the issue reported and found that it is caused by an idiosyncrasy introduced in macOS >= 10.14.x where Command Line Tools package installs the macOS system headers inside the macOS SDK itself. CMake correctly identifies CC and CXX and the location of the header files which it passes to the compilation it controls. But, as GMP and NTL run their own "configure", passing CC and CCX is not enough it also requires -isysroot
flag as additional CFLAGS options. This is a bug that we will be fixing.
The easiest workarounds when building HElib package on macOS >= 10.14.x is to invoke cmake
with the the options -DCMAKE_CXX_COMPILER=/usr/bin/c++
and -DCMAKE_C_COMPILER=/usr/bin/cc
cmake -DCMAKE_CXX_COMPILER=/usr/bin/c++ -DCMAKE_C_COMPILER=/usr/bin/cc -DPACKAGE_BUILD=ON ..
We will issue a bug fix for issue #363 shortly.
Hi @thomergil, can you confirm that the workaround suggested worked for you, pls?
Thank you. -Flavio
This issue has been resolved in the new versions of HElib so the workaround should no longer be required.
Your Contact: Your environment (OS/HW): macOS Catalina 10.15.5
Detailed Description: Running
cmake
and thenmake
fails: