Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via or IRC
Bug 710940 - app-emulation/virtualbox-6.1.4-r1 fails to build with GCC-10
Summary: app-emulation/virtualbox-6.1.4-r1 fails to build with GCC-10
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Lars Wendler (Polynomial-C)
Depends on:
Blocks: llvm-10
  Show dependency tree
Reported: 2020-02-27 15:43 UTC by andy
Modified: 2020-05-12 12:26 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---

bypass-gcc_check.patch (file_710940.txt,510 bytes, patch)
2020-02-27 20:08 UTC, andy
Details | Diff
gcc 10 patch (fixes_for_gcc10.patch,1.93 KB, patch)
2020-05-11 17:02 UTC, Andrea Postiglione
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description andy 2020-02-27 15:43:57 UTC
app-emulation/virtualbox fails to build with GCC-10 with the error :

Config.kmk:193: Warning: You must have USERNAME or USER in your environment.
Makefile.kmk:195: *** gcc >= 4.4 required when compiling against Qt5!.  Stop.
Comment 1 Lars Wendler (Polynomial-C) gentoo-dev 2020-02-27 16:37:21 UTC
What version of virtualbox did this happen with?
Comment 2 andy 2020-02-27 16:55:22 UTC
the versions i have tested is :

and  app-emulation/virtualbox-6.1.2
Comment 3 andy 2020-02-27 20:08:44 UTC
Created attachment 616398 [details, diff]

a simple patch for bypassing the gcc is not good because it is lowering the requirement but app-emulation/virtualbox still fails with :

 In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/10.0.1/include/stdint.h:9,
                 from include/iprt/stdint.h:58,
                 from include/iprt/types.h:33,
                 from include/VBox/types.h:33,
                 from include/VBox/dbg.h:37,
                 from src/VBox/Debugger/DBGCDumpImage.cpp:23:
src/VBox/Debugger/DBGCDumpImage.cpp: In function ‘const char* dbgcMachoCpuType(uint32_t, uint32_t)’:
include/iprt/formats/mach-o.h:41:46: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ [-Wnarrowing]
   41 | #define CPU_TYPE_ANY                INT32_C(-1)
      |                                              ^
src/VBox/Debugger/DBGCDumpImage.cpp:471:14: note: in expansion of macro ‘CPU_TYPE_ANY’
  471 |         case CPU_TYPE_ANY:          return "CPU_TYPE_ANY";
      |              ^~~~~~~~~~~~
kmk: *** [/usr/share/kBuild/footer-pass2-compiling-targets.kmk:226: /var/tmp/portage/app-emulation/virtualbox-6.1.4-r1/work/VirtualBox-6.1.4/out/linux.amd64/release/obj/Debugger/DBGCDumpImage.o] Error 1
kmk: *** Waiting for unfinished jobs....
kmk_builtin_append -n "/var/tmp/portage/app-emulation/virtualbox-6.1.4-r1/work/VirtualBox-6.1.4/out/linux.amd64/release/obj/Debugger/DBGCFunctions.o.dep" "" "/var/tmp/portage/app-emulation/virtualbox-6.1.4-r1/work/VirtualBox-6.1.4/src/VBox/Debugger/DBGCFunctions.cpp:" ""
kmk_builtin_append -n "/var/tmp/portage/app-emulation/virtualbox-6.1.4-r1/work/VirtualBox-6.1.4/out/linux.amd64/release/obj/iPxeBaseBin/src/net/iobpad.o.dep" "" "/var/tmp/portage/app-emulation/virtualbox-6.1.4-r1/work/VirtualBox-6.1.4/src/VBox/Devices/PC/ipxe/src/net/iobpad.c:" ""
kmk_builtin_append -n "/var/tmp/portage/app-emulation/virtualbox-6.1.4-r1/work/VirtualBox-6.1.4/out/linux.amd64/release/obj/iPxeBaseBin/src/net/dhcppkt.o.dep" "" "/var/tmp/portage/app-emulation/virtualbox-6.1.4-r1/work/VirtualBox-6.1.4/src/VBox/Devices/PC/ipxe/src/net/dhcppkt.c:" ""
kmk_builtin_append -n "/var/tmp/portage/app-emulation/virtualbox-6.1.4-r1/work/VirtualBox-6.1.4/out/linux.amd64/release/obj/SUPR3HardenedStatic/dt/dt/Disassembler/DisasmCore.o.dep" "" "/var/tmp/portage/app-emulation/virtualbox-6.1.4-r1/work/VirtualBox-6.1.4/src/VBox/Disassembler/DisasmCore.cpp:" ""
kmk: *** Exiting with status 2
Comment 4 Kobboi 2020-05-11 08:05:18 UTC
Same for 6.1.6
Comment 5 Andrea Postiglione 2020-05-11 17:02:45 UTC
Created attachment 638210 [details, diff]
gcc 10 patch