[Bug bootstrap/59979] New: mpc configure does not check for non-gnu compiler
fukanchik at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 29 10:01:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59979
Bug ID: 59979
Summary: mpc configure does not check for non-gnu compiler
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: fukanchik at gmail dot com
There is something called gcc in my system, but the real compiler is called
`cc'. GMP and MPFR are compiling fine. Configure scripts are able to detect the
correct compiler. MPC configure script does not look for something else but
gcc:
uname -a:
SunOS host 5.10 Generic_147441-20 i86pc i386 i86pc
Configure output (MPC):
checking host system type... i386-pc-solaris2.10
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/cpp/mpc/mpc-0.8.1':
configure: error: C compiler cannot create executables
This is what happens in GMP (which builds successfully):
checking ABI=64
checking compiler gcc -O2 -pedantic -m64 ... no
checking compiler cc -xO3 -m64 ... yes
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
configure log (MPC):
configure:3085: checking for gcc
configure:3101: found /nfs/system/bin/gcc
configure:3112: result: gcc
configure:3341: checking for C compiler version
configure:3350: gcc --version >&5
./configure: line 3352: /nfs/system/bin/gcc: Invalid argument
configure:3361: $? = 126
configure:3350: gcc -v >&5
./configure: line 3352: /nfs/system/bin/gcc: Invalid argument
configure:3361: $? = 126
configure:3350: gcc -V >&5
./configure: line 3352: /nfs/system/bin/gcc: Invalid argument
configure:3361: $? = 126
configure:3350: gcc -qversion >&5
./configure: line 3352: /nfs/system/bin/gcc: Invalid argument
configure:3361: $? = 126
configure:3383: checking for C compiler default output file name
configure:3405: gcc -I/apps/grimis/cpp/include -I/apps/grimis/cpp/include
-L/apps/grimis/cpp/lib -L/apps/grimis/cpp/lib conftest.c >&5
./configure: line 3407: /nfs/system/bin/gcc: Invalid argument
configure log (GMP):
abilist=64 32
cclist=gcc icc cc
configure:4346: gcc 2>&1 | grep xlc >/dev/null
configure:4349: $? = 1
configure:4403: checking compiler gcc -O2 -pedantic -m64
Test compile:
configure:4417: gcc -O2 -pedantic -m64 conftest.c >&5
./configure: line 4418: /nfs/system/bin/gcc: Invalid argument
configure:4420: $? = 126
failed program was:
int main () { return 0; }
configure:5443: result: no
configure:4324: cc -c conftest.c >&5
"conftest.c", line 2: warning: old-style declaration or incorrect type for:
choke
"conftest.c", line 2: syntax error before or at: me
"conftest.c", line 3: warning: old-style declaration or incorrect type for: me
cc: acomp failed for conftest.c
configure:4327: $? = 2
configure:4346: cc 2>&1 | grep xlc >/dev/null
configure:4349: $? = 1
configure:4403: checking compiler cc -xO3 -m64
Test compile:
configure:4417: cc -xO3 -m64 conftest.c >&5
configure:4420: $? = 0
configure:4425: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4428: $? = 0
...
configure:5443: result: yes
configure:7103: checking for gcc
configure:7130: result: cc
More information about the Gcc-bugs
mailing list