Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  1 Nov 2009 17:44:18 +0000 (UTC)
From:      Hubert Tournier <hubert@tournier.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        hubert@tournier.org
Subject:   ports/140171: virtualbox port build error since 3.0.51.r22902
Message-ID:  <20091101174418.F173B3F6CC@sd-15237.dedibox.fr>
Resent-Message-ID: <200911011810.nA1IA3Gg013654@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         140171
>Category:       ports
>Synopsis:       virtualbox port build error since 3.0.51.r22902
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 01 18:10:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Hubert Tournier <hubert@frbsd.org>
>Release:        FreeBSD 7.2-RELEASE-p4 i386
>Organization:
Chuck's corner <http://www.frbsd.org/fr/>;
>Environment:

	Happens on all the machines that I have (both physical and
	virtual), with all FreeBSD versions that I use (7.2p4 i386 and
	amd64, 8.0RC2 i386), even with freshly installed systems with
	default release configuration (no make.conf).

	virtualbox port options:

WITHOUT_QT4=true
WITHOUT_DEBUG=true
WITHOUT_GUESTADDITIONS=true
WITH_DBUS=true
WITHOUT_PULSEAUDIO=true
WITHOUT_X11=true
WITHOUT_NLS=true

	Example physical configuration (machine 1):

CPU: Intel(R) Core(TM)2 Quad CPU    Q9550  @ 2.83GHz (2833.03-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x1067a  Stepping = 10
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x408e3fd<SSE3,RSVD2,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,<b19>,XSAVE>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  Cores per package: 4

vgapci0: <VGA-compatible display> port 0xdc00-0xdc07 mem 0xfe400000-0xfe7fffff,0xd0000000-0xdfffffff irq 16 at device 2.0 on pci0
agp0: <Intel G45 SVGA controller> on vgapci0
agp0: detected 65532k stolen memory
agp0: aperture size is 256M
vgapci1: <VGA-compatible display> mem 0xfea00000-0xfeafffff at device 2.1 on pci0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0

	Example physical configuration (machine 2):

CPU: Intel(R) Core(TM)2 CPU         T7400  @ 2.16GHz (2166.84-MHz 686-class CPU)
Origin = "GenuineIntel"  Id = 0x6f6  Stepping = 6
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0xe3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM>
AMD Features=0x20100000<NX,LM>
AMD Features2=0x1<LAHF>
Cores per package: 2

vgapci0: <VGA-compatible display> port 0xec00-0xec07 mem 0xffa80000-0xffafffff,0xe0000000-0xefffffff,0xffa40000-0xffa7ffff irq 16 at device 2.0 on pci0
vgapci1: <VGA-compatible display> mem 0xff980000-0xff9fffff at device 2.1 on pci0

>Description:
	Since the 3.0.51.r22902 (september, 13) version of virtualbox
	port, build crashes near the end, while testing device struct
	sizes (on VGASTATE).

	It worked fine with earlier versions on the same machines.

	A full trace is available there:
	http://www.frbsd.org/dist/vb/trace.txt.7z

>How-To-Repeat:
	I provide a VirtualBox virtual machine with FreeBSD 8.0RC2
	installed where this problem happens, there:
	http://www.frbsd.org/dist/vb/freebsd8rc2.vdi.7z (circ 700 MB)

>Fix:
	No fix but a workaround: using the package instead of the port.

--- trace.txt begins here ---
freebsd# make install clean
[...]
kBuild: Pass - Other Stuff
kmk[1]: Entering directory `/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902'
kmk[2]: Entering directory `/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902'
/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/bin/testcase/tstAsmStructs
[...]
/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/bin/testcase/tstDeviceStructSize
tstDeviceStructSize: TESTING
sizeof(uint128_t): 0x10 (16)
sizeof(int128_t): 0x10 (16)
sizeof(uint64_t): 0x8 (8)
sizeof(int64_t): 0x8 (8)
sizeof(uint32_t): 0x4 (4)
sizeof(int32_t): 0x4 (4)
sizeof(uint16_t): 0x2 (2)
sizeof(int16_t): 0x2 (2)
sizeof(uint8_t): 0x1 (1)
sizeof(int8_t): 0x1 (1)
VGASTATE::Dev offset=0x11dcc (73164) expected alignment 8, meaning 0x4 (4) off
VGASTATE::StatRZMemoryRead offset=0x11fdc (73692) expected alignment 8, meaning 0x4 (4) off
tstDeviceStructSize: Comparing HC and GC...
sizeof(PDMDEVINS): 0x88 (136)
sizeof(PCIDEVICE): 0x210 (528)
sizeof(PCIDEVICEINT): 0x94 (148)
sizeof(PCIIOREGION): 0x10 (16)
sizeof(PIIX3State): 0x210 (528)
sizeof(PCIBUS): 0x63c (1596)
sizeof(PCIGLOBALS): 0x8a0 (2208)
sizeof(VGASTATE): 0x124b4 (74932)
sizeof(KBDQueue): 0x10c (268)
sizeof(MouseCmdQueue): 0x14 (20)
sizeof(MouseEventQueue): 0x10c (268)
sizeof(KBDState): 0x330 (816)
sizeof(PCNetState): 0x2568 (9576)
sizeof(ACPIState): 0x12c0 (4800)
sizeof(PicState): 0x20 (32)
sizeof(DEVPIC): 0x58 (88)
sizeof(PITChannelState): 0x50 (80)
sizeof(PITState): 0x130 (304)
sizeof(RTCState): 0x10c (268)
sizeof(APICState): 0xd4 (212)
sizeof(APICDeviceInfo): 0x40 (64)
sizeof(IOAPICState): 0xe0 (224)
sizeof(BMDMAState): 0x8 (8)
sizeof(BMDMADesc): 0x8 (8)
sizeof(ATADevState): 0x204 (516)
sizeof(ATATransferRequest): 0xc (12)
sizeof(ATAAbortRequest): 0x2 (2)
sizeof(ATARequest): 0x10 (16)
sizeof(ATACONTROLLER): 0x5b0 (1456)
sizeof(PCIATAState): 0xd84 (3460)
sizeof(ParallelState): 0xf0 (240)
sizeof(SerialState): 0xf8 (248)
sizeof(AHCIATADevState): 0x1a4 (420)
sizeof(AHCIATATransferRequest): 0xc (12)
sizeof(AHCIATAAbortRequest): 0x2 (2)
sizeof(AHCIATARequest): 0x10 (16)
sizeof(AHCIATACONTROLLER): 0x4e8 (1256)
sizeof(AHCIPort): 0x208 (520)
sizeof(AHCI): 0x49fc (18940)
sizeof(EEPROM93C46): 0x94 (148)
sizeof(E1KSTATE): 0x4b54 (19284)
sizeof(VBOXSCSI): 0x28 (40)
sizeof(BUSLOGICDEVICE): 0x3c (60)
sizeof(BUSLOGIC): 0x7a4 (1956)
sizeof(LSILOGICDEVICE): 0x38 (56)
sizeof(LSILOGICSCSI): 0xeec (3820)
tstDeviceStructSize: FAILURE - 2 errors
kmk[2]: *** [/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/obj/Devices/testcase/tstDeviceStructSize.run] Error 2
kmk[2]: Leaving directory `/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902'
kmk[1]: *** [pass_others_this] Error 2
kmk[1]: Leaving directory `/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902'
kmk: *** [pass_others_order] Error 2
*** Error code 2

Stop in /usr/ports/emulators/virtualbox.
*** Error code 1

Stop in /usr/ports/emulators/virtualbox.
--- trace.txt ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091101174418.F173B3F6CC>