GNOME Bugzilla – Bug 678794
g-ir-scanner doesn’t like inline asm in system headers
Last modified: 2015-02-07 16:58:01 UTC
While compiling software that’s part of the GNOME stack: /usr/include/m68k-linux-gnu/bits/byteswap.h:50: syntax error, unexpected identifier, expecting ',' or ';' in ' __asm__ __volatile__ ("ror%.w %#8, %0;"' at '_' This is g-ir-scanner from gobject-introspection 1.32.1-1 on Debian/m68k. It doesn’t appear to have any negative outcome, but I thought I’d better report it.
You may be able to prefix it with __extension__ . I believe some of the other headers use that.
Created attachment 241984 [details] [review] scannerlexer.l: Parse and ignore more __asm and __volatile In the spirit of c9708af2 also parse and ignore __asm [whitespace] volatile __asm__ [whitespace] volatile __volatile __volatile__ Ignoring __volatile is cosmetic, but the __asm cases avoid an unwanted VOLATILE token. https://git.gnome.org/browse/gobject-introspection/commit/?id=c9708af2d5b0bed20cf88e3ec62365a1899ceb2f
Review of attachment 241984 [details] [review]: Looks reasonable, thanks.
*** Bug 638220 has been marked as a duplicate of this bug. ***
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]