Opened 10 years ago
Closed 10 years ago
#45131 closed defect (invalid)
Unable to update gmp
Reported by: | mikemadden42@… | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.1 |
Keywords: | Cc: | ||
Port: | gmp |
Description (last modified by mf2k (Frank Schima))
I'm using the following commands to update my ports, but I'm running into an issue updating gmp.
sudo port selfupdate sudo port outdated sudo port upgrade outdated The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated The following installed ports are outdated: gmp 6.0.0_0 < 6.0.0_1 gnutls 3.3.7_0 < 3.3.8_0 $ sudo port upgrade outdated ---> Building gmp Error: org.macports.build for port gmp returned: 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 Error: Unable to upgrade port: 1 To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets
Attachments (1)
Change History (9)
comment:1 Changed 10 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to mcalhoun@… |
---|---|
Port: | gmp added |
comment:2 Changed 10 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|
Changed 10 years ago by mikemadden42@…
log file attempted to upgrade gmp
comment:3 Changed 10 years ago by mikemadden42@…
I've ran sudo port clean gmp
and sudo port upgrade outdated
. I've attached a new main.log file.
comment:4 Changed 10 years ago by mf2k (Frank Schima)
The following error shows up frequently in your log:
error: couldn't create cache file '/var/folders/h6/3f7lvmw96_jbw0w9tmn54rph0000gq/T/xcrun_db-GObdiH4N' (errno=Permission denied)
Are you out of disk space?
comment:4 Changed 10 years ago by mf2k (Frank Schima)
The following error shows up frequently in your log:
error: couldn't create cache file '/var/folders/h6/3f7lvmw96_jbw0w9tmn54rph0000gq/T/xcrun_db-GObdiH4N' (errno=Permission denied)
Are you out of disk space?
comment:5 Changed 10 years ago by neverpanic (Clemens Lang)
These clang errors are actually errors but they fail to terminate compilation like they should. Clang miscompiles code when this happens (as in your example). A workaround is usually to outright delete the offending folder (i.e. /var/folders/h6/3f7lvmw96_jbw0w9tmn54rph0000gq
in your case). Then clean and try again.
This happens because the folder gets created as root, but MacPorts subsequently tries to use it as the macports user, which consequently fails afterwards. We're just not sure *where* MacPorts is calling the compiler as root, or we would have fixed it.
comment:6 Changed 10 years ago by mikemadden42@…
Doing the following has fixed the issue I'd seen upgrading gmp:
sudo rm -rf /var/folders/h6/3f7lvmw96_jbw0w9tmn54rph0000gq sudo port clean gmp && sudo port upgrade outdated
comment:7 Changed 10 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → invalid |
---|---|
Status: | new → closed |
In the future, please use WikiFormatting, fill in the Port field and Cc the port maintainers (
port info --maintainers gmp
).This is not a clean build log. Please
clean
the port and try again. Then attach the new main.log file.