[Python-Dev] Python build trouble with the new gcc/binutils

Martin v. Loewis martin@v.loewis.de
16 Aug 2002 21:09:13 +0200

barry@python.org (Barry A. Warsaw) writes:

> checking whether the C++ compiler works... configure: error: cannot run C++ compiled programs.
> If you meant to cross compile, use `--host'.
> -------------------- snip snip --------------------
> Even though:
> % c++ --version
> c++ (GCC) 3.2

That means that the c++ that you have installed fails to build working
binaries. This, in turn, most likely means that libgcc_s.so.1 was not

To correct this, either
- install libgcc_s.so.1 into /usr/local/lib, and re-run ldconfig, or
- add the path that has libgcc_s.so.1 to /etc/ld.so.conf, and
  re-run ldconfig.

Alternatively, configure --without-cxx.