Opened 3 months ago

Last modified 3 months ago

#61736 assigned defect

qt5 clears configure.sdkroot which causes erroneous "SDK does not appear to be installed" warning

Reported by: cbitterfield (Colin Bitterfield) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc:
Port: qt5

Description

Package: MacPorts-2.6.4_1-11-BigSur.pkg

No matter what I do, I can't install any port with a GUI using QT. The error shows that the SDK is installed.

Problem: BigSur

Warning: The macOS 11.0 SDK does not appear to be installed. Ports may not build correctly. Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.

Things done:

1. Removal and Reinstall of MacPorts No Change:

2. Removal and reinstall of Xcode 12.2 and CommandLine tools from Package installation. SDK Installed

Razzamataz:SDKs colin$ xcodebuild -showsdks
iOS SDKs:
	iOS 14.2                      	-sdk iphoneos14.2

iOS Simulator SDKs:
	Simulator - iOS 14.2          	-sdk iphonesimulator14.2

macOS SDKs:
	DriverKit 20.0                	-sdk driverkit.macosx20.0
	macOS 11.0                    	-sdk macosx11.0

tvOS SDKs:
	tvOS 14.2                     	-sdk appletvos14.2

tvOS Simulator SDKs:
	Simulator - tvOS 14.2         	-sdk appletvsimulator14.2

watchOS SDKs:
	watchOS 7.1                   	-sdk watchos7.1

watchOS Simulator SDKs:
	Simulator - watchOS 7.1       	-sdk watchsimulator7.1

Xcode Installed:

xcodebuild -version
Xcode 12.2
Build version 12B45b

MacPorts:
MacPorts 2.6.4
Entering shell mode... ("help" for help, "quit" to quit)

OSX:
$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 11.0.1 (20B50)
      Kernel Version: Darwin 20.1.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: Razzamataz
      User Name: Colin Bitterfield (colin)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 7 days 14:09
      
Commands run to verify:
xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Razzamataz:bin colin$ 

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license

  1. Software Update (of CommandLine tools) and sudo port selfupdate
xcodebuild -showsdks
iOS SDKs:
	iOS 14.2                      	-sdk iphoneos14.2

iOS Simulator SDKs:
	Simulator - iOS 14.2          	-sdk iphonesimulator14.2

macOS SDKs:
	DriverKit 20.0                	-sdk driverkit.macosx20.0
	macOS 11.0                    	-sdk macosx11.0

tvOS SDKs:
	tvOS 14.2                     	-sdk appletvos14.2

tvOS Simulator SDKs:
	Simulator - tvOS 14.2         	-sdk appletvsimulator14.2

watchOS SDKs:
	watchOS 7.1                   	-sdk watchos7.1

watchOS Simulator SDKs:
	Simulator - watchOS 7.1       	-sdk watchsimulator7.1


Razzamataz:bin colin$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 11.0.1 (20B50)
      Kernel Version: Darwin 20.1.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: Razzamataz
      User Name: Colin Bitterfield (colin)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 7 days 14:23


**SDK Is installed:**
Razzamataz:bin colin$ cd /Library/Developer/CommandLineTools/SDKs/
Razzamataz:SDKs colin$ ls
MacOSX.sdk	MacOSX10.15.sdk	MacOSX11.0.sdk
Razzamataz:SDKs colin$ pwd
/Library/Developer/CommandLineTools/SDKs
Razzamataz:SDKs colin$ 

Razzamataz:SDKs colin$ pwd
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
Razzamataz:SDKs colin$ ls -la
total 0
drwxr-xr-x  5 colin  staff  160 Dec  2 22:28 .
drwxr-xr-x  6 colin  staff  192 Oct 23 19:20 ..
drwxr-xr-x  5 colin  staff  160 Oct 19 13:33 DriverKit20.0.sdk
drwxr-xr-x  7 colin  staff  224 Oct 19 13:33 MacOSX.sdk
lrwxr-xr-x  1 colin  staff   10 Dec  2 22:19 MacOSX11.0.sdk -> MacOSX.sdk


Attachments (2)

main.log (880.7 KB) - added by cbitterfield (Colin Bitterfield) 3 months ago.
Log of Mac Ports
Screen Shot 2020-12-03 at 11.42.27 AM.png (181.8 KB) - added by cbitterfield (Colin Bitterfield) 3 months ago.
Xcode Command LIne Update of files.

Download all attachments as: .zip

Change History (5)

Changed 3 months ago by cbitterfield (Colin Bitterfield)

Attachment: main.log added

Log of Mac Ports

Changed 3 months ago by cbitterfield (Colin Bitterfield)

Xcode Command LIne Update of files.

comment:1 in reply to:  description Changed 3 months ago by ryandesign (Ryan Schmidt)

Component: baseports
Owner: set to MarcusCalhoun-Lopez
Port: qt5 added
Status: newassigned
Summary: Base BigSur 2.6.4 : Warning: The macOS 11.0 SDK does not appear to be installed. Ports may not build correctly.qt5 clears configure.sdkroot which causes erroneous "SDK does not appear to be installed" warning

Replying to cbitterfield:

Warning: The macOS 11.0 SDK does not appear to be installed. Ports may not build correctly.

The qt5 port causes this message to be displayed erroneously, by clearing the variable configure.sdkroot. MacPorts base did not expect any ports to do that, and the port probably should not do that. You can ignore that message for now when it comes from the qt5 port.

The actual build failure in your log is:

:info:build Sorry, "moc" cannot be run on this version of macOS. Qt requires macOS 11.0.0 or later, you have macOS 10.16.0.

That's covered by #61103.

comment:2 Changed 3 months ago by cbitterfield (Colin Bitterfield)

My read on that ticket is adding: macosx_deployment_target 10.16 to macports.conf (which did not work).

Sorry, "moc" cannot be run on this version of macOS. Qt requires macOS 11.0.0 or later, you have macOS 10.16.0.

DEBUG: Starting logging for sqlitebrowser
DEBUG: macOS 11.0 (darwin/20.1.0) arch i386
DEBUG: MacPorts 2.6.4
DEBUG: Xcode 12.2
DEBUG: SDK 11.0
DEBUG: MACOSX_DEPLOYMENT_TARGET: 10.16

comment:3 Changed 3 months ago by cbitterfield (Colin Bitterfield)

Solution:

Edit /etc/sudoers file on line 24 (add this line)

Defaults        env_keep += "SYSTEM_VERSION_COMPAT"

Edit /opt/local/etc/macports/macports.conf Line 168 (add this line)

extra_env       SYSTEM_VERSION_COMPAT

Edit your local profile (.profile, .bashrc, etc)

and the following environment variable setting (export as proper for your shell)

SYSTEM_VERSION_COMPAT=0
export SYSTEM_VERSION_COMPAT

This sets the whole system to respond as OSX 11.0, setting SYSTEM_VERSION_COMPAT=1 will change it to OSX 10.16

Note: See TracTickets for help on using tickets.