Repository navigation
Open
Labels
kind/triageUnclassified issues
Description
Problem Description
I am trying to compile latest mitmproxy from git for OpenWrt x86_64 glibc with gcc 16.1.0 but stuck at mitmproxy-linux python module compilation errors
Compiling hickory-proto v0.25.2
Compiling aya v0.13.1
error: failed to run custom build command for `mitmproxy-linux v0.12.9 (/home/nameless/works/openwrt/build_dir/target-x86_64_glibc_nameless/pypi/mitmproxy_linux-0.12.9/mitmproxy-linux)`
Caused by:
process didn't exit successfully: `/home/nameless/works/openwrt/build_dir/target-x86_64_glibc_nameless/pypi/mitmproxy_linux-0.12.9/target/release/build/mitmproxy-linux-7e2455a67ad3fb1a/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-changed=/home/nameless/works/openwrt/build_dir/target-x86_64_glibc_nameless/pypi/mitmproxy_linux-0.12.9/mitmproxy-linux-ebpf
--- stderr
Error: failed to spawn env -u RUSTC -u RUSTC_WORKSPACE_WRAPPER CARGO_ENCODED_RUSTFLAGS="--cfg=bpf_target_arch=\"x86_64\"\u{1f}-Cdebuginfo=2\u{1f}-Clink-arg=--btf" "rustup" "run" "nightly" "cargo" "build" "--package" "mitmproxy-linux-ebpf" "-Z" "build-std=core" "--bins" "--message-format=json" "--release" "--target" "bpfel-unknown-none" "--features" "" "--target-dir" "/home/nameless/works/openwrt/build_dir/target-x86_64_glibc_nameless/pypi/mitmproxy_linux-0.12.9/target/x86_64-unknown-linux-gnu/release/build/mitmproxy-linux-503483072b84148f/out/mitmproxy-linux-ebpf"
Caused by:
No such file or directory (os error 2)
warning: build failed, waiting for other jobs to finish...
💥 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" "--profile" "release" "--target" "x86_64-unknown-linux-gnu" "--message-format" "json-render-diagnostics" "--manifest-path" "/home/nameless/works/openwrt/build_dir/target-x86_64_glibc_nameless/pypi/mitmproxy_linux-0.12.9/mitmproxy-linux/Cargo.toml" "--bin" "mitmproxy-linux-redirector"`
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/home/nameless/works/openwrt/staging_dir/hostpkg/bin/python3.14', '--compatibility', 'off'] returned non-zero exit status 1
ERROR Backend subprocess exited when trying to invoke build_wheel
make[2]: *** [Makefile:49: /home/nameless/works/openwrt/build_dir/target-x86_64_glibc_nameless/pypi/mitmproxy_linux-0.12.9/.built] Error 1
The RUSTFLAGS seems invalidly generated "--cfg=bpf_target_arch="x86_64"\u{1f}-Cdebuginfo=2\u{1f}-Clink-arg=--btf"
rust version 1.96.1
OpenWrt Makefile for mitmproxy-linux python3 module.
Btw where is mitmproxy-linux python3 module git repo url?
System Information
Latest mitmproxy git vanilla a67fc64596c472cb468be6b3ac188511e8e9ff94
Metadata
Metadata
Assignees
Labels
kind/triageUnclassified issues
Activity
vortexilation commentedon Jul 7, 2026
Applying this PR seems fixed it.
mhils commentedon Jul 17, 2026
https://github.com/mitmproxy/mitmproxy_rs
Happy to take a PR that updates aya, the current one does not pass CI.
vortexilation commentedon Jul 17, 2026
Yes, I have applied the PR with some modifications, mitmproxy with that PR seems running fine, but I haven't thoroughly test it.