Closed nerdrew closed 4 years ago
note: I edited some of those paths to make them relative...
This is in the CMakeError.log:
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: musl-g++
Build flags: ;-ffunction-sections;-fdata-sections;-fPIC;-m64;-static
Id flags:
The output was:
No such file or directory
Wonder if this is just a cmake problem...
Hi @nerdrew!
We are using mimalloc on purple we are building on musl as well. The reason cmake is looking for a c++ compiler is because the mimalloc cmake file offers building mimalloc with a c++ compiler as well by passing a flag. It seems that if you don't pass the c++ flag it will not use the c++ compiler but it still needs it to be installed in order to run.
If you are building with docker, the solution seems to be to just run apk add g++
on the builder container and then copy the resulting binary to the final container.
I hope this helps you!
It looks like cmake is looking for a c++ compiler. Does mimalloc require a c++ compiler?