#67072 closed defect (fixed)
cmake-bootstrap @3.9.6: Cannot find appropriate C compiler on this system.
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | kencu (Ken) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | arm64 ventura | Cc: | kencu (Ken) |
Port: | cmake-bootstrap |
Description
Executing: cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_cmake-bootstrap/cmake-bootstrap/work/cmake-3.9.6-x86_64" && ./configure --prefix=/opt/local/libexec/cmake-bootstrap --docdir=share/doc/cmake --parallel=8 --no-system-libs --no-server DEBUG: system: cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_cmake-bootstrap/cmake-bootstrap/work/cmake-3.9.6-x86_64" && ./configure --prefix=/opt/local/libexec/cmake-bootstrap --docdir=share/doc/cmake --parallel=8 --no-system-libs --no-server --------------------------------------------- CMake 3.9.6, Copyright 2000-2017 Kitware, Inc. and Contributors --------------------------------------------- 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: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_cmake-bootstrap/cmake-bootstrap/work/cmake-3.9.6-x86_64/Bootstrap.cmk/cmake_bootstrap.log --------------------------------------------- Command failed: cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_cmake-bootstrap/cmake-bootstrap/work/cmake-3.9.6-x86_64" && ./configure --prefix=/opt/local/libexec/cmake-bootstrap --docdir=share/doc/cmake --parallel=8 --no-system-libs --no-server Exit code: 6
Change History (6)
comment:1 Changed 20 months ago by kencu (Ken)
comment:2 Changed 20 months ago by kencu (Ken)
On my arm Mac, builds through without any intervention.
% port -v installed cmake-bootstrap The following ports are currently installed: cmake-bootstrap @3.9.6_0+universal (active) requested_variants='+universal' platform='darwin 22' archs='arm64 x86_64' date='2023-03-09T13:20:17-0800'
comment:3 Changed 17 months ago by kencu (Ken)
Owner: | set to kencu |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:4 Changed 6 weeks ago by amadeus24
On an arm'ed MB, M1 Max with Sequoia, I have a similar problem after failed migration.
:info:configure Error when bootstrapping CMake: :info:configure Cannot find appropriate C++ compiler on this system. :info:configure Please specify one using environment variable CXX. :info:configure See cmake_bootstrap.log for compilers attempted.
When trying to configure and gmake manually, I run into the error:
[ 55%] Building CXX object Source/CMakeFiles/CMakeLib.dir/LexerParser/cmCommandArgumentLexer.cxx.o In file included from /opt/local-new/var/macports/build/_opt_local-new_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake-bootstrap/cmake-bootstrap/work/cmake-3.9.6/Source/LexerParser/cmCommandArgumentLexer.cxx:1: /opt/local-new/var/macports/build/_opt_local-new_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake-bootstrap/cmake-bootstrap/work/cmake-3.9.6/Source/cmStandardLexer.h:6:10: fatal error: 'cmConfigure.h' file not found 6 | #include "cmConfigure.h" // IWYU pragma: keep | ^~~~~~~~~~~~~~~ 1 error generated.
comment:5 Changed 6 weeks ago by amadeus24
Changed line 6 in cmake root tree the Source/cmStandardLexer.h Downloaded version:
#include "cmConfigure.h" // IWYU pragma: keep */
Changed, by capturing the absolute path:
#include "/opt/local/var/macports/build/_opt_local-new_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake-bootstrap/cmake-bootstrap/work/cmake-3.9.6/Bootstrap.cmk/cmConfigure.h" // IWYU pragma: keep
It's not the elegant way, but gmake was then running successful.
comment:6 Changed 6 weeks ago by kencu (Ken)
it is strange how weird idiosyncracies develop on some people’s machines.
so long as this is the only one time you have to do this, it’s probably OK.
however, any further similar weirdness and you’ll need to figure out exactly what is wrong on your system.
I’d run “port doctor” and “port reclaim” just to clean up…
Note: See
TracTickets for help on using
tickets.
This appears to be a universal build of cmake-bootstrap.
So far I can't reproduce this... so we'll see how things play out for a while.