Title: Correctly use `AC_PATH_TOOL` in `configure.ac` for finding compilers · Issue #148294 · python/cpython · GitHub
Open Graph Title: Correctly use `AC_PATH_TOOL` in `configure.ac` for finding compilers · Issue #148294 · python/cpython
X Title: Correctly use `AC_PATH_TOOL` in `configure.ac` for finding compilers · Issue #148294 · python/cpython
Description: Bug report Bug description: My machine has installed g++ already. But configure complaint there is no g++ to build C++ extension disutil. Below is the snippet of configure output: checking for g++... no configure: By default, distutils w...
Open Graph Description: Bug report Bug description: My machine has installed g++ already. But configure complaint there is no g++ to build C++ extension disutil. Below is the snippet of configure output: checking for g++....
X Description: Bug report Bug description: My machine has installed g++ already. But configure complaint there is no g++ to build C++ extension disutil. Below is the snippet of configure output: checking for g++....
Opengraph URL: https://github.com/python/cpython/issues/148294
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Correctly use `AC_PATH_TOOL` in `configure.ac` for finding compilers","articleBody":"# Bug report\n\n### Bug description:\n\nMy machine has installed g++ already. But configure complaint there is no g++ to build C++ extension disutil. Below is the snippet of configure output:\n\n```\nchecking for g++... no\nconfigure:\n\n By default, distutils will build C++ extension modules with \"g++\".\n If this is not intended, then set CXX on the configure command line.\n```\n\nconfigure command:\n\n```bash\n./configure &> configure.log\n```\n\nThe g++ localtion and g++ version shows below:\n\n```\n> ( set -x ; which g++ ; g++ -v ; cat /etc/os-release )\n+ which g++\n/usr/bin/g++\n+ g++ -v\nUsing built-in specs.\nCOLLECT_GCC=g++\nCOLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper\nOFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa\nOFFLOAD_TARGET_DEFAULT=1\nTarget: x86_64-linux-gnu\nConfigured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04.3' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-0odw26/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-0odw26/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2\nThread model: posix\nSupported LTO compression algorithms: zlib zstd\ngcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04.3) \n+ cat /etc/os-release\nPRETTY_NAME=\"Ubuntu 22.04.5 LTS\"\nNAME=\"Ubuntu\"\nVERSION_ID=\"22.04\"\nVERSION=\"22.04.5 LTS (Jammy Jellyfish)\"\nVERSION_CODENAME=jammy\nID=ubuntu\nID_LIKE=debian\nHOME_URL=\"https://www.ubuntu.com/\"\nSUPPORT_URL=\"https://help.ubuntu.com/\"\nBUG_REPORT_URL=\"https://bugs.launchpad.net/ubuntu/\"\nPRIVACY_POLICY_URL=\"https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\"\nUBUNTU_CODENAME=jammy\n```\n\n\n[config.log](https://github.com/user-attachments/files/26603907/config.log)\n[configure.log](https://github.com/user-attachments/files/26603908/configure.log)\n\n\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-148298\n* gh-150211\n* gh-150212\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/sendaoYan","@type":"Person","name":"sendaoYan"},"datePublished":"2026-04-09T13:21:32Z","url":"https://github.com/python/cpython/issues/148294"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ff6ee42c-4481-7d6a-8be3-e2809461dd36 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 937E:2530C8:1224122:18C1F21:6AFEA440 |
| html-safe-nonce | 407bfd0c9e5cd5e0748ad7250f0b16c1752137469e0e38fb968bb061ef5d9322 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzdFOjI1MzBDODoxMjI0MTIyOjE4QzFGMjE6NkFGRUE0NDAiLCJ2aXNpdG9yX2lkIjoiNTYwNTQxNDk2NDcwNTc4MjQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7c280d12fc6c48afa268603d3170387170dc3e772a2c1dd4e132252527ac8036 |
| hovercard-subject-tag | issue:4232543061 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/148294/issue_layout |
| twitter:image | https://opengraph.githubassets.com/586f4645fc19f443261022a25fa5ebd23c538b668d2a74536b467ccd5d45528b/python/cpython/issues/148294 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/586f4645fc19f443261022a25fa5ebd23c538b668d2a74536b467ccd5d45528b/python/cpython/issues/148294 |
| og:image:alt | Bug report Bug description: My machine has installed g++ already. But configure complaint there is no g++ to build C++ extension disutil. Below is the snippet of configure output: checking for g++.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sendaoYan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 95b2753c978240785d6cca00783c00a371b2d7d9879bb32e305170a1b19bd28e |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3f25273206cd841171bca0002261ae4c9757d934 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width