Skip to content

configure should pick /usr/bin/g++ automatically if present #89072

Closed as duplicate

Description

@pmenzel
mannequin
BPO 44909
Nosy @iritkatriel

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2021-08-13.07:31:29.458>
labels = ['build', '3.9']
title = 'configure should pick /usr/bin/g++ automatically if present'
updated_at = <Date 2021-08-13.07:31:29.458>
user = 'https://bugs.python.org/pmenzel'

bugs.python.org fields:

activity = <Date 2021-08-13.07:31:29.458>
actor = 'pmenzel'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Build']
creation = <Date 2021-08-13.07:31:29.458>
creator = 'pmenzel'
dependencies = []
files = []
hgrepos = []
issue_num = 44909
keywords = []
message_count = 1.0
messages = ['399497']
nosy_count = 3.0
nosy_names = ['krichter', 'iritkatriel', 'pmenzel']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue44909'
versions = ['Python 3.9']

Activity

  1. pmenzel commented on Aug 13, 2021

    pmenzelmannequin
    MannequinAuthor

    [copied from closed (out of date) issue https://bugs.python.org/issue25946]

    Reproduced with Python 3.9.6.

    ./configureboth printschecking 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.

  2. transferred this issue fromon Apr 10, 2022
  3. hugovk commented on Oct 26, 2026

    @hugovk
    Member

    Fixed by #148298 / #148294.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.9 (EOL)end of lifebuildThe build process and cross-build

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions