Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506386 - app-emulation/virtualbox-4.3.10 - .../work/VirtualBox-4.3.10/src/VBox/Main/src-client/DisplayImpl.cpp:4388:13: error: invalid use of incomplete type ‘struct VBOXCRCMDCTL’
Summary: app-emulation/virtualbox-4.3.10 - .../work/VirtualBox-4.3.10/src/VBox/Main/sr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-31 17:37 UTC by Jakub S
Modified: 2014-08-08 01:51 UTC (History)
6 users (show)

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


Attachments
build.7z (build.7z,116.35 KB, application/x-7z)
2014-04-02 08:34 UTC, Jakub S
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub S 2014-03-31 17:37:24 UTC
x86_64-pc-linux-gnu-g++ -c -O2 -fPIC -g -pipe -pedantic -Wshadow -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option  -Wno-long-long -Wno-long-long -Wno-delete-non-virtual-dtor -Wno-variadic-macros -Wno-long-long -Wno-non-virtual-dtor -Wshadow -fshort-wchar -fpermissive -fexceptions -frtti -march=amdfam10 -O2 -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility-inlines-hidden -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -m64 -I/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/include -I/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/VBoxC -I/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/VBoxAPIWrap -I/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/Main/ -I/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/bin/sdk/bindings/xpcom/include -I/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/xpcom -I/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/string -I/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/xpcom -I/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/nsprpub -I/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/ipcd -I/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/include -I/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib64/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib64/virtualbox\" -DRTPATH_APP_DOCS=\"\" -D_LARGEFILE64_SOURCE -DPIC -DIN_RING3 -DUNICODE -DNDEBUG=1 -DVBOX_WITH_XPCOM -DVBOX_WITH_XPCOM_NAMESPACE_CLEANUP -DIN_RING3 -DVBOX_WITH_GENERIC_SESSION_WATCHER -DVBOX_WITH_RAW_MODE -DVBOX_WITH_RAW_RING1 -DVBOX_WITH_VMSVGA -DVBOX_WITH_NETFLT -DVBOX_WITH_DRAG_AND_DROP -DVBOX_WITH_GUEST_PROPS -DVBOX_WITH_GUEST_CONTROL -DVBOX_WITH_USB_CARDREADER -DVBOX_WITH_HOSTNETIF_API -DVBOX_WITH_NEW_SYS_V_KEYGEN -DVBOX_COM_INPROC -DVBOX_WITH_HGCM -DVBOX_WITH_ALSA -DVBOX_WITH_E1000 -DVBOX_WITH_VIRTIO -DVBOX_WITH_EFI -DVBOX_WITH_PDM_ASYNC_COMPLETION -DVBOX_WITH_VUSB -DVBOX_WITH_HGSMI -DVBOX_WITH_DRAG_AND_DROP -DVBOX_WITH_USB -DVBOX_WITH_EHCI -DVBOX_WITH_EXTPACK -DVBOX_WITH_PCI_PASSTHROUGH -DVBOX_WITH_VPX -DVBOX_WITH_NETSHAPER -Wp,-MD,/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/VBoxC/src-client/DisplayImpl.o.dep -Wp,-MT,/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/VBoxC/src-client/DisplayImpl.o -Wp,-MP -o /var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/VBoxC/src-client/DisplayImpl.o /var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/src-client/DisplayImpl.cpp
/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/src-client/DisplayImpl.cpp: In static member function ‘static void Display::displayCrHgcmCtlSubmitCompletion(int32_t, uint32_t, PVBOXHGCMSVCPARM, void*)’:
/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/src-client/DisplayImpl.cpp:4388:13: error: invalid use of incomplete type ‘struct VBOXCRCMDCTL’
In file included from /var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/include/VBox/vmm/pdmdrv.h:32:0,
                 from /var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/include/DisplayImpl.h:25,
                 from /var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/src-client/DisplayImpl.cpp:18:
/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/include/VBox/vmm/pdmifs.h:635:8: error: forward declaration of ‘struct VBOXCRCMDCTL’
/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/src-client/DisplayImpl.cpp:4389:34: error: invalid use of incomplete type ‘struct VBOXCRCMDCTL’
In file included from /var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/include/VBox/vmm/pdmdrv.h:32:0,
                 from /var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/include/DisplayImpl.h:25,
                 from /var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/src-client/DisplayImpl.cpp:18:
/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/include/VBox/vmm/pdmifs.h:635:8: error: forward declaration of ‘struct VBOXCRCMDCTL’
/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/src-client/DisplayImpl.cpp: In member function ‘int Display::handleCrHgcmCtlSubmit(VBOXCRCMDCTL*, uint32_t, PFNCRCTLCOMPLETION, void*)’:
/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/src-client/DisplayImpl.cpp:4409:9: error: invalid use of incomplete type ‘struct VBOXCRCMDCTL’
In file included from /var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/include/VBox/vmm/pdmdrv.h:32:0,
                 from /var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/include/DisplayImpl.h:25,
                 from /var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/src-client/DisplayImpl.cpp:18:
/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/include/VBox/vmm/pdmifs.h:635:8: error: forward declaration of ‘struct VBOXCRCMDCTL’
/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/src-client/DisplayImpl.cpp:4410:23: error: ‘class VMMDev’ has no member named ‘hgcmHostFastCallAsync’
/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/src-client/DisplayImpl.cpp:4410:45: error: ‘mhCrOglSvc’ was not declared in this scope
/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/src-client/DisplayImpl.cpp:4410:57: error: ‘SHCRGL_HOST_FN_CTL’ was not declared in this scope
kmk: *** [/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/VBoxC/src-client/DisplayImpl.o] Error 1
kmk: *** Waiting for unfinished jobs....
kmk_builtin_append -n "/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/VBoxRemPrimary/target-i386/translate.o.dep" "" "/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/recompiler/target-i386/translate.c:" ""
kmk_builtin_append -n "/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/VBoxC/src-client/ConsoleImpl2.o.dep" "" "/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/src-client/ConsoleImpl2.cpp:" ""
kmk_builtin_append -n "/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/VBoxC/src-client/ConsoleImpl.o.dep" "" "/var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/src/VBox/Main/src-client/ConsoleImpl.cpp:" ""

Compilation successful 

kmk_builtin_append /var/tmp/portage/app-emulation/virtualbox-4.3.10/work/VirtualBox-4.3.10/out/linux.amd64/release/obj/webservice/gsoap_generate_all_ts done
kmk: *** Exiting with status 2



Reproducible: Always

Steps to Reproduce:
1. emerge =app-emulation/virtualbox-4.3.10
Actual Results:  
it fails

Expected Results:  
it emerges



# emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.13.7-gentoo x86_64)
=================================================================
System uname: Linux-3.13.7-gentoo-x86_64-AMD_Athlon-tm-_II_X4_630_Processor-with-gentoo-2.2
KiB Mem:     8164124 total,     69680 free
KiB Swap:    2096112 total,   2096112 free
Timestamp of tree: Mon, 31 Mar 2014 10:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=amdfam10 -O2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.mirror.pw.edu.pl"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j17 -l4"
PKGDIR="/usr/portage/distfiles"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="3dnow 3dnowext 7zip acpi alsa amd64 ao bash-completion bzip2 bzlib caps cgi crypt csv ctype cups curl custom-cflags cxx dlz fastcgi ffmpeg fontconfig fpm ftp gdbm glib gmp gpg gpm http http-cache icc icc-pgo iconv id3tag inifile ithreads jpeg json libwww libxml2 lua memcached minizip mmx mmxext mpg123 ncurses netifrc nfsv3 nls openrc pam pcre perl php png postgres python rar readline samba sasl sdk server slang snmp sse sse2 ssh ssl subversion svg threads tools truetype twolame udev unicode urandom usb vhosts vim-syntax xmlrpc zlib zsh-completion" ABI_X86="64" CURL_SSL="openssl" ELIBC="glibc" GRUB_PLATFORMS="emu gentoo_platforms_efi-32 gentoo_platforms_efi-64 pc" INPUT_DEVICES="keyboard" KERNEL="linux" LINGUAS="pl en_GB en" NGINX_MODULES_HTTP="scgi access auth_basic autoindex fastcgi gzip upload slowfs_cache uwsgi fancyindex rewrite headers_more" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-31 20:29:35 UTC
Please attach the entire build log to this bug report.
Comment 2 Jakub S 2014-03-31 20:38:30 UTC
(In reply to Jeroen Roovers from comment #1)
> Please attach the entire build log to this bug report.

I did, but apparently it was bigger than 1 MB(6.4 MB) and it wasn't uploaded. I must have missed the error message.

Here it is:
https://dl.dropboxusercontent.com/u/1973208/build.log
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-01 23:14:49 UTC
Please stop changing around the Summary.

You can use file compression to compress files. Please attach the compressed build log to this bug report if the uncompressed file does not fit.
Comment 4 Jakub S 2014-04-02 08:34:06 UTC
Created attachment 374074 [details]
build.7z
Comment 5 Thomas Lindroth 2014-04-12 11:00:26 UTC
I could work around this problem by not disabling the opengl useflag.

building like this fails: USE="additions alsa extensions pam python qt4 sdk -doc -headless -java -opengl -pulseaudio -vboxwebsrv -vnc" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"

enable opengl and it builds: USE="additions alsa extensions opengl pam python qt4 sdk -doc -headless -java -pulseaudio -vboxwebsrv -vnc" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"
Comment 6 Jakub S 2014-04-13 22:02:18 UTC
(In reply to Thomas Lindroth from comment #5)
> enable opengl and it builds

Doesn't for me. I still get:

error: invalid use of incomplete type ‘struct VBOXCRCMDCTL’

Even with opengl enabled and on version 4.3.10-r2.
Comment 7 Jakub S 2014-04-13 22:03:29 UTC
(In reply to Jakub S from comment #6)

Forgot to add that it does when I build it on a different machine but without headless flag.
Comment 8 Jason Lamb 2014-04-29 13:50:23 UTC
Also confirmed that adding opengl USE flag allowed me to build app-emulation/virtualbox-4.3.10-r2 without this error;

Failed with;
USE="additions alsa extensions java pam python qt4 sdk -doc -headless -opengl -pulseaudio -vboxwebsrv -vnc" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"

Success with;
USE="additions alsa extensions java opengl* pam python qt4 sdk -doc -headless -pulseaudio -vboxwebsrv -vnc" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"
Comment 9 László Szalma 2014-05-05 08:09:05 UTC
(In reply to Jakub S from comment #6)
> (In reply to Thomas Lindroth from comment #5)
> > enable opengl and it builds
> 
> Doesn't for me. I still get:
> 
> error: invalid use of incomplete type ‘struct VBOXCRCMDCTL’
> 
> Even with opengl enabled and on version 4.3.10-r2.

I confirm this. I (try to) use these use flags:

[ebuild     U ~] app-emulation/virtualbox-4.3.10-r2 [4.3.6] USE="additions extensions headless java opengl* pam sdk vboxwebsrv vnc -alsa -doc -pulseaudio -python -qt4 (-multilib%*)" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" 0 kB
Comment 10 Jakub S 2014-05-18 09:09:06 UTC
Looks like 4.3.12. Everything compiles fine now, even with the headless flag set.

Good work everybody. We can go home.
Comment 11 Ben Kohler gentoo-dev 2014-08-08 01:51:11 UTC
Looks like affected versions are gone from the tree, please re-open if this isn't the case.