[vbox-dev] [PATCH] Build fix for later versions of LLVM/i386

Kyle Evans kevans at freebsd.org
Wed Apr 15 03:11:13 GMT 2020


Hi,

This was encountered on FreeBSD. I believe, starting with LLVM 10, a
warning/error is now produced as such (reported to me; I do not have
the machine in question on hand):

/export/wrkdir/i386/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.34/src/VBox/VMM/VMMAll/IEMAllAImplC.cpp:388:25:
error:
      exception specification in declaration does not match previous
declaration
IEM_DECL_IMPL_DEF(void, iemAImpl_add_u64,(uint64_t *puDst, uint64_t uSrc...
                        ^
/export/wrkdir/i386/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.34/src/VBox/VMM/include/IEMInternal.h:1146:18:
note:
      previous declaration is here
FNIEMAIMPLBINU64 iemAImpl_add_u64, iemAImpl_add_u64_locked;

Examination reveals that the __nothrow__ attribute is being applied to
the definition but not the declaration, which is the source of the
above error. Patch attached and available at
https://people.freebsd.org/~kevans/vbox/nothrow.diff adds __nothrow__
to the declaration as well to appease clang.

I suspect this is a de-minimus patch and licensing is not an issue,
but in case it's explicitly needed: this may be MIT licensed.

Thanks,

Kyle Evans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vbox-nothrow.diff
Type: text/x-patch
Size: 628 bytes
Desc: not available
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20200414/f4f80863/attachment.bin>


More information about the vbox-dev mailing list