Closed stanleyws closed 1 month ago
@stanleyws
This problem is related to: https://github.com/ziglang/zig/issues/14889
If CPU type is not specified during compilation, the compiler will attempt to make the compiled product run on as many CPUs as possible, in which case atmoic is not supported. The CMakeList has been modified to support setting custom compilation and linking options:
-DZIG_COMPILE_OPTION='-march=armv7;-mcpu=cortex_a9'
https://github.com/xfangfang/PPPwn_cpp/actions/runs/9042674491
Trying to build 32 bit arm binary to run on my openwrt router with "cmake -B build -DZIG_TARGET=arm-linux-musleabi -DUSE_SYSTEM_PCAP=OFF" but cmake throws a bunch of errors:
Building for native x86_64 and mips works without any issue, so I think the build environment setup is ok.