I've just installed FreeBSD 10.0-RELEASE and tried to compile one of my C++ projects. If fails with:
Setting COMPILER_TYPE=clang removes the error from bsd.compiler.mk, but it remains in /bsd.own.mk.
It seems like the build system isn't using cc/c++ for C and C++ respectively.
My make works by running:
Does anyone know why this discrepancy exists?
Code:
--version: not found
make[1]: "/usr/share/mk/bsd.own.mk" line 426: warning: " --version" returned non-zero status
--version: not found
make[1]: "/usr/share/mk/bsd.compiler.mk" line 9: warning: " --version" returned non-zero status
make[1]: "/usr/share/mk/bsd.compiler.mk" line 17: Unable to determine compiler type for . Consider setting COMPILER_TYPE.
Setting COMPILER_TYPE=clang removes the error from bsd.compiler.mk, but it remains in /bsd.own.mk.
It seems like the build system isn't using cc/c++ for C and C++ respectively.
My make works by running:
Code:
make CC=cc CXX=c++
Does anyone know why this discrepancy exists?