Bug 111687 - libstdc++ fails to work for clang 18 any more
Summary: libstdc++ fails to work for clang 18 any more
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 14.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-03 21:25 UTC by cqwrteur
Modified: 2023-10-03 21:29 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cqwrteur 2023-10-03 21:25:12 UTC
/usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/14.0.0/../../../../include/c++/14.0.0/limits:1995:1: error: use of undeclared identifier '_Float128'
 1995 | __glibcxx_float_n(128)
      | ^
/usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/14.0.0/../../../../include/c++/14.0.0/limits:1903:27: note: expanded from macro '__glibcxx_float_n'
 1903 |     struct numeric_limits<_Float##BITSIZE>                              \
      |                           ^
<scratch space>:325:1: note: expanded from here
  325 | _Float128
      | ^
1 error generated.
[29/115] Building CXX object CMakeFiles/libWAVM.dir/Lib/IR/Validate.cpp.o
ninja: build stopped: subcommand failed.
Comment 1 Andrew Pinski 2023-10-03 21:28:19 UTC
This is a bug in clang:
#ifdef __FLT128_DIG__
__glibcxx_float_n(128)
#endif


__FLT128_DIG__ should not be defined if _Float128 does not exist.
Comment 2 Andrew Pinski 2023-10-03 21:29:57 UTC
https://www.mail-archive.com/cfe-commits@lists.llvm.org/msg361472.html

is the patch which broke clang.

Report it to them.