Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 718108

Summary: app-emulation/virtualbox-guest-additions-6.1.6 fails to build with ERROR: invalid conversion from ‘int (*)(RTTHREAD, void*)’ {aka ‘int (*)(RTTHREADINT*, void*)’} to ‘PFNRTTHREAD’ {aka ‘int (__attribute__((regparm(0), cdecl)) *)(RTTHREADINT*, void*)
Product: Gentoo Linux Reporter: Alex Buell <alex.buell>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED UPSTREAM    
Severity: normal CC: jstein, vityokster
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
See Also: https://www.virtualbox.org/ticket/19494
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge -info
build log (gzipped)

Description Alex Buell 2020-04-19 00:53:20 UTC
On i586, app-emulation/virtuabox-guest-additions-6.1.6 fails to build with the following error:

var/tmp/portage/app-emulation/virtualbox-guest-additions-6.1.6/work/VirtualBox-6.1.6/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp: In function ‘int startX11MonitorThread()’:
/var/tmp/portage/app-emulation/virtualbox-guest-additions-6.1.6/work/VirtualBox-6.1.6/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp:313:49: error: invalid conversion from ‘int (*)(RTTHREAD, void*)’ {aka ‘int (*)(RTTHREADINT*, void*)’} to ‘PFNRTTHREAD’ {aka ‘int (__attribute__((regparm(0), cdecl)) *)(RTTHREADINT*, void*)’} [-fpermissive]
  313 |         rc = RTThreadCreate(&mX11MonitorThread, x11MonitorThreadFunction, 0, 0,
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                                 |
      |                                                 int (*)(RTTHREAD, void*) {aka int (*)(RTTHREADINT*, void*)}
In file included from /var/tmp/portage/app-emulation/virtualbox-guest-additions-6.1.6/work/VirtualBox-6.1.6/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp:49:
/var/tmp/portage/app-emulation/virtualbox-guest-additions-6.1.6/work/VirtualBox-6.1.6/include/iprt/thread.h:279:59: note:   initializing argument 2 of ‘int RTThreadCreate(PRTTHREAD, PFNRTTHREAD, void*, size_t, RTTHREADTYPE, unsigned int, const char*)’
  279 | RTDECL(int) RTThreadCreate(PRTTHREAD pThread, PFNRTTHREAD pfnThread, void *pvUser, size_t cbStack,
      |                                               ~~~~~~~~~~~~^~~~~~~~~


Reproducible: Always
Comment 1 Alex Buell 2020-04-19 00:55:13 UTC
Created attachment 633642 [details]
emerge -info
Comment 2 Alex Buell 2020-04-19 00:57:08 UTC
Created attachment 633648 [details]
build log (gzipped)
Comment 3 Viktor Yu. Kovalskii 2020-05-20 03:19:34 UTC
Maybe these upstream bug is relevant for these bug?

https://www.virtualbox.org/ticket/19494

Bug should be fixed at 6.1.8 (May 15th, 2020 VirtualBox 6.1.8 released!)
Comment 4 Viktor Yu. Kovalskii 2020-05-20 09:29:36 UTC
Maybe these upstream bug is relevant for these bug?

https://www.virtualbox.org/ticket/19494

Bug should be fixed at 6.1.8 (May 15th, 2020 VirtualBox 6.1.8 released!)