[solved] Problem compiling 22.03.4

hi DEVs

i tried to compile from source to include all needed packages in x64 build but ...

touch /mnt/storage1/openwrt/220304/staging_dir/target-x86_64_musl/root-x86/stamp/.qemu-ga_installed
echo "qemu-ga" >> /mnt/storage1/openwrt/220304/staging_dir/target-x86_64_musl/pkginfo/qemu.default.install
make[3]: Leaving directory '/mnt/storage1/openwrt/220304/feeds/packages/utils/qemu'
time: package/feeds/packages/qemu/compile#115.10#14.09#138.59
make[3]: Entering directory '/mnt/storage1/openwrt/220304/package/kernel/button-hotplug'
rm -f /mnt/storage1/openwrt/220304/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/.built
touch /mnt/storage1/openwrt/220304/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/.built_check
make -C "/mnt/storage1/openwrt/220304/build_dir/target-x86_64_musl/linux-x86_64/linux-5.10.176" KCFLAGS="-fmacro-prefix-map=/mnt/storage1/openwrt/220304/build_dir/target-x86_64_musl=target-x86_64_musl -fno-caller-saves " HOSTCFLAGS="-O2 -I/mnt/storage1/openwrt/220304/staging_dir/host/include -I/mnt/storage1/openwrt/220304/staging_dir/hostpkg/include -I/mnt/storage1/openwrt/220304/staging_dir/target-x86_64_musl/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="x86_64-openwrt-linux-musl-" ARCH="x86" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Sun Apr  9 12:27:46 2023" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/mnt/storage1/openwrt/220304/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/mnt/storage1/openwrt/220304/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls= KBUILD_EXTRA_SYMBOLS="" KERNELRELEASE=5.10.176 M="/mnt/storage1/openwrt/220304/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug" EXTRA_CFLAGS=" -DCONFIG_BUTTON_HOTPLUG=1  " CONFIG_BUTTON_HOTPLUG=m modules
make[4]: Entering directory '/mnt/storage1/openwrt/220304/build_dir/target-x86_64_musl/linux-x86_64/linux-5.10.176'
make[5]: *** No rule to make target '/mnt/storage1/openwrt/220304/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/button-hotplug.o', needed by '/mnt/storage1/openwrt/220304/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/button-hotplug.mod'.  Stop.
make[4]: *** [Makefile:1826: /mnt/storage1/openwrt/220304/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug] Error 2
make[4]: Leaving directory '/mnt/storage1/openwrt/220304/build_dir/target-x86_64_musl/linux-x86_64/linux-5.10.176'
make[3]: *** [Makefile:53: /mnt/storage1/openwrt/220304/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/.built] Error 2
make[3]: Leaving directory '/mnt/storage1/openwrt/220304/package/kernel/button-hotplug'
time: package/kernel/button-hotplug/compile#0.67#0.25#0.92
    ERROR: package/kernel/button-hotplug failed to build.

bulid machine:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy

looks like the solution is
sudo apt-get install libelf-dev

i saw for a moment with V=s that compiling process is complaining about CONFIG_STACK_VALIDATION and suggestion was to install libelf-dev

after that, compilation went without problem

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.