When can glibc be built with Clang?
In September, I wrote "So, dear glibc, will you be happy with my sending Clang patches?" in Build glibc with LLD 13. In Linux Plumbers Conference 2021, at the glibc Birds of a Feather session, I asked the Clang buildability question to the glibc stewards. "Carlos: Yes, we could be happy with clang buildability." "Joseph: Patches should be split into logical changes." This is really great news! My unnesting patch had sat there for a while and I was unsure about the Clang buildability interest. As a rough estimate, we may need 30 patches to fix glibc build on x86-64 for the -disable-werror configuration. Glibc uses an inline asm trick to get the constant value of a macro. 6 An integer constant expression shall have integer type and shall only have operands that are integer constants, enumeration constants, character constants, sizeof expressions whose results are integer constants, Alignof expressions, and floating constants that are the immediate operands of casts. Clang is simple: a const object cannot be used as an operand in a constant expression.