Opened 6 weeks ago

Closed 6 weeks ago

Last modified 6 weeks ago

#71037 closed defect (duplicate)

gmp @6.3.0: Failed to configure gmp

Reported by: eric-j-ason Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.10.2
Keywords: Cc:
Port: gmp

Description

Building gmp fails thus:

-->  Configuring gmp
Error: Failed to configure gmp: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.3.0/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_macports_release_tarballs_ports_devel_gmp/gmp/main.log for details.

This is the first error from config.log:

configure:6396: /usr/bin/clang -arch arm64 -O2 -pedantic  conftest.c >&5
conftest.c:1:16: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
    1 | int k; int foo () { __builtin_alloca (k); }
      |                ^
      |                 void
conftest.c:1:43: warning: non-void function does not return a value [-Wreturn-type]
    1 | int k; int foo () { __builtin_alloca (k); }
      |                                           ^
2 warnings generated.
Undefined symbols for architecture arm64:
  "_main", referenced from:
      <initial-undefines>
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Other errors (deduplicated):

configure:9109: /usr/bin/clang -arch arm64 -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
configure:9109: /usr/bin/clang -arch arm64 -qversion >&5
clang: error: unknown argument '-qversion'; did you mean '--version'?
configure:9871: /usr/bin/clang -arch arm64 -E  conftest.c
conftest.c:13:10: fatal error: 'ac_nonexistent.h' file not found
   13 | #include <ac_nonexistent.h>
      |          ^~~~~~~~~~~~~~~~~~
configure:10357: /usr/bin/clang++ -stdlib=libc++ -arch arm64 -V >&5
clang++: error: argument to '-V' is missing (expected 1 value)
configure:10357: /usr/bin/clang++ -stdlib=libc++ -arch arm64 -qversion >&5
clang++: error: unknown argument '-qversion'; did you mean '--version'?
configure:10620: /usr/bin/clang++ -stdlib=libc++ -arch arm64  -O2 -pedantic -march=armv8-a conftest.cc >&5
conftest.cc:3:10: fatal error: 'iostream' file not found
    3 | #include <iostream>
      |          ^~~~~~~~~~
configure:10665: error: C++ compiler not available, see config.log for details

Attachments (2)

main.log (68.7 KB) - added by eric-j-ason 6 weeks ago.
config.log (39.6 KB) - added by eric-j-ason 6 weeks ago.

Download all attachments as: .zip

Change History (5)

Changed 6 weeks ago by eric-j-ason

Attachment: main.log added

Changed 6 weeks ago by eric-j-ason

Attachment: config.log added

comment:1 Changed 6 weeks ago by jmroot (Joshua Root)

Owner: changed from < default >mcalhoun@… to MarcusCalhoun-Lopez

comment:2 Changed 6 weeks ago by jmroot (Joshua Root)

Resolution: duplicate
Status: assignedclosed

comment:3 in reply to:  2 Changed 6 weeks ago by eric-j-ason

Replying to jmroot:

#70750

ProblemHotlist#clts16

Thank you!

Note: See TracTickets for help on using tickets.