-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Labels
Description
Package Name
python-cryptography
Maintainer
OpenWrt Version
SNAPSHOT
OpenWrt Target/Subtarget
ath79/generic
Steps to Reproduce
Compile python-cryptographic on latest git
Actual Behaviour
map=/data/openwrt/wr650/build_dir/target-mips_24kc_musl/pypi/cryptography-41.0.7=cryptography-41.0.7 -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro ")
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = None
cargo:rerun-if-env-changed=CC_mips-unknown-linux-musl
CC_mips-unknown-linux-musl = None
cargo:rerun-if-env-changed=CC_mips_unknown_linux_musl
CC_mips_unknown_linux_musl = None
cargo:rerun-if-env-changed=TARGET_CC
TARGET_CC = Some("mips-openwrt-linux-musl-gcc")
cargo:rerun-if-env-changed=CFLAGS_mips-unknown-linux-musl
CFLAGS_mips-unknown-linux-musl = None
cargo:rerun-if-env-changed=CFLAGS_mips_unknown_linux_musl
CFLAGS_mips_unknown_linux_musl = None
cargo:rerun-if-env-changed=TARGET_CFLAGS
TARGET_CFLAGS = Some("-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/data/openwrt/wr650/build_dir/target-mips_24kc_musl/pypi/cryptography-41.0.7=cryptography-41.0.7 -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro ")
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = None
running: "mips-openwrt-linux-musl-gcc" "-Os" "-ffunction-sections" "-fdata-sections" "-fPIC" "-Os" "-pipe" "-mno-branch-likely" "-mips32r2" "-mtune=24kc" "-fno-caller-saves" "-fno-plt" "-fhonour-copts" "-msoft-float" "-fmacro-prefix-map=/data/openwrt/wr650/build_dir/target-mips_24kc_musl/pypi/cryptography-41.0.7=cryptography-41.0.7" "-mips16" "-minterlink-mips16" "-Wformat" "-Werror=format-security" "-fstack-protector" "-D_FORTIFY_SOURCE=1" "-Wl,-z,now" "-Wl,-z,relro" "-I" "/data/openwrt/wr650/staging_dir/hostpkg/include/python3.13" "-I" "/data/openwrt/wr650/staging_dir/target-mips_24kc_musl/usr/include" "-Wconversion" "-Wno-error=sign-conversion" "-Wno-unused-parameter" "-DPy_LIMITED_API=0x030700f0" "-o" "/data/openwrt/wr650/build_dir/target-mips_24kc_musl/pypi/cryptography-41.0.7/src/rust/target/mips-unknown-linux-musl/release/build/cryptography-cffi-ff0502dfad9fd4f3/out/e2c36d8645f84df0-_openssl.o" "-c" "/data/openwrt/wr650/build_dir/target-mips_24kc_musl/pypi/cryptography-41.0.7/src/rust/target/mips-unknown-linux-musl/release/build/cryptography-cffi-ff0502dfad9fd4f3/out/_openssl.c"
cargo:warning=In file included from /data/openwrt/wr650/staging_dir/hostpkg/include/python3.13/Python.h:64,
cargo:warning= from /data/openwrt/wr650/build_dir/target-mips_24kc_musl/pypi/cryptography-41.0.7/src/rust/target/mips-unknown-linux-musl/release/build/cryptography-cffi-ff0502dfad9fd4f3/out/_openssl.c:57:
cargo:warning=/data/openwrt/wr650/staging_dir/hostpkg/include/python3.13/pyport.h:399:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
cargo:warning= 399 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
cargo:warning= | ^~~~~
cargo:warning=/data/openwrt/wr650/build_dir/target-mips_24kc_musl/pypi/cryptography-41.0.7/src/rust/target/mips-unknown-linux-musl/release/build/cryptography-cffi-ff0502dfad9fd4f3/out/_openssl.c: In function 'Cryptography_DTLSv1_get_timeout':
cargo:warning=/data/openwrt/wr650/build_dir/target-mips_24kc_musl/pypi/cryptography-41.0.7/src/rust/target/mips-unknown-linux-musl/release/build/cryptography-cffi-ff0502dfad9fd4f3/out/_openssl.c:1205:25: warning: conversion from 'suseconds_t' {aka 'long long int'} to 'long int' may change value [-Wconversion]
cargo:warning= 1205 | *ptv_usec = tv.tv_usec;
cargo:warning= | ^~
exit status: 1
--- stderr
error occurred: Command "mips-openwrt-linux-musl-gcc" "-Os" "-ffunction-sections" "-fdata-sections" "-fPIC" "-Os" "-pipe" "-mno-branch-likely" "-mips32r2" "-mtune=24kc" "-fno-caller-saves" "-fno-plt" "-fhonour-copts" "-msoft-float" "-fmacro-prefix-map=/data/openwrt/wr650/build_dir/target-mips_24kc_musl/pypi/cryptography-41.0.7=cryptography-41.0.7" "-mips16" "-minterlink-mips16" "-Wformat" "-Werror=format-security" "-fstack-protector" "-D_FORTIFY_SOURCE=1" "-Wl,-z,now" "-Wl,-z,relro" "-I" "/data/openwrt/wr650/staging_dir/hostpkg/include/python3.13" "-I" "/data/openwrt/wr650/staging_dir/target-mips_24kc_musl/usr/include" "-Wconversion" "-Wno-error=sign-conversion" "-Wno-unused-parameter" "-DPy_LIMITED_API=0x030700f0" "-o" "/data/openwrt/wr650/build_dir/target-mips_24kc_musl/pypi/cryptography-41.0.7/src/rust/target/mips-unknown-linux-musl/release/build/cryptography-cffi-ff0502dfad9fd4f3/out/e2c36d8645f84df0-_openssl.o" "-c" "/data/openwrt/wr650/build_dir/target-mips_24kc_musl/pypi/cryptography-41.0.7/src/rust/target/mips-unknown-linux-musl/release/build/cryptography-cffi-ff0502dfad9fd4f3/out/_openssl.c" with args "mips-openwrt-linux-musl-gcc" did not execute successfully (status code exit status: 1).
<string>:70: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation/ for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq/
4) Ensure you have a recent Rust toolchain installed:
https://cryptography.io/en/latest/installation/#rust
Python: 3.13.9
platform: Linux-6.18.2-arch2-1-x86_64-with-glibc2.42
pip: 25.2
setuptools: 80.9.0
setuptools_rust: 1.12.0
rustc: 1.90.0 (1159e78c4 2025-09-14) (built from a source tarball)
=============================DEBUG ASSISTANCE=============================
error: `cargo rustc --lib --message-format=json-render-diagnostics --manifest-path src/rust/Cargo.toml --target mips-unknown-linux-musl -v --features pyo3/extension-module --profile release --crate-type cdylib --` failed with code 101
ERROR Backend subprocess exited when trying to invoke build_wheel
make[3]: *** [Makefile:55: /data/openwrt/wr650/build_dir/target-mips_24kc_musl/pypi/cryptography-41.0.7/.built] Error 1
make[3]: Leaving directory '/data/openwrt/wr650/feeds/packages/lang/python/python-cryptography'
time: package/feeds/packages/python-cryptography/compile#2.95#0.26#3.32
ERROR: package/feeds/packages/python-cryptography failed to build.
make[2]: *** [package/Makefile:187: package/feeds/packages/python-cryptography/compile] Error 1
make[2]: Leaving directory '/data/openwrt/wr650'
make[1]: *** [package/Makefile:181: /data/openwrt/wr650/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/data/openwrt/wr650'
make: *** [/data/openwrt/wr650/include/toplevel.mk:233: world] Error 2
Confirmation Checklist
- The package is maintained in this repository.
- I understand that issues related to the base OpenWrt repository or LuCI repository will be closed.
- I am reporting an issue for OpenWrt, not an unsupported fork.