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

Fix hard float detection #8498

Open
wants to merge 1 commit into
base: detect_hardfloat
Choose a base branch
from

Conversation

zarch
Copy link

@zarch zarch commented Oct 23, 2024

Summary

This commit fix the errouneous detection of vfp from the cpu info.
The commit aims to fix issue #6873 integrating PR7725 developed by @kakkoyun

Test Plan

I've tested locally on my hardware, now it fails with:

❯ RUST_LOG=trace cargo run python install 3.12 --verbose
   Compiling uv-python v0.0.1 (/home/synapsees/source/uv/crates/uv-python)
   Compiling uv-types v0.0.1 (/home/synapsees/source/uv/crates/uv-types)
   Compiling uv-virtualenv v0.0.4 (/home/synapsees/source/uv/crates/uv-virtualenv)
   Compiling uv-distribution v0.0.1 (/home/synapsees/source/uv/crates/uv-distribution)
   Compiling uv-build-frontend v0.0.1 (/home/synapsees/source/uv/crates/uv-build-frontend)
   Compiling uv-resolver v0.0.1 (/home/synapsees/source/uv/crates/uv-resolver)
   Compiling uv-installer v0.0.1 (/home/synapsees/source/uv/crates/uv-installer)
   Compiling uv-settings v0.0.1 (/home/synapsees/source/uv/crates/uv-settings)
   Compiling uv-requirements v0.1.0 (/home/synapsees/source/uv/crates/uv-requirements)
   Compiling uv-dispatch v0.0.1 (/home/synapsees/source/uv/crates/uv-dispatch)
   Compiling uv-cli v0.0.1 (/home/synapsees/source/uv/crates/uv-cli)
   Compiling uv-tool v0.0.1 (/home/synapsees/source/uv/crates/uv-tool)
   Compiling uv-scripts v0.0.1 (/home/synapsees/source/uv/crates/uv-scripts)
   Compiling uv v0.4.16 (/home/synapsees/source/uv/crates/uv)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 55s
     Running `target/debug/uv python install 3.12 --verbose`
DEBUG uv 0.4.16
TRACE Checking lock for `/home/synapsees/.local/share/uv/python` at `/home/synapsees/.local/share/uv/python/.lock`
DEBUG Acquired lock for `/home/synapsees/.local/share/uv/python`
WARN Ignoring malformed managed Python entry:
    Failed to parse Python installation key `cpython-3.12.6-linux-armv7-gnueabihf`: invalid libc: Unknown libc environment: gnueabihf
WARN Ignoring malformed managed Python entry:
eabi
Searching for Python versions matching: Python 3.12
TRACE ld path: /lib/ld-linux-armhf.so.3
TRACE stdout output from `ld`: ""
DEBUG Using request timeout of 30s
DEBUG Released lock at `/home/synapsees/.local/share/uv/python/.lock`
error: Failed to parse Python installation key `cpython-3.12.6-linux-armv7-gnueabihf`: invalid libc: Unknown libc environment

But I believe this is due to #7975, already fixed by @zanieb therefore I would expect that once the changes are rebased everything should work.

Copy link
Contributor

@kakkoyun kakkoyun left a comment

Choose a reason for hiding this comment

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

LGTM.

Thanks for picking it up.
I haven't had the chance find on-computer time.

@konstin konstin requested a review from zanieb October 24, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants