You are not logged in.

#1 2021-03-20 02:28:04

camosoul
Member
Registered: 2020-11-01
Posts: 13

virtualbox-headless build fails

$ yay -Sy virtualbox-headless
...
LOTS OF STUFF
...
kBuild: Linking VBox-xpcom-threads
kBuild: Linking VBox-xpcom-xptcall
kBuild: Linking VBox-xpcom-xptinfo
kBuild: Linking VBox-xpcom-ipcshared
kBuild: Linking VBox-xpcom-proxy
kBuild: Compiling VBoxCOM - /home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/src/VBox/Main/glue/ErrorInfo.cpp
kBuild: Linking VBoxXPCOMGlue_s
kBuild: Compiling VBoxCOM - /home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/src/VBox/Main/glue/errorprint.cpp
kBuild: Compiling vboxwebsrv - /home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/obj/webservice/vboxweb-wsdl.c
The failing command:
@g++ -c -O2 -g -pipe -Wshadow -Wno-long-long -Wunused-variable -Wunused-function -Wunused-label -Wunused-parameter -Wno-overloaded-virtual -Wno-array-bounds -Wno-ignored-qualifiers -Wno-variadic-macros -Wno-multistatement-macros -Wno-class-memaccess -Wshadow -fshort-wchar -fpermissive -fexceptions -frtti -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility-inlines-hidden -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -std=c++11 -fdollars-in-identifiers  -Wno-shadow -Wno-literal-suffix -O0  -pthread -m64 -I/usr -I/usr/share/gsoap/import -I/home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/obj/webservice -I/home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/src/VBox/Main/webservice -I/home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/bin/sdk/bindings/xpcom/include -I/home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/xpcom -I/home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/string -I/home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/xpcom -I/home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/nsprpub -I/home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/ipcd -I/home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/obj/vboxwebsrv/dtrace -I/home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/include -I/home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib/virtualbox\" -DRTPATH_APP_DOCS=\"/usr/share/doc/virtualbox\" -DIN_RING3 -DUNICODE -DNDEBUG=1 -DVBOX_WITH_DTRACE -DVBOX_WITH_DTRACE_R3 -DVBOX_WITH_DTRACE_R3_MAIN -DVBOX_WITH_XPCOM -DVBOX_WITH_XPCOM_NAMESPACE_CLEANUP -DNDEBUG -DTRIMMED -DSOCKET_CLOSE_ON_EXEC -DWITH_OPENSSL -Wp,-MD,/home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/obj/vboxwebsrv/gen/webservice/methodmaps.o.dep -Wp,-MT,/home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/obj/vboxwebsrv/gen/webservice/methodmaps.o -Wp,-MP -o /home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/obj/vboxwebsrv/gen/webservice/methodmaps.o  /home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/obj/webservice/methodmaps.cpp
kmk: *** Deleting file '/home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/obj/vboxwebsrv/gen/webservice/methodmaps.o'
kBuild: Compiling vboxwebsrv - /home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/obj/webservice/methodmaps.cpp
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
kmk: *** [/home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/kBuild/footer-pass2-compiling-targets.kmk:277: /home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/obj/vboxwebsrv/gen/webservice/methodmaps.o] Error 1
kmk: *** Waiting for unfinished jobs....
kBuild: Compiling vboxwebsrv - /home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/src/VBox/Main/webservice/vboxweb.cpp
kBuild: Compiling webtest - /home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/src/VBox/Main/webservice/webtest.cpp
kBuild: Compiling vboxwebsrv - /home/[username]/.cache/yay/virtualbox-headless/src/VirtualBox-6.1.18/out/linux.amd64/release/obj/webservice/soapServer.cpp
kmk: *** Exiting with status 2
==> ERROR: A failure occurred in build().
    Aborting...
error making: virtualbox-headless

Last edited by camosoul (2021-03-20 02:31:37)

Offline

#2 2021-03-20 02:40:24

ponyrider
Member
Registered: 2014-11-18
Posts: 76

Re: virtualbox-headless build fails

the virtualbox from the repos supports headless mode

https://wiki.archlinux.org/index.php/VirtualBox

Offline

#3 2021-03-20 03:29:44

camosoul
Member
Registered: 2020-11-01
Posts: 13

Re: virtualbox-headless build fails

ponyrider wrote:

the virtualbox from the repos supports headless mode
https://wiki.archlinux.org/index.php/VirtualBox

Won't that install qt on a headless server?

$ sudo pacman -Syu virtualbox
[sudo] password for [username]: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
resolving dependencies...
:: There are 2 providers available for VIRTUALBOX-HOST-MODULES:
:: Repository community
   1) virtualbox-host-dkms  2) virtualbox-host-modules-arch

Enter a number (default=1): 2
looking for conflicting packages...
warning: dependency cycle detected:
warning: harfbuzz will be installed before its freetype2 dependency

Package (41)                            New Version              Net Change  Download Size

extra/avahi                             0.8+15+ge8a3dd0-3          1.84 MiB       0.43 MiB
extra/double-conversion                 3.1.5-2                    0.16 MiB       0.05 MiB
extra/fontconfig                        2:2.13.91+48+gfcb0420-2    0.61 MiB       0.19 MiB
extra/freetype2                         2.10.4-1                   1.58 MiB       0.49 MiB
extra/graphite                          1:1.3.14-1                 0.67 MiB       0.22 MiB
extra/harfbuzz                          2.8.0-1                    5.14 MiB       0.84 MiB
extra/libcups                           1:2.3.3op2-1               0.84 MiB       0.28 MiB
extra/libdaemon                         0.14-5                     0.06 MiB       0.02 MiB
extra/libevdev                          1.11.0-1                   0.25 MiB       0.06 MiB
extra/libgudev                          236-1                      0.39 MiB       0.04 MiB
extra/libinput                          1.17.0-1                   0.99 MiB       0.26 MiB
extra/libproxy                          0.4.17-1                   0.29 MiB       0.08 MiB
extra/libtiff                           4.2.0-1                    2.81 MiB       0.85 MiB
core/libusb                             1.0.24-2                   0.20 MiB       0.07 MiB
extra/libwacom                          1.9-1                      0.59 MiB       0.09 MiB
extra/libxcursor                        1.2.0-2                    0.06 MiB       0.03 MiB
extra/libxi                             1.7.10-3                   0.47 MiB       0.14 MiB
extra/libxinerama                       1.1.4-3                    0.02 MiB       0.01 MiB
extra/libxkbcommon                      1.1.0-2                    0.75 MiB       0.19 MiB
extra/libxkbcommon-x11                  1.1.0-2                    0.07 MiB       0.02 MiB
extra/libxmu                            1.1.3-2                    0.33 MiB       0.08 MiB
extra/libxrender                        0.9.10-4                   0.08 MiB       0.03 MiB
extra/libxt                             1.2.1-1                    2.03 MiB       0.52 MiB
extra/md4c                              0.4.7-1                    0.24 MiB       0.08 MiB
extra/mtdev                             1.1.6-1                    0.05 MiB       0.02 MiB
extra/qt5-base                          5.15.2-5                  64.02 MiB      12.93 MiB
extra/qt5-x11extras                     5.15.2-1                   0.04 MiB       0.01 MiB
community/sdl                           1.2.15-14                  1.02 MiB       0.35 MiB
extra/shared-mime-info                  2.0+57+gc1d1c70-1          4.39 MiB       0.60 MiB
extra/tslib                             1.22-1                     0.47 MiB       0.10 MiB
community/virtualbox-host-modules-arch  6.1.18-19                  0.23 MiB       0.23 MiB
extra/xcb-util                          0.4.0-3                    0.04 MiB       0.01 MiB
extra/xcb-util-image                    0.4.0-3                    0.05 MiB       0.02 MiB
extra/xcb-util-keysyms                  0.4.0-3                    0.03 MiB       0.01 MiB
extra/xcb-util-renderutil               0.3.9-3                    0.04 MiB       0.01 MiB
extra/xcb-util-wm                       0.4.1-3                    0.22 MiB       0.03 MiB
extra/xdg-utils                         1.1.3+19+g9816ebb-1        0.28 MiB       0.06 MiB
extra/xkeyboard-config                  2.32-1                     5.64 MiB       0.73 MiB
extra/xorg-xprop                        1.2.5-1                    0.05 MiB       0.03 MiB
extra/xorg-xset                         1.2.4-2                    0.04 MiB       0.02 MiB
community/virtualbox                    6.1.18-2                 161.00 MiB      35.37 MiB

Total Download Size:    55.59 MiB
Total Installed Size:  258.06 MiB

:: Proceed with installation? [Y/n]

Would you worry about bloating your attack surface unnecessarily?

Last edited by camosoul (2021-03-20 03:57:24)

Offline

#4 2021-03-20 03:35:14

ponyrider
Member
Registered: 2014-11-18
Posts: 76

Re: virtualbox-headless build fails

The answer to both your questions is NO

Offline

#5 2021-03-20 03:51:25

camosoul
Member
Registered: 2020-11-01
Posts: 13

Re: virtualbox-headless build fails

ponyrider wrote:

The answer to both your questions is NO

Weird, it wants to install both of these:

extra/qt5-base                          5.15.2-5                  64.02 MiB      12.93 MiB
extra/qt5-x11extras                     5.15.2-1                   0.04 MiB       0.01 MiB

Oddly, virtualbox-headless installs fine on one machine, but not on another... Would be nice to know why so it could be fixed...

Last edited by camosoul (2021-03-20 03:57:37)

Offline

#6 2021-03-20 04:26:04

ponyrider
Member
Registered: 2014-11-18
Posts: 76

Re: virtualbox-headless build fails

Oh ok I was confused. You want to install VB on a headless host, not run a guest in headless mode.. I'll can check the pkgbuild later

Offline

Board footer

Powered by FluxBB