Issue |
137321
|
Summary |
[compiler-rt][sanitizer] sanitizer_platform_limits_posix.cpp uses struct termio, which will be removed in glibc-2.42
|
Labels |
new issue
|
Assignees |
|
Reporter |
hhoffstaette
|
Glibc-2.42 will remove <termio.h> and struct termio ([commit](https://sourceware.org/git/?p=glibc.git;a=commit;h=e04afb71771710cdc6025fe95908f5f17de7b72d)), which have been outdated since before Linux existed.
A test run in Gentoo's CI found a compilation error in LLVM, which can be found [here](https://bugs.gentoo.org/953040) and can be traced to [this location](https://github.com/llvm/llvm-project/blob/2d1b5a269b85c1a6174c1988f43acbb7bc1ba8f2/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp#L498C38-L498C51):
```
#if SANITIZER_GLIBC || SANITIZER_ANDROID
unsigned struct_termio_sz = sizeof(struct termio);
#endif
```
While it will be some time until glibc-2.42 ships it seems prudent to get ahead of this, especially since the remaining use of `struct termio` seems like an oversight.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs