#55281 closed defect (invalid)
gmp: compile error on High Sierra
Reported by: | mluzum | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.4.2 |
Keywords: | Cc: | ||
Port: | gmp |
Description
gmp fails to compile after migrating to High Sierra. No problems with compiling other packages after migration. config.log and main.log attached.
$ sudo port clean gmp Password: ---> Cleaning gmp $ sudo port install gmp ---> 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.2/config.log Error: Failed to configure gmp: configure failure: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port gmp failed
Attachments (4)
Change History (12)
Changed 7 years ago by mluzum
Changed 7 years ago by mluzum
Attachment: | config.log added |
---|
comment:1 Changed 7 years ago by mf2k (Frank Schima)
Cc: | mcalhoun removed |
---|---|
Owner: | set to MarcusCalhoun-Lopez |
Status: | new → assigned |
comment:2 Changed 7 years ago by mf2k (Frank Schima)
Error is:
:info:configure configure: error: could not find a working compiler, see config.log for details
Is your Xcode updated with the latest command line tools installed?
comment:3 Changed 7 years ago by mluzum
Yes, I have upgraded to the latest Xcode (9.1), with the latest command line tools installed. No other macports packages that I have tried have any problems.
I noticed the error message, but I haven't been able to figure out what the real problem is.
comment:4 Changed 7 years ago by kencu (Ken)
I just built this with a similar system without issue; there must be something local on your system messing you up. Please make sure you have nothing at all in /usr/local
, especially any modified system headers or similar things you might possibly have put there. You can also try building in "trace" mode to reduce the chances of outside issues sudo port -v -t install gmp
.
I'll upload my configure log and build log for you to compare if you find that helpful. All I could see was that your Availability.h does not appear to be providing proper values.
Changed 7 years ago by kencu (Ken)
Attachment: | config.gmp.log added |
---|
Changed 7 years ago by kencu (Ken)
comment:5 Changed 7 years ago by mluzum
Thanks. That pointed me to the problem. It was indeed /opt/local/include/Availability.h, which had the wrong permissions and wasn't being removed when I uninstalled all the installed ports during migration from Sierra. I'm not sure what package it was from originally, but I manually changed permissions and deleted the file, and now gmp complies with no problem.
comment:6 Changed 7 years ago by kencu (Ken)
Hacking Availability.h and putting a copy in /usr/local/include
or /opt/local/include/
was something that was suggested by some a couple of years back to fix some temporary hiccup in Apple's header -- it worked to get past the issue of the moment -- but it nicely illustrates the down-the-road, hard-to-debug nonsense that can happen later on when you forget about that. There must have been a dozen tickets so far about that exact same issue, most often manifesting as SWIFT_UNAVAILABLE
.
Glad you sorted it out.
comment:7 Changed 7 years ago by kencu (Ken)
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
comment:8 Changed 7 years ago by mluzum
I don't specifically remember doing it, but I'm sure that's exactly what happened. Thanks for the help, and sorry for the trouble.
Trac requires email addresses or Github handles.