Opened 11 months ago
Closed 11 months ago
#68863 closed defect (invalid)
Not able to configure cmake using port
Reported by: | Sharvani26 | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.99 |
Keywords: | Cc: | mascguy (Christopher Nielsen) | |
Port: | cmake |
Description (last modified by jmroot (Joshua Root))
Configuring cmake Error: Failed to configure cmake: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.24.4/CMakeFiles/CMakeError.log Error: Failed to configure cmake: 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/cmake/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Getting this error while I am installing cmake
Attachments (1)
Change History (6)
comment:1 Changed 11 months ago by jmroot (Joshua Root)
Cc: | mascguy added |
---|---|
Description: | modified (diff) |
Owner: | set to michaelld |
Port: | cmake added |
Priority: | High → Normal |
Status: | new → assigned |
comment:2 Changed 11 months ago by Sharvani26
Cannot find such log files anywhere. That's why I am not able to resolve the issue
comment:3 Changed 11 months ago by jmroot (Joshua Root)
The full paths to the files are given in the message. If they are somehow not being created there, please run sudo port clean cmake
followed by sudo port -d install cmake
and copy all of the terminal output into a new text file, and then upload that file to the ticket as an attachment.
Changed 11 months ago by Sharvani26
Attachment: | cmakeerror.txt added |
---|
Please find error I am getting when I run the commands "sudo port clean cmake" and then "sudo port install -d cmake"
comment:4 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
Version: | 2.8.1 → 2.8.99 |
---|
The log says:
CMake Error at /opt/homebrew/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:14 (message): The imported target "Qt5::Core" references the file "/opt/homebrew/.//mkspecs/macx-clang" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/opt/homebrew/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake" but not all the files it references.
So the problem is that you have Qt5 installed with Homebrew and it is confusing cmake when built by MacPorts, possibly due to #64111.
Using more than one package manager on one machine is not supported; please pick one. If you choose MacPorts, uninstall Homebrew, sudo port clean cmake
, and then try again.
comment:5 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
Please attach the two log files mentioned in the error messages.