Skip to content

gh-108465: Use compiler basename when determining compiler flags #108392

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

Merged
merged 6 commits into from
Aug 27, 2023

Conversation

jmicco
Copy link
Contributor

@jmicco jmicco commented Aug 24, 2023

NOTE: Since my name is "jmicco" I cannot successfully build python using gcc in my home directory because incorrect options were added to the compiler command line because the path to gcc contained icc

I did not have an issue for this - but it blocked me from building python and was not easy to find.

NOTE: Since my name is "jmicco" I cannot successfully build python
using gcc in my home directory because incorrect options were added to
the compiler command line because the path to gcc contained icc
@ghost
Copy link

ghost commented Aug 24, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@corona10 corona10 changed the title Updated to make it work for paths containing icc no-issue: Updated to make it work for paths containing icc Aug 24, 2023
Copy link
Contributor

@erlend-aasland erlend-aasland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good sleuthing.

@erlend-aasland

This comment was marked as outdated.

@erlend-aasland

This comment was marked as outdated.

@AA-Turner AA-Turner changed the title no-issue: Updated to make it work for paths containing icc Fix autoconf for paths containing icc Aug 24, 2023
@erlend-aasland erlend-aasland changed the title Fix autoconf for paths containing icc gh-108465: Use compiler basename when determining compiler flags Aug 25, 2023
GNU Autoconf discourages the use of basename, and recommends expr instead
@erlend-aasland erlend-aasland added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Aug 25, 2023
@bedevere-bot

This comment was marked as outdated.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Aug 25, 2023
@erlend-aasland
Copy link
Contributor

Hm, the buildbot run didn't trigger; is Bedevere out of service?

@erlend-aasland erlend-aasland added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Aug 25, 2023
@bedevere-bot

This comment was marked as outdated.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Aug 25, 2023
@jmicco
Copy link
Contributor Author

jmicco commented Aug 25, 2023

Erland - Thank you so much for taking this on. I am no longer the only person in my group who cannot build Python!

Is there anything more needed from me?

@erlend-aasland erlend-aasland added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Aug 25, 2023
@bedevere-bot

This comment was marked as outdated.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Aug 25, 2023
@erlend-aasland
Copy link
Contributor

Is there anything more needed from me?

No, you're fine; I'm going to land this later today :) Note that this is not suitable for backporting, IMO.

@erlend-aasland erlend-aasland enabled auto-merge (squash) August 27, 2023 20:26
@erlend-aasland
Copy link
Contributor

Thanks for the patch, @jmicco!

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

Successfully merging this pull request may close these issues.

Python build fails if the path to the compiler includes strings common with the compiler names (icc, gcc, etc)
4 participants