This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: configure should pick /usr/bin/g++ automatically if present
Type: Stage:
Components: Build Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel, krichter, pmenzel
Priority: normal Keywords:

Created on 2021-08-13 07:31 by pmenzel, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg399497 - (view) Author: Paul Menzel (pmenzel) Date: 2021-08-13 07:31
[copied from closed (out of date) issue https://bugs.python.org/issue25946]

Reproduced with Python 3.9.6.

./configure` both prints `checking for g++... no` and 

    WARNING:
    
      By default, distutils will build C++ extension modules with "g++".
      If this is not intended, then set CXX on the configure command line.

if `/usr/bin/g++` is present and executable which doesn't seem to be constructive because it's quite common that one wants to use `/usr/bin/g++` as CXX compiler if available. In case incompatibilities exists with other C++ compilers there should a check and more detailed error message.

Furthermore the error message doesn't explain if a part of distutils won't be build because the message sounds like the C++ extension is built, but does it work without a C++ compiler?

Specifying `CXX` environment variable or `--with-cxx-main=/usr/bin/g++` `configure` option works fine.
History
Date User Action Args
2022-04-11 14:59:48adminsetgithub: 89072
2021-08-13 07:31:29pmenzelcreate