Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

DavidSpickett
Copy link
Collaborator

This reverts commit d7b7b9c.

As the name suggests, packaging's Version is more strict than distutil's LooseVersion. LooseVersion(".3") is fine but Version(".3") raises an exception. I think this was happening on the Google bot, which lead us to enable tests that should not have been running.

Looking at the way we find the glibc version, it should be <0 or more numbers>.<0 or more numbers>. So I think the only way we're getting invalid versions is if it comes out as X. or .Y.

@DavidSpickett
Copy link
Collaborator Author

My worry with eating the exception here is that any_glibc may not be set in places it was previously. So @aeubanks if you could find the version number that we're seeing on that CI machine that would be very helpful.

@DavidSpickett
Copy link
Collaborator Author

is the code that looks for the macros.

To get to using Version, both must have been defined, but one or both of them could be empty. Perhaps we need to handle that.

@aeubanks
Copy link
Contributor

aeubanks commented Sep 12, 2025

the Fuchsia people also ran into this issue and I was able to print the glibc version number on their bots and it is just "2.36", so I'm not sure what's going on

before the change the logs showed

UNSUPPORTED: MemorySanitizer-AARCH64 :: preinit_array.cpp (1991 of 16978)

and after the change it started running the test:

FAIL: MemorySanitizer-AARCH64 :: preinit_array.cpp (2006 of 16978)

and I also confirmed that reverting the previous land did make the CI pass. so the previous patch definitely did something, but I don't understand why based on the "2.36" version number

@aeubanks
Copy link
Contributor

actually I see both "2.36" and "2.19" in these logs...

@aeubanks
Copy link
Contributor

never mind all of the above is not what's happening. I believe our bots don't have the new package installed, but the import error is getting swallowed up here. sounds like we'll need to update our bots to have this new python package, but also the error message should be clearer

@aeubanks
Copy link
Contributor

I'll send out a patch that manually compares version numbers without an external package

aeubanks added a commit to aeubanks/llvm-project that referenced this pull request Sep 13, 2025
Alternative to llvm#158236 without requiring external packages
@aeubanks
Copy link
Contributor

I'll send out a patch that manually compares version numbers without an external package

#158387

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.

3 participants