Opened 4 years ago

Last modified 4 years ago

#61667 closed request

mpir fails to build on Big Sur — at Initial Version

Reported by: alex1platon Owned by:
Priority: Not set Milestone:
Component: ports Version:
Keywords: Cc:
Port:

Description

mpir fails to build on Big Sur

from main.log

:info:configure checking compiler /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -isysroot/Library/Dev eloper/CommandLineTools/SDKs/MacOSX11.0.sdk... no, long long reliability test 2 :info:configure configure: error: could not find a working compiler, see config.log for details :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_mpir/mpir/w ork/mpir-3.0.0" && ./configure --prefix=/opt/local --disable-silent-rules --enable-cxx :info:configure Exit code: 1

from config.log

configure:5204: checking compiler /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -isysroot/Library/Dev eloper/CommandLineTools/SDKs/MacOSX11.0.sdk Test compile: configure:5218: /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -isysroot/Library/Developer/CommandLine Tools/SDKs/MacOSX11.0.sdk conftest.c >&5 configure:5221: $? = 0

configure:5226: ./a.out
./b.out ./a.exe ./a_out.exe ./conftest

configure:5229: $? = 0 Test compile: gcc-4.3.2 on 64-bit is bad , try -O1 or -fno-strict-aliasing for the flags configure:5287: /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -isysroot/Library/Developer/CommandLine Tools/SDKs/MacOSX11.0.sdk conftest.c >&5 configure:5290: $? = 0

configure:5295: ./a.out
./b.out ./a.exe ./a_out.exe ./conftest

configure:5298: $? = 0 Test compile: function pointer return configure:5340: /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -isysroot/Library/Developer/CommandLine Tools/SDKs/MacOSX11.0.sdk conftest.c >&5 configure:5343: $? = 0

configure:5348: ./a.out
./b.out ./a.exe ./a_out.exe ./conftest

configure:5351: $? = 0 Test compile: cmov instruction configure:5396: /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -isysroot/Library/Developer/CommandLine Tools/SDKs/MacOSX11.0.sdk conftest.c >&5 configure:5399: $? = 0

configure:5404: ./a.out
./b.out ./a.exe ./a_out.exe ./conftest

configure:5407: $? = 0 Test compile: double -> ulong conversion configure:5455: /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -isysroot/Library/Developer/CommandLine Tools/SDKs/MacOSX11.0.sdk conftest.c >&5 configure:5458: $? = 0

configure:5463: ./a.out
./b.out ./a.exe ./a_out.exe ./conftest

configure:5466: $? = 0 Test compile: double negation configure:5509: /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -isysroot/Library/Developer/CommandLine Tools/SDKs/MacOSX11.0.sdk conftest.c >&5 configure:5512: $? = 0

configure:5517: ./a.out
./b.out ./a.exe ./a_out.exe ./conftest

configure:5520: $? = 0 Test compile: double -> float conversion configure:5564: /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -isysroot/Library/Developer/CommandLine Tools/SDKs/MacOSX11.0.sdk conftest.c >&5 configure:5567: $? = 0

configure:5572: ./a.out
./b.out ./a.exe ./a_out.exe ./conftest

configure:5575: $? = 0 Test compile: unsigned long/double division configure:5618: /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -isysroot/Library/Developer/CommandLine Tools/SDKs/MacOSX11.0.sdk conftest.c >&5 configure:5621: $? = 0

configure:5626: ./a.out
./b.out ./a.exe ./a_out.exe ./conftest

configure:5629: $? = 0 Test compile: builtin_alloca availability configure:5668: /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -isysroot/Library/Developer/CommandLine Tools/SDKs/MacOSX11.0.sdk conftest.c >&5 conftest.c:1:43: warning: non-void function does not return a value [-Wreturn-type] int k; int foo () { builtin_alloca (k); }

1 warning generated. Undefined symbols for architecture x86_64:

"_main", referenced from:

implicit entry/start for main executable

ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:5671: $? = 1 failed program was: int k; int foo () { builtin_alloca (k); } Test compile: long long reliability test 1 configure:5791: /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -isysroot/Library/Developer/CommandLine Tools/SDKs/MacOSX11.0.sdk conftest.c >&5 configure:5794: $? = 0

configure:5799: ./a.out
./b.out ./a.exe ./a_out.exe ./conftest

configure:5802: $? = 0 Test compile: long long reliability test 2 configure:5851: /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -isysroot/Library/Developer/CommandLine Tools/SDKs/MacOSX11.0.sdk conftest.c >&5 conftest.c:6:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();} conftest.c:6:62: error: implicit declaration of function 'g' is invalid in C99 [-Werror,-Wimplicit-function-declaration] f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}

conftest.c:6:75: warning: non-void function does not return a value [-Wreturn-type] f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}

conftest.c:7:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] g(){} conftest.c:7:5: warning: non-void function does not return a value [-Wreturn-type] g(){}

4 warnings and 1 error generated. configure:5854: $? = 1 failed program was: /* The following provokes an internal compiler error on powerpc-apple-darwin.

Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and 1666 to get an ICE with -O1 -mpowerpc64. */

#ifdef GNUC f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();} g(){} #else int dummy; #endif

int main () { return 0; } configure:6199: result: no, long long reliability test 2 configure:6359: error: could not find a working compiler, see config.log for details

Change History (0)

Note: See TracTickets for help on using tickets.