-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
Describe the bug
I'm trying to install a Python package from GitHub that needs some rust components compiled. I've added
To Reproduce
Steps to reproduce the behavior:
- Add these to the environment.yaml:
# Compilers
- gcc_linux-64
- gxx_linux-64
- sysroot_linux-64
# Rust
- rust
- Add this to Python requirements.txt
git+https://github.com/opendatacube/odc-algo.git@add-rust-geomedian-impl
- That's probably enough for it to fail.
Expected behavior
The Python package builds and installs in the Conda environment.
Docker Image Version (e.g. quay.io/pangeo/ml-notebook:2023.02.27):
FROM pangeo/base-image:2024.03.22
Infrastructure (Where you are running this image):
Error output is this:
× Building wheel for odc-algo (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [41 lines of output]
Running `maturin pep517 build-wheel -i /srv/conda/envs/notebook/bin/python3.11 --compatibility off`
📦 Including license file "/tmp/pip-req-build-kq0ba07m/LICENSE"
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
🐍 Found CPython 3.11 at /srv/conda/envs/notebook/bin/python3.11
📡 Using build options profile from pyproject.toml
Compiling autocfg v1.1.0
Compiling target-lexicon v0.12.11
Compiling cfg-if v1.0.0
Compiling libc v0.2.147
Compiling scopeguard v1.2.0
Compiling crossbeam-utils v0.8.16
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/srv/conda/envs/notebook/lib/rustlib/x86_64-unknown-linux-gnu/bin:/tmp/pip-build-env-qfi6t3dr/overlay/bin:/tmp/pip-build-env-qfi6t3dr/normal/bin:/srv/conda/envs/notebook/bin:/srv/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcYzB7w0/symbols.o" "/tmp/pip-req-build-kq0ba07m/target/release/build/libc-d36222c216519f5a/build_script_build-d36222c216519f5a.build_script_build.283f1c8ce0e68003-cgu.0.rcgu.o" "/tmp/pip-req-build-kq0ba07m/target/release/build/libc-d36222c216519f5a/build_script_build-d36222c216519f5a.build_script_build.283f1c8ce0e68003-cgu.1.rcgu.o" "/tmp/pip-req-build-kq0ba07m/target/release/build/libc-d36222c216519f5a/build_script_build-d36222c216519f5a.build_script_build.283f1c8ce0e68003-cgu.2.rcgu.o" "/tmp/pip-req-build-kq0ba07m/target/release/build/libc-d36222c216519f5a/build_script_build-d36222c216519f5a.2nt4p8xasu24jgsz.rcgu.o" "-Wl,--as-needed" "-L" "/tmp/pip-req-build-kq0ba07m/target/release/d
= note: /srv/conda/envs/notebook/bin/../lib/gcc/x86_64-conda-linux-gnu/13.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: cannot find -lgcc: No such file or directory
collect2: error: ld returned 1 exit statusweiji14
Metadata
Metadata
Assignees
Labels
No labels