Opened 5 months ago

Last modified 5 months ago

#32904 new defect

Tor build fails with -enable-seccomp on mips

Reported by: pa-ja Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version: Tor:
Severity: Normal Keywords: mips
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


I'm trying to make tor seccomp variant for OpenWrt (
For MIPS build fails on error:

'mcontext_t' {aka 'struct <anonymous>'} has no member named 'M_SYSCALL'

for arm build is fine.

This issue is probably related to

Log from failed build:

src/lib/sandbox/sandbox.c: In function 'sigsys_debugging':
src/lib/sandbox/sandbox.c:1617:35: error: 'mcontext_t' {aka 'struct <anonymous>'} has no member named 'M_SYSCALL'
   syscall = (int) ctx->uc_mcontext.M_SYSCALL;
Makefile:10599: recipe for target 'src/lib/sandbox/sandbox.o' failed
make[4]: *** [src/lib/sandbox/sandbox.o] Error 1
make[4]: Leaving directory '/home/build/build_dir/build_dir/target-mips_24kc_musl/tor-seccomp/tor-'
Makefile:5828: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/build/build_dir/build_dir/target-mips_24kc_musl/tor-seccomp/tor-'
Makefile:170: recipe for target '/home/build/build_dir/build_dir/target-mips_24kc_musl/tor-seccomp/tor-' failed
make[2]: *** [/home/build/build_dir/build_dir/target-mips_24kc_musl/tor-seccomp/tor-] Error 2
make[2]: Leaving directory '/home/build/openwrt_packages/net/tor'
time: package/feeds/packages/tor/seccomp/compile#2.85#1.40#5.06
package/Makefile:111: recipe for target 'package/feeds/packages/tor/compile' failed
make[1]: *** [package/feeds/packages/tor/compile] Error 2
make[1]: Leaving directory '/home/build/build_dir'
/home/build/build_dir/include/ recipe for target 'package/tor/compile' failed
make: *** [package/tor/compile] Error 2

Child Tickets

Change History (1)

comment:1 Changed 5 months ago by dgoulet

Keywords: mips added
Milestone: Tor: unspecified
Note: See TracTickets for help on using tickets.