Cmake always got failed when upgrading macports:
1 2 3 4 5 6 7 8 |
---> Computing dependencies for cmake ---> Building cmake Error: org.macports.build for port cmake returned: command execution failed Please see the log file for port cmake for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log Error: Problem while installing cmake To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets |
In that cmake/main.log:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.0.2' :info:build Undefined symbols for architecture x86_64: :info:build "_curl_easy_cleanup", referenced from: :info:build cmFileCommand::HandleDownloadCommand(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in libCMakeLib.a(cmBootstrapCommands1.cxx.o) :info:build cmFileCommand::HandleUploadCommand(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in libCMakeLib.a(cmBootstrapCommands1.cxx.o) :info:build "_curl_easy_init", referenced from: :info:build cmFileCommand::HandleDownloadCommand(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in libCMakeLib.a(cmBootstrapCommands1.cxx.o) :info:build cmFileCommand::HandleUploadCommand(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in libCMakeLib.a(cmBootstrapCommands1.cxx.o) :info:build "_curl_easy_perform", referenced from: :info:build cmFileCommand::HandleDownloadCommand(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in libCMakeLib.a(cmBootstrapCommands1.cxx.o) :info:build cmFileCommand::HandleUploadCommand(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in libCMakeLib.a(cmBootstrapCommands1.cxx.o) :info:build "_curl_easy_setopt", referenced from: :info:build cmFileCommand::HandleDownloadCommand(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in libCMakeLib.a(cmBootstrapCommands1.cxx.o) :info:build cmFileCommand::HandleUploadCommand(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in libCMakeLib.a(cmBootstrapCommands1.cxx.o) :info:build "_curl_easy_strerror", referenced from: :info:build cmFileCommand::HandleDownloadCommand(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in libCMakeLib.a(cmBootstrapCommands1.cxx.o) :info:build cmFileCommand::HandleUploadCommand(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in libCMakeLib.a(cmBootstrapCommands1.cxx.o) :info:build "_curl_global_cleanup", referenced from: :info:build cmFileCommand::HandleDownloadCommand(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in libCMakeLib.a(cmBootstrapCommands1.cxx.o) :info:build cmFileCommand::HandleUploadCommand(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in libCMakeLib.a(cmBootstrapCommands1.cxx.o) :info:build Scanning dependencies of target pseudo_valgrind :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.0.2' :info:build "_curl_global_init", referenced from: :info:build cmFileCommand::HandleDownloadCommand(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in libCMakeLib.a(cmBootstrapCommands1.cxx.o) :info:build cmFileCommand::HandleUploadCommand(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in libCMakeLib.a(cmBootstrapCommands1.cxx.o) :info:build ld: symbol(s) not found for architecture x86_64 :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.0.2' :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build make[2]: *** [bin/cmake] Error 1 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.0.2' :info:build make[1]: *** [Source/CMakeFiles/cmake.dir/all] Error 2 :info:build make[1]: *** Waiting for unfinished jobs.... |
These symbols must be from libcurl or other similar name, the only possible one in macports is ‘curl‘, which, I tried, is not the solution.
More in that log file:
1 |
:info:build ld: warning: ignoring file /Library/Frameworks/libcurl.framework/libcurl, missing required architecture x86_64 in file /Library/Frameworks/libcurl.framework/libcurl (2 slices) |
This libcurl.framework is not introduced by Xcode 5 or 6, in fact, I don’t know why they are there.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
bash-4.3# ls -al /Library/Frameworks total 40 drwxr-xr-x 32 root wheel 1088 10 17 11:41 . drwxr-xr-x+ 70 root wheel 2380 10 17 11:46 .. lrwxr-xr-x 1 root wheel 71 10 17 11:32 AEProfiling.framework -> ../../Applications/Motion.app/Contents/Frameworks/AEProfiling.framework lrwxr-xr-x 1 root wheel 74 10 17 11:32 AERegistration.framework -> ../../Applications/Motion.app/Contents/Frameworks/AERegistration.framework drwxrwxr-x 5 macports staff 170 8 8 11:19 Adlm.framework drwxr-xr-x 6 root wheel 204 12 15 2013 Adobe AIR.framework lrwxr-xr-x 1 root wheel 74 10 17 11:32 AudioMixEngine.framework -> ../../Applications/Motion.app/Contents/Frameworks/AudioMixEngine.framework drwxr-xr-x 5 root wheel 170 6 21 15:59 CDOInterAction.framework drwxr-xr-x 6 root wheel 204 12 10 2012 Fuse4X.framework drwxr-xr-x 6 root wheel 204 1 14 2014 Libmacgpg.framework lrwxr-xr-x 1 2447 wheel 16 12 10 2012 MacFUSE.framework -> Fuse4X.framework drwxr-xr-x 5 root wheel 170 6 21 15:59 NZYCoverFlowView.framework lrwxr-xr-x 1 root wheel 60 10 17 11:30 NyxAudioAnalysis.framework -> /System/Library/PrivateFrameworks/NyxAudioAnalysis.framework drwxr-xr-x 6 root admin 204 4 16 2014 OSXFUSE.framework drwxr-xr-x 5 root wheel 170 10 17 11:33 PluginManager.framework drwxrwxr-x 6 root admin 204 10 23 2013 XSKey.framework drwxrwxr-x 6 root admin 204 10 23 2013 iLifeFaceRecognition.framework drwxrwxr-x 6 root admin 204 10 23 2013 iLifeSQLAccess.framework drwxrwxr-x 7 root admin 238 10 23 2013 iLifeSlideshow.framework drwxr-xr-x 8 root wheel 272 10 17 11:07 iTunesLibrary.framework drwxr-xr-x 6 root wheel 204 6 21 15:59 libMagick++.framework drwxr-xr-x 6 root wheel 204 6 21 15:59 libMagick.framework drwxr-xr-x 6 root wheel 204 6 21 15:59 libWand.framework drwxr-xr-x 6 root wheel 204 6 21 15:59 libbz2.framework drwxr-xr-x 6 root wheel 204 6 21 15:59 libcharset.framework drwxr-xr-x 6 root wheel 204 6 21 15:59 libcurl.framework drwxr-xr-x 6 root wheel 204 6 21 15:59 libiconv.framework drwxr-xr-x 6 root wheel 204 6 21 15:59 libjasper.framework drwxr-xr-x 6 root wheel 204 6 21 15:59 libjpeg.framework drwxr-xr-x 6 root wheel 204 6 21 15:59 libpng.framework drwxr-xr-x 6 root wheel 204 6 21 15:59 libtiff.framework drwxr-xr-x 6 root wheel 204 6 21 15:59 libz.framework |
Those libxxx.framework-s were created at June 21, I can’t tell what might happen that day or those days.
I tried to file it:
1 2 |
bash-4.3# file /Library/Frameworks/libcurl.framework/libcurl /Library/Frameworks/libcurl.framework/libcurl: Mach-O universal binary with 2 architectures: [ppc_7400: Mach-O ppc_7400 dynamically linked shared library] [i386: Mach-O i386 dynamically linked shared library] |
ppc_7400
I mkdir-ed an ‘old’, and moved all those libxxx.framework-s to that folder, retried port install cmake, then it worked.