Discussion:
Clang compatibilities
Keiko Nakata
2016-11-03 15:55:46 UTC
Permalink
Hallo!

Is the Genode framework source code compatible with Clang?


Best regards,
Keiko
Keiko Nakata
2016-11-03 17:32:40 UTC
Permalink
The particular problem I had is flexible array members in Slab::Block
and Slab::Entry. Changing

char data[];

to

char data[0];

in Slab::Entry and similarly in Slab::Block let me parse slab.cc and
my problem solved.

I wonder if you would accept these changes as a minor fix if I follow
the "Contributing to Genode" guideline?


Best regards,
Keiko
Post by Keiko Nakata
Hallo!
Is the Genode framework source code compatible with Clang?
Best regards,
Keiko
Norman Feske
2016-11-04 13:07:36 UTC
Permalink
Hello Keiko,

welcome to the mailing list!

As far as I know, there is nobody using llvm as tool chain for Genode. I
do not see any principle show stopper though. So you are welcome to
explore this direction. While doing so, you may find the reasoning
behind our tool-chain customizations useful, which is given in Section
7.2. "C++ runtime" of the documentation [1].

It is also worth noting that our Rust support uses the official Rust
tool chain, which is based on llvm. It produces binaries that work on
Genode. You can find the used llvm target configurations at [2].

[1] https://genode.org/documentation/genode-foundations-16-05.pdf
[2]
https://github.com/genodelabs/genode/tree/master/repos/libports/src/lib/rust-targets/spec
Post by Keiko Nakata
I wonder if you would accept these changes as a minor fix if I follow
the "Contributing to Genode" guideline?
It goes without saying that your fixes are welcome! :-) Would you
consider opening corresponding issues at GitHub?

Cheers
Norman
--
Dr.-Ing. Norman Feske
Genode Labs

http://www.genode-labs.com · http://genode.org

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Loading...