Page 1 of 1

[Solved] FTBFS since Beta3

Posted: 12. Dec 2018, 16:45
by sergiomb
you can see all (failing) build in https://copr-be.cloud.fedoraproject.org ... irtualBox/

Code: Select all

kBuild: Compiling VBoxC - /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp => /builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/obj/VBoxC/src-all/Global.o
kmk_builtin_rm -f -- /builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/obj/VBoxC/src-all/Global.o.dep /builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/obj/VBoxC/src-all/Global.o  
g++ -c -O2 -fPIC -g -pipe -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wlogical-op -Wno-variadic-macros -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 -O2 -mtune=generic -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  -m64 -I/builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/include -I/builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/obj/VBoxC -I/builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/obj/VBoxAPIWrap -I/builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/obj/Main/ -I/builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/obj/VBoxAPIWrap/dtrace -I/builddir/build/BUILD/VirtualBox-6.0.0_RC1/include/VBox/Graphics -I/builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/bin/sdk/bindings/xpcom/include -I/builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/bin/sdk/bindings/xpcom/include/xpcom -I/builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/bin/sdk/bindings/xpcom/include/string -I/builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/bin/sdk/bindings/xpcom/include/xpcom -I/builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/bin/sdk/bindings/xpcom/include/nsprpub -I/builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/bin/sdk/bindings/xpcom/include/ipcd -I/builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/obj/VBoxC/dtrace -I/usr/include/libpng16 -I/usr/include/opus -I/builddir/build/BUILD/VirtualBox-6.0.0_RC1/include -I/builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM -DVBOX_WITH_RAW_MODE -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/lib64/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib64/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib64/virtualbox\" -DRTPATH_APP_DOCS=\"/usr/share/doc/VirtualBox\" -D_LARGEFILE64_SOURCE -DPIC -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 -DIN_RING3 -DVBOX_WITH_GENERIC_SESSION_WATCHER -DVBOX_WITH_AUDIO_ALSA -DVBOX_WITH_AUDIO_DEBUG -DVBOX_WITH_AUDIO_OSS -DVBOX_WITH_AUDIO_PULSE -DVBOX_WITH_AUDIO_VRDE -DVBOX_WITH_CRHGSMI -DVBOX_WITH_CROGL -DVBOX_WITH_E1000 -DVBOX_WITH_EXTPACK -DVBOX_WITH_GUEST_CONTROL -DVBOX_WITH_GUEST_PROPS -DVBOX_WITH_HGCM -DVBOX_WITH_HOSTNETIF_API -DVBOX_WITH_DHCPD -DVBOX_WITH_MIDL_PROXY_STUB -DVBOX_WITH_NETFLT -DVBOX_WITH_PCI_PASSTHROUGH -DVBOX_WITH_PDM_ASYNC_COMPLETION -DVBOX_WITH_RAW_MODE -DVBOX_WITH_RAW_RING1 -DVBOX_WITH_USB_CARDREADER -DVBOX_WITH_VIRTIO -DVBOX_WITH_VMSVGA -DVBOX_WITH_VUSB -DVBOX_WITH_EHCI -DVBOX_WITH_NEW_SYS_V_KEYGEN -DVBOX_COM_INPROC -DVBOX_WITH_EFI -DVBOX_WITH_HGSMI -DVBOX_WITH_VIDEOHWACCEL -DVBOX_WITH_DRAG_AND_DROP -DVBOX_WITH_DRAG_AND_DROP_GH -DVBOX_WITH_USB -DVBOX_WITH_CRHGSMI -DVBOX_WITH_NETSHAPER -DVBOX_WITH_RECORDING -DVBOX_WITH_LIBVPX -DVBOX_WITH_AUDIO_RECORDING -DVBOX_WITH_LIBOPUS -Wp,-MD,/builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/obj/VBoxC/src-all/Global.o.dep -Wp,-MT,/builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/obj/VBoxC/src-all/Global.o -Wp,-MP -o /builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/obj/VBoxC/src-all/Global.o /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: error: cannot convert 'NetworkAdapterType_T' to 'const GraphicsControllerType_T' in initialization
BUILDSTDERR:  };
BUILDSTDERR:  ^
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: warning: invalid conversion from 'int' to 'NetworkAdapterType_T' [-fpermissive]
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: error: cannot convert 'StorageBus_T' to 'const StorageControllerType_T' in initialization
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: error: cannot convert 'StorageControllerType_T' to 'const StorageBus_T' in initialization
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: error: cannot convert 'StorageBus_T' to 'const StorageControllerType_T' in initialization
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: error: cannot convert 'ChipsetType_T' to 'const StorageBus_T' in initialization
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: error: cannot convert 'AudioControllerType_T' to 'const ChipsetType_T' in initialization
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: error: cannot convert 'AudioCodecType_T' to 'const AudioControllerType_T' in initialization
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: error: cannot convert 'NetworkAdapterType_T' to 'const GraphicsControllerType_T' in initialization
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: warning: invalid conversion from 'int' to 'NetworkAdapterType_T' [-fpermissive]
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: error: cannot convert 'StorageBus_T' to 'const StorageControllerType_T' in initialization
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: error: cannot convert 'StorageControllerType_T' to 'const StorageBus_T' in initialization
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: error: cannot convert 'StorageBus_T' to 'const StorageControllerType_T' in initialization
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: error: cannot convert 'ChipsetType_T' to 'const StorageBus_T' in initialization
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: error: cannot convert 'AudioControllerType_T' to 'const ChipsetType_T' in initialization
BUILDSTDERR: /builddir/build/BUILD/VirtualBox-6.0.0_RC1/src/VBox/Main/src-all/Global.cpp:546:1: error: cannot convert 'AudioCodecType_T' to 'const AudioControllerType_T' in initialization
BUILDSTDERR: kmk: *** [/builddir/build/BUILD/VirtualBox-6.0.0_RC1/obj/obj/VBoxC/src-all/Global.o] Error 1

Re: FTBFS since Beta3

Posted: 12. Dec 2018, 18:23
by socratis
FTBFS stands for ... ?
Is this an attempt to compile the 6.0.0 RC1 from the source code?

Re: FTBFS since Beta3

Posted: 12. Dec 2018, 18:45
by sergiomb
FTBFS means : fails to build from source

I use wtf from BSD-games to know that .

Re: FTBFS since Beta3

Posted: 12. Dec 2018, 18:52
by socratis
A similar issue was posted in the mailing list:
Hum I got an build error [1] :
my builds are locate in [2] rpm spec almost not change just need rebase some local patches

[1]

Code: Select all

BUILDSTDERR: /builddir/build/BUILD/VirtualBox-
6.0.0_BETA3/src/VBox/Main/src-all/Global.cpp:546:1: error: cannot
convert 'NetworkAdapterType_T' to 'const GraphicsControllerType_T' in
initialization
BUILDSTDERR:  };
BUILDSTDERR:  ^
[2]
https://copr.fedorainfracloud.org/coprs ... vboxfor23/
with the answer being:
The struct used in Global.cpp (which I assume you're tweaking...) has changed. Has an additional field before the default network adapter type now, for the default graphics controller type.

Just look at the other Linux flavors, should be straightforward.

Klaus

Re: FTBFS since Beta3

Posted: 12. Dec 2018, 18:57
by socratis
sergiomb wrote:I use wtf from BSD-games to know that.
I was NOT aware of the possibilities that 'wtf' opens up! A whole new world! I got to port it to OSX!!! :D

Re: FTBFS since Beta3

Posted: 12. Dec 2018, 19:04
by socratis
Sergio, I didn't realize that I was actually quoting you when I referenced the mailing list!!! :D

That will teach you to not check your e-mail!!! :D

Re: FTBFS since Beta3

Posted: 12. Dec 2018, 19:27
by klaus
Are you applying any patches to src/VBox/Main/src-all/Global.cpp? These need adjusting since the struct has a new field, for selecting the default graphics controller. What you get is the typical symptom for adding a guest OS types by applying a patch which is slightly outdated. The repo state does build.

Re: FTBFS since Beta3

Posted: 13. Dec 2018, 04:44
by sergiomb
socratis wrote:
sergiomb wrote:I use wtf from BSD-games to know that.
I was NOT aware of the possibilities that 'wtf' opens up! A whole new world! I got to port it to OSX!!! :D
it is a simply bash program [1] the most update database is here [2]

[1]
https://github.com/theiostream/wtf

[2]
https://sourceforge.net/projects/bsdwtf/files/

Re: FTBFS since Beta3

Posted: 13. Dec 2018, 05:19
by sergiomb
klaus wrote:Are you applying any patches to src/VBox/Main/src-all/Global.cpp? These need adjusting since the struct has a new field, for selecting the default graphics controller. What you get is the typical symptom for adding a guest OS types by applying a patch which is slightly outdated. The repo state does build.
ah nice catch , seems it is the patch [1] I'm testing it now

Thanks.


[2]
https://pkgs.rpmfusion.org/cgit/free/Vi ... patch#n149

Re: [Solved] FTBFS since Beta3

Posted: 13. Dec 2018, 20:17
by sergiomb
that is it was VirtualBox-5.1.0-add-Mageia-support.patch , after comment out this patch it builds fine [1]
Thank you

[1]
https://copr.fedorainfracloud.org/coprs ... ld/836982/

Re: [Solved] FTBFS since Beta3

Posted: 13. Dec 2018, 20:43
by socratis
You could still add your patch, as long as you remember to add another parameter for the GraphicsController in Global.cpp...

Glad you got it going. And thank you for marking the topic as [Solved]... ;)