Opened 4 years ago

Closed 4 years ago

#61849 closed defect (worksforme)

gobject-introspection: Configure failure on Big Sur 11.1 and Xcode 12.3

Reported by: mf2k (Frank Schima) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gobject-introspection

Description (last modified by mf2k (Frank Schima))

gobject-introspection fails to configure with Big Sur 11.1 and Xcode 12.3 and the latest command line tools installed. It seems to want SDK 11.0 but it should be using SDK 11.1.

Is this a base issue?

:debug:extract SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk'
...
:info:configure checking for gcc... /usr/bin/clang
:info:configure checking whether the C compiler works... no
:info:configure configure: error: in `/opt/local/var/macports/build/_opt_mports_macports-ports_gnome_gobject-introspection/gobject-introspection/work/gobject-introspection-1.60.2':
:info:configure configure: error: C compiler cannot create executables
:info:configure See `config.log' for more details

Here is what I have installed:

$ ls -l /Library/Developer/CommandLineTools/SDKs/
total 0
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

and

$ xcrun --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk

$ xcrun --show-sdk-version 
11.1

Attachments (2)

main.log (83.8 KB) - added by mf2k (Frank Schima) 4 years ago.
config.log (13.8 KB) - added by mf2k (Frank Schima) 4 years ago.

Download all attachments as: .zip

Change History (14)

Changed 4 years ago by mf2k (Frank Schima)

Attachment: main.log added

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

Description: modified (diff)

Changed 4 years ago by mf2k (Frank Schima)

Attachment: config.log added

comment:2 Changed 4 years ago by jmroot (Joshua Root)

Odd, if the 11.0 SDK is present it should work. It's not present as a directory but missing some of the contents, or something like that?

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

Hmm. It does appear to lack some files present in the 11.1 SDK directory. Is there a way to fix that? I still think this needs to be fixed in Macports. It should be looking for the 11.1 SDK CLT.

$ ls -al /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/bin
total 104
drwxr-xr-x  11 root  wheel    352 Nov 30 05:33 .
drwxr-xr-x   7 root  wheel    224 Nov 30 05:33 ..
-r-xr-xr-x   1 root  wheel   2527 Nov 30 01:56 cups-config
-rwxr-xr-x   1 root  wheel   5441 Nov 30 01:56 curl-config
-rwxr-xr-x   1 root  wheel   3253 Nov 30 01:56 krb5-config
-rwxr-xr-x   1 root  wheel   4977 Nov 30 01:56 ncurses5.4-config
-rwxr-xr-x   1 root  wheel  24999 Nov 30 01:56 net-snmp-config
-rwxr-xr-x   1 root  wheel   1622 Nov 30 01:56 pcap-config
-rwxr-xr-x   1 root  wheel   3974 Nov 30 01:56 php-config
-rwxr-xr-x   1 root  wheel   1866 Nov 30 01:56 xml2-config
-rwxr-xr-x   1 root  wheel   2546 Nov 30 01:56 xslt-config

$ ls -al /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/bin
ls: /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/bin: No such file or directory

comment:4 Changed 4 years ago by jmroot (Joshua Root)

We do want to build for 11.0 if possible. If 11.1 introduces new APIs, binaries won't work for users running 11.0.

comment:5 Changed 4 years ago by jmroot (Joshua Root)

The -config binaries not being present shouldn't be a problem though, the error indicates that libSystem can't be found, which should just require MacOSX11.0.sdk/usr/lib/libSystem.tbd.

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

Yes, something is clearly wrong with my 11.0 setup then.

$ ls -l /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libSystem.tbd
lrwxr-xr-x  1 root  wheel  15 Dec 14 13:40 /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libSystem.tbd -> libSystem.B.tbd

$ ls -l /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/lib/libSystem.tbd
ls: /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/lib/libSystem.tbd: No such file or directory
Last edited 4 years ago by mf2k (Frank Schima) (previous) (diff)

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

I wonder if installing Xcode 12.3 with the CLT removed the old ones?

$ ls -l /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/lib/
total 8
-rw-r--r--  1 root  wheel  2048 Aug 13 11:14 libRosetta.tbd

comment:8 Changed 4 years ago by jmroot (Joshua Root)

That would be quite irritating if so. We'd have to check the SDK for usability somehow, not just its presence.

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

See #61866.

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

We don't. base simply needs to set the SDK correctly for macOS 11.1.

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

I can confirm that changing the SDK to 11.1 in base allows this to build now.

$ port -v installed gobject-introspection
The following ports are currently installed:
  gobject-introspection @1.60.2_4 (active) platform='darwin 20' archs='x86_64' date='2020-12-18T09:47:46-0700'

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

Resolution: worksforme
Status: assignedclosed

This builds now. Let's assume it was because my local setup was corrupted.

Note: See TracTickets for help on using tickets.