sys/arm/include/endian.h and signal.h bug with clang ?

Andrew Turner andrew at fubar.geek.nz
Mon Mar 11 19:11:30 UTC 2013


On Sun, 10 Mar 2013 23:25:14 +0100
Olivier Cochard-Labbé <olivier at cochard.me> wrote:

> Hi,
> 
> during the build of devel/gobject-introspection with clang on my
> Raspberry Pi, I've seen this error (but they didn't prevent
> gobject-introspection to compile):
Neither of these appear to be clang issues.

> /usr/include/machine/signal.h:45: syntax error, unexpected '}' in
> '};' at '}'
This is because struct sigcontext is empty. Olivier Houchard fixed this
in r248153.

> /usr/include/machine/endian.h:90: syntax error, unexpected identifier,
> expecting ',' or ';' in ' __asm volatile("eor %1, %
> 0, %0, ror #16\n"' at 'o'
> /usr/include/machine/endian.h:104: syntax error, unexpected
> identifier, expecting ',' or ';' in ' __asm volatile(' at 'o'
> g-ir-scanner: GLib: warning: 674 warnings suppressed (use --warn-all
> to see them)

This looks like the gobject introspection parser doesn't support asm
volatile. You might have to talk to the port maintainer to see if there
is any fix for this.

Andrew


More information about the freebsd-arm mailing list