#55057 closed defect (worksforme)
gmp doesn't build on Sierra: configure: error: could not find a working compiler
Reported by: | shapez0r | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.4.2 |
Keywords: | sierra | Cc: | |
Port: | gmp |
Description (last modified by kencu (Ken))
version:1 :debug:main Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_macports.inn.intel.com_ports_devel_gmp/gmp/work /opt/local/var/macports/sources/macports.inn.intel.com/ports/devel/gmp/work :debug:main Executing org.macports.main (gmp) :debug:archivefetch archivefetch phase started at Tue Oct 10 20:31:07 MSK 2017 :debug:archivefetch Executing org.macports.archivefetch (gmp) :debug:fetch fetch phase started at Tue Oct 10 20:31:07 MSK 2017 :notice:fetch ---> Fetching distfiles for gmp :debug:fetch Executing org.macports.fetch (gmp) :info:fetch ---> gmp-6.1.2.tar.bz2 does not exist in /opt/local/var/macports/distfiles/gmp :notice:fetch ---> Attempting to fetch gmp-6.1.2.tar.bz2 from http://mirror.cc.columbia.edu/pub/software/gnu/gmp :debug:checksum checksum phase started at Tue Oct 10 20:31:12 MSK 2017 :notice:checksum ---> Verifying checksums for gmp :debug:checksum Executing org.macports.checksum (gmp) :info:checksum ---> Checksumming gmp-6.1.2.tar.bz2 :debug:checksum Calculated (rmd160) is 03b905b4d7f243705b72b2d7595ce40df716020a :debug:checksum Correct (rmd160) checksum for gmp-6.1.2.tar.bz2 :debug:checksum Calculated (sha256) is 5275bb04f4863a13516b2f39392ac5e272f5e1bb8057b18aec1c9b79d73d8fb2 :debug:checksum Correct (sha256) checksum for gmp-6.1.2.tar.bz2 :debug:extract extract phase started at Tue Oct 10 20:31:12 MSK 2017 :notice:extract ---> Extracting gmp :debug:extract setting option extract.cmd to /usr/bin/bzip2 :debug:extract Executing org.macports.extract (gmp) :info:extract ---> Extracting gmp-6.1.2.tar.bz2 :debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/gmp/gmp-6.1.2.tar.bz2' :debug:extract Environment: :debug:extract CC_PRINT_OPTIONS='YES' :debug:extract CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_macports.inn.intel.com_ports_devel_gmp/gmp/work/.CC_PRINT_OPTIONS' :debug:extract CPATH='/opt/local/include' :debug:extract LIBRARY_PATH='/opt/local/lib' :debug:extract MACOSX_DEPLOYMENT_TARGET='10.12' :info:extract Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_macports.inn.intel.com_ports_devel_gmp/gmp/work" && /usr/bin/bzip2 -dc '/opt/local/var/macports/distfiles/gmp/gmp-6.1.2.tar.bz2' | /usr/bin/tar -xf - :debug:extract system: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_macports.inn.intel.com_ports_devel_gmp/gmp/work" && /usr/bin/bzip2 -dc '/opt/local/var/macports/distfiles/gmp/gmp-6.1.2.tar.bz2' | /usr/bin/tar -xf - :debug:patch patch phase started at Tue Oct 10 20:31:13 MSK 2017 :debug:patch Executing org.macports.patch (gmp) :notice:patch ---> Applying patches to gmp :info:patch ---> Applying patch-Makefile.in.diff :debug:patch Environment: :debug:patch CC_PRINT_OPTIONS='YES' :debug:patch CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_macports.inn.intel.com_ports_devel_gmp/gmp/work/.CC_PRINT_OPTIONS' :debug:patch CPATH='/opt/local/include' :debug:patch LIBRARY_PATH='/opt/local/lib' :debug:patch MACOSX_DEPLOYMENT_TARGET='10.12' :info:patch Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_macports.inn.intel.com_ports_devel_gmp/gmp/work/gmp-6.1.2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/macports.inn.intel.com/ports/devel/gmp/files/patch-Makefile.in.diff' :debug:patch system: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_macports.inn.intel.com_ports_devel_gmp/gmp/work/gmp-6.1.2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/macports.inn.intel.com/ports/devel/gmp/files/patch-Makefile.in.diff' :info:patch patching file Makefile.in :debug:patch Executing proc-post-org.macports.patch-patch-0 :info:patch ---> Patching gmp-h.in: s|"@CC@"|"/usr/bin/clang"|g :debug:patch Executing reinplace: /usr/bin/sed s|\"@CC@\"|\"/usr/bin/clang\"|g </opt/local/var/macports/build/_opt_local_var_macports_sources_macports.inn.intel.com_ports_devel_gmp/gmp/work/gmp-6.1.2/gmp-h.in >@file13 :debug:configure configure phase started at Tue Oct 10 20:31:13 MSK 2017 :notice:configure ---> Configuring gmp :debug:configure Preferred compilers: clang :debug:configure Using compiler 'Xcode Clang' :debug:configure Executing proc-pre-org.macports.configure-configure-0 :warn:configure No processor dependent assembly code being used. gmp might be slower. :debug:configure Executing org.macports.configure (gmp) :debug:configure Environment: :debug:configure ABI='64' :debug:configure AWK='/usr/bin/awk' :debug:configure CC='/usr/bin/clang' :debug:configure CC_PRINT_OPTIONS='YES' :debug:configure CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_macports.inn.intel.com_ports_devel_gmp/gmp/work/.CC_PRINT_OPTIONS' :debug:configure CPATH='/opt/local/include' :debug:configure CPPFLAGS='-I/opt/local/include' :debug:configure CXX='/usr/bin/clang++ -stdlib=libc++' :debug:configure F77FLAGS='-m64' :debug:configure F90FLAGS='-Os -m64' :debug:configure FCFLAGS='-Os -m64' :debug:configure FFLAGS='-Os' :debug:configure INSTALL='/usr/bin/install -c' :debug:configure LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names' :debug:configure LIBRARY_PATH='/opt/local/lib' :debug:configure MACOSX_DEPLOYMENT_TARGET='10.12' :debug:configure OBJC='/usr/bin/clang' :debug:configure OBJCFLAGS='-Os -arch x86_64' :debug:configure OBJCXX='/usr/bin/clang++' :debug:configure OBJCXXFLAGS='-arch x86_64' :info:configure Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_macports.inn.intel.com_ports_devel_gmp/gmp/work/gmp-6.1.2" && ./configure --prefix=/opt/local --enable-cxx :debug:configure system: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_macports.inn.intel.com_ports_devel_gmp/gmp/work/gmp-6.1.2" && ./configure --prefix=/opt/local --enable-cxx :info:configure checking build system type... x86_64-apple-darwin16.0.0 :info:configure checking host system type... x86_64-apple-darwin16.0.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... ./install-sh -c -d :info:configure checking for gawk... /usr/bin/awk :info:configure checking whether make sets $(MAKE)... no :info:configure checking whether make supports nested variables... no :info:configure checking whether to enable maintainer-specific portions of Makefiles... no :info:configure checking ABI=64 :info:configure checking compiler /usr/bin/clang -I/opt/local/include... 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/_opt_local_var_macports_sources_macports.inn.intel.com_ports_devel_gmp/gmp/work/gmp-6.1.2" && ./configure --prefix=/opt/local --enable-cxx :info:configure Exit code: 1 :error:configure Failed to configure gmp, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_macports.inn.intel.com_ports_devel_gmp/gmp/work/gmp-6.1.2/config.log :error:configure Failed to configure gmp: 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" :debug:configure Failed to locate 'lbzip2' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it? :debug:configure while executing :debug:configure "error "$eMessage or at its MacPorts configuration time location, did you move it?"" :debug:configure invoked from within :debug:configure "try -pass_signal { :debug:configure set cmd_path [macports::binaryInPath $prog] :debug:configure return $cmd_path :debug:configure } catch {{*} eCode eMessage} { :debug:configure ..." :debug:configure (procedure "macports::findBinary" line 5) :error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_macports.inn.intel.com_ports_devel_gmp/gmp/main.log for details.
Change History (9)
comment:1 Changed 7 years ago by kencu (Ken)
comment:2 Changed 7 years ago by kencu (Ken)
Cc: | ryandesign removed |
---|---|
Description: | modified (diff) |
Keywords: | wget removed |
Owner: | set to MarcusCalhoun-Lopez |
Port: | gmp added; wget removed |
Status: | new → assigned |
Summary: | wget doesn't build on 10.12(.6) Sierra → gmp doesn't build on Sierra: configure: error: could not find a working compiler |
comment:3 Changed 7 years ago by shapez0r
yes, it's 10.12 16A323 with xcode 9 9A235, but indeed no clang inside /usr/bin
comment:4 follow-up: 5 Changed 7 years ago by kencu (Ken)
My first observation is that gmp
builds on every system on the buildbots <http://packages.macports.org/gmp/>. So that suggests it's something local on your end.
Second -- so, why aren't you getting the binary for gmp
from the buildbot? Why is your system trying to build it? Have you set it up that way on purpose?
Third, now why are you running as root? That could well mess up your path, and other things. I never run as root, and there's precious little I can't do with sudo
when I need it.
I don't think this has to do with 10.12.6, or gmp
or wget
specifically, but it's something to do with your setup that we have yet to pinpoint.
Have you tried running port diagnose
?
comment:5 follow-up: 6 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to kencu:
Second -- so, why aren't you getting the binary for
gmp
from the buildbot? Why is your system trying to build it? Have you set it up that way on purpose?
Because the gmp port deliberately disables binary fetching. See #41614.
Third, now why are you running as root? That could well mess up your path, and other things. I never run as root, and there's precious little I can't do with
sudo
when I need it.
I agree with that.
I don't think this has to do with 10.12.6,
Why not? If Xcode requires that version of macOS, and the user doesn't have it, that seems a highly likely cause for the failure.
comment:6 follow-up: 7 Changed 7 years ago by kencu (Ken)
Replying to ryandesign:
Why not? If Xcode requires that version of macOS, and the user doesn't have it, that seems a highly likely cause for the failure.
Just because his original post said he was on 10.12.6 already ... wget doesn't build on 10.12(.6) Sierra
and I don't think the App Store would install Xcode 9 on an incompatible system. But I could be wrong there.
comment:7 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to kencu:
Just because his original post said he was on 10.12.6 already ...
wget doesn't build on 10.12(.6) Sierra
And then he said it's 10.12 16A323. 10.12.6 would be 16G29.
and I don't think the App Store would install Xcode 9 on an incompatible system. But I could be wrong there.
I also think that, but it could have been installed by downloading from the Apple developer site or by copying the app from another computer.
If updating to 10.12.6 doesn't fix it, verify that you've selected your Xcode using xcode-select
.
comment:8 Changed 7 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
Others seem to have encountered this problem (see here and here), but the consensus was that it was a result of a misconfigured system.
I will close this ticket since this does not seem to be a gmp specific problem.
I would suggest trying some of the advice in the links.
You might also try the MacPorts MailingLists.
comment:9 Changed 7 years ago by shapez0r
indeed it was lack of 10.12.6 for xcode 9, 10.12.0 was not enough. xcode9 still was able to be installed because of a script-unxip type of installation, not GUI, but couldn't be launched though. thank you for your quick reaction anyway!
do you have the command-line tools installed (is there anything in
/usr/bin/clang
?)