WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
277902
[GCC] Add custom implementation of std::bit_cast for systems not supporting it
https://bugs.webkit.org/show_bug.cgi?id=277902
Summary
[GCC] Add custom implementation of std::bit_cast for systems not supporting it
Diego Pino
Reported
2024-08-10 01:55:11 PDT
Changeset
281895@main
introduced a non-conditional use of `std::bit_cast`. This broke the build for many Linux systems lacking support for this function.
https://build.webkit.org/#/builders/992/builds/4591/steps/9/logs/stdio
``` /home/buildbot/worker/GTK-Linux-64-bit-Release-Debian-11-Build/build/Source/WTF/wtf/Float16.h:59:36: error: no member named 'bit_cast' in namespace 'std' return static_cast<float>(std::bit_cast<_Float16>(h)); ``` `std::bit_cast` is implemented since libstdc++-11, so Linux systems still using libstdc++-10 are affected by this build break. Switching the compiler to clang doesn't solve this issue since the version of libstdc++ distributed in the OS is still used (in fact, Debian 11 bot is already using clang).
Attachments
Add attachment
proposed patch, testcase, etc.
Diego Pino
Comment 1
2024-08-10 02:08:13 PDT
Pull request:
https://github.com/webkit/webkit/pull/31987
Radar WebKit Bug Importer
Comment 2
2024-08-17 01:56:14 PDT
<
rdar://problem/134122800
>
Diego Pino
Comment 3
2024-10-23 03:38:39 PDT
WebKit upstream is no longer supporting builds with libstdc++-10. Those would who like to build with such setting should apply the patch in the pull-request downstream.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug