Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 2013 15:19:31 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        Bernhard Froehlich <decke@FreeBSD.org>, "freebsd-emulation@freebsd.org" <freebsd-emulation@freebsd.org>
Subject:   Re: [Call for Testers] VirtualBox 4.3.0: cannot reference symbol `X86TSS64_size' in preprocessor
Message-ID:  <20131114141931.GA4100@sh4-5.1blu.de>
In-Reply-To: <20131114124644.GA27601@sh4-5.1blu.de>
References:  <20131113122618.GA30563@sh4-5.1blu.de> <CAE-m3X3n473dtXnrHTP6yMnKc1T=q93AnE=5oDhW7m=b_o_tRg@mail.gmail.com> <20131114095030.GA26987@sh4-5.1blu.de> <CAE-m3X2txev4--1fM9OYUykogb%2BMzwXoNQ9fD0-nHX8V3A-EJQ@mail.gmail.com> <20131114124644.GA27601@sh4-5.1blu.de>

next in thread | previous in thread | raw e-mail | index | archive | help
El día Thursday, November 14, 2013 a las 01:46:44PM +0100, Matthias Apitz escribió:

> El día Thursday, November 14, 2013 a las 12:30:10PM +0100, Bernhard Fr?hlich escribió:
> 
> > > 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. It 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.
> 
> It took me some time to figure out, how the yasm engine should work; I
> took away the /usr/local/bin/kmk_redirect part (because it only catches
> the output of yasm and redirekts it to a file); and, more important, one
> must remove the '-o file' option from the yasm call to get the
> preprocessor output on stdout; it is here (around 4500 lines):
> http://www.unixarea.de/yasm.out
> 
> What makes me worry are the amount of empty lines at the beginning while
> parsing the file emulators/virtualbox-ose/work/VirtualBox-4.3.0/include/iprt/asmdefs.mac
> but I'm not an x386 Assembler expert, only for IBM /370 main frames :-)

btw: why yasm does not complain about line  733 in yasm.out:

X86FXSTATE_size EQU $ - X86FXSTATE

but about line 765:

X86TSS16_size EQU $ - X86TSS16

i.e. from where it knows X86FXSTATE_size, but not X86TSS16_size?

	matthias

-- 
Matthias Apitz               |  /"\ ASCII Ribbon Campaign: www.asciiribbon.org
E-mail: guru@unixarea.de     |  \ / - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X  - No proprietary attachments
phone: +49-170-4527211       |  / \ - Respect for open standards



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