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: resolved
Components: Build Versions: Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel, krichter, pmenzel
Priority: normal Keywords:

Created on 2015-12-25 04:26 by krichter, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg256977 - (view) Author: Karl Richter (krichter) Date: 2015-12-25 04:26
`./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.

experienced with 8a2e735 (on branch 2.7)
msg396049 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-06-18 11:22
Closing as 2.7 is past EOL and distutils is deprecated. Please create a new issue if you have a current problem with this.
msg399498 - (view) Author: Paul Menzel (pmenzel) Date: 2021-08-13 07:31
I created https://bugs.python.org/issue44909.
History
Date User Action Args
2022-04-11 14:58:25adminsetgithub: 70134
2021-08-13 07:31:53pmenzelsetnosy: + pmenzel
messages: + msg399498
2021-06-18 11:22:03iritkatrielsetstatus: open -> closed

nosy: + iritkatriel
messages: + msg396049

resolution: out of date
stage: resolved
2015-12-25 04:26:48krichtercreate