#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)
Change History (18)
Changed 7 years ago by rsuray
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 error → openconnect-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: | new → accepted |
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 follow-up: 10 Changed 7 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:6 follow-up: 7 Changed 7 years ago by rsuray
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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
comment:7 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:9 Changed 7 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:10 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign added |
---|
Replying to MarcusCalhoun-Lopez:
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'
log file