Opened 10 years ago

Closed 10 years ago

#45039 closed defect (invalid)

Gmp builds Failed

Reported by: ontologiae@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: gmp

Description

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

Attachments (2)

config.log (355.0 KB) - added by ontologiae@… 10 years ago.
config.log
main.log (520.1 KB) - added by ontologiae@… 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by ontologiae@…

Attachment: config.log added

config.log

Changed 10 years ago by ontologiae@…

Attachment: main.log added

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Keywords: gmp failed removed
Milestone: MacPorts Future
Owner: changed from macports-tickets@… to mcalhoun@…
Priority: HighNormal

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.

comment:2 in reply to:  description Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: invalid
Status: newclosed

Replying to 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 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.

Note: See TracTickets for help on using tickets.