Opened 7 years ago

Closed 7 years ago

Last modified 3 years ago

#55195 closed defect (fixed)

openconnect-gui @1.3: Project ERROR: Could not resolve SDK --show-sdk-path for 'macosx10.12'

Reported by: rsuray Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), mascguy (Christopher Nielsen)
Port: qt5-qtbase

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hello

At the end of the installation of openconnect-gui, these errors appear:

:debug:configure INSTALL='/usr/bin/install -c'
:debug:configure LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64'
:debug:configure LIBRARY_PATH='/opt/local/lib'
:debug:configure MACOSX_DEPLOYMENT_TARGET='10.12'
:debug:configure OBJC='/usr/bin/clang'
:debug:configure OBJCFLAGS='-pipe -Os -arch x86_64'
:debug:configure OBJCXX='/usr/bin/clang++'
:debug:configure OBJCXXFLAGS='-pipe -Os -stdlib=libc++ -arch x86_64'
:info:configure Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openconnect-gui/openconnect-gui/work/openconnect-gui-1.3" && /opt/local/libexec/qt5/bin/qmake PREFIX="/opt/local" 
:debug:configure system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openconnect-gui/openconnect-gui/work/openconnect-gui-1.3" && /opt/local/libexec/qt5/bin/qmake PREFIX="/opt/local" 
:info:configure Project ERROR: Could not resolve SDK --show-sdk-path for 'macosx10.12'
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openconnect-gui/openconnect-gui/work/openconnect-gui-1.3" && /opt/local/libexec/qt5/bin/qmake PREFIX="/opt/local" 
:info:configure Exit code: 3
:error:configure Failed to configure openconnect-gui: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure     while executing
:debug:configure "$procedure $targetname"
:error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openconnect-gui/openconnect-gui/main.log for details.

In attached, the log file

Attachments (6)

main.log (108.1 KB) - added by rsuray 7 years ago.
log file
macx.conf.20171030 (291 bytes) - added by rsuray 7 years ago.
original macx.conf
qmake.conf.20171030 (267 bytes) - added by rsuray 7 years ago.
original qmake.conf
qmake.conf (297 bytes) - added by rsuray 7 years ago.
modified qmake.conf
macx.conf (322 bytes) - added by rsuray 7 years ago.
modified macx.conf
qdevice.pri (48 bytes) - added by rsuray 7 years ago.
qdevice.pri

Download all attachments as: .zip

Change History (18)

Changed 7 years ago by rsuray

Attachment: main.log added

log file

comment:1 Changed 7 years ago by rsuray

Hello

Here are some information

  • mac ox 10.12.6 (16G29) SIERRA
  • XCode Version 9.0.1 (9A1004)

Best regards

comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: MarcusCalhoun-Lopez added
Description: modified (diff)
Port: openconnect-gui added
Summary: error installation openconnect-gui : sdk erroropenconnect-gui @1.3: Project ERROR: Could not resolve SDK --show-sdk-path for 'macosx10.12'

Sure; Xcode 9 does not contain the 10.12 SDK, so programs like apparently openconnect-gui that expect Xcode to contain an SDK version that matches the macOS version will have problems. Actually I don't see mention of SDKs in openconnect-gui, but it uses Qt, so maybe all programs that use Qt have this problem.

comment:3 Changed 7 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: MarcusCalhoun-Lopez removed
Owner: set to MarcusCalhoun-Lopez
Port: qt5-qtbase added; openconnect-gui removed
Status: newaccepted

comment:4 Changed 7 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

This is a symptom of the same problem as #54044.
Qt was built using a version of Xcode that had the 10.12 SDK, which was then recorded in ${prefix}/libexec/qt5/mkspecs/qdevice.pri.
Later, Xcode was upgraded to a version that no longer possessed the SDK, but qmake continues to look for it.

comment:5 Changed 7 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: acceptedclosed

In adf50839857db7865896f10a46e9f24d5b95f699/macports-ports:

qt5*: do not record SDK version in config file

Upgrading Xcode sometimes removes SDKs.
If the SDK used to build Qt disappears, Qt still looks for
the old, nonexistent, SDK.

Fixes #54044
Fixes #55195

comment:6 Changed 7 years ago by rsuray

Resolution: fixed
Status: closedreopened

Hello

Here are the output of the 2 variables of the fixe #54044

mbp-loasis:openconnect-gui-1.3 loasis$ sdkparam=`xcodebuild -showsdks | awk '/^$/{p=0};p; /macOS SDKs:/{p=1}' | tail -1 | cut -f3` ; echo $sdkparam
-sdk macosx10.13
mbp-loasis:openconnect-gui-1.3 loasis$ sdkpath=`xcodebuild -version $sdkparam Path` ; echo $sdkpath
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
mbp-loasis:openconnect-gui-1.3 loasis$

In attached, the 2 files that i backuped before modification (named .20171030)

In attached the 2 files after modification After relaucnhed, the installation failed again with the same error messages

Best regards

Last edited 7 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 7 years ago by rsuray

Attachment: macx.conf.20171030 added

original macx.conf

Changed 7 years ago by rsuray

Attachment: qmake.conf.20171030 added

original qmake.conf

Changed 7 years ago by rsuray

Attachment: qmake.conf added

modified qmake.conf

Changed 7 years ago by rsuray

Attachment: macx.conf added

modified macx.conf

Changed 7 years ago by rsuray

Attachment: qdevice.pri added

qdevice.pri

comment:7 in reply to:  6 Changed 7 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Replying to rsuray:
It is possible that when you made the most recent attempt, the fix had not become available yet.
Please run the following commands

sudo port sync
sudo port clean qt5-qtbase openconnect-gui
sudo port install openconnect-gui

After this, please attach the main.log for the most recent clean build.

comment:8 Changed 7 years ago by rsuray

Hello

Now it's ok Thanks a lot

Best regards

comment:9 Changed 7 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: reopenedclosed

comment:10 in reply to:  5 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign added

Replying to MarcusCalhoun-Lopez:

In adf50839857db7865896f10a46e9f24d5b95f699/macports-ports:

qt5*: do not record SDK version in config file

Upgrading Xcode sometimes removes SDKs.
If the SDK used to build Qt disappears, Qt still looks for
the old, nonexistent, SDK.

Fixes #54044
Fixes #55195

So, now you're using -sdk macosx. Just to check: Does this work ok on older Xcode versions that don't have an SDK called "MacOSX"? e.g.:

$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.9.5
BuildVersion:	13F1911
$ xcodebuild -version
Xcode 6.2
Build version 6C131e
$ ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
MacOSX10.10.sdk	MacOSX10.9.sdk
$ 

comment:11 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:12 Changed 3 years ago by mascguy (Christopher Nielsen)

FYI, this is happening again for 10.11, when building LibreCAD and LibreCAD-devel:

issue:63061 - qt5: librecad build fails: could not resolve SDK Path for 'macosx10.11'

Note: See TracTickets for help on using tickets.