[MacPorts] #58142: cmake @3.12.3_0+universal configure failure with Xcode 10 on 10.13 (was: cmake: Alert panel appears saying I need to install Java (which I have done), then fails)
MacPorts
noreply at macports.org
Sat Mar 2 04:15:05 UTC 2019
#58142: cmake @3.12.3_0+universal configure failure with Xcode 10 on 10.13
------------------------+-----------------------
Reporter: nikgervae | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: cmake |
------------------------+-----------------------
Comment (by jmroot):
{{{
:info:configure -- Check for working C compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- broken
:info:configure CMake Error at Modules/CMakeTestCCompiler.cmake:52
(message):
:info:configure The C compiler
:info:configure
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
:info:configure is not able to compile a simple test program.
:info:configure It fails with the following output:
:info:configure Change Dir:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.12.3-i386/CMakeFiles/CMakeTmp
:info:configure
:info:configure Run Build Command:"/usr/bin/make" "cmTC_ba13e/fast"
:info:configure make -f CMakeFiles/cmTC_ba13e.dir/build.make
CMakeFiles/cmTC_ba13e.dir/build
:info:configure Building C object
CMakeFiles/cmTC_ba13e.dir/testCCompiler.c.o
:info:configure
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-pipe -Os -arch i386 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
-mmacosx-version-min=10.13 -o
CMakeFiles/cmTC_ba13e.dir/testCCompiler.c.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.12.3-i386/CMakeFiles/CMakeTmp/testCCompiler.c
:info:configure Linking C executable cmTC_ba13e
:info:configure
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.12.3-i386/Bootstrap.cmk/cmake
-E cmake_link_script CMakeFiles/cmTC_ba13e.dir/link.txt --verbose=1
:info:configure
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-pipe -Os -arch i386 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
-mmacosx-version-min=10.13 -Wl,-search_paths_first
-Wl,-headerpad_max_install_names -L/opt/local/lib
-Wl,-headerpad_max_install_names -arch i386
CMakeFiles/cmTC_ba13e.dir/testCCompiler.c.o -o cmTC_ba13e
:info:configure ld: warning: The i386 architecture is deprecated for
macOS (remove from the Xcode build setting: ARCHS)
:info:configure ld: warning: ignoring file
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd,
missing required architecture i386 in file
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd
:info:configure ld: dynamic main executables must link with
libSystem.dylib for architecture i386
:info:configure clang: error: linker command failed with exit code 1
(use -v to see invocation)
:info:configure make[1]: *** [cmTC_ba13e] Error 1
:info:configure make: *** [cmTC_ba13e/fast] Error 2
}}}
Apparently one of cmake's configure checks is deciding to use the 10.14
SDK, even though you're on 10.13 and building for i386, which the 10.14
SDK doesn't support.
--
Ticket URL: <https://trac.macports.org/ticket/58142#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list