X Tutup
The Wayback Machine - https://web.archive.org/web/20220906175251/https://github.com/python/cpython/issues/96398
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure.ac: using $CC to check compiler names may result in erroneous judgements #96398

Open
kanavin opened this issue Aug 29, 2022 · 2 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@kanavin
Copy link

kanavin commented Aug 29, 2022

configure.ac contains multiple checks of this kind:

case $CC in

When paths contain "clang"/"gcc"/"icc", they might be part of $CC
for example because of the "--sysroot" parameter. That could cause
judgement error about clang/gcc/icc compilers. e.g.

when "icc" is containded in working path, below errors are reported when compiling python3:

x86_64-wrs-linux-gcc: error: strict: No such file or directory
x86_64-wrs-linux-gcc: error: unrecognized command line option '-fp-model'

@tiran
Copy link
Member

tiran commented Aug 29, 2022

We are aware that the checks are problematic have already plans to replace $CC checks with $ac_cv_cc_name. It's a new variable that I introduced a short while ago.

@tiran
Copy link
Member

tiran commented Aug 29, 2022

CC @erlend-aasland @mdboom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants
X Tutup