devel/cmake 3.10.1 needs C++11. Configure log error is: ===> Configuring for cmake-3.10.1 --------------------------------------------- CMake 3.10.1, Copyright 2000-2017 Kitware, Inc. and Contributors C compiler on this system is: cc -O2 -pipe -mcpu=8540 -Wa,-me500 -mspe=yes -mabi=spe -mfloat-gprs=double -isystem /usr/local/include -fno-strict-aliasing --------------------------------------------- Error when bootstrapping CMake: Cannot find a C++ compiler supporting C++11 on this system. Please specify one using environment variable CXX. See cmake_bootstrap.log for compilers attempted. --------------------------------------------- Log of errors: /tmp/wrkdirs/usr/ports/devel/cmake/work/cmake-3.10.1/Bootstrap.cmk/cmake_bootstrap.log ---------------------------------------------
Created attachment 189218 [details] Add compiler:c++11-lang kde@ would like an exp-run for CMake 3.10.1 with C++11 enabled. Also reported on IRC by Avengence, and snuck in to https://reviews.freebsd.org/D13662 as well.
Don't the llvm/clang ports need cmake to build? How would this work if ports llvm/clang becomes a dependency of cmake?
powerpc* and sparc64 use lang/gcc* as C++11 compiler, so there's no dependency loop.
(In reply to Jan Beich from comment #3) Uses/compiler.mk is a bit of a black box to me, but it seems possible for USES=compiler:c++11-lang to bring in a dependency on lang/clang34. Am I misunderstanding?
The base compiler on tier-1 archs supports c++11 so an exp-run won't show anything.
(In reply to Adam Weinberger from comment #4) On gcc archs it'll bring in lang/gcc<version>, currently lang/gcc6.
A commit references this bug: Author: adridg Date: Sat Dec 30 22:31:14 UTC 2017 New revision: 457650 URL: https://svnweb.freebsd.org/changeset/ports/457650 Log: CMake 3.10 uses C++11, which needs to be explicitly enabled for Tier-2 architectures. PR: 224721 Reported by: Justin Hibbits Approved by: tcberner (mentor) Changes: head/devel/cmake/Makefile
Justin, please give CMake a stab (if this doesn't do the trick, we'll have to move to compiler:c++11-lib -- I have nothing suitable to test this with, though).
(In reply to Adriaan de Groot from comment #8) Worked for me! With a now necessary fix for bug 224720 as well. Thanks for the quick fix.