Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save kraj/8d818b0bb2ec93afc4abf5b1ed06a7df to your computer and use it in GitHub Desktop.

Select an option

Save kraj/8d818b0bb2ec93afc4abf5b1ed06a7df to your computer and use it in GitHub Desktop.
/mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/python3-orjson/3.11.3/temp/log.do_compile
DEBUG: Executing shell function do_compile
* Getting build dependencies for wheel...
* Building wheel...
Running `maturin pep517 build-wheel -i /mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/python3-orjson/3.11.3/recipe-sysroot-native/usr/bin/nativepython3 --compatibility off`
πŸ“¦ Including license file `LICENSE-APACHE`
πŸ“¦ Including license file `LICENSE-MIT`
🍹 Building a mixed python/rust project
πŸ”— Found pyo3-ffi bindings
🐍 Found CPython 3.13
Compiling target-lexicon v0.13.2
Compiling once_cell v1.21.3
Compiling shlex v1.3.0
Compiling serde v1.0.219
Compiling libc v0.2.175
Compiling cfg-if v1.0.1
Compiling serde_json v1.0.142
Compiling version_check v0.9.5
Compiling itoa v1.0.15
Compiling memchr v2.7.5
Compiling ryu v1.0.20
Compiling simdutf8 v0.1.5
Compiling bytes v1.10.1
Compiling itoap v1.0.1
Compiling uuid v1.18.0
Compiling jiff v0.2.15
Compiling bytecount v0.6.9
Compiling associative-cache v2.0.0
Compiling xxhash-rust v0.8.15
Compiling smallvec v1.15.1
Building [ ] 0/41: serde_json(build.rs), sim... Compiling encoding_rs v0.8.35
Compiling half v2.6.0
Building [ ] 1/41: serde_json(build.rs), sim... Building [> ] 2/41: serde_json(build.rs), onc... Building [=> ] 3/41: serde_json(build.rs), onc... Building [=> ] 4/41: serde_json(build.rs), onc... Building [==> ] 5/41: serde_json(build.rs), onc... Building [===> ] 6/41: serde_json(build.rs), onc... Compiling cc v1.2.32
Building [===> ] 7/41: once_cell, jiff, smallvec... Building [====> ] 8/41: once_cell, jiff, smallvec... Building [=====> ] 9/41: jiff, smallvec, half, cc,... Building [=====> ] 10/41: jiff, smallvec, half, cc,... Building [======> ] 11/41: jiff, smallvec, half, cc,... Building [======> ] 12/41: jiff, smallvec, half, cc,... Building [=======> ] 13/41: jiff, smallvec, half, cc,... Building [========> ] 14/41: jiff, smallvec, half, cc,... Building [========> ] 15/41: jiff, half, cc, bytes, uu... Building [=========> ] 16/41: jiff, half, cc, bytes, uu... Building [==========> ] 17/41: jiff, half, cc, bytes, uu... Building [==========> ] 18/41: jiff, half, cc, libc, byt... Building [===========> ] 19/41: jiff, half, cc, libc, byt... Building [============> ] 20/41: jiff, half, cc, libc, byt... Building [============> ] 21/41: jiff, half, cc, libc, byt... Building [=============> ] 22/41: jiff, half, cc, libc, byt... Building [==============> ] 23/41: jiff, cc, libc, bytes, se... Building [==============> ] 24/41: jiff, cc, libc, bytes, se... Compiling pyo3-build-config v0.25.1
Building [===============> ] 25/41: jiff, cc, libc, bytes, se... Building [================> ] 26/41: jiff, cc, libc, serde, en... Building [================> ] 27/41: jiff, cc, serde, encoding... Building [=================> ] 28/41: jiff, cc, serde, pyo3-bui... Building [==================> ] 29/41: pyo3-build-config, jiff, ... Building [==================> ] 30/41: pyo3-build-config, jiff, ... Compiling pyo3-ffi v0.25.1
Compiling orjson v3.11.3 (/mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/python3-orjson/3.11.3/sources/orjson-3.11.3)
Building [===================> ] 31/41: pyo3-ffi(build.rs), jiff,... Building [====================> ] 32/41: pyo3-ffi(build), jiff, or... Building [====================> ] 33/41: pyo3-ffi, jiff, orjson(bu... Building [=====================> ] 34/41: pyo3-ffi, orjson(build), ... Building [======================> ] 35/41: orjson(build), jiff, serd... Building [======================> ] 35/41: serde_json, orjson(build)... Building [======================> ] 36/41: serde_json, orjson(build)... Building [=======================> ] 37/41: serde_json, orjson(build)... Building [========================> ] 38/41: orjson(build), jiff warning: [email protected]: riscv64-yoe-linux-clang: warning: -Wl,-O1: 'linker' input unused [-Wunused-command-line-argument]
warning: [email protected]: riscv64-yoe-linux-clang: warning: -Wl,--hash-style=gnu: 'linker' input unused [-Wunused-command-line-argument]
warning: [email protected]: riscv64-yoe-linux-clang: warning: -Wl,--as-needed: 'linker' input unused [-Wunused-command-line-argument]
warning: [email protected]: riscv64-yoe-linux-clang: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument]
Building [========================> ] 39/41: jiff Building [=========================> ] 40/41: orjson error: This macro cannot be used on the current target.
You can prevent it from being used in other architectures by
guarding it behind a cfg(any(target_arch = "x86", target_arch = "x86_64")).
--> src/str/pystr.rs:32:12
|
32 | if std::is_x86_feature_detected!("avx512vl") {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `std::is_x86_feature_detected` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0432]: unresolved import `core::arch::x86_64`
--> src/str/avx512.rs:5:17
|
5 | use core::arch::x86_64::{
| ^^^^^^ could not find `x86_64` in `arch`
error: the feature named `avx512f` is not valid for this target
--> src/str/avx512.rs:11:18
|
11 | #[target_feature(enable = "avx512f,avx512bw,avx512vl,bmi2")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `avx512f` is not valid for this target
error: the feature named `avx512bw` is not valid for this target
--> src/str/avx512.rs:11:18
|
11 | #[target_feature(enable = "avx512f,avx512bw,avx512vl,bmi2")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `avx512bw` is not valid for this target
error: the feature named `avx512vl` is not valid for this target
--> src/str/avx512.rs:11:18
|
11 | #[target_feature(enable = "avx512f,avx512bw,avx512vl,bmi2")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `avx512vl` is not valid for this target
error: the feature named `bmi2` is not valid for this target
--> src/str/avx512.rs:11:18
|
11 | #[target_feature(enable = "avx512f,avx512bw,avx512vl,bmi2")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `bmi2` is not valid for this target
For more information about this error, try `rustc --explain E0432`.
warning: [email protected]: riscv64-yoe-linux-clang: warning: -Wl,-O1: 'linker' input unused [-Wunused-command-line-argument]
warning: [email protected]: riscv64-yoe-linux-clang: warning: -Wl,--hash-style=gnu: 'linker' input unused [-Wunused-command-line-argument]
warning: [email protected]: riscv64-yoe-linux-clang: warning: -Wl,--as-needed: 'linker' input unused [-Wunused-command-line-argument]
warning: [email protected]: riscv64-yoe-linux-clang: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument]
error: could not compile `orjson` (lib) due to 6 previous errors
πŸ’₯ maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_BUILD_EXTENSION_MODULE="1" "cargo" "rustc" "--target" "riscv64-yoe-linux-gnu" "--message-format" "json-render-diagnostics" "--manifest-path" "/mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/python3-orjson/3.11.3/sources/orjson-3.11.3/Cargo.toml" "--release" "--lib"`
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/python3-orjson/3.11.3/recipe-sysroot-native/usr/bin/nativepython3', '--compatibility', 'off'] returned non-zero exit status 1
ERROR Backend subprocess exited when trying to invoke build_wheel
WARNING: /mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/python3-orjson/3.11.3/temp/run.do_compile.67067:193 exit 1 from 'pyproject-build --no-isolation --wheel --outdir /mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/python3-orjson/3.11.3/dist /mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/python3-orjson/3.11.3/sources/orjson-3.11.3'
WARNING: Backtrace (BB generated script):
#1: python_pep517_do_compile, /mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/python3-orjson/3.11.3/temp/run.do_compile.67067, line 193
#2: do_compile, /mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/python3-orjson/3.11.3/temp/run.do_compile.67067, line 169
#3: main, /mnt/b/yoe/master/build/tmp/work/riscv64imafdc-yoe-linux/python3-orjson/3.11.3/temp/run.do_compile.67067, line 204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment