From owner-freebsd-emulation@FreeBSD.ORG Thu Nov 14 11:30:11 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 69385712 for ; Thu, 14 Nov 2013 11:30:11 +0000 (UTC) Received: from mail-oa0-x229.google.com (mail-oa0-x229.google.com [IPv6:2607:f8b0:4003:c02::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2FF8F221F for ; Thu, 14 Nov 2013 11:30:11 +0000 (UTC) Received: by mail-oa0-f41.google.com with SMTP id g12so2078527oah.28 for ; Thu, 14 Nov 2013 03:30:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluelife.at; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=HLSaBV2uQB4iKOK9LVQ/ZH0GuxgkQCMKNo3PL2+LFYE=; b=AM5lcRhdyfZ1+fdgR+UkpA97y9L3wmMW71Iik2u2J2QMATXOSHp2FICLRfQs5DWJ/N sg0SW8njjrXe1cvGgoYecGh/yuQN1HP03GEkIO0RoXRIEUcAPrjGifaIDw7WEQ9kTyZt GuzDA6DjBLLZJ0bw6gmpWMbtV27a8AukXwsuw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=HLSaBV2uQB4iKOK9LVQ/ZH0GuxgkQCMKNo3PL2+LFYE=; b=gEn7Px6qWXXPmujXsv6oXRAGkX86iejFx+wzVQuGW8wBfA0tfcZMaWr4tpmUCBWpFX xd1x/Jz8SP/wc40YiqQqSrkOMdFCQeC0B4piVv0AyUv/5uw8sppYX9i2JWkyO0evWm04 uXEf+b2NmbkWIE0kyjUh/ame0t+nN46u0MB29bBIHiMQgCtuAxeNYo6wR44Glw6IrNP1 9IXVzs4xyc4A+spX235pUhP6tDEXAW0ZKqVxJvQScgJpoVR/VV6UJ8kcBqbKhLwsEMwm KCd4noewwWl70u25sgKdelfXCVf1g37aEG8SApogf7XuHCaQSdndF7YtmqfVq1RX5ske UrKw== X-Gm-Message-State: ALoCoQmY5lj2JN8zGZQkLNHiCkYiiWapCex3+dfXzbHCVy1AQHd7y5Qg7yMVJUqXLaxwAFa9PeSB MIME-Version: 1.0 X-Received: by 10.60.40.136 with SMTP id x8mr829580oek.49.1384428610382; Thu, 14 Nov 2013 03:30:10 -0800 (PST) Sender: decke@bluelife.at Received: by 10.76.154.2 with HTTP; Thu, 14 Nov 2013 03:30:10 -0800 (PST) X-Originating-IP: [80.123.233.199] In-Reply-To: <20131114095030.GA26987@sh4-5.1blu.de> References: <20131113122618.GA30563@sh4-5.1blu.de> <20131114095030.GA26987@sh4-5.1blu.de> Date: Thu, 14 Nov 2013 12:30:10 +0100 X-Google-Sender-Auth: ozXV90w40bvp5WHxYzbg59Lkvho Message-ID: Subject: Re: [Call for Testers] VirtualBox 4.3.0: cannot reference symbol `X86TSS64_size' in preprocessor From: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= To: Matthias Apitz Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-emulation@freebsd.org" X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Nov 2013 11:30:11 -0000 On Thu, Nov 14, 2013 at 10:50 AM, Matthias Apitz wrote: > El d=EDa Wednesday, November 13, 2013 a las 04:40:17PM +0100, Bernhard Fr= ?hlich escribi=F3: > >> > @/usr/local/bin/kmk_redirect -wo >> > /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/out/freebsd.= x86/release/obj/VBoxVMM/VMMR3/PATMA.o.dep >> > -- yasm -f elf32 -DASM_FORMAT_ELF -D__YASM__ -Worphan-labels -g dwarf= 2 >> > -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/src/VBox/V= MM/ >> > -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/src/VBox/V= MM/include/ >> > -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/src/VBox/V= MM/PATM/ >> > -I/usr/include/ -I/usr/X11R6/include/ -I/usr/local/include/ >> > -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/out/freebs= d.x86/release/obj/VBoxVMM/dtrace/ >> > -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/include/ >> > -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/out/freebs= d.x86/release/ >> > -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER >> > -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_X86 -D__X86__ -DIN_RING3 >> > -DHC_ARCH_BITS=3D32 -DGC_ARCH_BITS=3D64 -DIN_VMM_R3 -DIN_DIS -DIN_GMM_= R3 >> > -DIN_DBG -DVBOX_IN_VMM -DVBOX_WITH_FIRST_IEM_STEP -DVBOX_WITH_REM >> > -DVBOX_WITH_MULTI_CORE -DVBOX_WITH_PCI_PASSTHROUGH -DVBOX_WITH_SAFE_ST= R >> > -DVBOX_WITH_RAW_RING1 -DVBOX_WITH_USB -DVBOX_WITH_PDM_ASYNC_COMPLETION >> > -DVBOX_WITH_NETSHAPER -DVBOX_WITH_RAW_MODE -DVBOX_WITH_RAW_MODE_NOT_R0 >> > -o >> > /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/out/freebsd.= x86/release/obj/VBoxVMM/VMMR3/PATMA.o >> > /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/src/VBox/VMM= /VMMR3/PATMA.asm >> > -M >> > ... > >> We are currently investigating what is failing there and the vbox develo= pers >> suggested to execute the "failed command" manually and add the option -e >> to the command line switches and post the resulting output. This would >> show the preprocessor file which is passed to yasm and would help to >> narrow it down. > > I have created a small shell script with the failing command, which does > not give much more information: > > # sh kmk.sh > + /usr/local/bin/kmk_redirect -wo > /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/out/freebsd.x86= /release/obj/VBoxVMM/VMMR3/PATMA.o.dep > -- yasm -f elf32 -DASM_FORMAT_ELF -D__YASM__ -Worphan-labels -g dwarf2 > -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/src/VBox/VMM/ > -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/src/VBox/VMM/= include/ > -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/src/VBox/VMM/= PATM/ > -I/usr/include/ -I/usr/X11R6/include/ -I/usr/local/include/ > -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/out/freebsd.x= 86/release/obj/VBoxVMM/dtrace/ > -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/include/ > -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/out/freebsd.x= 86/release/ > -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER > -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_X86 -D__X86__ -DIN_RING3 > -DHC_ARCH_BITS=3D32 -DGC_ARCH_BITS=3D64 -DIN_VMM_R3 -DIN_DIS -DIN_GMM_R3 > -DIN_DBG -DVBOX_IN_VMM -DVBOX_WITH_FIRST_IEM_STEP -DVBOX_WITH_REM > -DVBOX_WITH_MULTI_CORE -DVBOX_WITH_PCI_PASSTHROUGH -DVBOX_WITH_SAFE_STR > -DVBOX_WITH_RAW_RING1 -DVBOX_WITH_USB -DVBOX_WITH_PDM_ASYNC_COMPLETION > -DVBOX_WITH_NETSHAPER -DVBOX_WITH_RAW_MODE -DVBOX_WITH_RAW_MODE_NOT_R0 > -o > /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/out/freebsd.x86= /release/obj/VBoxVMM/VMMR3/PATMA.o > /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/src/VBox/VMM/VM= MR3/PATMA.asm > -M -e > /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/include/iprt/x8= 6extra.mac:143: > error: (AssertCompileSizeML:2) cannot reference symbol `X86TSS16_size' > in preprocessor > /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/include/iprt/x8= 6extra.mac:143: > warning: (AssertCompileSizeML:5) X86TSS16 is 1 bytes instead of 44 > /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/include/iprt/x8= 6extra.mac:206: > error: (AssertCompileSizeML:2) cannot reference symbol `X86TSS64_size' > in preprocessor > /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/include/iprt/x8= 6extra.mac:206: > warning: (AssertCompileSizeML:5) X86TSS64 is 1 bytes instead of 136 > > The problems are raised by these lines in the file: > /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.0/include/iprt/x8= 6extra.mac > > struc X86TSS16 > .selPrev resw 1 > .sp0 resw 1 > .ss0 resw 1 > .sp1 resw 1 > .ss1 resw 1 > .sp2 resw 1 > .ss2 resw 1 > .ip resw 1 > .flags resw 1 > .ax resw 1 > .cx resw 1 > .dx resw 1 > .bx resw 1 > .sp resw 1 > .bp resw 1 > .si resw 1 > .di resw 1 > .es resw 1 > .cs resw 1 > .ss resw 1 > .ds resw 1 > .selLdt resw 1 > endstruc > AssertCompileSize(X86TSS16, 44) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ line 143 > > and again in line 206: > > struc X86TSS64 > .u32Reserved resd 1 > .rsp0 resq 1 > .rsp1 resq 1 > .rsp2 resq 1 > .u32Reserved2 resd 2 > .ist1 resq 1 > .ist2 resq 1 > .ist3 resq 1 > .ist4 resq 1 > .ist5 resq 1 > .ist6 resq 1 > .ist7 resq 1 > .u16Reserved resw 5 > .offIoBitmap resw 1 > .IntRedirBitmap resb 32 > endstruc > AssertCompileSize(X86TSS64, 136) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ line 206 > > It looks like the compiler should compare the size of the defined > storage with some defines about X86TSS16 and X86TSS64 and does not know > them... > > No clue how to fix this :-( Hm this output does not include the information that we were looking for. I= t was expected to see the yasm output of the asm file because we want to rule out that it is an yasm bug. If you look further into the definition of AssertCompileSize you will see it does a check on the size of the struct that fails because it thinks the size is = 1 but it should be 136 as defined in the second parameter. --=20 Bernhard Froehlich http://www.bluelife.at/