Подробно объясним как исправить ту или иную ошибку самым простым способом на Oshibkino.ru
Error when bootstrapping cmake cannot find appropriate c compiler on this system
I'm trying to build CMake 3.7.2 on my Ubuntu 18.04.1 LTS (32 bit machine), but the first stop ./bootstrap failed:
I’m trying to build CMake 3.7.2 on my Ubuntu 18.04.1 LTS (32 bit machine), but the first stop ./bootstrap failed:
$ ./bootstrap---------------------------------------------CMake 3.7.2, Copyright 2000-2016 Kitware, Inc. and ContributorsFound GNU toolchainC compiler on this system is: gcc ---------------------------------------------Error when bootstrapping CMake:Cannot find appropriate C++ compiler on this system.Please specify one using environment variable CXX.See cmake_bootstrap.log for compilers attempted.---------------------------------------------Log of errors: /home/xxx/Downloads/cmake-3.7.2/Bootstrap.cmk/cmake_bootstrap.log
This happens even if I export CXX=/usr/bin/g++ or export CXX=/usr/bin/c++. The log file says that stdlib.h not found and iostream.h not found, but they are actually installed in my system as:
Checking for GNU toolchainTry: gccLine: gcc cmake_bootstrap_18664_test.c -o cmake_bootstrap_18664_test---------- file -----------------------int main() { return 0; }------------------------------------------Test succeededTry: g++Line: g++ cmake_bootstrap_18664_test.cpp -o cmake_bootstrap_18664_test---------- file -----------------------int main() { return 0; }------------------------------------------Test succeededTry: gccLine: gcc cmake_bootstrap_18664_test.c -o cmake_bootstrap_18664_test---------- file -----------------------#ifdef __cplusplus# error "The CMAKE_C_COMPILER is set to a C++ compiler"#endif#include<stdio.h>#if defined(__CLASSIC_C__)int main(argc, argv) int argc; char* argv[];#elseint main(int argc, char* argv[])#endif{ printf("%d%c", (argv != 0), (char)0x0a); return argc-1;}------------------------------------------1Test succeededTry: g++Line: g++ -DTEST1 cmake_bootstrap_18664_test.cxx -o cmake_bootstrap_18664_test---------- file -----------------------#if defined(TEST1)# include <iostream>#else# include <iostream.h>#endifclass NeedCXX{public: NeedCXX() { this->Foo = 1; } int GetFoo() { return this->Foo; }private: int Foo;};int main(){ NeedCXX c;#ifdef TEST3 cout << c.GetFoo() << endl;#else std::cout << c.GetFoo() << std::endl;#endif return 0;}------------------------------------------In file included from /usr/include/c++/7/ext/string_conversions.h:41:0, from /usr/include/c++/7/bits/basic_string.h:6349, from /usr/include/c++/7/string:52, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/ios:42, from /usr/include/c++/7/ostream:38, from /usr/include/c++/7/iostream:39, from cmake_bootstrap_18664_test.cxx:3:/usr/include/c++/7/cstdlib:75:15: fatal error: stdlib.h: No such file or directory #include_next <stdlib.h> ^~~~~~~~~~compilation terminated.Test failed to compileTry: g++Line: g++ -DTEST2 cmake_bootstrap_18664_test.cxx -o cmake_bootstrap_18664_test---------- file -----------------------#if defined(TEST1)# include <iostream>#else# include <iostream.h>#endifclass NeedCXX{public: NeedCXX() { this->Foo = 1; } int GetFoo() { return this->Foo; }private: int Foo;};int main(){ NeedCXX c;#ifdef TEST3 cout << c.GetFoo() << endl;#else std::cout << c.GetFoo() << std::endl;#endif return 0;}------------------------------------------cmake_bootstrap_18664_test.cxx:5:11: fatal error: iostream.h: No such file or directory # include <iostream.h> ^~~~~~~~~~~~compilation terminated.Test failed to compileTry: g++Line: g++ -DTEST3 cmake_bootstrap_18664_test.cxx -o cmake_bootstrap_18664_test---------- file -----------------------#if defined(TEST1)# include <iostream>#else# include <iostream.h>#endifclass NeedCXX{public: NeedCXX() { this->Foo = 1; } int GetFoo() { return this->Foo; }private: int Foo;};int main(){ NeedCXX c;#ifdef TEST3 cout << c.GetFoo() << endl;#else std::cout << c.GetFoo() << std::endl;#endif return 0;}------------------------------------------cmake_bootstrap_18664_test.cxx:5:11: fatal error: iostream.h: No such file or directory # include <iostream.h> ^~~~~~~~~~~~compilation terminated.Test failed to compile
Similar problem happened when I tried to install CMake 3.12.2.
I would greatly appreciate any help since I need at least CMake 3.7.2 for various Julia packages.
---------------------------------------------
CMake 3.6.1, Copyright 2000-2016 Kitware, Inc.
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate C compiler on this system.
Please specify one using environment variable CC.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /home2/virionrp/cmake-3.6.1/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
Here’s what the log says:
Checking for GNU toolchain
Try: gcc
Line: gcc cmake_bootstrap_117682_test.c -o cmake_bootstrap_117682_test
---------- file -----------------------
int main() { return 0; }
------------------------------------------
./bootstrap: line 572: /usr/bin/gcc: Permission denied
Test failed to compile
Checking for Clang toolchain
Try: clang
Line: clang cmake_bootstrap_117682_test.c -o cmake_bootstrap_117682_test
---------- file -----------------------
int main() { return 0; }
------------------------------------------
./bootstrap: line 572: clang: command not found
Test failed to compile
Checking for XL toolchain
Try: xlc
Line: xlc cmake_bootstrap_117682_test.c -o cmake_bootstrap_117682_test
---------- file -----------------------
int main() { return 0; }
------------------------------------------
./bootstrap: line 572: xlc: command not found
Test failed to compile
Checking for PGI toolchain
Try: pgcc
Line: pgcc cmake_bootstrap_117682_test.c -o cmake_bootstrap_117682_test
---------- file -----------------------
int main() { return 0; }
------------------------------------------
./bootstrap: line 572: pgcc: command not found
Test failed to compile
Checking for PathScale toolchain
Try: pathcc
Line: pathcc cmake_bootstrap_117682_test.c -o cmake_bootstrap_117682_test
---------- file -----------------------
int main() { return 0; }
------------------------------------------
./bootstrap: line 572: pathcc: command not found
Test failed to compile
Try: cc
Line: cc cmake_bootstrap_117682_test.c -o cmake_bootstrap_117682_test
---------- file -----------------------
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif
#include<stdio.h>
#if defined(__CLASSIC_C__)
int main(argc, argv)
int argc;
char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
printf("%d%c", (argv != 0), (char)0x0a);
return argc-1;
}
------------------------------------------
./bootstrap: line 572: /usr/bin/cc: Permission denied
Test failed to compile
Try: gcc
Line: gcc cmake_bootstrap_117682_test.c -o cmake_bootstrap_117682_test
---------- file -----------------------
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif
#include<stdio.h>
#if defined(__CLASSIC_C__)
int main(argc, argv)
int argc;
char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
printf("%d%c", (argv != 0), (char)0x0a);
return argc-1;
}
------------------------------------------
./bootstrap: line 572: /usr/bin/gcc: Permission denied
Test failed to compile
Try: xlc
Line: xlc cmake_bootstrap_117682_test.c -o cmake_bootstrap_117682_test
---------- file -----------------------
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif
#include<stdio.h>
#if defined(__CLASSIC_C__)
int main(argc, argv)
int argc;
char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
printf("%d%c", (argv != 0), (char)0x0a);
return argc-1;
}
------------------------------------------
./bootstrap: line 572: xlc: command not found
Test failed to compile
Try: icc
Line: icc cmake_bootstrap_117682_test.c -o cmake_bootstrap_117682_test
---------- file -----------------------
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif
#include<stdio.h>
#if defined(__CLASSIC_C__)
int main(argc, argv)
int argc;
char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
printf("%d%c", (argv != 0), (char)0x0a);
return argc-1;
}
------------------------------------------
./bootstrap: line 572: icc: command not found
Test failed to compile
Try: tcc
Line: tcc cmake_bootstrap_117682_test.c -o cmake_bootstrap_117682_test
---------- file -----------------------
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif
#include<stdio.h>
#if defined(__CLASSIC_C__)
int main(argc, argv)
int argc;
char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
printf("%d%c", (argv != 0), (char)0x0a);
return argc-1;
}
------------------------------------------
./bootstrap: line 572: tcc: command not found
Test failed to compile
I’m really not good with this stuff so any help would be greatly appreciated.
Posted: Mon Mar 12, 2018 12:19 am Post subject: Emerge fails; cannot find C++ compiler.
Hi. I am new to this, my first question on a Linux forum.
After setting up a server, I tried to emerge apache, and one of the dependencies, dev-util/cmake-3.9.6 failed saying it cannot find a C++ compiler. I understand that if I post all the output and the recommended files someone might be so nice to help me. Thanks a lot in advance.
Here is the output of the emerge:
Code:
# emerge —ask www-servers/apache
* IMPORTANT: 11 news items need reading for repository ‘gentoo’.
* Use eselect news read to view new items.
These are the packages that would be merged, in order:
-rwxr-xr-x 2 root root 27024 Mar 12 00:12 x86_64-pc-linux-gnu-gcc-ar
-rwxr-xr-x 2 root root 27024 Mar 12 00:12 x86_64-pc-linux-gnu-gcc-nm
-rwxr-xr-x 2 root root 27024 Mar 12 00:12 x86_64-pc-linux-gnu-gcc-ranlib
-rwxr-xr-x 1 root root 527800 Mar 12 00:12 x86_64-pc-linux-gnu-gcov
-rwxr-xr-x 1 root root 956664 Mar 12 00:12 x86_64-pc-linux-gnu-gfortran
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
Hu Moderator
Joined: 06 Mar 2007 Posts: 19773
Posted: Mon Mar 12, 2018 12:33 am Post subject: Re: Emerge fails; cannot find C++ compiler.
unclecristian wrote:
Code:
Error when bootstrapping CMake:
Cannot find appropriate C++ compiler on this system.
Please specify one using environment variable CXX.
This message is misleading to the point of being simply wrong.
unclecristian wrote:
Code:
CFLAGS=»-march=native -O2 -pipe»
CXXFLAGS=»{CFLAGS}»
If you want to set CXXFLAGS to the same as CFLAGS, use ${CFLAGS}, not {CFLAGS}. As is, you set CXXFLAGS to the literal string {CFLAGS}, which no standard compiler will understand. That causes the compilation to fail, which CMake then misleadingly reports as «Compiler not found» rather than the more correct «Compiler found, but not usable» or the even more helpful «Compiler found, unusable with your current configuration, but usable with minimal configuration.»
Solution: change your CXXFLAGS to a valid value.
Back to top
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 51961 Location: 56N 3W
Posted: Mon Mar 12, 2018 12:35 am Post subject:
Hu,
Well caught! _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
unclecristian n00b
Joined: 11 Mar 2018 Posts: 9
Posted: Mon Mar 12, 2018 12:08 pm Post subject:
Wow! It worked! Thank you.
I mean both things worked.
1. Correct setting of the CXXFLAGS variable made things work. It came from /etc/portage/make.conf, and I could swear I never touched that line, but I am not absolutely sure, I messed up a lot with the system. It seems the original file, that came from the installation, had the line:
Code:
CXXFLAGS=»{CFLAGS}»
withe the dollar sign missing. Since I am not sure, I don’t think I should submit a bug report. If anyone installs a new system, they should check their default make.conf for the missing dollar sign.
2. The community support worked. Thanks a lot. Gentoo just won one more convert. :—)
Back to top
iamben Apprentice
Joined: 10 May 2004 Posts: 275
Posted: Mon Mar 12, 2018 1:48 pm Post subject:
unclecristian wrote:
Wow! It worked! Thank you.
I mean both things worked.
1. Correct setting of the CXXFLAGS variable made things work. It came from /etc/portage/make.conf, and I could swear I never touched that line, but I am not absolutely sure, I messed up a lot with the system. It seems the original file, that came from the installation, had the line:
Code:
CXXFLAGS=»{CFLAGS}»
withe the dollar sign missing. Since I am not sure, I don’t think I should submit a bug report. If anyone installs a new system, they should check their default make.conf for the missing dollar sign.
2. The community support worked. Thanks a lot. Gentoo just won one more convert. :—)
Since January or so, new stage3s are built with catalyst-3.x, which (currently, for now) doesn’t set CXXFLAGS at all, as far as I know. Which stage3 tarall did you use? Is it possible you tried to add CXXFLAGS since it was missing, and just typoed or got a bad copy/paste?
Back to top
unclecristian n00b
Joined: 11 Mar 2018 Posts: 9
Posted: Mon Mar 12, 2018 7:36 pm Post subject:
The image I used was install-amd64-minimal-20180206T214502Z.iso. Like I said earlier, I don’t think I ever edited that line, but I am not absolutely sure. I might have hit an x by mistake, while in vi, with the cursor on that dollar sign. Or maybe I put it in wrong and I don’t remember. Sorry I cannot help.
Back to top
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10519 Location: Somewhere over Atlanta, Georgia
Posted: Mon Mar 12, 2018 8:01 pm Post subject:
make.conf comes from the Stage, not from the install ISO so if it’s anywhere it’s there. You can unpack it to some temporary place on your now-running install & check.
— John _________________ I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
unclecristian n00b
Joined: 11 Mar 2018 Posts: 9
Posted: Mon Mar 12, 2018 11:28 pm Post subject:
It was my fault. I checked the tarball, and the /etc/portage/make.conf is nice and clean. I must have put the wrong line in there, I just don’t remember. Sorry to bother so many nice people for my own typo. But thanks for the help to get over that mistake.
Back to top
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10519 Location: Somewhere over Atlanta, Georgia
Posted: Tue Mar 13, 2018 12:42 am Post subject:
Hey, no problem. Gentoo is definitely the deep end. Just consider us your lifeguards.
— John _________________ I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
Hu Moderator
Joined: 06 Mar 2007 Posts: 19773
Posted: Tue Mar 13, 2018 1:41 am Post subject:
This thread brings up a real problem, though. As I mentioned above, the CMake error message is misleading to the point of being wrong. You might have solved this on your own if the error message actually pointed you in the right direction. This seems like an area that CMake could be improved.
Back to top
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10519 Location: Somewhere over Atlanta, Georgia
Posted: Tue Mar 13, 2018 3:14 am Post subject:
Well, yes, but I’m mostly just thinking of it as now having discovered what cmake’s version of «C compiler cannot create executables» is.
— John _________________ I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
benchaney n00b
Joined: 28 Dec 2017 Posts: 30
Posted: Tue Mar 13, 2018 4:51 am Post subject:
I was attempting to reproduce this and submit a PR upstream. This is the error I got:
Code:
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:45 (message):
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:11 (project)
This seems like a much more sensible error, so i’m not sure what caused the issue for OP.
Back to top
Hu Moderator
Joined: 06 Mar 2007 Posts: 19773
Posted: Wed Mar 14, 2018 2:07 am Post subject:
benchaney wrote:
I was attempting to reproduce this and submit a PR upstream.
Thank you for taking the initiative on this.
Yes, the error you hit looks much better. Perhaps most people with broken inputs hit the error you saw, and the OP is an outlier. From OP’s output, it looks like the CMake «bootstrap» script is responsible for the misleading error message. It looks like the Gentoo ebuild only calls this if you do not already have a somewhat recent version of CMake installed:
cmake-3.9.6.ebuild:
67 cmake_src_bootstrap() {
91 ${CONFIG_SHELL:-sh} ./bootstrap
92 —prefix=»${T}/cmakestrap/»
93 ${par_arg}
94 || die «Bootstrap failed»
125 src_prepare() {
133 if ! has_version >=${CATEGORY}/${PN}-3.4.0_rc1 ; then
134 CMAKE_BINARY=»${S}/Bootstrap.cmk/cmake»
135 cmake_src_bootstrap
136 fi
So, you probably already have cmake-3.4.0_rc1 or better, so the ebuild skipped calling bootstrap for you. His system was a fresh install without any working CMake, so he hit the bootstrap code.
Back to top
benchaney n00b
Joined: 28 Dec 2017 Posts: 30
Posted: Wed Mar 14, 2018 4:55 am Post subject:
You appear to be correct. I could have sworn I considered this and ruled it out, but I must have made a mistake somewhere. I have successfully reproduced the issue on upstream’s master branch.
I’ve opened an issue and a merge request with cmake’s upstream.
The issue is here: https://gitlab.kitware.com/cmake/cmake/issues/17826
The merge request is here: https://gitlab.kitware.com/cmake/cmake/merge_requests/1850
Edit: Interestingly the error message has been changed between cmake-3.9.6 and the current master branch, but it is still misleading.
Back to top
unclecristian n00b
Joined: 11 Mar 2018 Posts: 9
Posted: Wed Mar 14, 2018 1:22 pm Post subject:
Trying to help, although I barely know what I am doing: a day or two before the error in the OP I had a similar error while emerging dev-libs/libpcre-8.41-r1
It could be that at the time the CXXFLAGS variable was not set at all, as opposed to being set to the wrong value, I don’t remember. But emerging libpcre worked fine after setting CXXFLAGS to the correct value. Error message was:
configure: error: You need a C++ compiler for C++ support.
Here is the output I saved at the time. Does it help?
Code:
>>> Emerging (5 of 14) dev-libs/libpcre-8.41-r1::gentoo
* pcre-8.41.tar.bz2 BLAKE2B SHA512 size … [ ok ]
>>> Unpacking source…
>>> Unpacking pcre-8.41.tar.bz2 to /var/tmp/portage/dev-libs/libpcre-8.41-r1/work
>>> Source unpacked in /var/tmp/portage/dev-libs/libpcre-8.41-r1/work
>>> Preparing source in /var/tmp/portage/dev-libs/libpcre-8.41-r1/work/pcre-8.41 …
* Applying libpcre-8.41-sljit_mips-label-statement-fix.patch … [ ok ]
* Applying libpcre-8.41-fix-stack-size-detection.patch … [ ok ]
* Running elibtoolize in: pcre-8.41/
* Applying portage/1.2.0 patch …
* Applying sed/1.5.6 patch …
* Applying as-needed/2.4.3 patch …
* Applying ppc64le/2.4.4 patch …
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/libpcre-8.41-r1/work/pcre-8.41 …
I don’t think this error is related, however it is essentially the same issue in a different context.
I have reproduced you issue against the master branch of upstream. It would appear this issue appears when attempting to configure with invalid CXXFLAGS. The issue doesn’t appear for me when CXXFLAGS is empty.
The error message originates from configure.ac line 484.
Maybe we should send the libpcre upstream a pr as well…
Back to top
Hu Moderator
Joined: 06 Mar 2007 Posts: 19773
Posted: Thu Mar 15, 2018 1:08 am Post subject:
unclecristian wrote:
Trying to help, although I barely know what I am doing
You did. You made others aware of the problem, and benchaney took the initiative to try to have the problem fixed at its source. That helps future users.
benchaney wrote:
Maybe we should send the libpcre upstream a pr as well…
If libpcre also has a misleading error message, then yes, it too should be fixed. We cannot guarantee which package users will hit first.
Back to top
benchaney n00b
Joined: 28 Dec 2017 Posts: 30
Posted: Thu Mar 15, 2018 11:22 am Post subject:
I sent a patch to pcre. While I was fixing it for CXXFLAGS. I noticed that there is a similar issue when CFLAGS are invalid.
Code:
gentoo% CFLAGS=invalid ./configure
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking whether make supports nested variables… yes
checking whether make supports nested variables… (cached) yes
checking whether make supports the include directive… yes (GNU style)
checking for gcc… gcc
checking whether the C compiler works… no
configure: error: in `/home/bichaney/pcre/repo’:
configure: error: C compiler cannot create executables
See `config.log’ for more details
However this isn’t caused by anything in libpcre, it is true is an error inherent to autonconf. I have a toy build that demonstrates this.
Back to top
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10519 Location: Somewhere over Atlanta, Georgia
Posted: Thu Mar 15, 2018 11:40 am Post subject:
That one isn’t really in the same class of misleading, even though it’s so common that it has its own FAQ question on the Forums. You break the compiler and get an error that points you directly to the broken component and config.log shows exactly what’s being run, which fails when tried in a stand-alone test.
I suppose that autoconf test could try the compiler with minimal options and, if that succeeded, report a likely command line argument flaw, but I kind of doubt upstream would be interested.
— John _________________ I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
benchaney n00b
Joined: 28 Dec 2017 Posts: 30
Posted: Thu Mar 15, 2018 1:01 pm Post subject:
Fair enough. The cmake patch was merged into master, so if the libpcre patch goes the same way, I guess we are done. Thanks everyone.
Back to top
Display posts from previous:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Ошибка при начальной загрузке CMake: не удается найти подходящий компилятор C в этой системе. Пожалуйста, укажите его, используя переменную окружения CC.
Тем не менее, у меня есть Xcode на моем MacBook, и C / C могут работать.
Как я могу это решить?
Комментарии:
1. Вам также необходимо установить инструменты командной строки. Используйте xcode-select install .
2. Какой пакет вы пытаетесь установить? Как вы его устанавливаете?
Ответ №1:
Я предполагаю, что, как и я, вы делали это с помощью homebrew — и на macOS 10.12 Sierra, которая (на момент написания статьи) технически в настоящее время не поддерживается.
Если вы еще не решили эту проблему, вот что я сделал…
TL; DR- Мораль сказки: при использовании homebrew с предоставленными XCode инструментами компилятора clang всегда убедитесь, что вы обновлены (и установили и приняли T amp; C для использования инструментов командной строки).
Я пытался обновить CMake, и я получил ту же ошибку во время его начальной загрузки:
Error when bootstrapping CMake: Cannot find appropriate C compiler on this system. Please specify one using environment variable CC
Поэтому я понял (как и @Jonathan Leffler), что это, вероятно, необходимо:
xcode-select --install
Который исправил это (я также подозреваю, что предоставление альтернативного компилятора с brew install gcc ** могло бы сработать …)
Но потом я получил:
==> ./bootstrap --prefix=/usr/local/Cellar/cmake/3.6.1 --no-system-libs --parallel=4 --datadir=/share/cmake --docdir=/share/doc/cmake --ma
Last 15 lines from /Users/tim/Library/Logs/Homebrew/cmake/01.bootstrap:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
Please set CMAKE_OSX_DEPLOYMENT_TARGET to 10.11 or lower.
Call Stack (most recent call first):
Modules/CMakeSystemSpecificInformation.cmake:36 (include)
CMakeLists.txt:19 (project)
Затем, конечно, мне нужно перейти на последнюю версию XCode (8.1), чтобы обновить SDK. Это занимает много времени. Стон.
За которым следует (в командной строке) принятие лицензии:
sudo xcodebuild -license
Но как только это было сделано, все заработало — т.е. brew upgrade cmake !
Ответ №2:
Когда я набрал ./bootstrap , это случилось и со мной.
Это сработало для меня:
env CC=gcc ./bootstrap
Ответ №3:
Не удается найти подходящий компилятор C в этой системе, make
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. bootstrapping
apt‐get/rpm сломался?
Показать ответ
Ссылка
Ответ на:
комментарий
от awesomelackware 03.11.17 12:32:15 MSK
Ответ на:
комментарий
от linux92 03.11.17 13:39:08 MSK
Ответ на:
комментарий
от awesomelackware 03.11.17 13:59:57 MSK
Deleted
(03.11.17 14:00:22 MSK)
Ссылка
Ответ на:
комментарий
от linux92 03.11.17 13:39:08 MSK
Тебя спрашивают, зачем ты собираешь cmake руками, а не ставишь из пакета средствами пакетного менеджера
XMs ★★★★★
(03.11.17 17:29:16 MSK)
Последнее исправление: XMs 03.11.17 17:29:24 MSK
(всего
исправлений: 1)
Ссылка
Он тебе всё написал. Если туго с английским, то или учишь английский, или забиваешь всё что написано в Google Переводчик, или просто лезешь в биореактор.
Ссылка
Ответ на:
комментарий
от peregrine 04.11.17 01:38:47 MSK
Ответ на:
комментарий
от linux92 05.11.17 11:52:46 MSK
Ответ на:
комментарий
от linux92 05.11.17 11:54:39 MSK
Ответ на:
комментарий
от EXL 05.11.17 11:55:33 MSK
Ответ на:
комментарий
от linux92 05.11.17 12:01:56 MSK
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.