Skip to content

How to fix ERROR: Failed to build installable wheels for some pyproject.toml based projects (ruff)? #18016

@ZeusKC52

Description

@ZeusKC52

Summary

Im on:
Android 14
Termux 0.118.2
Python 3.12
'+fpmr' is not a recognized feature for this target (ignoring feature) keeps repeating to the top

Log:

    '+fpmr' is not a recognized feature for this target (ignoring feature)
      error: linking with `cc` failed: exit status: 1
        |                                             = note:  "cc" "<sysroot>/tmp/rustchSEfy4/symbols.o" "<2076 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "<sysroot>/tmp/rustchSEfy4/{libtikv_jemalloc_sys-*}.rlib" "<sysroot>/lib/rustlib/aarch64-linux-android/lib/{libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc" "-ldl" "-llog" "-lunwind" "-ldl" "-lm" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/tmp/pip-install-irodj_gr/ruff_7045cececff84bf89f0f391ee559e6c1/target/release/build/tikv-jemalloc-sys-a3c5993bb663de14/out/build/lib" "-L" "<sysroot>/tmp/pip-install-irodj_gr/ruff_7045cececff84bf89f0f391ee559e6c1/target/release/build/tikv-jemalloc-sys-a3c5993bb663de14/out" "-o" "<sysroot>/tmp/pip-install-irodj_gr/ruff_7045cececff84bf89f0f391ee559e6c1/target/release/deps/ruff-b62721e44b326d19" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-all" "-nodefaultlibs"                                                   = note: some arguments are omitted. use `--verbose` to show all linker arguments            = note: ld.lld: error: unable to find library -lgcc                                                 cc: error: linker command failed with exit code 1 (use -v to see invocation)
                                                    error: could not compile `ruff` (bin "ruff") due to 1 previous error                        💥 maturin failed
        Caused by: Failed to build a native library through cargo
        Caused by: Cargo build finished with "exit status: 101": `env -u CARGO "cargo" "rustc" "--message-format" "json-render-diagnostics" "--manifest-path" "/data/data/com.termux/files/usr/tmp/pip-install-irodj_gr/ruff_7045cececff84bf89f0f391ee559e6c1/crates/ruff/Cargo.toml" "--release" "--bin" "ruff" "--" "-C" "strip=symbols"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/data/data/com.termux/files/usr/bin/python3.12', '--compatibility', 'off'] returned non-zero exit status 1
      [end of output]                         
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for ruff       Failed to build ruff
ERROR: Failed to build installable wheels for some pyproject.toml based projects (ruff)

Version

0.11.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions