I have Amazon Linux and I’m trying to build swipl-9.2.9 from source, but the cmake package uses a -quiet option which is not supported by the GNU c/cpp compiler.
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:62 (message):
The C++ compiler
Actually its the latest version on the latest o/s. I suspect your suggestion of cmake with gcc may highlight an incompatibility, gcc probably works with with gmake… which you don’t use, so clang may be the only solution. Besides that, I could move to Ubuntu and use the PPA version, which I know works.
Which versions (gcc --version, cmake --version)? Could it be that gcc is not really gcc (as for example on MacOS, where it is Apple-clang)?
gmake is something different. Cmake is (despite the name) not a “make” dialect. It is a replacement of the GNU autotools, i.e., a tool that inspects the environment and generates a “make file”, though I prefer ninja these days for faster building with less noise on your terminal. If cmake cannot work with gcc on some platform there is something pretty wrong with it … I can barely imagine that could be the case on any Linux distribution.
Surely building on Ubuntu works fine and the PPAs are nice too