Ysurac / openmptcprouter

OpenMPTCProuter is an open source solution to aggregate multiple internet connections using Multipath TCP (MPTCP) on OpenWrt
https://www.openmptcprouter.com/
GNU General Public License v3.0
1.71k stars 252 forks source link

Compile error on macOS (m1) #3359

Open atyouspace opened 1 month ago

atyouspace commented 1 month ago

lib/obstack.c:351:31: error: incompatible function pointer types initializing 'void ()(void) attribute((noreturn))' with an expression of type 'void (void)' [-Wincompatible-function-pointer-types] __attribute_noreturn__ void (obstack_alloc_failed_handler) (void) ^ 1 error generated. make[6]: [Makefile:2781: lib/obstack.o] Error 1 make[6]: Leaving directory '/Volumes/OpenWrt/source/build_dir/host/sed-4.8' make[5]: [Makefile:3105: all-recursive] Error 1 make[5]: Leaving directory '/Volumes/OpenWrt/source/build_dir/host/sed-4.8' make[4]: [Makefile:2321: all] Error 2 make[4]: Leaving directory '/Volumes/OpenWrt/source/build_dir/host/sed-4.8' make[3]: [Makefile:49: /Volumes/OpenWrt/source/build_dir/host/sed-4.8/.built] Error 2 make[3]: Leaving directory '/Volumes/OpenWrt/source/tools/sed' time: tools/sed/compile#16.14#9.27#49.65 ERROR: tools/sed failed to build. make[2]: [tools/Makefile:160: tools/sed/compile] Error 1 make[2]: Leaving directory '/Volumes/OpenWrt/source' make[1]: [tools/Makefile:156: /Volumes/OpenWrt/source/staging_dir/host/stamp/.tools_compile_yyyyyynnyyyynyyyyyynyynnyyyynyyyyyyyyyyyyyyyyyynynnyyyyyyy] Error 2 make[1]: Leaving directory '/Volumes/OpenWrt/source' make: *** [/Volumes/OpenWrt/source/include/toplevel.mk:230: world] Error 2

Specifications

Ysurac commented 1 month ago

Maybe you can try to build 0.60 kernel 6.1 that is more up to date.

atyouspace commented 1 month ago

Maybe you can try to build 0.60 kernel 6.1 that is more up to date.

But I found there is only fullmesh supported in kernel 6.1. is that right? I want to use other scheduling mechanism with fullmesh together , how to do that?

Ysurac commented 1 month ago

Other schedulers are available in snapshot using kernel 6.6 (but not yes tested...)

atyouspace commented 1 month ago

Maybe you can try to build 0.60 kernel 6.1 that is more up to date.

I build project by OMR_TARGET="newboard" OMR_FEED_SRC="v0.59.1" OMR_KERNEL="5.4" ./build.sh. Is that right? the problem is still there. Are some packages missing?

Ysurac commented 1 month ago

To use 6.6: OMR_TARGET="newboard" OMR_FEED_SRC="develop" OMR_KERNEL="6.6" ./build.sh if your platform have 6.6 support in OpenWRT. Compilation is only tested under Linux, no if this can work on macOS.