Opened 3 years ago

Closed 3 years ago

#61839 closed defect (duplicate)

cmake: Configure failure with MacOS 11.1 and Xcode 12.3

Reported by: mf2k (Frank Schima) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.6.99
Keywords: Cc:
Port: cmake

Description (last modified by mf2k (Frank Schima))

I'm updated to macOS 11.1 and Xcode 12.3 with the command line tools.

I'm now seeing the following build error with cmake:

:debug:configure system:  cd "/opt/local/var/macports/build/_opt_mports_macports-ports_devel_cmake/cmake/work/cmake-3.19.1" && ./bootstrap --prefix=/opt/local --docdir=share/doc/cmake --parallel=12 --init=/opt/local/var/macports/build/_opt_mports_macports-ports_devel_cmake/cmake/work/cmake-3.19.1/macports.cmake --system-libs --no-system-jsoncpp --no-system-librhash --no-qt-gui -- 
:info:configure ---------------------------------------------
:info:configure CMake 3.19.1, Copyright 2000-2020 Kitware, Inc. and Contributors
:info:configure ---------------------------------------------
:info:configure Error when bootstrapping CMake:
:info:configure Cannot find appropriate C compiler on this system.
:info:configure Please specify one using environment variable CC.
:info:configure See cmake_bootstrap.log for compilers attempted.
:info:configure ---------------------------------------------
:info:configure Log of errors: /opt/local/var/macports/build/_opt_mports_macports-ports_devel_cmake/cmake/work/cmake-3.19.1/Bootstrap.cmk/cmake_bootstrap.log

In the cmake_bootstrap.log it says:

cmake_bootstrap_64725_test.c:18:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
Test failed to compile

I will attach both logs.

Attachments (2)

cmake_bootstrap.log (59.8 KB) - added by mf2k (Frank Schima) 3 years ago.
main.log (56.9 KB) - added by mf2k (Frank Schima) 3 years ago.

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by mf2k (Frank Schima)

Attachment: cmake_bootstrap.log added

Changed 3 years ago by mf2k (Frank Schima)

Attachment: main.log added

comment:1 Changed 3 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:2 Changed 3 years ago by michaelld (Michael Dickens)

I’ll note that in the cmake log I see isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk which I do not think should be there with Xcode 12. When you updated Xcode did you sudo rm -rf the folder /Library/Developer/ or at least the Xcode installed contents inside it? Guessing that’s the issue here.

comment:3 Changed 3 years ago by mf2k (Frank Schima)

Hi Michael,

I certainly did not rm -rf that directory and I don't believe we should have to. I think the issue is the renaming of the SDK to be 11.1 now.

$ pwd
/Library/Developer/CommandLineTools/SDKs

$ ls -al
total 0
drwxr-xr-x  7 root  wheel  224 Dec 14 13:41 .
drwxr-xr-x  5 root  wheel  160 Dec 14 10:55 ..
lrwxr-xr-x  1 root  wheel   14 Dec 14 13:41 MacOSX.sdk -> MacOSX11.1.sdk
drwxr-xr-x  7 root  wheel  224 Nov 12  2019 MacOSX10.14.sdk
drwxr-xr-x  8 root  wheel  256 Dec 14 13:41 MacOSX10.15.sdk
drwxr-xr-x  4 root  wheel  128 Dec 14 13:41 MacOSX11.0.sdk
drwxr-xr-x  7 root  wheel  224 Nov 30 05:33 MacOSX11.1.sdk
Last edited 3 years ago by mf2k (Frank Schima) (previous) (diff)

comment:4 Changed 3 years ago by mf2k (Frank Schima)

Resolution: duplicate
Status: assignedclosed

Let's call this #61866.

Note: See TracTickets for help on using tickets.