I'm currently working on building a minimal headless VirtualBox 7 package for Alpine Linux, where I have disabled all possible options. However, I encountered an error during the compilation process stating "No rule to make target."
Here's the configuration I used:
Code: Select all
./configure --nofatal \
--disable-alsa \
--disable-dbus \
--disable-devmapper \
--disable-docs \
--disable-java \
--disable-kmods \
--disable-libtpms \
--disable-libvpx \
--disable-opengl \
--disable-pulse \
--disable-python \
--disable-qt \
--disable-sdl-ttf \
--disable-udptunnel \
--disable-vmmraw \
--disable-xpcom \
--with-linux=/usr/include \
--build-headless
source ./env.sh
kmk
Code: Select all
# don't build testcases to save time, they are not needed for the package
VBOX_WITH_TESTCASES :=
VBOX_WITH_VALIDATIONKIT :=
KBUILD_MSG_STYLE := brief
## paths, origin, hardening
VBOX_WITH_HARDENING := 2
VBOX_WITH_ORIGIN :=
## don't build with -Werror
VBOX_WITH_WARNINGS_AS_ERRORS :=
# use system xorg and gl headers
VBOX_USE_SYSTEM_XORG_HEADERS = 1
VBOX_USE_SYSTEM_GL_HEADERS = 1
# no legacy X org - use KMS
VBOX_NO_LEGACY_XORG_X11 = 1
## Disable anything X11 related
VBOX_WITH_PAM :=
TOOL_YASM_AS := yasm
Code: Select all
[...]/src/VirtualBox-7.0.8/src/VBox/Runtime/Makefile.kmk:3119: $(commands ) does not work reliably with $< in all cases
kmk: *** No rule to make target '[...]/src/VirtualBox-7.0.8/out/linux.amd64/release/lib/VBoxCOM.a', needed by '[...]/src/VirtualBox-7.0.8/out/linux.amd64/release/obj/vboximg-mount/vboximg-mount'. Stop.
Thank you in advance for your help!