[MacPorts] #58659: nghttp2: fails to build with non-standard xcode path

MacPorts noreply at macports.org
Fri Jun 28 14:30:19 UTC 2019


#58659: nghttp2: fails to build with non-standard xcode path
----------------------+-------------------------
 Reporter:  lkraider  |      Owner:  Schamschula
     Type:  defect    |     Status:  assigned
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.5.4
 Keywords:            |       Port:  nghttp2
----------------------+-------------------------
 The build works up to a point, then fails trying to locate Xcode in
 another (hardcoded?) path:

 {{{
 :info:build libtool: link: /usr/bin/clang -pipe -Os
 -isysroot/Users/paul/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 -arch x86_64 -Wl,-headerpad_max_install_names -Wl,-syslibroot
 -Wl,/Users/paul/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 -arch x86_64 -o .libs/libevent-server libevent-server.o -pthread
 -L/opt/local/lib ../lib/.libs/libnghttp2.dylib ../third-party/.libs
 /liburl-parser.a -levent -levent_openssl -lcrypto -lssl -ldl -pthread
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_nghttp2/nghttp2/work/nghttp2-1.39.1/examples'
 :info:build Making all in python
 :info:build make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_nghttp2/nghttp2/work/nghttp2-1.39.1/python'
 :info:build /opt/local/bin/python2.7 setup.py build
 :info:build running build
 :info:build running build_ext
 :info:build building 'nghttp2' extension
 :info:build /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe
 -Os
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I../lib
 -I../lib/includes -I../lib/includes
 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
 -c nghttp2.c -o build/temp.macosx-10.14-x86_64-2.7/nghttp2.o
 :info:build clang: warning: no such sysroot directory:
 '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk'
 [-Wmissing-sysroot]
 :info:build In file included from nghttp2.c:4:
 :info:build
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:33:10:
 fatal error: 'stdio.h' file not found
 :info:build #include <stdio.h>
 :info:build          ^~~~~~~~~
 :info:build 1 error generated.
 :info:build error: command '/usr/bin/clang' failed with exit status 1
 }}}


 Correct Xcode path is:
 $ xcode-select -p
 /Users/paul/Applications/Xcode.app/Contents/Developer

 Build fails trying to access:
 /Applications/Xcode.app/Contents/Developer

-- 
Ticket URL: <https://trac.macports.org/ticket/58659>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list