[MacPorts] #43282: gmp fails to build
#43282: gmp fails to build -------------------------------+-------------------------------- Reporter: Maurizio.Loreti@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: gmp | Port: gmp -------------------------------+-------------------------------- I have two computers running OS X 10.9.2, a macbook and an imac. While on the macbook gmp-6.0.0a has been upgraded correctly, on the imac I get errors. In the log file is reported several times an error like {{{ error: couldn't create cache file '/var/folders/1x/1dr7qt7n2rn1zbvly71c3vx40000gv/T/...name... }}} so I have tried to manually sudo chmod 755 /var/folders/1x/1dr7qt7n2rn1zbvly71c3vx40000gv/T/ without changes. The commands to upgrade are {{{ MLO@bigmac 16 $ sudo port clean gmp ---> Cleaning gmp MLO@bigmac 17 $ sudo port upgrade gmp Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. ---> Fetching distfiles for gmp ---> Verifying checksums for gmp ---> Extracting gmp ---> Configuring gmp ---> 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 MLO@bigmac 18 $ }}} The logfile (compressed) is in the attachment. -- Ticket URL: <https://trac.macports.org/ticket/43282> MacPorts <http://www.macports.org/> Ports system for OS X
#43282: gmp fails to build --------------------------------+------------------------ Reporter: Maurizio.Loreti@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: gmp | --------------------------------+------------------------ Changes (by ryandesign@…): * owner: macports-tickets@… => mcalhoun@… * cc: mcalhoun@…, Maurizio.Loreti@… (removed) * keywords: gmp => Comment: Are you able to use `xcrun` manually, outside of MacPorts? This does not sound like a gmp- or MacPorts-specific problem; it sounds like your permissions, somewhere, are wront. -- Ticket URL: <https://trac.macports.org/ticket/43282#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#43282: gmp fails to build --------------------------------+------------------------ Reporter: Maurizio.Loreti@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: gmp | --------------------------------+------------------------ Comment (by Maurizio.Loreti@…): Replying to [comment:2 ryandesign@…]:
Are you able to use `xcrun` manually, outside of MacPorts? This does not sound like a gmp- or MacPorts-specific problem; it sounds like your permissions, somewhere, are wront.
Oh, I forgot - having read in the log file that errors were related to file permissions, I ran Disk Utility in order to repair them. Nothing changed, I got the same error. What do you mean by "manually using xcrun"? -- Ticket URL: <https://trac.macports.org/ticket/43282#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#43282: gmp fails to build --------------------------------+------------------------ Reporter: Maurizio.Loreti@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: gmp | --------------------------------+------------------------ Comment (by bmhatfield@…): I'd like to note that I'm also having this problem. I'm not installing gmp or running anything outside of macports manually; it's being brought in as a dependency. {{{ :info:build clang: error: couldn't create cache file '/var/folders/s9/04wtzlb97xv9zvq6f6qg68j80000gq/T/xcrun_db-gQNIwNSa' (errno=Permission denied) :info:build ld: illegal text-relocation to '___gmp_binvert_limb_table' in .libs/mp_minv_tab.o from '___gmpn_divexact_1' in mpn/.libs/dive_1.o for architecture x86_64 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build make[2]: *** [libgmp.la] Error 1 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.0.0' :info:build make[1]: *** [all-recursive] Error 1 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.0.0' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.0.0' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.0.0" && /usr/bin/make -j4 -w all :info:build Exit code: 2 :error:build org.macports.build for port gmp returned: command execution failed :debug:build Error code: CHILDSTATUS 26278 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: targets not executed for gmp: org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/43282#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#43282: gmp fails to build --------------------------------+------------------------ Reporter: Maurizio.Loreti@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: gmp | --------------------------------+------------------------ Comment (by bmhatfield@…): I'd like to additionally add that this issue is blocking the ability to rebuild openssl + dependencies w/r/t heartbleed. -- Ticket URL: <https://trac.macports.org/ticket/43282#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#43282: gmp fails to build --------------------------------+------------------------ Reporter: Maurizio.Loreti@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: gmp | --------------------------------+------------------------ Comment (by jweede@…): The xcrun message looks like a redherring: it occurs many times. The linker failure (illegal text-relocation) is likely the real error. -- Ticket URL: <https://trac.macports.org/ticket/43282#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#43282: gmp fails to build --------------------------------+------------------------ Reporter: Maurizio.Loreti@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: gmp | --------------------------------+------------------------ Comment (by cal@…): Try `sudo rm -rf /var/folders/1x/1dr7qt7n2rn1zbvly71c3vx40000gv`, clean the port and try again. I've seen this a couple of times, but I'm not sure why it happens. The files are only caches, though, so deleting them isn't a problem -- they'll be re-created anyway. -- Ticket URL: <https://trac.macports.org/ticket/43282#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#43282: gmp fails to build --------------------------------+------------------------ Reporter: Maurizio.Loreti@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: gmp | --------------------------------+------------------------ Comment (by snc@…): Replying to [comment:9 cal@…]:
Try `sudo rm -rf /var/folders/1x/1dr7qt7n2rn1zbvly71c3vx40000gv`, clean the port and try again.
Confirmed: this is fixed by removing the tmp dir and cleaning leads to a successful install. -- Ticket URL: <https://trac.macports.org/ticket/43282#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#43282: gmp fails to build --------------------------------+------------------------ Reporter: Maurizio.Loreti@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: gmp | --------------------------------+------------------------ Comment (by jweede@…): Issue resolved. Thanks! -- Ticket URL: <https://trac.macports.org/ticket/43282#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#43282: gmp fails to build --------------------------------+------------------------ Reporter: Maurizio.Loreti@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: gmp | --------------------------------+------------------------ Comment (by Maurizio.Loreti@…): Replying to [comment:9 cal@…]:
Try `sudo rm -rf /var/folders/1x/1dr7qt7n2rn1zbvly71c3vx40000gv`, clean the port and try again. I've seen this a couple of times, but I'm not sure why it happens. The files are only caches, though, so deleting them isn't a problem -- they'll be re-created anyway.
Well, now gmp upgrades correctly to the last version. Thank you for the fix... -- Ticket URL: <https://trac.macports.org/ticket/43282#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#43282: gmp fails to build --------------------------------+------------------------ Reporter: Maurizio.Loreti@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: invalid | Keywords: Port: gmp | --------------------------------+------------------------ Changes (by mcalhoun@…): * status: new => closed * resolution: => invalid Comment: Closing ticket since this doesn't seem to be a MacPorts-related issue and a workaround was provided. -- Ticket URL: <https://trac.macports.org/ticket/43282#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts