Closed alexander-mead closed 6 years ago
Okay, this seemed to be some strange OSx-related error to do with the Xcode C or C++ compiler (which I think is called clang). I was able to circumvent it by demanding that CCL used my homebrew installs of gcc and g++ instead via:
./configure CC=gcc-8 CXX=g++-8
Now I can compile the latest master branch and all the test pass, which is nice.
You are correct, the default C/C++ compiler on Macs is called clang. And when you use gcc on a mac terminal, it is secretly calling clang, and not gcc. Nice job figuring this out :).
I also had to do a similar issue with the python installation, where the C compiler once again defaulted to clang rather than gcc. I guess I was always using clang before and I suppose I must have screwed up my clang installation somehow, but I don't know why this only manifested itself when I pulled the latest branch.
Both of these things could be solved simultaneously by me setting the environment variables CC=gcc-8
and CXX=g++-8
, which previously I had not set.
More hours of my life I will never get back.
I am currently getting an error when trying to build the latest CCL master branch. I’m running up-to-date OSx and wasn’t getting this before. The exact error is
ld: library not found for -lgcc_ext.10.4
. The full error is:Am I doing something daft?