heftig / rtkit

Branched from git://git.0pointer.net/rtkit
Other
44 stars 20 forks source link

Build failure on armel and armhf #7

Open fsateler opened 5 years ago

fsateler commented 5 years ago

It appears the .type directive is not fully portable: armel and armhf:

xml-introspection.S: Assembler messages:
xml-introspection.S:3: Error: unrecognized symbol type ""

It appears this is because @ is a comment marker in arm assembler.

Related gcc docs: https://www.sourceware.org/binutils/docs/as/Type.html#Type

I think we could change it to STT_OBJECT, but that is apparently a gnu extension. No idea if clang supports that, or if we care about non-gcc builds.

heftig commented 5 years ago

Take a look at https://github.com/heftig/rtkit/commit/7f24c26b6e6b5be0f50b42f86bbc7c43630687c9, which uses xxd to convert the XML file into C array. The resulting C file gets distributed, so xxd will not be necessary when you build from the 0.13 tarball.