#52326 closed defect (invalid)
gmp @6.1.1: error: C++ compiler not available, see config.log for details
Reported by: | alexmartin715@… | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | sierra | Cc: | shiqiu.iub@…, arthur.michaut@… |
Port: | gmp |
Description
I have installed the latest Xcode (8.0) and command line tools. When I run
sudo port install gmp +universal
I get:
---> Fetching distfiles for gmp ---> Verifying checksums for gmp ---> Extracting gmp ---> Applying patches to gmp ---> Configuring gmp Error: Failed to configure gmp, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.1.1-x86_64/config.log Error: org.macports.configure for port gmp returned: configure failure: command execution failed Please see the log file for port gmp for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port gmp failed
I have tried cleaning and I have attached the config.log and main.log
Attachments (2)
Change History (16)
Changed 8 years ago by alexmartin715@…
Attachment: | config.log added |
---|
Changed 8 years ago by alexmartin715@…
comment:1 follow-up: 4 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | sierra added |
---|---|
Owner: | changed from macports-tickets@… to mcalhoun@… |
Port: | gmp added |
Summary: | Failed to configure gmp on osSierra → gmp @6.1.1: error: C++ compiler not available, see config.log for details |
comment:2 follow-up: 8 Changed 8 years ago by a.j.martin@…
Thanks, for the reply it could quite well be something on my machine. I have reinstalled Xcode and it is version 8. I did the command to install command line tools also and it says already installed, for updates go through the App Store and there are none available.
comment:4 Changed 8 years ago by shiqiu.iub@…
Replying to ryandesign@…:
gmp built successfully on our Sierra buildbot worker, which suggests a problem on your machine. Are you certain you installed both Xcode 8 and the Xcode 8 version of the command line tools?
gmp built manually and passd all tests, but complained when installing via macports on my machine. I have Xcode 8 and the correct command line tool installed.
comment:6 Changed 8 years ago by arthur.michaut@…
Same error message. Xcode and command line tools are installed as well.
comment:7 Changed 8 years ago by andre.david@…
FWIW, I just processed my upgrade and gmp @6.1.1_0+universal
installed without issue.
comment:8 follow-up: 10 Changed 8 years ago by shiqiu.iub@…
the problem appears to your older version of macports. Remove your macports completely as instructed and reinstall. In this way, gmp builds fine on my machine.
comment:9 Changed 8 years ago by arthur.michaut@…
You are right. I completely removed the old version by removing /opt/local and installed the new version. The installation of the gmp port went smoothly afterwards. Problem solved for me.
comment:10 Changed 8 years ago by a.j.martin@…
Replying to shiqiu.iub@…:
the problem appears to your older version of macports. Remove your macports completely as instructed and reinstall. In this way, gmp builds fine on my machine.
This works fine for me thanks for the advice! gmp now installs.
comment:11 Changed 8 years ago by murrayE
Just went through migration process from El Capitan to Sierra (10.12.1), and even trying
sudo port install gmp @6.1.1_0+universal
failed. Error in configure, I thing at:
:debug:configure could not read "/opt/local/share/man/man5/stab.5.gz": no such file or directory while executing
And, alas, that prevents reinstalling lots of other ports, since gcc depends on gmp, among others.
comment:12 Changed 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → invalid |
---|---|
Status: | new → closed |
This error seems to be limited to specific machines, especially if reinstalling MacPorts fixed it.
comment:13 follow-up: 14 Changed 8 years ago by dershow
I just followed the migration instructions, after moving to a new computer. Yet, I could not get gmp to build. I had reinstalled macports and also tried reinstalling xcode. Finally, I deleted all of /opt/local and then fully reinstalled macports, and then was able to get gmp to configure. So, something is wrong with where the gmp port leaves something when building.
comment:14 Changed 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Replying to dershow:
I just followed the migration instructions, after moving to a new computer. Yet, I could not get gmp to build. I had reinstalled macports and also tried reinstalling xcode. Finally, I deleted all of /opt/local and then fully reinstalled macports, and then was able to get gmp to configure. So, something is wrong with where the gmp port leaves something when building.
gmp has been upgraded since this ticket was opened.
Would you please post the new main.log.
gmp built successfully on our Sierra buildbot worker, which suggests a problem on your machine. Are you certain you installed both Xcode 8 and the Xcode 8 version of the command line tools?