[MacPorts] #52335: Xorg-libX11 1.6.3 fails to configure on sierra with Xcode 8.0
#52335: Xorg-libX11 1.6.3 fails to configure on sierra with Xcode 8.0 ----------------------------+-------------------------------- Reporter: Julian.Byrne@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: sierra | Port: org-libX11 ----------------------------+-------------------------------- Configure script fails with error: {{{ :info:configure checking for cpp... /usr/bin/cpp :info:configure checking if /usr/bin/cpp requires -undef... configure: error: /usr/bin/cpp defines unix with or without -undef. I don't know what to do. :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_x11_xorg-libX11/xorg-libX11/work/libX11-1.6.3" && ./configure --prefix=/opt/local --without-xmlto --without-fop --disable-specs :info:configure Exit code: 1 }}} -- Ticket URL: <https://trac.macports.org/ticket/52335> MacPorts <https://www.macports.org/> Ports system for macOS
#52335: xorg-libX11 @1.6.3: fails to configure on sierra with Xcode 8.0 -----------------------------+------------------------ Reporter: Julian.Byrne@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: xorg-libX11 | -----------------------------+------------------------ Changes (by ryandesign@…): * owner: macports-tickets@… => jeremyhu@… * port: org-libX11 => xorg-libX11 Comment: It built fine on our build server (see https://packages.macports.org/xorg- libX11/) which suggests a problem on your system. Make sure you have the Xcode 8 version of the command line tools installed too. -- Ticket URL: <https://trac.macports.org/ticket/52335#comment:1> MacPorts <https://www.macports.org/> Ports system for macOS
#52335: xorg-libX11 @1.6.3: fails to configure on sierra with Xcode 8.0 -----------------------------+------------------------ Reporter: Julian.Byrne@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: xorg-libX11 | -----------------------------+------------------------ Comment (by jeremyhu@…): Please post your config.log -- Ticket URL: <https://trac.macports.org/ticket/52335#comment:2> MacPorts <https://www.macports.org/> Ports system for macOS
#52335: xorg-libX11 @1.6.3: fails to configure on sierra with Xcode 8.0 -----------------------------+------------------------ Reporter: Julian.Byrne@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: xorg-libX11 | -----------------------------+------------------------ Comment (by Julian.Byrne@…): config.log and main.log attached. How do I verify XCode command line tools are correct version? Possibly relevant: * The xorg-libX11 configure script is hardwired to use /usr/bin/cpp, not cpp from the PATH. * /usr/bin/cpp is now acting as a noop - no error with any argument but no processing either. Different from a few days ago (assuming I haven't made an error...) when it apparently accepted arguments (eg. -dM) and processed as expected. Some system updates and MacPorts installs since then. * md5 /usr/bin/cpp -> 34269fdd32c114870b1114dbd6db4f7d . * The failure is on a box that has been upgraded from Yosemite to El Capitan to Sierra. * All current XCode or system software updates applied. * Attached hexdump appears to show /usr/bin/cpp is a shim, not the actual cpp. * xcode-select version 2345.1. * xcode-select -p gives /Applications/Xcode.app/Contents/Developer . * /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cpp is a shell script which claims in the comments that cpp is deprecated. This script calls xcrun - see ticket #52200. * Root can't rename /usr/bin/cpp however I hacked the xorg-libX11 configure script to use /opt/local/bin/cpp-mp-6 instead and it configured & built fine. -- Ticket URL: <https://trac.macports.org/ticket/52335#comment:3> MacPorts <https://www.macports.org/> Ports system for macOS
#52335: xorg-libX11 @1.6.3: fails to configure on sierra with Xcode 8.0 -----------------------------+------------------------ Reporter: Julian.Byrne@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: xorg-libX11 | -----------------------------+------------------------ Comment (by Julian.Byrne@…): Whoops. I aliased /opt/local/bin/xcrun to /usr/bin/true as part of a workaround #52200. That's the reason for the noop - sorry for the confusion. {{{ /usr/bin/cpp -dM -undef - - < /dev/null|grep unix /usr/bin/cpp -dM - - < /dev/null|grep unix }}} both give nothing - the reason for the failure of the configure script which depends on the "unix" definition for it's check. -- Ticket URL: <https://trac.macports.org/ticket/52335#comment:4> MacPorts <https://www.macports.org/> Ports system for macOS
#52335: xorg-libX11 @1.6.3: fails to configure on sierra with Xcode 8.0 -----------------------------+------------------------ Reporter: Julian.Byrne@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: xorg-libX11 | -----------------------------+------------------------ Comment (by Julian.Byrne@…): I've tested the new Xorg-libX11 version 1.6.4_0+universal under sierra. It supersedes Xorg-libX11 1.6.3 and fixes this problem. As far as I'm concerned this ticket is resolved and can be closed. -- Ticket URL: <https://trac.macports.org/ticket/52335#comment:5> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
#52335: xorg-libX11 @1.6.3: fails to configure on sierra with Xcode 8.0 -----------------------------+------------------------ Reporter: Julian.Byrne@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: worksforme | Keywords: sierra Port: xorg-libX11 | -----------------------------+------------------------ Changes (by jeremyhu@…): * status: new => closed * resolution: => worksforme Comment: There was absolutely nothing in that release that had anything to do with this, and given that nobody else reported this issue, I'm just going to close this. -- Ticket URL: <https://trac.macports.org/ticket/52335#comment:6> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
participants (1)
-
MacPorts