Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436002 - app-emulation/virtualbox-4.2.0-r1 - tstDeviceStructSize: error! VGASTATE::Dev offset=0x12db4 (77236) expected alignment 8, meaning 0x4 (4) off
Summary: app-emulation/virtualbox-4.2.0-r1 - tstDeviceStructSize: error! VGASTATE::Dev...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-23 16:31 UTC by Nikolay Edigaryev
Modified: 2012-12-24 12:13 UTC (History)
7 users (show)

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


Attachments
app-emulation/virtualbox-4.2.0-r1 build log (build.log,349.02 KB, text/plain)
2012-09-23 16:31 UTC, Nikolay Edigaryev
Details
Temporary patch for virtualbox-4.2.4-r1 (virtualbox-4.2.4-r1-alignment.patch,804 bytes, patch)
2012-11-16 16:38 UTC, Nikolay Edigaryev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Edigaryev 2012-09-23 16:31:16 UTC
Created attachment 324726 [details]
app-emulation/virtualbox-4.2.0-r1 build log

Good evening!

app-emulation/virtualbox-4.2.0-r1 fails to build:

/var/tmp/portage/app-emulation/virtualbox-4.2.0-r1/work/VirtualBox-4.2.0/out/linux.x86/release/bin/testcase/tstDeviceStructSize
tstDeviceStructSize: TESTING
[skipped]
tstDeviceStructSize: error! VGASTATE::Dev offset=0x12db4 (77236) expected alignment 8, meaning 0x4 (4) off
tstDeviceStructSize: error! VGASTATE::lock offset=0x12d34 (77108) expected alignment 8, meaning 0x4 (4) off
tstDeviceStructSize: error! VGASTATE::StatRZMemoryRead offset=0x1300c (77836) expected alignment 8, meaning 0x4 (4) off
Comment 1 Nikolay Edigaryev 2012-09-23 16:32:32 UTC
Portage 2.1.11.20 (default/linux/x86/10.0/desktop, gcc-4.6.3, glibc-2.15-r2, 3.5.4-gentoo i686)
=================================================================
System uname: Linux-3.5.4-gentoo-i686-AMD_Athlon-tm-_II_X4_640_Processor-with-gentoo-2.2
Timestamp of tree: Sun, 23 Sep 2012 12:00:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.1, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=amdfam10 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify lock mad mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support readline sdl session spell sse sse2 ssl startup-notification svg tcpd threads thunar tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 x86 xcb xml xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Nikolay Edigaryev 2012-09-23 16:35:03 UTC
$ emerge -pqv '=app-emulation/virtualbox-4.2.0-r1'
[ebuild     U ] app-emulation/virtualbox-4.2.0-r1 [4.1.22] USE="additions alsa pam qt4 sdk -doc -extensions -headless -java -opengl -pulseaudio -python -vboxwebsrv -vnc"
Comment 3 Nikolay Edigaryev 2012-10-28 13:04:25 UTC
I'm getting the same error while trying to merge app-emulation/virtualbox-4.2.2:

tstDeviceStructSize: error! VGASTATE::Dev offset=0x12db4 (77236) expected alignment 8, meaning 0x4 (4) off
tstDeviceStructSize: error! VGASTATE::lock offset=0x12d34 (77108) expected alignment 8, meaning 0x4 (4) off
tstDeviceStructSize: error! VGASTATE::StatRZMemoryRead offset=0x1300c (77836) expected alignment 8, meaning 0x4 (4) off
Comment 4 Anathema 2012-11-14 18:23:34 UTC
Hi. I have the same error with all current ebuilds of virtualbox (except 9999, which i didn't try yet). With the changes listed below, I have successfully merged   
app-emulation/virtualbox-4.2.4-r1:

--- VirtualBox-4.2.4/src/VBox/Devices/testcase/tstDeviceStructSize.cpp	2012-11-14 21:09:22.335605138 +0400
+++ patches/090_virtualbox-4.2.4-vgastate.patch	2012-11-14 21:15:02.000000000 +0400
@@ -317,9 +317,9 @@
 #endif
     CHECK_MEMBER_ALIGNMENT(PITState, StatPITIrq, 8);
     CHECK_MEMBER_ALIGNMENT(SerialState, CritSect, 8);
-    CHECK_MEMBER_ALIGNMENT(VGASTATE, Dev, 8);
+/*    CHECK_MEMBER_ALIGNMENT(VGASTATE, Dev, 8);
     CHECK_MEMBER_ALIGNMENT(VGASTATE, lock, 8);
-    CHECK_MEMBER_ALIGNMENT(VGASTATE, StatRZMemoryRead, 8);
+    CHECK_MEMBER_ALIGNMENT(VGASTATE, StatRZMemoryRead, 8);*/
     CHECK_MEMBER_ALIGNMENT(VMMDevState, CritSect, 8);
 #ifdef VBOX_WITH_VIRTIO
     CHECK_MEMBER_ALIGNMENT(VPCISTATE, cs, 8);


I don't think that this patch can be included in the main portage tree, it looks like a workaround solution.
Comment 5 Anathema 2012-11-14 18:43:34 UTC
I'm sorry, the patch should look like this:

--- VirtualBox-4.2.4/src/VBox/Devices/testcase/tstDeviceStructSize.cpp
+++ VirtualBox-4.2.4/src/VBox/Devices/testcase/tstDeviceStructSize.cpp
@@ -317,9 +317,9 @@
 #endif
     CHECK_MEMBER_ALIGNMENT(PITState, StatPITIrq, 8);
     CHECK_MEMBER_ALIGNMENT(SerialState, CritSect, 8);
-    CHECK_MEMBER_ALIGNMENT(VGASTATE, Dev, 8);
+/*    CHECK_MEMBER_ALIGNMENT(VGASTATE, Dev, 8);
     CHECK_MEMBER_ALIGNMENT(VGASTATE, lock, 8);
-    CHECK_MEMBER_ALIGNMENT(VGASTATE, StatRZMemoryRead, 8);
+    CHECK_MEMBER_ALIGNMENT(VGASTATE, StatRZMemoryRead, 8);*/
     CHECK_MEMBER_ALIGNMENT(VMMDevState, CritSect, 8);
 #ifdef VBOX_WITH_VIRTIO
     CHECK_MEMBER_ALIGNMENT(VPCISTATE, cs, 8);
Comment 6 Nikolay Edigaryev 2012-11-16 16:38:07 UTC
Created attachment 329666 [details, diff]
Temporary patch for virtualbox-4.2.4-r1
Comment 7 Maurice van der Pot 2012-12-17 21:16:45 UTC
I'm looking into this.

A work-around that I think will work is to compile with the opengl use flag.

When I have more info I'll post here.
Comment 8 Maurice van der Pot 2012-12-18 08:56:30 UTC
The solution is given by Frank Mehnert in this post:
https://www.virtualbox.org/pipermail/vbox-dev/2012-December/005550.html
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-12-24 07:47:31 UTC
I've added that patch to virtualbox-4.2.6. Can you please confirm that it fixes your issues?
Comment 10 Nikolay Edigaryev 2012-12-24 12:13:52 UTC
(In reply to comment #9)
> I've added that patch to virtualbox-4.2.6. Can you please confirm that it
> fixes your issues?

I can confirm that your patch have fixed the issue for me. I've just built the app-emulation/virtualbox-4.2.6 successfully without any errors.