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

"Martin v. Löwis" martin at v.loewis.de
Sun Jan 4 17:50:15 CET 2009


>     ...
>     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.

Regards,
Martin


More information about the Python-Dev mailing list