Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build Kernel 6.1 on the develop branch #3694

Open
KaWiSo opened this issue Dec 1, 2024 · 1 comment
Open

Unable to build Kernel 6.1 on the develop branch #3694

KaWiSo opened this issue Dec 1, 2024 · 1 comment
Labels

Comments

@KaWiSo
Copy link
Contributor

KaWiSo commented Dec 1, 2024

Expected Behavior

In the past i was able to properly compile openmptcprouter on the develop branch for my glinet mt6000. Kernel 6.1
Last working compile was probably around the 11.11.

Current Behavior

I am unable to compile using the following command:

OMR_TARGET="glinet_gl-mt6000" OMR_FEED_SRC="develop" OMR_KERNEL="6.1" ./build.sh -j1 V=s

Possible Solution

There seems to be an error with the syntax in mptcpd path_manager.

Steps to Reproduce the Problem

  1. pull the repo with branch develop
  2. add mt6000 as a target-device to the filogic.mk
  3. create the config-glinet_gl-mt6000
  4. start building

Context (Environment)

I added the mt6000 as a target-device. (#3689)
This is the config-file I am using:

CONFIG_TARGET_mediatek=y
CONFIG_TARGET_mediatek_filogic=y
CONFIG_TARGET_mediatek_filogic_DEVICE_glinet_gl-mt6000=y
CONFIG_KERNEL_ARM64_MODULE_PLTS=y
CONFIG_TARGET_INITRAMFS_COMPRESSION_NONE=y
CONFIG_CRYPTO_HW=y
CONFIG_ARM64_CRYPTO=y
CONFIG_CRYPTO_SHA1_ARM_CE=y
CONFIG_CRYPTO_SHA2_ARM_CE=y
CONFIG_CRYPTO_GHASH_ARM_CE=y
CONFIG_CRYPTO_AES_ARM=y
CONFIG_CRYPTO_AES_ARM_CE=y

These are the last few lines of output before the build errors out:

/bin/bash ../libtool --tag=CC --mode=compile aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/>
OpenWrt-libtool: compile: aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/staging_dir/>
/bin/bash ../libtool --tag=CC --mode=compile aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/>
OpenWrt-libtool: compile: aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/staging_dir/>
/bin/bash ../libtool --tag=CC --mode=compile aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/>
OpenWrt-libtool: compile: aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/staging_dir/>
/bin/bash ../libtool --tag=CC --mode=compile aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/>
OpenWrt-libtool: compile: aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/staging_dir/>
/bin/bash ../libtool --tag=CC --mode=compile aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/>
OpenWrt-libtool: compile: aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/staging_dir/>
/bin/bash ../libtool --tag=CC --mode=compile aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/>
OpenWrt-libtool: compile: aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/staging_dir/>
/bin/bash ../libtool --tag=CC --mode=compile aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/>
OpenWrt-libtool: compile: aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/staging_dir/>
/bin/bash ../libtool --tag=CC --mode=compile aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/>
OpenWrt-libtool: compile: aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/staging_dir/>
/bin/bash ../libtool --tag=CC --mode=compile aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/>
OpenWrt-libtool: compile: aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_DLL -DMPTCPD_DLL_EXPORTS -I/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/staging_dir/>
/bin/bash ../libtool --tag=CC --mode=link aarch64-openwrt-linux-musl-gcc -I/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/staging_dir/target-aarch64_cortex-a53_musl/usr/include -Wall -Os -pipe -mcpu=cortex-a53 -fno-caller-s>
OpenWrt-libtool: link: aarch64-openwrt-linux-musl-gcc -shared -fPIC -DPIC .libs/libmptcpd_la-addr_info.o .libs/libmptcpd_la-id_manager.o .libs/libmptcpd_la-listener_manager.o .libs/libmptcpd_la-network_monitor.o .libs/libmptcpd_la-pat>
OpenWrt-libtool: link: (cd ".libs" && rm -f "libmptcpd.so.3" && ln -s "libmptcpd.so.3.1.0" "libmptcpd.so.3")
OpenWrt-libtool: link: (cd ".libs" && rm -f "libmptcpd.so" && ln -s "libmptcpd.so.3.1.0" "libmptcpd.so")
OpenWrt-libtool: link: ( cd ".libs" && rm -f "libmptcpd.la" && ln -s "../libmptcpd.la" "libmptcpd.la" )
make[5]: Leaving directory '/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/build_dir/target-aarch64_cortex-a53_musl/mptcpd-0.13-d186d935fa21ef95fb1784abaeca6d0803978351/lib'
Making all in src
make[5]: Entering directory '/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/build_dir/target-aarch64_cortex-a53_musl/mptcpd-0.13-d186d935fa21ef95fb1784abaeca6d0803978351/src'
aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -I/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/usr/include -I>
/bin/bash ../libtool --tag=CC --mode=compile aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_CONFIG_FILE='"/etc/mptcpd/mptcpd.conf"' -DMPTCPD_DEFAULT_PLUGINDIR='"/us>
OpenWrt-libtool: compile: aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_CONFIG_FILE="/etc/mptcpd/mptcpd.conf" -DMPTCPD_DEFAULT_PLUGINDIR="/usr/lib/mptcpd" -I/home/>
/bin/bash ../libtool --tag=CC --mode=compile aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_CONFIG_FILE='"/etc/mptcpd/mptcpd.conf"' -DMPTCPD_DEFAULT_PLUGINDIR='"/us>
OpenWrt-libtool: compile: aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_CONFIG_FILE="/etc/mptcpd/mptcpd.conf" -DMPTCPD_DEFAULT_PLUGINDIR="/usr/lib/mptcpd" -I/home/>
/bin/bash ../libtool --tag=CC --mode=compile aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_CONFIG_FILE='"/etc/mptcpd/mptcpd.conf"' -DMPTCPD_DEFAULT_PLUGINDIR='"/us>
OpenWrt-libtool: compile: aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_CONFIG_FILE="/etc/mptcpd/mptcpd.conf" -DMPTCPD_DEFAULT_PLUGINDIR="/usr/lib/mptcpd" -I/home/>
/bin/bash ../libtool --tag=CC --mode=compile aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_CONFIG_FILE='"/etc/mptcpd/mptcpd.conf"' -DMPTCPD_DEFAULT_PLUGINDIR='"/us>
OpenWrt-libtool: compile: aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include/mptcpd/private -I../include -I../include -DMPTCPD_CONFIG_FILE="/etc/mptcpd/mptcpd.conf" -DMPTCPD_DEFAULT_PLUGINDIR="/usr/lib/mptcpd" -I/home/>
path_manager.c: In function 'handle_mptcp_event':
path_manager.c:662:14: error: 'MPTCP_EVENT_LISTENER_CREATED' undeclared (first use in this function); did you mean 'MPTCP_EVENT_CREATED'?
662 | case MPTCP_EVENT_LISTENER_CREATED:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MPTCP_EVENT_CREATED
path_manager.c:662:14: note: each undeclared identifier is reported only once for each function it appears in
path_manager.c:666:14: error: 'MPTCP_EVENT_LISTENER_CLOSED' undeclared (first use in this function); did you mean 'MPTCP_EVENT_SUB_CLOSED'?
666 | case MPTCP_EVENT_LISTENER_CLOSED:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| MPTCP_EVENT_SUB_CLOSED
make[5]: *** [Makefile:798: libpath_manager_la-path_manager.lo] Error 1
make[5]: Leaving directory '/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/build_dir/target-aarch64_cortex-a53_musl/mptcpd-0.13-d186d935fa21ef95fb1784abaeca6d0803978351/src'
make[4]: *** [Makefile:485: all-recursive] Error 1
make[4]: Leaving directory '/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/build_dir/target-aarch64_cortex-a53_musl/mptcpd-0.13-d186d935fa21ef95fb1784abaeca6d0803978351'
make[3]: *** [Makefile:73: /home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/build_dir/target-aarch64_cortex-a53_musl/mptcpd-0.13-d186d935fa21ef95fb1784abaeca6d0803978351/.built] Error 2
make[3]: Leaving directory '/home/kevin/openmptcprouter/feeds/openmptcprouter/mptcpd'
time: package/feeds/openmptcprouter/mptcpd/compile#0.00#0.00#60.82
ERROR: package/feeds/openmptcprouter/mptcpd failed to build.
make[2]: *** [package/Makefile:128: package/feeds/openmptcprouter/mptcpd/compile] Error 1
make[2]: Leaving directory '/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source'
make[1]: *** [package/Makefile:122: /home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source'
make: *** [/home/kevin/openmptcprouter/glinet_gl-mt6000/6.1/source/include/toplevel.mk:232: world] Error 2

@KaWiSo KaWiSo added the bug label Dec 1, 2024
@Ysurac
Copy link
Owner

Ysurac commented Dec 2, 2024

Kernel 6.1 is not supported anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants