Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#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)

config.log (36.0 KB) - added by alexmartin715@… 8 years ago.
main.log (10.8 KB) - added by alexmartin715@… 8 years ago.

Download all attachments as: .zip

Change History (16)

Changed 8 years ago by alexmartin715@…

Attachment: config.log added

Changed 8 years ago by alexmartin715@…

Attachment: main.log added

comment:1 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 osSierragmp @6.1.1: error: C++ compiler not available, see config.log for details

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?

comment:2 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:3 Changed 8 years ago by shiqiu.iub@…

Cc: shiqiu.iub@… added

Cc Me!

comment:4 in reply to:  1 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:5 Changed 8 years ago by arthur.michaut@…

Cc: arthur.michaut@… added

Cc Me!

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 in reply to:  2 ; 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 in reply to:  8 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 7 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.

Last edited 7 years ago by murrayE (previous) (diff)

comment:12 Changed 7 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: invalid
Status: newclosed

This error seems to be limited to specific machines, especially if reinstalling MacPorts fixed it.

comment:13 Changed 7 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 in reply to:  13 Changed 7 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.

Note: See TracTickets for help on using tickets.