#66293 closed defect (worksforme)
The imported target "Qt5::Core" references the file :info:configure "/usr/local/.//mkspecs/macx-clang" :info:configure but this file does not exist.
Reported by: | wealthychef1 | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | cmake-bootstrap |
Description
root@MacBook-Pro-2082 (rcook ): port install cmake-bootstrap ---> Computing dependencies for cmake-bootstrap ---> Fetching archive for cmake-bootstrap ---> Attempting to fetch cmake-bootstrap-3.9.6_0.darwin_22.x86_64.tbz2 from https://packages.macports.org/cmake-bootstrap ---> Attempting to fetch cmake-bootstrap-3.9.6_0.darwin_22.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/cmake-bootstrap ---> Attempting to fetch cmake-bootstrap-3.9.6_0.darwin_22.x86_64.tbz2 from https://kmq.jp.packages.macports.org/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. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port cmake-bootstrap failed
First error:
Determining if the environ exist failed with the following output: Change Dir: /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/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_fa5a7/fast" make -f CMakeFiles/cmTC_fa5a7.dir/build.make CMakeFiles/cmTC_fa5a7.dir/build Building C object CMakeFiles/cmTC_fa5a7.dir/CheckSymbolExists.c.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk -mmacosx-version-min=13.0 -o CMakeFiles/cmTC_fa5a7.dir/CheckSymbolExists.c.o -c /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/CMakeTmp/CheckSymbolExists.c /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/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier 'environ' return ((int*)(&environ))[argc]; ^ 1 error generated. make[1]: *** [CMakeFiles/cmTC_fa5a7.dir/CheckSymbolExists.c.o] Error 1 make: *** [cmTC_fa5a7/fast] Error 2
Log "/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake-bootstrap/cmake-bootstrap/main.log" attached.
Attachments (2)
Change History (12)
comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | CheckSymbolExists.c:8:19: error: use of undeclared identifier 'environ' → cmake-bootstrap: CheckSymbolExists.c:8:19: error: use of undeclared identifier 'environ' |
---|
comment:2 Changed 2 years ago by wealthychef1
Summary: | cmake-bootstrap: CheckSymbolExists.c:8:19: error: use of undeclared identifier 'environ' → The imported target "Qt5::Core" references the file :info:configure "/usr/local/.//mkspecs/macx-clang" :info:configure but this file does not exist. |
---|
I forgot to run xcode-select --install, which moved me to the next error.
/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/Source/kwsys/Terminal.c -o Terminal.o :info:configure /usr/bin/clang++ -L/opt/local/libexec/cmake-bootstrap/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64 -framework CoreFoundation -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64 -std=gnu++14 -I/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 -I/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/Source -I/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/Source/LexerParser -I/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/Utilities cmAddCustomCommandCommand.o cmAddCustomTargetCommand.o cmAddDefinitionsCommand.o cmAddDependenciesCommand.o cmAddExecutableCommand.o cmAddLibraryCommand.o cmAddSubDirectoryCommand.o cmAddTestCommand.o cmBreakCommand.o cmBuildCommand.o cmCMakeMinimumRequired.o cmCMakePolicyCommand.o cmCPackPropertiesGenerator.o cmCacheManager.o cmCommand.o cmCommandArgumentParserHelper.o cmCommandArgumentsHelper.o cmCommands.o cmCommonTargetGenerator.o cmComputeComponentGraph.o cmComputeLinkDepends.o cmComputeLinkInformation.o cmComputeTargetDepends.o cmConditionEvaluator.o cmConfigureFileCommand.o cmContinueCommand.o cmCoreTryCompile.o cmCreateTestSourceList.o cmCustomCommand.o cmCustomCommandGenerator.o cmDefinePropertyCommand.o cmDefinitions.o cmDepends.o cmDependsC.o cmDisallowedCommand.o cmDocumentationFormatter.o cmEnableLanguageCommand.o cmEnableTestingCommand.o cmExecProgramCommand.o cmExecuteProcessCommand.o cmExpandedCommandArgument.o cmExportBuildFileGenerator.o cmExportFileGenerator.o cmExportInstallFileGenerator.o cmExportSet.o cmExportSetMap.o cmExportTryCompileFileGenerator.o cmExprParserHelper.o cmExternalMakefileProjectGenerator.o cmFileCommand.o cmFileTimeComparison.o cmFindBase.o cmFindCommon.o cmFindFileCommand.o cmFindLibraryCommand.o cmFindPackageCommand.o cmFindPathCommand.o cmFindProgramCommand.o cmForEachCommand.o cmFunctionCommand.o cmGeneratedFileStream.o cmGeneratorExpression.o cmGeneratorExpressionContext.o cmGeneratorExpressionDAGChecker.o cmGeneratorExpressionEvaluationFile.o cmGeneratorExpressionEvaluator.o cmGeneratorExpressionLexer.o cmGeneratorExpressionNode.o cmGeneratorExpressionParser.o cmGeneratorTarget.o cmGetCMakePropertyCommand.o cmGetDirectoryPropertyCommand.o cmGetFilenameComponentCommand.o cmGetPropertyCommand.o cmGetSourceFilePropertyCommand.o cmGetTargetPropertyCommand.o cmGetTestPropertyCommand.o cmGlobalCommonGenerator.o cmGlobalGenerator.o cmGlobalUnixMakefileGenerator3.o cmHexFileConverter.o cmIfCommand.o cmIncludeCommand.o cmIncludeDirectoryCommand.o cmIncludeRegularExpressionCommand.o cmInstallCommand.o cmInstallCommandArguments.o cmInstallDirectoryGenerator.o cmInstallExportGenerator.o cmInstallFilesCommand.o cmInstallFilesGenerator.o cmInstallGenerator.o cmInstallScriptGenerator.o cmInstallTargetGenerator.o cmInstallTargetsCommand.o cmInstalledFile.o cmLinkDirectoriesCommand.o cmLinkLineComputer.o cmListCommand.o cmListFileCache.o cmLocalCommonGenerator.o cmLocalGenerator.o cmLocalUnixMakefileGenerator3.o cmMSVC60LinkLineComputer.o cmMacroCommand.o cmMakeDirectoryCommand.o cmMakefile.o cmMakefileExecutableTargetGenerator.o cmMakefileLibraryTargetGenerator.o cmMakefileTargetGenerator.o cmMakefileUtilityTargetGenerator.o cmMarkAsAdvancedCommand.o cmMathCommand.o cmMessageCommand.o cmMessenger.o cmNewLineStyle.o cmOSXBundleGenerator.o cmOptionCommand.o cmOrderDirectories.o cmOutputConverter.o cmParseArgumentsCommand.o cmPathLabel.o cmPolicies.o cmProcessOutput.o cmProjectCommand.o cmProperty.o cmPropertyDefinition.o cmPropertyDefinitionMap.o cmPropertyMap.o cmReturnCommand.o cmRulePlaceholderExpander.o cmScriptGenerator.o cmSearchPath.o cmSeparateArgumentsCommand.o cmSetCommand.o cmSetDirectoryPropertiesCommand.o cmSetPropertyCommand.o cmSetSourceFilesPropertiesCommand.o cmSetTargetPropertiesCommand.o cmSetTestsPropertiesCommand.o cmSiteNameCommand.o cmSourceFile.o cmSourceFileLocation.o cmState.o cmStateDirectory.o cmStateSnapshot.o cmStringCommand.o cmSubdirCommand.o cmSystemTools.o cmTarget.o cmTargetLinkLibrariesCommand.o cmTargetPropertyComputer.o cmTest.o cmTestGenerator.o cmTimestamp.o cmTryCompileCommand.o cmTryRunCommand.o cmUnexpectedCommand.o cmUnsetCommand.o cmVersion.o cmWhileCommand.o cmWorkingDirectory.o cmake.o cmakemain.o cmcmd.o cmCommandArgumentLexer.o cmCommandArgumentParser.o cmExprLexer.o cmExprParser.o cmListFileLexer.o Directory.o EncodingCXX.o FStream.o Glob.o RegularExpression.o SystemTools.o EncodingC.o ProcessUNIX.o String.o System.o Terminal.o -o cmake :info:configure ld: warning: directory not found for option '-L/opt/local/libexec/cmake-bootstrap/lib' :info:configure loading initial cache file /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/InitialCacheFlags.cmake :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) :info:configure -- Configuring incomplete, errors occurred! :info:configure See also "/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/CMakeOutput.log". :info:configure See also "/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". :info:configure --------------------------------------------- :info:configure Error when bootstrapping CMake: :info:configure Problem while running initial CMake :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=10 --no-system-libs --no-server :info:configure Exit code: 11 :error:configure 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: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.
Changed 2 years ago by wealthychef1
Attachment: | CMakeError.log added |
---|
replace existing log with new error
comment:3 Changed 2 years ago by kencu (Ken)
check to make sure you don't have anything installed in /usr/local.
CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:14 (message):
Software installed there is picked up during builds by compilers automatically, and often unexpectedly.
comment:4 Changed 2 years ago by wealthychef1
Hi, thank you. I thought that macports firewalled its software into /opt/local to avoid this kind of thing.
I do install things in /usr/local, this is very normal and even necessary on a unix machine. I'm afraid if I just ham-handedly start deleting things from /usr/local/lib it will break other software I depend on.
I would think that there a flag to pass to CMake to force it to ignore /usr/local, if you don't want it looking there. Would that be possible here? Thanks
comment:5 Changed 2 years ago by wealthychef1
I do see this:
rcook@rcook-iMac (RC-bash-lib (master)): type cmake cmake is /usr/local/bin/cmake
Hmm
comment:6 Changed 2 years ago by wealthychef1
I think this might be an instance of homebrew colliding with macports. ...
comment:7 Changed 2 years ago by wealthychef1
I've uninstalled homebrew as there is nothing there I can think of that I need. If I do need it, I'll find a solution at that point.
comment:8 Changed 2 years ago by kencu (Ken)
Assuming that solved your issue.
There is no easy way to stop the compiler from looking into /usr/local. It’s a builtin search path.
comment:9 follow-up: 10 Changed 2 years ago by kencu (Ken)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:10 Changed 2 years ago by wealthychef1
Replying to kencu: Yes, it moved me to the next problem, nothing to do with cmake any longer. :-). Thank you
It's not clear to me whether the error from CMakeError.log you quoted is the real reason why it failed. Please attach the main.log file as well.