[Python-Dev] How to configure with icc on Mac?

Georg Brandl g.brandl at gmx.net
Sun Jan 4 18:47:00 CET 2009


Martin v. Löwis schrieb:
>>     ...
>>     configure:10332: checking size of size_t
>>     configure:10637: icc -o conftest -g -O2   conftest.c  >&5
>>     ld: library not found for -lgcc_s
> 
> I think you have the source of the problem right there: your icc
> installation is broken. It is unable to build even trivial programs.
> 
> To confirm this theory, take the source of the program, and invoke
> it with the very same command line. If it gives you the same error,
> then this has nothing to do with autoconf, or Python, or anything:
> that command line *must* work, or else the compiler is useless.
> 
> Apparently, icc choses to invoke ld(1) with an option -lgcc_s, and
> apparently, ld(1) can't find the library. Why icc choses to do so,
> and why ld(1) can't find it, I don't know - this is a question to
> ask on Macintosh or icc mailing lists.
> 
>>     Martin> I don't think it is a bug. --without-gcc *overrides* the CC
>>     Martin> environment variable, rather than ignoring it.
>> 
>> I don't think that's right.  There's no telling what the non-gcc compiler is
>> called.
> 
> Correct. To specify a different compiler, set the CC environment
> variable, and don't pass the --without-gcc flag.

If I read that code correctly, you can also do

./configure --with-gcc=icc

which is however not much less confusing.

Georg


-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-Dev mailing list