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

skip at pobox.com skip at pobox.com
Sun Jan 4 18:05:26 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

    Martin> I think you have the source of the problem right there: your icc
    Martin> installation is broken. It is unable to build even trivial
    Martin> programs.

Hmmm...  All I did was download the installer from Intel's site and run it.

    Martin> To confirm this theory, take the source of the program, and
    Martin> invoke it with the very same command line. If it gives you the
    Martin> same error, then this has nothing to do with autoconf, or
    Martin> Python, or anything: that command line *must* work, or else the
    Martin> compiler is useless.

    Martin> Apparently, icc choses to invoke ld(1) with an option -lgcc_s, and
    Martin> apparently, ld(1) can't find the library. Why icc choses to do so,
    Martin> and why ld(1) can't find it, I don't know - this is a question to
    Martin> ask on Macintosh or icc mailing lists.

I'll take a look at that.  Thanks.

    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.

    Martin> Correct. To specify a different compiler, set the CC environment
    Martin> variable, and don't pass the --without-gcc flag.

Hmmm, OK...  Why do we need two ways to spell "don't use gcc"?

Skip


More information about the Python-Dev mailing list