Opened 8 days ago

Closed 8 days ago

#71203 closed defect (duplicate)

cmake-bootstrap: configure failure: command execution failed

Reported by: Ubiquitous Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: sequoia Cc:
Port: cmake-bootstrap

Description (last modified by ryandesign (Ryan Carsten Schmidt))

macOS 15.0.1
Python 3.10.15

%  sudo port install cmake-devel

:info:configure Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake-bootstrap/cmake-bootstrap/work/cmake-3.9.6" && ./configure --prefix=/opt/local/libexec/cmake-bootstrap --docdir=share/doc/cmake --parallel=20 --no-system-libs --no-server 
:debug:configure system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake-bootstrap/cmake-bootstrap/work/cmake-3.9.6" && ./configure --prefix=/opt/local/libexec/cmake-bootstrap --docdir=share/doc/cmake --parallel=20 --no-system-libs --no-server 
:info:configure ---------------------------------------------
:info:configure CMake 3.9.6, Copyright 2000-2017 Kitware, Inc. and Contributors
:info:configure C compiler on this system is: /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -arch arm64 -std=gnu11
:info:configure ---------------------------------------------
: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.
:info:configure ---------------------------------------------
:info:configure Log of errors: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake-bootstrap/cmake-bootstrap/work/cmake-3.9.6/Bootstrap.cmk/cmake_bootstrap.log
:info:configure ---------------------------------------------
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake-bootstrap/cmake-bootstrap/work/cmake-3.9.6" && ./configure --prefix=/opt/local/libexec/cmake-bootstrap --docdir=share/doc/cmake --parallel=20 --no-system-libs --no-server 
:info:configure Exit code: 7
:error:configure Failed to configure cmake-bootstrap: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure     while executing
:debug:configure "$procedure $targetname"
:error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake-bootstrap/cmake-bootstrap/main.log for details.

Looking at the logs:

% cat  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake-bootstrap/cmake-bootstrap/work/cmake-3.9.6/Bootstrap.cmk/cmake_bootstrap.log

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake-bootstrap/cmake-bootstrap/work/cmake-3.9.6/bootstrap: line 677: : command not found
Test failed to compile
Checking for wheter -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -arch arm64 supports -qlanglvl=extended
Try: 
Line:  -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -arch arm64 -qlanglvl=extended -DTEST1 cmake_bootstrap_47729_test.cxx -o cmake_bootstrap_47729_test
----------  file   -----------------------

#if defined(TEST1)
# include <iostream>
#else
# include <iostream.h>
#endif

#if __cplusplus >= 201103L && defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5140
#error "SunPro <= 5.13 C++ 11 mode not supported due to bug in move semantics."
#endif

class 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;
}

------------------------------------------
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake-bootstrap/cmake-bootstrap/work/cmake-3.9.6/bootstrap: line 677: : command not found

Checking C++ Compiler

% echo $CXX
/usr/bin/clang++

Change History (5)

comment:1 Changed 8 days ago by Ubiquitous

Description: modified (diff)

comment:2 Changed 8 days ago by Ubiquitous

Port: cmake added

comment:3 Changed 8 days ago by Ubiquitous

resolved with:

% sudo rm -rf /Library/Developer/CommandLineTools/usr/include/c++

Ticket can be closed ~ regards

comment:4 Changed 8 days ago by Ubiquitous

Summary: cmake: Failed to configure cmake-bootstrap: configure failure: command execution failedcmake: Failed to configure cmake-bootstrap: configure failure: command execution failed - [RESOLVED]

comment:5 Changed 8 days ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: sequoia added; cmake removed
Port: cmake-bootstrap added; cmake removed
Resolution: duplicate
Status: newclosed
Summary: cmake: Failed to configure cmake-bootstrap: configure failure: command execution failed - [RESOLVED]cmake-bootstrap: configure failure: command execution failed

So then this was ProblemHotlist#clts16 a.k.a. #70750.

Note: See TracTickets for help on using tickets.