[vbox-dev] movzx error compiling on Mac OS X

Frank Mehnert frank at innotek.de
Sun Sep 2 10:23:13 GMT 2007


Kyle,

I'm not sure which instruction is causing this error message. Please could
you:

 touch src/VBox/Runtime/req.cpp
 cd src/VBox/Runtime/req.cpp
 kmk KBUILD_VERBOSE=2
 cut'n'paste the g++ command line but replace -c by -S and the output
   file name .../req.o by req.S

then perform the command, look at line 829 and post the instruction on
that position.

Thx,

Frank

On Sunday 02 September 2007, Kyle Harrigan wrote:
> Knut,
>
> I did svn update and attempted to recompile.
>
> Here is my assembler version from as -v:
>
> Apple Computer, Inc. version cctools-590.36~obj, GNU assembler version 1.38
>
> New error message:
>
> kBuild: Compiling RuntimeR3 - req.cpp
> {standard input}:829:operands given don't match any known 386 instruction
>
> Thanks,
> Kyle
>
> On 8/31/07, Knut St. Osmundsen <bird at innotek.de> wrote:
> > Kyle Harrigan wrote:
> > > kBuild: Compiling RuntimeR3 - generic/critsect-generic.cpp
> > > {standard input}:772:no such 386 instruction: `movzx'
> > >
> > > Any ideas?  This is Intel Mac btw.
> >
> > It's a compare and exchange function from include/iprt/asm.h that's
> > causing this. The thing is it works fine with the gnu assembler and I've
> > never seen it on mac os x myself yet. Anyway, I'll change the 2-3 uses
> > of it movzbl and see if that helps. If it still doesn't work I would
> > need to know the assembler version, the 'as -v' output.
> >
> > There are a couple of other build breaks on the mac at present that
> > we're working on correcting. The first one is in generic/env-generic.cpp
> >   and the second is that the kLdr stuff on svn.netlabs.org is going thru
> > some refactoring. The first issue you can work around (if I haven't got
> > around fixing it by then) by just make a dummy "char **environ = NULL;"
> > global variable. The second issue you can work around by checking out
> > the kLdr code from a month ago.
> >
> > Kind Regards,
> >   knut
> >
> >
> > _______________________________________________
> > vbox-dev mailing list
> > vbox-dev at virtualbox.org
> > http://vbox.innotek.de/mailman/listinfo/vbox-dev



-- 
## innotek GmbH, http://www.innotek.de ##
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20070902/1f2b624c/attachment.sig>


More information about the vbox-dev mailing list