openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
4.01k stars 3.49k forks source link

cryptodev-linux can't be built with the ath79/mikrotik snapshot SDK #15629

Closed rogerpueyo closed 3 years ago

rogerpueyo commented 3 years ago

I was trying to build a set of packages for OpenWrt whey I realized that the ath79/mikrotik snapshot SDK fails to build the cryptodev-linux package. However, the ath79/generic and ath79/nand SDKs build it correctly.

Steps to reproduce:

  1. Download latest ath79/mikrotik snapshot SDK and unpack it.
  2. Update & install feeds: roger@7018:~/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64$ ./scripts/feeds update -a; ./scripts/feeds install -a
  3. Compile a regular package, just to try (e.g., iperf3): roger@7018:~/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64$ make -j8 package/iperf3/compile The menuconfig environment appears. To speed up things, deselect:
    Global build settings  --->
    [ ] Select all target specific packages by default
    [ ] Select all kernel module packages by default
    [ ] Select all userspace packages by default
    [ ] Cryptographically sign package lists 

    Exit &Save.

  4. iperf3 is successfully compiled:
    [...]
    Config-build.in:9863:warning: defaults for choice values not supported
    Config-build.in:10175:warning: defaults for choice values not supported
    Config-build.in:10179:warning: defaults for choice values not supported
    Config-build.in:10183:warning: defaults for choice values not supported
    #
    # No change to .config
    #
    make[1] package/iperf3/compile
    make[2] -C package/toolchain clean-build
    make[2] -C package/toolchain compile
    make[2] -C feeds/base/package/libs/openssl clean-build
    make[2] -C feeds/base/package/libs/openssl compile
    make[2] -C feeds/packages/net/iperf3 compile
  5. Compile cryptodev-linux: roger@7018:~/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64$ make -j8 package/cryptodev-linux/compile
  6. cryptodev-linux fails to compile:
    Config-build.in:9659:warning: defaults for choice values not supported
    Config-build.in:9663:warning: defaults for choice values not supported
    Config-build.in:9863:warning: defaults for choice values not supported
    Config-build.in:10175:warning: defaults for choice values not supported
    Config-build.in:10179:warning: defaults for choice values not supported
    Config-build.in:10183:warning: defaults for choice values not supported
    #
    # No change to .config
    #
    make[1] package/cryptodev-linux/compile
    make[2] -C package/toolchain clean-build
    make[2] -C package/toolchain compile
    make[2] -C feeds/base/package/firmware/prism54-firmware clean-build
    make[2] -C feeds/base/package/firmware/linux-firmware clean-build
    make[2] -C feeds/base/package/firmware/prism54-firmware compile
    make[2] -C feeds/base/package/firmware/linux-firmware compile
    make[2] -C package/kernel/linux clean-build
    make[2] -C package/kernel/linux compile
    make[2] -C feeds/base/package/kernel/cryptodev-linux clean-build
    make[2] -C feeds/base/package/kernel/cryptodev-linux compile
    ERROR: package/feeds/base/cryptodev-linux failed to build.
    make -r package/cryptodev-linux/compile: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
    make: *** [/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/include/toplevel.mk:223: package/cryptodev-linux/compile] Error 1

Cool, let's add some verbosity:

roger@7018:~/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64$ make -j1 V=99 package/cryptodev-linux/compile
[...]
make[2]: Leaving directory '/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/package/kernel/linux'
time: package/kernel/linux/compile#2.07#0.21#2.25
make[2]: Entering directory '/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/feeds/base/package/kernel/cryptodev-linux'
mkdir -p /home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/dl
SHELL= flock /home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/tmp/.cryptodev-linux-1.11.tar.gz.flock -c '     /home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/scripts/download.pl "/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/dl" "cryptodev-linux-1.11.tar.gz" "d71fd8dafc40147586f5bc6acca8fce5088d9c576d1142fe5aeb7b0813186a11" "" "https://codeload.github.com/cryptodev-linux/cryptodev-linux/tar.gz/cryptodev-linux-1.11?"    '
rm -f /home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/.built
touch /home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/.built_check
make -C /home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11 KCFLAGS="-ffile-prefix-map=/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl=target-mips_24kc_musl" HOSTCFLAGS="-O2 -I/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/include -I/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/hostpkg/include -I/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mips-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="builder" KBUILD_BUILD_HOST="buildhost" KBUILD_BUILD_TIMESTAMP="Thu May 13 22:19:11 2021" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls= KBUILD_EXTRA_SYMBOLS="" KERNELRELEASE=5.4.117 KERNEL_DIR="/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/linux-5.4.117"
make[3]: Entering directory '/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11'
make -C /home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/linux-5.4.117 M=/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11 ARCH=mips CROSS_COMPILE=mips-openwrt-linux-musl- modules
make[4]: Entering directory '/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/linux-5.4.117'
  Building modules, stage 2.
  MODPOST 1 modules
ERROR: "crypto_ahash_final" [/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined!
ERROR: "crypto_aead_encrypt" [/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined!
ERROR: "crypto_aead_setkey" [/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined!
ERROR: "crypto_aead_decrypt" [/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined!
ERROR: "crypto_aead_setauthsize" [/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined!
ERROR: "crypto_alloc_aead" [/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined!
ERROR: "crypto_ahash_setkey" [/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined!
ERROR: "crypto_alloc_ahash" [/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined!
make[5]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
make[4]: *** [Makefile:1647: modules] Error 2
make[4]: Leaving directory '/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/linux-5.4.117'
make[3]: *** [Makefile:27: build] Error 2
make[3]: Leaving directory '/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11'
make[2]: *** [Makefile:61: /home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/.built] Error 2
make[2]: Leaving directory '/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/feeds/base/package/kernel/cryptodev-linux'
time: package/feeds/base/cryptodev-linux/compile#0.91#0.36#1.08
    ERROR: package/feeds/base/cryptodev-linux failed to build.
make[1]: *** [package/Makefile:116: package/feeds/base/cryptodev-linux/compile] Error 1
make[1]: Leaving directory '/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64'
make: *** [/home/roger/OpenWrt/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/include/toplevel.mk:223: package/cryptodev-linux/compile] Error 2

As mentioned above, the same procedure with the ath79/generic or ath79/nand SDKs gives no problem.

micmac1 commented 3 years ago

Good morning,

I think this is likely due to this:

https://lists.openwrt.org/pipermail/openwrt-devel/2021-April/034651.html https://lists.openwrt.org/pipermail/openwrt-devel/2021-April/034696.html

Kind regards, Seb

rogerpueyo commented 3 years ago

Hi Seb,

Thanks for your tips. I applied your patch to the latest source and generated the SDK for ath79/mikrotik locally. Unfortunately, when building cryptodev-linux using the SDK I generated, the error persists. I wondef if I may be missing some additional step?

Kind regards, Roger

micmac1 commented 3 years ago

Can you paste your steps? Also what target you selected? Maybe I find some time to try to reproduce then.

rogerpueyo commented 3 years ago

Sure! I selected the ath79/mikrotik target/subtarget, which has the broken SDK on current snapshots.

Here are the steps I followed to build the SDK locally and then try to compile cryptodev-linux with 1) ath79/generic "as is", 2) ath79/mikrotik "as is" and 3) ath79/mikrotik applying your patch. Sadly, one of them worked for me.

1. ath79/generic "as is"

Click to show the details - Clone the latest snapshot source code: ``` $ git clone https://git.openwrt.org/openwrt/openwrt.git openwrt-ath79-generic-as-is ... $ cd openwrt-ath79-generic-as-is ``` - Run "make menuconfig" to select building the SDK locally. By default ath79/generic is selected, so there's nothing else to change: ``` $ make -j18 menuconfig ... [*] Build the OpenWrt SDK < Exit > Do you wish to save your new configuration? < Yes > ``` - Start the build: ``` $ make -j18 ... make[3] -C package/boot/uboot-envtools compile make[2] package/install make[2] target/install make[3] -C target/linux install make[3] -C target/sdk install make[2] package/index make[2] json_overview_image_info make[2] checksum ``` - Unpack the generated SDK: ``` $ cd bin/targets/ath79/generic/ $ tar -xf openwrt-sdk-ath79-generic_gcc-8.4.0_musl.Linux-x86_64.tar.xz $ cd openwrt-sdk-ath79-generic_gcc-8.4.0_musl.Linux-x86_64 ``` - Update base feed and install packages to the SDK: ``` $ ./scripts/feeds update base; ./scripts/feeds install -a ... Ignoring feed 'telephony' - index missing ``` - Compile package `tcpdump` using the generated SDK, not compiling all the packages, modules, etc. (works OK): ``` $ make -j18 package/tcpdump/compile ... Global build settings ---> [ ] Select all target specific packages by default [ ] Select all kernel module packages by default [ ] Select all userspace packages by default [ ] Cryptographically sign package lists < Exit > Do you wish to save your new configuration? < Yes > ... make[1] package/tcpdump/compile make[2] -C package/toolchain clean-build make[2] -C package/toolchain compile make[2] -C feeds/base/package/libs/libpcap clean-build make[2] -C feeds/base/package/libs/libpcap compile make[2] -C feeds/base/package/network/utils/tcpdump compile ``` - Compile package `cryptodev-linux` (fails): ``` $ make -j18 package/cryptodev-linux/compile ... make[1] package/cryptodev-linux/compile make[2] -C package/toolchain clean-build make[2] -C package/toolchain compile make[2] -C feeds/base/package/firmware/linux-firmware clean-build make[2] -C feeds/base/package/firmware/prism54-firmware compile make[2] -C feeds/base/package/firmware/linux-firmware compile make[2] -C package/kernel/linux clean-build make[2] -C package/kernel/linux compile make[2] -C feeds/base/package/kernel/cryptodev-linux clean-build make[2] -C feeds/base/package/kernel/cryptodev-linux compile ERROR: package/feeds/base/cryptodev-linux failed to build. make -r package/cryptodev-linux/compile: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on make: *** [/home/qmp/openwrt-ath79-generic-as-is/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-generic_gcc-8.4.0_musl.Linux-x86_64/include/toplevel.mk:223: package/cryptodev-linux/compile] Error 1 ```

2. ath79/mikrotik "as is"

Click to show the details - Clone the latest snapshot source code: ``` $ git clone https://git.openwrt.org/openwrt/openwrt.git openwrt-ath79-mikrotik-as-is ... $ cd openwrt-ath79-mikrotik-as-is ``` - Run "make menuconfig" to select target/subtarget (ath79/mikrotik instead of the default ath79/generic), device (MikroTik RouterBOARD 922UAGS-5HPacD, which I have on my desk) and SDK:: ``` $ make -j18 menuconfig ... Target System (Atheros ATH79) ---> Subtarget (MikroTik devices) ---> Target Profile (MikroTik RouterBOARD 922UAGS-5HPacD) ---> [*] Build the OpenWrt SDK < Exit > Do you wish to save your new configuration? < Yes > ``` - Start the build: ``` $ make -j18 ... make[3] -C package/boot/uboot-envtools compile make[2] package/install make[2] target/install make[3] -C target/linux install make[3] -C target/sdk install make[2] package/index make[2] json_overview_image_info make[2] checksum ``` - Unpack the generated SDK: ``` $ cd bin/targets/ath79/mikrotik/ $ tar -xf openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64.tar.xz $ cd openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64 ``` - Update base feed and install packages to the SDK: ``` $ ./scripts/feeds update base; ./scripts/feeds install -a ... Ignoring feed 'telephony' - index missing ``` - Compile package `tcpdump` using the generated SDK, not compiling all the packages, modules, etc. (works OK): ``` $ make -j18 package/tcpdump/compile ... Global build settings ---> [ ] Select all target specific packages by default [ ] Select all kernel module packages by default [ ] Select all userspace packages by default [ ] Cryptographically sign package lists < Exit > Do you wish to save your new configuration? < Yes > ... make[1] package/tcpdump/compile make[2] -C package/toolchain clean-build make[2] -C package/toolchain compile make[2] -C feeds/base/package/libs/libpcap clean-build make[2] -C feeds/base/package/libs/libpcap compile make[2] -C feeds/base/package/network/utils/tcpdump compile ``` - Compile package `cryptodev-linux` (fails): ``` $ make -j18 package/cryptodev-linux/compile ... make[1] package/cryptodev-linux/compile make[2] -C package/toolchain clean-build make[2] -C package/toolchain compile make[2] -C feeds/base/package/firmware/linux-firmware clean-build make[2] -C feeds/base/package/firmware/prism54-firmware compile make[2] -C feeds/base/package/firmware/linux-firmware compile make[2] -C package/kernel/linux clean-build make[2] -C package/kernel/linux compile make[2] -C feeds/base/package/kernel/cryptodev-linux clean-build make[2] -C feeds/base/package/kernel/cryptodev-linux compile ERROR: package/feeds/base/cryptodev-linux failed to build. make -r package/cryptodev-linux/compile: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on make: *** [/home/qmp/openwrt-ath79-mikrotik-as-is/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/include/toplevel.mk:223: package/cryptodev-linux/compile] Error 1 ```

3. ath79/mikrotik "patched"

Click to show the details - Clone the latest snapshot source code: ``` $ git clone https://git.openwrt.org/openwrt/openwrt.git openwrt-ath79-mikrotik-as-is ... $ cd openwrt-ath79-mikrotik-as-is ``` - **Apply patch from [https://lists.openwrt.org/pipermail/openwrt-devel/2021-April/034696.html](https://lists.openwrt.org/pipermail/openwrt-devel/2021-April/034696.html)**: ``` $ git apply kernelpatch.patch $ git diff diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index 82bc32256d..fd223f6249 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -147,12 +147,17 @@ define Kernel/CopyImage } endef +# Always add "modules" so a proper Module.symvers file is written that +# also contains symbols from the kernel modules. Without these symbols +# external packages that depend on exported symbols from kernel modules +# will fail to build. define Kernel/CompileImage/Default rm -f $(TARGET_DIR)/init - +$(KERNEL_MAKE) $(KERNEL_MAKEOPTS_IMAGE) $(if $(KERNELNAME),$(KERNELNAME),all) + +$(KERNEL_MAKE) $(KERNEL_MAKEOPTS_IMAGE) $(if $(KERNELNAME),$(KERNELNAME),all) modules $(call Kernel/CopyImage) endef +# Here as well, always add "modules", see comment above. ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) define Kernel/CompileImage/Initramfs $(call Kernel/Configure/Initramfs) @@ -173,7 +178,7 @@ endif # ? $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZ4),) $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_ZSTD),$(STAGING_DIR_HOST)/bin/zstd -T0 -f -o $(KERNEL_BUILD_DIR)/initrd.cpio.zstd $(KERNEL_BUILD_DIR)/initrd.cpio) ``` - Run "make menuconfig" to select target/subtarget (ath79/mikrotik instead of the default ath79/generic), device (MikroTik RouterBOARD 922UAGS-5HPacD, which I have on my desk) and SDK:: ``` $ make -j18 menuconfig ... Target System (Atheros ATH79) ---> Subtarget (MikroTik devices) ---> Target Profile (MikroTik RouterBOARD 922UAGS-5HPacD) ---> [*] Build the OpenWrt SDK < Exit > Do you wish to save your new configuration? < Yes > ``` - Start the build: ``` $ make -j18 ... make[3] -C package/boot/uboot-envtools compile make[2] package/install make[2] target/install make[3] -C target/linux install make[3] -C target/sdk install make[2] package/index make[2] json_overview_image_info make[2] checksum ``` - Unpack the generated SDK: ``` $ cd bin/targets/ath79/mikrotik/ $ tar -xf openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64.tar.xz $ cd openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64 ``` - Update base feed and install packages to the SDK: ``` $ ./scripts/feeds update base; ./scripts/feeds install -a ... Ignoring feed 'telephony' - index missing ``` - Compile package `tcpdump` using the generated SDK, not compiling all the packages, modules, etc. (works OK): ``` $ make -j18 package/tcpdump/compile ... Global build settings ---> [ ] Select all target specific packages by default [ ] Select all kernel module packages by default [ ] Select all userspace packages by default [ ] Cryptographically sign package lists < Exit > Do you wish to save your new configuration? < Yes > ... make[1] package/tcpdump/compile make[2] -C package/toolchain clean-build make[2] -C package/toolchain compile make[2] -C feeds/base/package/libs/libpcap clean-build make[2] -C feeds/base/package/libs/libpcap compile make[2] -C feeds/base/package/network/utils/tcpdump compile ``` - Compile package `cryptodev-linux` (fails): ``` $ make -j18 package/cryptodev-linux/compile ... Config-build.in:6015:warning: defaults for choice values not supported # # No change to .config # make[1] package/cryptodev-linux/compile make[2] -C package/toolchain clean-build make[2] -C package/toolchain compile make[2] -C feeds/base/package/firmware/prism54-firmware compile make[2] -C feeds/base/package/firmware/linux-firmware clean-build make[2] -C feeds/base/package/firmware/linux-firmware compile make[2] -C package/kernel/linux clean-build make[2] -C package/kernel/linux compile make[2] -C feeds/base/package/kernel/cryptodev-linux clean-build make[2] -C feeds/base/package/kernel/cryptodev-linux compile ERROR: package/feeds/base/cryptodev-linux failed to build. make -r package/cryptodev-linux/compile: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on make: *** [/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/include/toplevel.mk:223: package/cryptodev-linux/compile] Error 1 ``` - Compile package `cryptodev-linux` again, with verbosity and 1 core (fails): ``` $ make -j1 V=sc package/cryptodev-linux/compile WARNING: Makefile 'package/feeds/base/busybox/Makefile' has a dependency on 'libpam', which does not exist WARNING: Makefile 'package/feeds/base/busybox/Makefile' has a dependency on 'libpam', which does not exist WARNING: Makefile 'package/feeds/base/busybox/Makefile' has a build dependency on 'libpam', which does not exist WARNING: Makefile 'package/feeds/base/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb2', which does not exist WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb3', which does not exist WARNING: Makefile 'package/feeds/base/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist WARNING: Makefile 'package/feeds/base/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist WARNING: Makefile 'package/feeds/base/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist WARNING: Makefile 'package/feeds/base/policycoreutils/Makefile' has a build dependency on 'libpam', which does not exist tmp/.config-feeds.in:9:warning: ignoring type redefinition of 'FEED_packages' from 'bool' to 'tristate' tmp/.config-feeds.in:16:warning: ignoring type redefinition of 'FEED_luci' from 'bool' to 'tristate' tmp/.config-feeds.in:23:warning: ignoring type redefinition of 'FEED_routing' from 'bool' to 'tristate' tmp/.config-feeds.in:30:warning: ignoring type redefinition of 'FEED_telephony' from 'bool' to 'tristate' tmp/.config-package.in:8:warning: ignoring type redefinition of 'PACKAGE_base-files' from 'bool' to 'tristate' tmp/.config-package.in:79:warning: ignoring type redefinition of 'PACKAGE_busybox' from 'bool' to 'tristate' tmp/.config-package.in:113:warning: ignoring type redefinition of 'PACKAGE_ca-bundle' from 'bool' to 'tristate' tmp/.config-package.in:135:warning: ignoring type redefinition of 'PACKAGE_dnsmasq' from 'bool' to 'tristate' tmp/.config-package.in:215:warning: ignoring type redefinition of 'PACKAGE_dropbear' from 'bool' to 'tristate' tmp/.config-package.in:244:warning: ignoring type redefinition of 'PACKAGE_firewall' from 'bool' to 'tristate' tmp/.config-package.in:289:warning: ignoring type redefinition of 'PACKAGE_fstools' from 'bool' to 'tristate' tmp/.config-package.in:325:warning: ignoring type redefinition of 'PACKAGE_fwtool' from 'bool' to 'tristate' tmp/.config-package.in:336:warning: ignoring type redefinition of 'PACKAGE_getrandom' from 'bool' to 'tristate' tmp/.config-package.in:360:warning: ignoring type redefinition of 'PACKAGE_jsonfilter' from 'bool' to 'tristate' tmp/.config-package.in:439:warning: ignoring type redefinition of 'PACKAGE_libc' from 'bool' to 'tristate' tmp/.config-package.in:467:warning: ignoring type redefinition of 'PACKAGE_libgcc' from 'bool' to 'tristate' tmp/.config-package.in:588:warning: ignoring type redefinition of 'PACKAGE_libpthread' from 'bool' to 'tristate' tmp/.config-package.in:772:warning: ignoring type redefinition of 'PACKAGE_logd' from 'bool' to 'tristate' tmp/.config-package.in:786:warning: ignoring type redefinition of 'PACKAGE_mtd' from 'bool' to 'tristate' tmp/.config-package.in:799:warning: ignoring type redefinition of 'PACKAGE_netifd' from 'bool' to 'tristate' tmp/.config-package.in:842:warning: ignoring type redefinition of 'PACKAGE_openwrt-keyring' from 'bool' to 'tristate' tmp/.config-package.in:854:warning: ignoring type redefinition of 'PACKAGE_opkg' from 'bool' to 'tristate' tmp/.config-package.in:911:warning: ignoring type redefinition of 'PACKAGE_procd' from 'bool' to 'tristate' tmp/.config-package.in:1166:warning: ignoring type redefinition of 'PACKAGE_swconfig' from 'bool' to 'tristate' tmp/.config-package.in:1179:warning: ignoring type redefinition of 'PACKAGE_ubox' from 'bool' to 'tristate' tmp/.config-package.in:1195:warning: ignoring type redefinition of 'PACKAGE_ubus' from 'bool' to 'tristate' tmp/.config-package.in:1209:warning: ignoring type redefinition of 'PACKAGE_ubusd' from 'bool' to 'tristate' tmp/.config-package.in:1251:warning: ignoring type redefinition of 'PACKAGE_uci' from 'bool' to 'tristate' tmp/.config-package.in:1263:warning: ignoring type redefinition of 'PACKAGE_urandom-seed' from 'bool' to 'tristate' tmp/.config-package.in:1276:warning: ignoring type redefinition of 'PACKAGE_urngd' from 'bool' to 'tristate' tmp/.config-package.in:1298:warning: ignoring type redefinition of 'PACKAGE_usign' from 'bool' to 'tristate' tmp/.config-package.in:5728:warning: ignoring type redefinition of 'PACKAGE_ath10k-board-qca988x' from 'bool' to 'tristate' tmp/.config-package.in:6012:warning: ignoring type redefinition of 'PACKAGE_ath10k-firmware-qca988x-ct' from 'bool' to 'tristate' tmp/.config-package.in:7685:warning: ignoring type redefinition of 'PACKAGE_wireless-regdb' from 'bool' to 'tristate' tmp/.config-package.in:8107:warning: ignoring type redefinition of 'PACKAGE_kmod-gpio-button-hotplug' from 'bool' to 'tristate' tmp/.config-package.in:8409:warning: ignoring type redefinition of 'PACKAGE_kmod-ath' from 'bool' to 'tristate' tmp/.config-package.in:8499:warning: ignoring type redefinition of 'PACKAGE_kmod-ath10k-ct' from 'bool' to 'tristate' tmp/.config-package.in:8588:warning: ignoring type redefinition of 'PACKAGE_kmod-ath9k' from 'bool' to 'tristate' tmp/.config-package.in:8625:warning: ignoring type redefinition of 'PACKAGE_kmod-ath9k-common' from 'bool' to 'tristate' tmp/.config-package.in:9028:warning: ignoring type redefinition of 'PACKAGE_kmod-cfg80211' from 'bool' to 'tristate' tmp/.config-package.in:9311:warning: ignoring type redefinition of 'PACKAGE_kmod-mac80211' from 'bool' to 'tristate' tmp/.config-package.in:10446:warning: ignoring type redefinition of 'PACKAGE_libip4tc' from 'bool' to 'tristate' tmp/.config-package.in:10459:warning: ignoring type redefinition of 'PACKAGE_libip6tc' from 'bool' to 'tristate' tmp/.config-package.in:10472:warning: ignoring type redefinition of 'PACKAGE_libxtables' from 'bool' to 'tristate' tmp/.config-package.in:10643:warning: ignoring type redefinition of 'PACKAGE_libwolfssl' from 'bool' to 'tristate' tmp/.config-package.in:10741:warning: ignoring type redefinition of 'PACKAGE_libblobmsg-json' from 'bool' to 'tristate' tmp/.config-package.in:11128:warning: ignoring type redefinition of 'PACKAGE_libiwinfo' from 'bool' to 'tristate' tmp/.config-package.in:11143:warning: ignoring type redefinition of 'PACKAGE_libjson-c' from 'bool' to 'tristate' tmp/.config-package.in:11385:warning: ignoring type redefinition of 'PACKAGE_libnl-tiny' from 'bool' to 'tristate' tmp/.config-package.in:11592:warning: ignoring type redefinition of 'PACKAGE_libubox' from 'bool' to 'tristate' tmp/.config-package.in:11616:warning: ignoring type redefinition of 'PACKAGE_libubus' from 'bool' to 'tristate' tmp/.config-package.in:11641:warning: ignoring type redefinition of 'PACKAGE_libuci' from 'bool' to 'tristate' tmp/.config-package.in:11666:warning: ignoring type redefinition of 'PACKAGE_libuclient' from 'bool' to 'tristate' tmp/.config-package.in:11733:warning: ignoring type redefinition of 'PACKAGE_libustream-wolfssl' from 'bool' to 'tristate' tmp/.config-package.in:11878:warning: ignoring type redefinition of 'PACKAGE_ip6tables' from 'bool' to 'tristate' tmp/.config-package.in:11944:warning: ignoring type redefinition of 'PACKAGE_iptables' from 'bool' to 'tristate' tmp/.config-package.in:14036:warning: ignoring type redefinition of 'PACKAGE_hostapd-common' from 'bool' to 'tristate' tmp/.config-package.in:14451:warning: ignoring type redefinition of 'PACKAGE_wpad-basic-wolfssl' from 'bool' to 'tristate' tmp/.config-package.in:14852:warning: ignoring type redefinition of 'PACKAGE_iw' from 'bool' to 'tristate' tmp/.config-package.in:14992:warning: ignoring type redefinition of 'PACKAGE_odhcp6c' from 'bool' to 'tristate' tmp/.config-package.in:15043:warning: ignoring type redefinition of 'PACKAGE_odhcpd-ipv6only' from 'bool' to 'tristate' tmp/.config-package.in:15088:warning: ignoring type redefinition of 'PACKAGE_ppp' from 'bool' to 'tristate' tmp/.config-package.in:15131:warning: ignoring type redefinition of 'PACKAGE_ppp-mod-pppoe' from 'bool' to 'tristate' tmp/.config-package.in:15303:warning: ignoring type redefinition of 'PACKAGE_uclient-fetch' from 'bool' to 'tristate' tmp/.config-package.in:15447:warning: ignoring type redefinition of 'PACKAGE_uboot-envtools' from 'bool' to 'tristate' tmp/.config-package.in:16665:warning: ignoring type redefinition of 'PACKAGE_iwinfo' from 'bool' to 'tristate' tmp/.config-package.in:16677:warning: ignoring type redefinition of 'PACKAGE_jshn' from 'bool' to 'tristate' tmp/.config-package.in:16796:warning: ignoring type redefinition of 'PACKAGE_libjson-script' from 'bool' to 'tristate' tmp/.config-package.in:16934:warning: ignoring type redefinition of 'PACKAGE_nand-utils' from 'bool' to 'tristate' tmp/.config-package.in:17344:warning: ignoring type redefinition of 'PACKAGE_ubi-utils' from 'bool' to 'tristate' Config-build.in:883:warning: defaults for choice values not supported Config-build.in:887:warning: defaults for choice values not supported Config-build.in:891:warning: defaults for choice values not supported Config-build.in:5843:warning: defaults for choice values not supported Config-build.in:5847:warning: defaults for choice values not supported Config-build.in:5851:warning: defaults for choice values not supported Config-build.in:5855:warning: defaults for choice values not supported Config-build.in:5859:warning: defaults for choice values not supported Config-build.in:6007:warning: defaults for choice values not supported Config-build.in:6011:warning: defaults for choice values not supported Config-build.in:6015:warning: defaults for choice values not supported # # No change to .config # make[1]: Entering directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64' make[2]: Entering directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/package/toolchain' echo "libc" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/toolchain.default.install echo "libgcc" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/toolchain.default.install echo "libpthread" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/toolchain.default.install touch -r /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/toolchain/.built /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/toolchain/.autoremove 2>/dev/null >/dev/null find /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/toolchain -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | xargs -r rm -rf make[2]: Leaving directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/package/toolchain' time: package/toolchain/compile#1.26#0.18#1.37 make[2]: Entering directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/feeds/base/package/firmware/linux-firmware' mkdir -p /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/dl SHELL= flock /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/tmp/.linux-firmware-20201118.tar.xz.flock -c ' /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/scripts/download.pl "/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/dl" "linux-firmware-20201118.tar.xz" "863d5a31da725b856a917280d1e3014929b3bc3d4e6e5faecf530c13afb7e2b9" "" "@KERNEL/linux/kernel/firmware" ' touch /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.prepared_4d78af035c1353e0b5ee52d9e542792f_18f1e190c5d53547fed41a3eaa76e9e9_check . /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/include/shell.sh; xzcat /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/dl/linux-firmware-20201118.tar.xz | tar -C /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.. -xf - [ ! -d ./src/ ] || cp -fpR ./src/. /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118 touch /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.prepared_4d78af035c1353e0b5ee52d9e542792f_18f1e190c5d53547fed41a3eaa76e9e9 rm -f /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.configured_* rm -f /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/stamp/.linux-firmware_installed (cd /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/./; if [ -x ./configure ]; then find /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/ -name config.guess | xargs -r chmod u+w; find /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/ -name config.guess | xargs -r -n1 cp --remove-destination /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/scripts/config.guess; find /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/ -name config.sub | xargs -r chmod u+w; find /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/ -name config.sub | xargs -r -n1 cp --remove-destination /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/scripts/config.sub; AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -fmacro-prefix-map=/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118=linux-firmware-20201118 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -fmacro-prefix-map=/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118=linux-firmware-20201118 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -fmacro-prefix-map=/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118=linux-firmware-20201118 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/usr/include -I/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/include/fortify -I/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/include " LDFLAGS="-L/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/usr/lib -L/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/lib -znow -zrelro " ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; ) touch /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.configured_68b329da9893e34099c7d8ad5cb9c940 rm -f /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.built touch /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.built_check touch /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.built removed '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/bin/packages/mips_24kc/base/ath10k-board-qca988x_20201118-3_mips_24kc.ipk' mkdir -p /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/bin/targets/ath79/mikrotik/packages /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/ipkg-mips_24kc/ath10k-board-qca988x/CONTROL /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo install -d -m0755 /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/ipkg-mips_24kc/ath10k-board-qca988x/lib/firmware/ath10k/QCA988X/hw2.0 install -m0644 /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/ath10k/QCA988X/hw2.0/board.bin /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/ipkg-mips_24kc/ath10k-board-qca988x/lib/firmware/ath10k/QCA988X/hw2.0/ find /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/ipkg-mips_24kc/ath10k-board-qca988x -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf export CROSS="mips-openwrt-linux-musl-" NO_RENAME=1 ; NM="mips-openwrt-linux-musl-nm" STRIP="/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/scripts/strip-kmod.sh" PATCHELF="/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/bin/patchelf" /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/scripts/rstrip.sh /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/ipkg-mips_24kc/ath10k-board-qca988x (cd /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/ipkg-mips_24kc/ath10k-board-qca988x/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm; ) install -d -m0755 /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/bin/packages/mips_24kc/base /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/bin/fakeroot /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/scripts/ipkg-build -m "" /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/ipkg-mips_24kc/ath10k-board-qca988x /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/bin/packages/mips_24kc/base Packaged contents of /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/ipkg-mips_24kc/ath10k-board-qca988x into /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/bin/packages/mips_24kc/base/ath10k-board-qca988x_20201118-3_mips_24kc.ipk rm -rf /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.pkgdir/ath10k-board-qca988x.installed /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.pkgdir/ath10k-board-qca988x mkdir -p /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.pkgdir/ath10k-board-qca988x install -d -m0755 /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.pkgdir/ath10k-board-qca988x/lib/firmware/ath10k/QCA988X/hw2.0 install -m0644 /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/ath10k/QCA988X/hw2.0/board.bin /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.pkgdir/ath10k-board-qca988x/lib/firmware/ath10k/QCA988X/hw2.0/ touch /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.pkgdir/ath10k-board-qca988x.installed mkdir -p /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/root-ath79/stamp SHELL= flock /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/tmp/.root-copy.flock -c 'cp -fpR /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.pkgdir/ath10k-board-qca988x/. /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/root-ath79/' touch /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/root-ath79/stamp/.ath10k-board-qca988x_installed echo "ath10k-board-qca988x" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux-firmware.default.install touch -r /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.built /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118/.autoremove 2>/dev/null >/dev/null find /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-firmware-20201118 -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | xargs -r rm -rf make[2]: Leaving directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/feeds/base/package/firmware/linux-firmware' time: package/feeds/base/linux-firmware/compile#12.72#2.69#13.96 make[2]: Entering directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/feeds/base/package/firmware/prism54-firmware' touch -r /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/prism54-firmware/.built /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/prism54-firmware/.autoremove 2>/dev/null >/dev/null make[2]: [Makefile:108: compile] Error 1 (ignored) find /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/prism54-firmware -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | xargs -r rm -rf /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/bin/find: '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/prism54-firmware': No such file or directory make[2]: Leaving directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/feeds/base/package/firmware/prism54-firmware' time: package/feeds/base/prism54-firmware/compile#0.25#0.14#0.31 make[2]: Entering directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/package/kernel/linux' echo "kernel" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-hwmon-core" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-i2c-core" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-i2c-algo-bit" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-i2c-gpio" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-lib-crc-ccitt" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-phylink" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-sfp" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-nf-reject" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-nf-reject6" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-nf-ipt" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-nf-ipt6" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-ipt-core" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-nf-conntrack" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-nf-conntrack6" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-nf-nat" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-nf-flow" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-ipt-conntrack" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-ipt-offload" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-ipt-nat" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-ip6tables" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-slhc" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-ppp" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-pppox" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-pppoe" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-nls-base" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-usb-core" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-phy-ath79-usb" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-usb-ehci" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install echo "kmod-usb2" >> /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install touch -r /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/packages/.built /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/packages/.autoremove 2>/dev/null >/dev/null find /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/packages -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | xargs -r rm -rf make[2]: [Makefile:63: compile] Error 1 (ignored) make[2]: Leaving directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/package/kernel/linux' time: package/kernel/linux/compile#3.93#0.32#4.20 make[2]: Entering directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/feeds/base/package/kernel/cryptodev-linux' mkdir -p /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/dl SHELL= flock /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/tmp/.cryptodev-linux-1.11.tar.gz.flock -c ' /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/scripts/download.pl "/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/dl" "cryptodev-linux-1.11.tar.gz" "d71fd8dafc40147586f5bc6acca8fce5088d9c576d1142fe5aeb7b0813186a11" "" "https://codeload.github.com/cryptodev-linux/cryptodev-linux/tar.gz/cryptodev-linux-1.11?" ' rm -f /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/.built touch /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/.built_check make -C /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11 KCFLAGS="-fmacro-prefix-map=/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl=target-mips_24kc_musl" HOSTCFLAGS="-O2 -I/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/include -I/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/hostpkg/include -I/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mips-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Fri May 21 09:31:46 2021" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/lib" CONFIG_SHELL="bash" V=1 cmd_syscalls= KBUILD_EXTRA_SYMBOLS="" KERNELRELEASE=5.4.117 KERNEL_DIR="/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/linux-5.4.117" make[3]: Entering directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11' make -C /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/linux-5.4.117 M=/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11 ARCH=mips CROSS_COMPILE=mips-openwrt-linux-musl- modules make[4]: Entering directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/linux-5.4.117' test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ echo >&2; \ echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false) make -f ./scripts/Makefile.build obj=/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11 \ single-build= \ need-builtin=1 need-modorder=1 { echo /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko; :; } \ | awk '!x[$0]++' - > /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/modules.order make -f ./scripts/Makefile.modpost sed 's/ko$/o/' /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/modules.order | scripts/mod/modpost -i ./Module.symvers -I /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/Module.symvers -o /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/Module.symvers -s -T - ERROR: "crypto_ahash_final" [/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined! ERROR: "crypto_aead_encrypt" [/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined! ERROR: "crypto_aead_setkey" [/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined! ERROR: "crypto_aead_decrypt" [/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined! ERROR: "crypto_aead_setauthsize" [/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined! ERROR: "crypto_alloc_aead" [/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined! ERROR: "crypto_ahash_setkey" [/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined! ERROR: "crypto_alloc_ahash" [/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/cryptodev.ko] undefined! make[5]: *** [scripts/Makefile.modpost:94: __modpost] Error 1 make[4]: *** [Makefile:1647: modules] Error 2 make[4]: Leaving directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/linux-5.4.117' make[3]: *** [Makefile:27: build] Error 2 make[3]: Leaving directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11' make[2]: *** [Makefile:61: /home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/cryptodev-linux-cryptodev-linux-1.11/.built] Error 2 make[2]: Leaving directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/feeds/base/package/kernel/cryptodev-linux' time: package/feeds/base/cryptodev-linux/compile#1.44#0.88#1.91 ERROR: package/feeds/base/cryptodev-linux failed to build. make[1]: *** [package/Makefile:116: package/feeds/base/cryptodev-linux/compile] Error 1 make[1]: Leaving directory '/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64' make: *** [/home/qmp/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64/include/toplevel.mk:223: package/cryptodev-linux/compile] Error 2 ```

So that's mostly it.

micmac1 commented 3 years ago

Mmh OK. When I build an SDK like this then the SDK file itself ends up 59 MByte. The SDK file from here is 100 MByte. That's likely because the way you and me compiled the SDK we didn't build all the modules. Hence the Module.symvers file in the resulting SDK will lack the symbols, naturally.

Maybe compile the SDK after selecting cryptodev linux. This way all the modules it depends on should be selected.

rogerpueyo commented 3 years ago

Hi,

You're right. I repeated the same process but, when building the SDK, I also marked kmod-crytptodev (CONFIG_PACKAGE_kmod-cryptodev=m) to be built as a module.

When your patch was applied, the SDK could produce the cryptodev-linux package afterwards:

qmp@fw:~/openwrt-ath79-mikrotik-patched/bin/targets/ath79/mikrotik/openwrt-sdk-ath79-mikrotik_gcc-8.4.0_musl.Linux-x86_64$ make -j18 package/cryptodev-linux/compile

 make[1] package/cryptodev-linux/compile
 make[2] -C package/toolchain clean-build
 make[2] -C package/toolchain compile
 make[2] -C feeds/base/package/firmware/prism54-firmware compile
 make[2] -C feeds/base/package/firmware/linux-firmware clean-build
 make[2] -C feeds/base/package/firmware/linux-firmware compile
 make[2] -C package/kernel/linux clean-build
 make[2] -C package/kernel/linux compile
 make[2] -C feeds/base/package/kernel/cryptodev-linux clean-build
 make[2] -C feeds/base/package/kernel/cryptodev-linux compile

Success! Without the patch, it could not build it.

Your patch has not made it upstream. Is there anything we could to foster it?

aparcar commented 3 years ago

I'll look into this once I found a suitable laptop charger

aparcar commented 3 years ago

@micmac1 thank you very much for the patch, applied to master. I'll ask around for a backport. @rogerpueyo thanks for testing and keeping the spirits high of downstream SDK projects!

micmac1 commented 3 years ago

Thanks Paul!

aparcar commented 3 years ago

@micmac1 I'm just the dude with commit access, thanks for fixing the issue

rogerpueyo commented 3 years ago

The SDKs are working correctly now. Thank you both! :-)