Opened 8 months ago

Closed 6 months ago

#68360 closed defect (invalid)

cmake-bootstrap @3.9.6 build failure with Qt5 cmake files in /usr/local

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

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

I'm trying to transition from Ventura to Sonoma and the process failed while running restore_ports.tcl per wiki:Migration
The error I see is as follows.

--->  Attempting to fetch cmake-bootstrap-3.9.6_0.darwin_23.arm64.tbz2 from http://mirror.fcix.net/macports/packages/cmake-bootstrap
--->  Configuring cmake-bootstrap
Error: Failed to configure cmake-bootstrap: consult /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/CMakeFiles/CMakeError.log
Error: Failed to configure cmake-bootstrap: configure failure: command execution failed
Error: 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.

I'm attaching that man.log file to this report.

Attachments (2)

CMakeError.log (604.9 KB) - added by wealthychef1 8 months ago.
main.log (2.6 MB) - added by wealthychef1 8 months ago.

Change History (6)

Changed 8 months ago by wealthychef1

Attachment: CMakeError.log added

Changed 8 months ago by wealthychef1

Attachment: main.log added

comment:1 Changed 8 months ago by jmroot (Joshua Root)

Port: cmake-bootstrap added; cmake-config removed
Priority: HighNormal
Summary: cmake-bootstrap 3.9.6 gives "Error: Failed to configure cmake-bootstrap"cmake-bootstrap @3.9.6 build failure with Qt5 cmake files in /usr/local
:info:configure CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:14 (message):
:info:configure   The imported target "Qt5::Core" references the file
:info:configure      "/usr/local/.//mkspecs/macx-clang"
:info:configure   but this file does not exist.  Possible reasons include:
:info:configure   * The file was deleted, renamed, or moved to another location.
:info:configure   * An install or uninstall procedure did not complete successfully.
:info:configure   * The installation package was faulty and contained
:info:configure      "/usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"
:info:configure   but not all the files it references.
:info:configure Call Stack (most recent call first):
:info:configure   /usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:56 (_qt5_Core_check_file_exists)
:info:configure   /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:227 (include)
:info:configure   Tests/RunCMake/CMakeLists.txt:250 (find_package)

comment:2 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

Remove what you have in /usr/local; it interferes with MacPorts. See wiki:FAQ#usrlocal.

comment:3 Changed 8 months ago by wealthychef1

Thank you for finding the actual underlying cause, which is of course a conflict with HomeBrew. I solved this by doing this:

brew uninstall cmake qt qt@5

The build now continues successfully past the cmake portion. Cheers, moving on

comment:4 Changed 6 months ago by kencu (Ken)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.