python-orjson to ARM repo

Request a package to be made here. Make sure you have searched before requesting.

python-orjson to ARM repo

Postby Sbyrr0 » Sun Apr 18, 2021 11:58 am

I noticed the python-orjson package is missing.
It is a python library compiled in rust, so the mainstream package is not directly usable by ARM machines.

---

I tried the x86_64 PKGBUILD changing the architecture, but I got these errors:
$this->bbcode_second_pass_code('', '
$ makepkg -si
==> Making package: python-orjson 3.5.2-1 (Sun 18 Apr 2021 01:57:28 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Package (6) New Version Net Change Download Size

community/python-pytzdata 2020.1-3 0.89 MiB 0.15 MiB
community/maturin 0.9.4-1 10.41 MiB 2.84 MiB
community/python-pendulum 2.1.2-3 0.90 MiB 0.14 MiB
community/python-psutil 5.8.0-1 2.06 MiB 0.33 MiB
community/python-xxhash 2.0.2-1 0.04 MiB 0.01 MiB
community/rustup 1.23.1-1 5.88 MiB 1.84 MiB

Total Download Size: 5.32 MiB
Total Installed Size: 20.19 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
rustup-1.23.1-1-armv7h 1883.3 KiB 5.93 MiB/s 00:00 [#############################################] 100%
maturin-0.9.4-1-armv7h 2.8 MiB 7.10 MiB/s 00:00 [#############################################] 100%
python-pytzdata-2020.1-3-any 157.2 KiB 2.56 MiB/s 00:00 [#############################################] 100%
python-pendulum-2.1.2-3-any 147.8 KiB 2.06 MiB/s 00:00 [#############################################] 100%
python-psutil-5.8.0-1-armv7h 335.6 KiB 3.28 MiB/s 00:00 [#############################################] 100%
python-xxhash-2.0.2-1-armv7h 13.4 KiB 0.00 B/s 00:00 [#############################################] 100%
(6/6) checking keys in keyring [#############################################] 100%
(6/6) checking package integrity [#############################################] 100%
(6/6) loading package files [#############################################] 100%
(6/6) checking for file conflicts [#############################################] 100%
(6/6) checking available disk space [#############################################] 100%
:: Processing package changes...
(1/6) installing rustup [#############################################] 100%
You may need to run rustup update stable
and possibly also rustup self upgrade-data
Optional dependencies for rustup
lldb: rust-lldb script
gdb: rust-gdb script [installed]
(2/6) installing maturin [#############################################] 100%
(3/6) installing python-pytzdata [#############################################] 100%
(4/6) installing python-pendulum [#############################################] 100%
(5/6) installing python-psutil [#############################################] 100%
(6/6) installing python-xxhash [#############################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Retrieving sources...
-> Downloading python-orjson-3.5.2.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 117 100 117 0 0 317 0 --:--:-- --:--:-- --:--:-- 317
100 745k 0 745k 0 0 745k 0 --:--:-- 0:00:01 --:--:-- 745k
==> Validating source files with sha512sums...
python-orjson-3.5.2.tar.gz ... Passed
==> Validating source files with b2sums...
python-orjson-3.5.2.tar.gz ... Passed
==> Extracting sources...
-> Extracting python-orjson-3.5.2.tar.gz with bsdtar
==> Starting prepare()...
renamed 'orjson-3.5.2' -> 'python-orjson-3.5.2'
info: syncing channel updates for 'nightly-2021-03-25-armv7-unknown-linux-gnueabihf'
info: latest update on 2021-03-25, rust version 1.53.0-nightly (07e0e2ec2 2021-03-24)
info: downloading component 'cargo'
5.4 MiB / 5.4 MiB (100 %) 1.7 MiB/s in 3s ETA: 0s
info: downloading component 'clippy'
2.2 MiB / 2.2 MiB (100 %) 1.6 MiB/s in 2s ETA: 0s
info: downloading component 'rust-std'
18.9 MiB / 18.9 MiB (100 %) 4.7 MiB/s in 4s ETA: 0s
info: downloading component 'rustc'
83.7 MiB / 83.7 MiB (100 %) 4.5 MiB/s in 20s ETA: 0s
info: downloading component 'rustfmt'
3.1 MiB / 3.1 MiB (100 %) 1.7 MiB/s in 2s ETA: 0s
info: installing component 'cargo'
info: using up to 500.0 MiB of RAM to unpack components
5.4 MiB / 5.4 MiB (100 %) 1.2 MiB/s in 4s ETA: 0s
info: installing component 'clippy'
2.2 MiB / 2.2 MiB (100 %) 1.1 MiB/s in 2s ETA: 0s
info: installing component 'rust-std'
18.9 MiB / 18.9 MiB (100 %) 1.1 MiB/s in 18s ETA: 0s
info: installing component 'rustc'
83.7 MiB / 83.7 MiB (100 %) 1.4 MiB/s in 1m 21s ETA: 0s
8 IO-ops / 8 IO-ops (100 %) 7 IOPS in 1s ETA: 0s
info: installing component 'rustfmt'
3.1 MiB / 3.1 MiB (100 %) 1.2 MiB/s in 4s ETA: 0s
info: override toolchain for '/home/user/python-orjson/src/python-orjson-3.5.2' set to 'nightly-2021-03-25-armv7-unknown-linux-gnueabihf'

nightly-2021-03-25-armv7-unknown-linux-gnueabihf installed - rustc 1.53.0-nightly (07e0e2ec2 2021-03-24)

==> Starting build()...
[EMOJI] Found pyo3 bindings
[EMOJI] Found CPython 3.9 at python3.9
[EMOJI] There are local dependencies, which the source distribution might not include: serde_json
[EMOJI] Including files matching "Cargo.lock"
[EMOJI] Including files matching "json/**/*"
[EMOJI] Built source distribution to /home/user/python-orjson/src/python-orjson-3.5.2/target/wheels/orjson-3.5.2.tar.gz
Compiling cfg-if v1.0.0
Compiling libc v0.2.93
Compiling libm v0.1.4
Compiling bitflags v1.2.1
Compiling ryu v1.0.5
Compiling packed_simd_2 v0.3.4
Compiling cfg-if v0.1.10
Compiling version_check v0.9.3
Compiling serde v1.0.125
Compiling smallvec v1.6.1
Compiling getrandom v0.2.2
Compiling scopeguard v1.1.0
Compiling lexical-core v0.7.5
Compiling static_assertions v1.1.0
Compiling pyo3 v0.13.2
Compiling encoding_rs v0.8.28
Compiling arrayvec v0.5.2
Compiling orjson v3.5.2 (/home/user/python-orjson/src/python-orjson-3.5.2)
Compiling once_cell v1.7.2
Compiling itoa v0.4.7
Compiling inlinable_string v0.1.14
Compiling associative-cache v1.0.1
Compiling instant v0.1.9
Compiling lock_api v0.4.3
Compiling ahash v0.7.2
Compiling parking_lot_core v0.8.3
Compiling parking_lot v0.11.1
Compiling serde_json v1.0.53 (/home/user/python-orjson/src/python-orjson-3.5.2/json)
Compiling bytecount v0.6.2
error[E0432]: unresolved import `simd_funcs`0/53: packed_simd_2, encoding_rs
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/x_user_defined.rs:16:13
|
16 | use simd_funcs::*;
| ^^^^^^^^^^ use of undeclared crate or module `simd_funcs`


error[E0425]: cannot find function `load16_unaligned` in this scopecoding_rs
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/x_user_defined.rs:120:34
|
120 | let input = unsafe { load16_unaligned(src_ptr.add(i * 16)) };
| ^^^^^^^^^^^^^^^^ not found in this scope


error[E0425]: cannot find function `simd_unpack` in this scope2, encoding_rs
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/x_user_defined.rs:121:35
|
121 | let (first, second) = simd_unpack(input);
| ^^^^^^^^^^^ not found in this scope


error[E0425]: cannot find function `store8_unaligned` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/x_user_defined.rs:123:17
|
123 | store8_unaligned(dst_ptr.add(i * 16), shift_upper(first));
| ^^^^^^^^^^^^^^^^ not found in this scope


error[E0425]: cannot find function `store8_unaligned` in this scopecoding_rs
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/x_user_defined.rs:124:17
|
124 | store8_unaligned(dst_ptr.add((i * 16) + 8), shift_upper(second));
| ^^^^^^^^^^^^^^^^ not found in this scope


error[E0412]: cannot find type `u16x8` in this scopecked_simd_2, encoding_rs
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:123:40
|
123 | pub fn simd_at(&self, i: usize) -> u16x8 {
| ^^^^^ not found in this scope
|
help: consider importing one of these items
|
39 | use crate::variant::core::core_arch::arm::neon::u16x8;
|
39 | use crate::x_user_defined::u16x8;
|
39 | use packed_simd::u16x8;
|
Buildingerror[E0425]: cannot find value `SIMD_STRIDE_SIZE` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:124:21
|
124 | assert!(i + SIMD_STRIDE_SIZE / 2 <= self.len);
| ^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `ALU_STRIDE_SIZE`
|
::: /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/ascii.rs:1059:9
|
1059 | pub const ALU_STRIDE_SIZE: usize = 8;
| ------------------------------------- similarly named constant `ALU_STRIDE_SIZE` defined here


error[E0425]: cannot find function `to_u16_lanes` in this scope, encoding_rs
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:126:18
|
126 | unsafe { to_u16_lanes(load16_unaligned(self.ptr.add(byte_index))) }
| ^^^^^^^^^^^^ not found in this scope


error[E0425]: cannot find function `load16_unaligned` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:126:31
|
126 | unsafe { to_u16_lanes(load16_unaligned(self.ptr.add(byte_index))) }
| ^^^^^^^^^^^^^^^^ not found in this scope


Buildingerror[E0425]: cannot find value `SIMD_STRIDE_SIZE` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:147:12
|
147 | if SIMD_STRIDE_SIZE / 2 <= self.len {
| ^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `ALU_STRIDE_SIZE`
|
::: /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/ascii.rs:1059:9
|
1059 | pub const ALU_STRIDE_SIZE: usize = 8;
| ------------------------------------- similarly named constant `ALU_STRIDE_SIZE` defined here


Buildingerror[E0425]: cannot find value `SIMD_STRIDE_SIZE` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:148:47
|
148 | let len_minus_stride = self.len - SIMD_STRIDE_SIZE / 2;
| ^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `ALU_STRIDE_SIZE`
|
::: /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/ascii.rs:1059:9
|
1059 | pub const ALU_STRIDE_SIZE: usize = 8;
| ------------------------------------- similarly named constant `ALU_STRIDE_SIZE` defined here


Buildingerror[E0425]: cannot find value `SIMD_STRIDE_SIZE` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:148:47
|
148 | let len_minus_stride = self.len - SIMD_STRIDE_SIZE / 2;
| ^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `ALU_STRIDE_SIZE`
|
::: /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/ascii.rs:1059:9
|
1059 | pub const ALU_STRIDE_SIZE: usize = 8;
| ------------------------------------- similarly named constant `ALU_STRIDE_SIZE` defined here


Building [========================> ] 50/53: packed_simd_2, encoding_rs error[E0425]: cannot find function `simd_byte_swap` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:152:28
|
152 | simd = simd_byte_swap(simd);
| ^^^^^^^^^^^^^^ not found in this scope


Buildingerror[E0425]: cannot find function `store8_unaligned` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:155:21
|
155 | store8_unaligned(other.as_mut_ptr().add(offset), simd);
| ^^^^^^^^^^^^^^^^ not found in this scope


Buildingerror[E0425]: cannot find function `contains_surrogates` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:157:20
|
157 | if contains_surrogates(simd) {
| ^^^^^^^^^^^^^^^^^^^ not found in this scope


Buildingerror[E0425]: cannot find value `SIMD_STRIDE_SIZE` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:160:27
|
160 | offset += SIMD_STRIDE_SIZE / 2;
| ^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `ALU_STRIDE_SIZE`
|
::: /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/ascii.rs:1059:9
|
1059 | pub const ALU_STRIDE_SIZE: usize = 8;
| ------------------------------------- similarly named constant `ALU_STRIDE_SIZE` defined here


Buildingerror[E0425]: cannot find value `SIMD_STRIDE_SIZE` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:239:8
|
239 | if SIMD_STRIDE_SIZE <= len {
| ^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `ALU_STRIDE_SIZE`
|
::: /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/ascii.rs:1059:9
|
1059 | pub const ALU_STRIDE_SIZE: usize = 8;
| ------------------------------------- similarly named constant `ALU_STRIDE_SIZE` defined here


Buildingerror[E0425]: cannot find value `SIMD_STRIDE_SIZE` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:239:8
|
239 | if SIMD_STRIDE_SIZE <= len {
| ^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `ALU_STRIDE_SIZE`
|
::: /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/ascii.rs:1059:9
|
1059 | pub const ALU_STRIDE_SIZE: usize = 8;
| ------------------------------------- similarly named constant `ALU_STRIDE_SIZE` defined here


error[E0425]: cannot find value `SIMD_STRIDE_SIZE` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:240:38
|
240 | let len_minus_stride = len - SIMD_STRIDE_SIZE;
| ^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `ALU_STRIDE_SIZE`
|
::: /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/ascii.rs:1059:9
|
1059 | pub const ALU_STRIDE_SIZE: usize = 8;
| ------------------------------------- similarly named constant `ALU_STRIDE_SIZE` defined here


error[E0425]: cannot find value `SIMD_STRIDE_SIZE` in this scope encoding_rs
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:243:52
|
243 | let mut second = src.simd_at(offset + (SIMD_STRIDE_SIZE / 2));
| ^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `ALU_STRIDE_SIZE`
|
::: /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/ascii.rs:1059:9
|
1059 | pub const ALU_STRIDE_SIZE: usize = 8;
| ------------------------------------- similarly named constant `ALU_STRIDE_SIZE` defined here


error[E0425]: cannot find function `simd_byte_swap` in this scopeencoding_rs
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:245:25
|
245 | first = simd_byte_swap(first);
| ^^^^^^^^^^^^^^ not found in this scope


Buildingerror[E0425]: cannot find function `simd_byte_swap` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:246:26
|
246 | second = simd_byte_swap(second);
| ^^^^^^^^^^^^^^ not found in this scope

[========================> ] 50/53: packed_simd_2, encoding_rs
error[E0425]: cannot find function `simd_is_basic_latin` in this scopeing_rs
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:248:17
|
248 | if !simd_is_basic_latin(first | second) {
| ^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `ascii_to_basic_latin`
|
::: /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/ascii.rs:189:9
|
189 | / pub unsafe fn $name(
190 | | src: *const $src_unit,
191 | | dst: *mut $dst_unit,
192 | | len: usize,
... |
275 | | None
276 | | }
| |_________- similarly named function `ascii_to_basic_latin` defined here


Buildingerror[E0425]: cannot find function `simd_pack` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:251:26
|
251 | let packed = simd_pack(first, second);
| ^^^^^^^^^ not found in this scope


error[E0425]: cannot find function `store16_unaligned` in this scopeoding_rs
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:253:17
|
253 | store16_unaligned(dst.as_mut_ptr().add(offset), packed);
| ^^^^^^^^^^^^^^^^^ not found in this scope


Buildingerror[E0425]: cannot find value `SIMD_STRIDE_SIZE` in this scope
--> /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/handles.rs:255:23
|
255 | offset += SIMD_STRIDE_SIZE;
| ^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `ALU_STRIDE_SIZE`
|
::: /home/user/.cargo/registry/src/github.com-1285ae84e5963aae/encoding_rs-0.8.28/src/ascii.rs:1059:9
|
1059 | pub const ALU_STRIDE_SIZE: usize = 8;
| ------------------------------------- similarly named constant `ALU_STRIDE_SIZE` defined here

[========================> ] 50/53: packed_simd_2, encoding_rs
error: aborting due to 24 previous errors] 51/53: encoding_rs


Some errors have detailed explanations: E0412, E0425, E0432.

For more information about an error, try `rustc --explain E0412`.

The following warnings were emitted during compilation:

warning: Cannot set `RUSTC_BOOTSTRAP=1` from build script of `encoding_rs v0.8.28`.
note: Crates cannot set `RUSTC_BOOTSTRAP` themselves, as doing so would subvert the stability guarantees of Rust for your project.

error: could not compile `encoding_rs`

To learn more, run the command again with --verbose.
[EMOJI] maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit code: 101": `cargo rustc --message-format json --manifest-path Cargo.toml --release --lib -- -C link-arg=-s`
==> ERROR: A failure occurred in build().
Aborting...
')
Sbyrr0
 
Posts: 28
Joined: Wed May 13, 2020 10:05 pm

Return to Package Requests

Who is online

Users browsing this forum: No registered users and 2 guests