[MacPorts] #43262: gmp @6.0.0: error: could not find a working compiler, see config.log for details
#43262: gmp @6.0.0: error: could not find a working compiler, see config.log for details --------------------------+------------------------ Reporter: ryandesign@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.99 Keywords: | Port: gmp --------------------------+------------------------ Trying to upgrade gmp universal fails at configuring the i386 part: {{{ :info:configure ---> Configuring gmp for architecture i386 :debug:configure Environment: ABI='32' CC='ccache /usr/bin/clang' CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_gmp/gmp/work/.CC_PRINT_OPTIONS' CFLAGS='-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk' CPATH='/opt/local/include' CPPFLAGS='-I/opt/local/include -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk' CXX='ccache /usr/bin/clang++ -stdlib=libc++' CXXFLAGS='-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk' F90FLAGS='-Os' FCFLAGS='-Os' FFLAGS='-Os' INSTALL='/usr/bin/install -c' LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.9' NM='/usr/bin/nm' OBJC='ccache /usr/bin/clang' OBJCFLAGS='-Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk' OBJCXX='ccache /usr/bin/clang++' OBJCXXFLAGS='-Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk' :debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_gmp/gmp/work/gmp-6.0.0-i386" && ./configure --prefix=/opt/local --enable-cxx' :debug:configure Executing command line: cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_gmp/gmp/work/gmp-6.0.0-i386" && ./configure --prefix=/opt/local --enable-cxx :info:configure checking build system type... coreisbr-apple-darwin13.1.0 :info:configure checking host system type... coreisbr-apple-darwin13.1.0 :info:configure checking for a BSD-compatible install... /usr/bin/install -c :info:configure checking whether build environment is sane... yes :info:configure checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p :info:configure checking for gawk... gawk :info:configure checking whether make sets $(MAKE)... yes :info:configure checking whether to enable maintainer-specific portions of Makefiles... no :info:configure checking ABI=32 :info:configure checking whether ccache /usr/bin/clang is gcc... yes :info:configure checking compiler ccache /usr/bin/clang -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -I/opt/local/include -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk... yes :info:configure checking compiler ccache /usr/bin/clang -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk has sizeof(long)==4... no :info:configure configure: error: could not find a working compiler, see config.log for details :info:configure Command failed: cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_gmp/gmp/work/gmp-6.0.0-i386" && ./configure --prefix=/opt/local --enable-cxx :info:configure Exit code: 1 }}} config.log says: {{{ configure:6840: checking compiler ccache /usr/bin/clang -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk has sizeof(long)==4 configure:6853: ccache /usr/bin/clang -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -c conftest.c >&5 conftest.c:4:26: error: 'test_array' declared as an array with a negative size static int test_array [1 - 2 * (long) (sizeof (long) != 4)]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. configure:6856: $? = 1 configure:6861: result: no configure:6903: error: could not find a working compiler, see config.log for details }}} -- Ticket URL: <https://trac.macports.org/ticket/43262> MacPorts <http://www.macports.org/> Ports system for OS X
#43262: gmp @6.0.0: error: could not find a working compiler, see config.log for details ---------------------------+------------------------ Reporter: ryandesign@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.99 Resolution: | Keywords: Port: gmp | ---------------------------+------------------------ Changes (by mcalhoun@…): * status: new => assigned Comment: There is another bug report (#36704) that indicates that ccache may be a problem when used with gmp.[[BR]] Without it, does the compile succeed? -- Ticket URL: <https://trac.macports.org/ticket/43262#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#43262: gmp @6.0.0: error: could not find a working compiler, see config.log for details ---------------------------+------------------------ Reporter: ryandesign@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.99 Resolution: | Keywords: Port: gmp | ---------------------------+------------------------ Comment (by ryandesign@…): No change without ccache; I attached logfiles. -- Ticket URL: <https://trac.macports.org/ticket/43262#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#43262: gmp @6.0.0: error: could not find a working compiler, see config.log for details ---------------------------+------------------------ Reporter: ryandesign@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.99 Resolution: | Keywords: Port: gmp | ---------------------------+------------------------ Comment (by mcalhoun@…): CFLAGS and CXXFLAGS must be empty when configure is run.[[BR]] As best I can tell, the problem is: {{{ CFLAGS='-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk' }}} Could you please try the attached patch to see if it works in clearing CFLAGS. -- Ticket URL: <https://trac.macports.org/ticket/43262#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#43262: gmp @6.0.0: error: could not find a working compiler, see config.log for details ---------------------------+------------------------ Reporter: ryandesign@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.99 Resolution: | Keywords: Port: gmp | ---------------------------+------------------------ Comment (by ryandesign@…): Ah, that would be because I'm using the patch from #41783. -- Ticket URL: <https://trac.macports.org/ticket/43262#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#43262: gmp @6.0.0: error: could not find a working compiler, see config.log for details ---------------------------+------------------------ Reporter: ryandesign@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.99 Resolution: | Keywords: haspatch Port: gmp | ---------------------------+------------------------ Changes (by ryandesign@…): * keywords: => haspatch Comment: Thanks, yes, that works. I used the slightly different patch that I've attached: no space between `-isysroot` and its value, no quotes around it, and no revision increase. -- Ticket URL: <https://trac.macports.org/ticket/43262#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#43262: gmp @6.0.0: error: could not find a working compiler, see config.log for details ---------------------------+------------------------ Reporter: ryandesign@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.99 Resolution: fixed | Keywords: haspatch Port: gmp | ---------------------------+------------------------ Changes (by mcalhoun@…): * status: assigned => closed * resolution: => fixed Comment: Fixed in r118841. -- Ticket URL: <https://trac.macports.org/ticket/43262#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts