Cannot build OpenFHE with HEXL Accellerator

g++ and clang compilers just fail like this:
[ 51%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/schemerns/rns-pke.cpp.o
g+±10: fatal error: Killed signal terminated program cc1plus

I tried this build with WLS Ubuntu and Amazon 2023, gcc/g++ 9,10,12,14, the most recent 1.2.3 and 1.2.0 as it’s defined in the configurator. Results are the same with small variation in percentage (51% - 54%), but always in the same rns-pke.cpp.

For me it’s a blocker. Any help will be highly appreciated.

The main reason was that the build requires a lot of RAM - above 20GB. Once it extended my VM memory and swap up to 32GB total it worked. The second issue was that it looks for HEXL in lib while under Amazon Linux 2023 HEXL is installed in lib64. Configuring ```
CMAKE_FLAGS=“-DINTEL_HEXL_PREBUILT=ON -DINTEL_HEXL_HINT_DIR=[PATH TO INTEL HEXL]” solved the issue, but for some reason only with gcc and not clang. FYI.