[MacPorts] #45039: Gmp builds Failed
#45039: Gmp builds Failed --------------------------+-------------------------------- Reporter: ontologiae@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: MacPorts Future Component: ports | Version: 2.3.1 Keywords: gmp, failed | Port: gmp --------------------------+-------------------------------- Initial command : {{{ sudo port -d install gcc49 }}} Debug message : {{{ info:build Exit code: 2 :error:build org.macports.build for port gmp returned: command execution failed :debug:build Error code: CHILDSTATUS 29140 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 "portbuild::build_main org.macports.build" ("eval" body line 1) invoked from within "eval $procedure $targetname" :info:build Warning: targets not executed for gmp: org.macports.activate org.macports.build org.macports.destroot org.macports.install :error:build Failed to install gmp :debug:build Registry error: mpfr not registered as installed & active. }}} I dig into it by executing {{{ 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 -w all }}} (removed the -j8 for safety) and i got : {{{ libtool: compile: /usr/bin/clang++ -stdlib=libc++ -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMPXX -I.. -I/opt/local/include -O2 -pedantic -fomit- frame-pointer -m64 -mtune=corei7 -march=corei7 -c limits.cc -fno-common -DPIC -o .libs/limits.o libtool: compile: /usr/bin/clang++ -stdlib=libc++ -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMPXX -I.. -I/opt/local/include -O2 -pedantic -fomit- frame-pointer -m64 -mtune=corei7 -march=corei7 -c osmpq.cc -fno-common -DPIC -o .libs/osmpq.o clang++clang++: : warning: warning: argument unused during compilation: '-stdlib=libc++'argument unused during compilation: '-stdlib=libc++' libtool: compile: /usr/bin/clang++ -stdlib=libc++ -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMPXX -I.. -I/opt/local/include -O2 -pedantic -fomit- frame-pointer -m64 -mtune=corei7 -march=corei7 -c osmpz.cc -fno-common -DPIC -o .libs/osmpz.o clang++: warning: argument unused during compilation: '-stdlib=libc++' clang++: warning: argument unused during compilation: '-stdlib=libc++' In file included from limits.cc:31: ../gmpxx.h:1430:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpz_set_str"); ^ ../gmpxx.h:1438:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpz_set_str"); ^ ../gmpxx.h:1464:7: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpz_set_str"); ^ ../gmpxx.h:1470:7: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpz_set_str"); ^ ../gmpxx.h:1597:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpq_set_str"); ^ ../gmpxx.h:1606:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpq_set_str"); ^ ../gmpxx.h:1643:7: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpq_set_str"); ^ ../gmpxx.h:1649:7: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpq_set_str"); ^ ../gmpxx.h:1805:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpf_set_str"); ^ ../gmpxx.h:1814:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpf_set_str"); ^ ../gmpxx.h:1822:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpf_set_str"); ^ ../gmpxx.h:1831:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpf_set_str"); ^ ../gmpxx.h:1860:7: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpf_set_str"); ^ ../gmpxx.h:1866:7: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpf_set_str"); ^ /var/folders/nh/pbvym9z90wj_9kt95s16p_3h0000gq/T/cc- mLDxBI.s:unknown:FATAL:can't create output file: .libs/osmpz.o clang++: error: assembler command failed with exit code 1 (use -v to see invocation) make[2]: *** [osmpz.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... ../gmpxx.h:3133:7: error: cannot use 'throw' with exceptions disabled throw std::length_error ("gmp_randinit_lc_2exp_size"); ^ 15 errors generated. make[2]: *** [limits.lo] Error 1 /var/folders/nh/pbvym9z90wj_9kt95s16p_3h0000gq/T/cc- q08JoV.s:unknown:FATAL:can't create output file: .libs/osmpf.o /var/folders/nh/pbvym9z90wj_9kt95s16p_3h0000gq/T/cc- 85nIdl.s:unknown:FATAL:can't create output file: .libs/osmpq.o clang++: error: clang++assembler command failed with exit code 1 (use -v to see invocation): error: assembler command failed with exit code 1 (use -v to see invocation) make[2]: *** [osmpq.lo] Error 1 make[2]: *** [osmpf.lo] Error 1 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/cxx' make[1]: *** [all-recursive] Error 1 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' make: *** [all] Error 2 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' }}} I tried to execute it with -fexception flag, but it doesn't change nothing {{{ $ /usr/bin/clang++ -stdlib=libc++ -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMPXX -I.. -I/opt/local/include -O2 -pedantic -fomit-frame- pointer -m64 -mtune=corei7 -march=corei7 -fexceptions -fcxx-exceptions -c limits.cc clang++: warning: argument unused during compilation: '-stdlib=libc++' clang++: warning: argument unused during compilation: '-fcxx-exceptions' In file included from limits.cc:31: ../gmpxx.h:1430:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpz_set_str"); ^ ../gmpxx.h:1438:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpz_set_str"); ^ ../gmpxx.h:1464:7: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpz_set_str"); ^ ../gmpxx.h:1470:7: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpz_set_str"); ^ ../gmpxx.h:1597:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpq_set_str"); ^ ../gmpxx.h:1606:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpq_set_str"); ^ ../gmpxx.h:1643:7: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpq_set_str"); ^ ../gmpxx.h:1649:7: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpq_set_str"); ^ ../gmpxx.h:1805:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpf_set_str"); ^ ../gmpxx.h:1814:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpf_set_str"); ^ ../gmpxx.h:1822:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpf_set_str"); ^ ../gmpxx.h:1831:9: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpf_set_str"); ^ ../gmpxx.h:1860:7: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpf_set_str"); ^ ../gmpxx.h:1866:7: error: cannot use 'throw' with exceptions disabled throw std::invalid_argument ("mpf_set_str"); ^ ../gmpxx.h:3133:7: error: cannot use 'throw' with exceptions disabled throw std::length_error ("gmp_randinit_lc_2exp_size"); ^ 15 errors generated. }}} FYI, clang -v : {{{ Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn) Target: x86_64-apple-darwin13.1.0 Thread model: posix }}} {{{ $ uname -a Darwin ontologiae.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64 }}} -- Ticket URL: <https://trac.macports.org/ticket/45039> MacPorts <http://www.macports.org/> Ports system for OS X
#45039: Gmp builds Failed ---------------------------+------------------------ Reporter: ontologiae@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: gmp | ---------------------------+------------------------ Changes (by mf2k@…): * priority: High => Normal * keywords: gmp, failed => * owner: macports-tickets@… => mcalhoun@… * milestone: MacPorts Future => Comment: In the future, please Cc the port maintainers ({{{port info --maintainers gmp}}}). The Milestone and Priority fields are for use by Macports team members only. -- Ticket URL: <https://trac.macports.org/ticket/45039#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#45039: Gmp builds Failed ---------------------------+------------------------ Reporter: ontologiae@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: invalid | Keywords: Port: gmp | ---------------------------+------------------------ Changes (by ryandesign@…): * cc: ryandesign@… (added) * status: new => closed * resolution: => invalid Comment: Replying to [ticket:45039 ontologiae@…]:
{{{ Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn) Target: x86_64-apple-darwin13.1.0 Thread model: posix }}}
This version of clang [XcodeVersionInfo is from] Xcode 4.1 for OS X 10.6. It is not a suitable version of clang for OS X 10.9. Please reinstall the latest version of Xcode and the Xcode command line tools per our installation instructions. -- Ticket URL: <https://trac.macports.org/ticket/45039#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts