Make fails on Intel Macs with ICC

Tomas Zahradnicky zahradnicky at
Fri Jan 19 11:50:30 CET 2007

Dear GMP list,

I've tried to compile the latest GMP with ICC and it has failed.

GMP Version: 4.2.1

What's wrong: GMP does not build.

Configured with: ../configure CC="icc" CFLAGS="-xP -g -O2" --with- 

> /bin/sh ../libtool --mode=compile icc -DHAVE_CONFIG_H -I. -I../../ 
> mpz -I.. -D__GMP_WITHIN_GMP -I../..    -xP -g -O2 -c -o  
> n_pow_ui.lo ../../mpz/n_pow_ui.c
> icc -DHAVE_CONFIG_H -I. -I../../mpz -I.. -D__GMP_WITHIN_GMP -I../..  
> -xP -g -O2 -c ../../mpz/n_pow_ui.c -o n_pow_ui.o
> ../../mpz/n_pow_ui.c(370) : (col. 3) remark: LOOP WAS VECTORIZED.
> ../../mpz/n_pow_ui.c(488): warning #1202: illegal character Q in  
> asm operand constraint
> ../../mpz/n_pow_ui.c(488): warning #1202: illegal character Q in  
> asm operand constraint
> ../../mpz/n_pow_ui.c(488): catastrophic error: cannot match asm  
> operand constraint
> compilation aborted for ../../mpz/n_pow_ui.c (code 4)
> make[2]: *** [n_pow_ui.lo] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2

Works when configured with: (no CFLAGS given)  ../configure CC="icc"  
Doesn't work when configured with: ../configure CC="icc" CFLAGS="-g - 
O2" --with-prefix=/usr/local

Compiler: icc -v
Version 9.1

OS Version: Mac OS X 10.4.8.

uname -a:
Darwin Nebulae.local 8.8.2 Darwin Kernel Version 8.8.2: Thu Sep 28  
20:43:26 PDT 2006; root:xnu-792.14.14.obj~1/RELEASE_I386 i386 i386

config.guess: pentium3-apple-darwin8.8.2

configfsf.guess: i686-apple-darwin8.8.2

# Ing. Tomas Zahradnicky, Jr.
# Assistant Professor
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the gmp-bugs mailing list