https://bugs.freedesktop.org/show_bug.cgi?id=92988
Bug ID: 92988
Summary: altmacro is not supported by clang
Product: Wayland
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: wayland
Assignee: [email protected]
Reporter: [email protected]
In commit f66e2d5 (Validate the protocol xml during scanning) the dtd is
embedded in the executable and validated. Nonetheless, in order to do that
trick, an assembly snipped is used, but it is not clang/llvm friendly[1]
I don't know if there's a way to workaround this, or perhaps in configure.ac,
if clang is detected, the validation during scanning would be disabled.
1. https://llvm.org/bugs/show_bug.cgi?id=18918
clang -c -o src/dtddata.o src/dtddata.S
src/dtddata.S:25:1: error: unknown directive
.altmacro
^
<instantiation>:2:17: error: unexpected token in directive
.globl DTD_DATA&_begin
^
src/dtddata.S:40:1: note: while in macro instantiation
binfile DTD_DATA "src/wayland.dtd.embed"
^
<instantiation>:3:9: error: unknown token in expression
DTD_DATA&_begin:
^
src/dtddata.S:40:1: note: while in macro instantiation
binfile DTD_DATA "src/wayland.dtd.embed"
^
<instantiation>:4:10: error: expected string in '.incbin' directive
.incbin src/wayland.dtd.embed
^
src/dtddata.S:40:1: note: while in macro instantiation
binfile DTD_DATA "src/wayland.dtd.embed"
^
<instantiation>:5:9: error: unknown token in expression
DTD_DATA&_end:
^
src/dtddata.S:40:1: note: while in macro instantiation
binfile DTD_DATA "src/wayland.dtd.embed"
^
<instantiation>:8:17: error: unexpected token in directive
.globl DTD_DATA&_len
^
src/dtddata.S:40:1: note: while in macro instantiation
binfile DTD_DATA "src/wayland.dtd.embed"
^
<instantiation>:9:9: error: unknown token in expression
DTD_DATA&_len:
^
src/dtddata.S:40:1: note: while in macro instantiation
binfile DTD_DATA "src/wayland.dtd.embed"
^
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
wayland-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-bugs