Bug 301512
| Summary: | REGRESSION(300938@main): [GTK] [2.51.1] Fails to build on i386: redefinition of 'a' with a different type: 'const char *' vs 'const Latin1Character *' (aka 'const unsigned char *') | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alberto Garcia <berto> |
| Component: | WebKitGTK | Assignee: | Michael Catanzaro <mcatanzaro> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bugs-noreply, mcatanzaro |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | PC | ||
| OS: | Linux | ||
Alberto Garcia
This is with clang 19:
FAILED: Source/WTF/wtf/CMakeFiles/WTF.dir/BloomFilter.cpp.o
In file included from /build/reproducible-path/webkit2gtk-2.51.1/Source/WTF/wtf/BloomFilter.cpp:27:
In file included from /build/reproducible-path/webkit2gtk-2.51.1/Source/WTF/wtf/BloomFilter.h:30:
In file included from /build/reproducible-path/webkit2gtk-2.51.1/Source/WTF/wtf/text/AtomString.h:24:
In file included from /build/reproducible-path/webkit2gtk-2.51.1/Source/WTF/wtf/text/AtomStringImpl.h:24:
In file included from /build/reproducible-path/webkit2gtk-2.51.1/Source/WTF/wtf/text/UniquedStringImpl.h:28:
In file included from /build/reproducible-path/webkit2gtk-2.51.1/Source/WTF/wtf/text/StringImpl.h:44:
/build/reproducible-path/webkit2gtk-2.51.1/Source/WTF/wtf/text/StringCommon.h:249:17: error: redefinition of 'a' with a different type: 'const char *' vs 'const Latin1Character *' (aka 'const unsigned char *')
249 | const char* a = byteCast<char>(a);
| ^
/build/reproducible-path/webkit2gtk-2.51.1/Source/WTF/wtf/text/StringCommon.h:244:49: note: previous definition is here
244 | ALWAYS_INLINE bool equal(const Latin1Character* a, std::span<const Latin1Character> b)
| ^
There are several other related errors, see here for full details: https://buildd.debian.org/status/fetch.php?pkg=webkit2gtk&arch=i386&ver=2.51.1-1&stamp=1761493485&raw=0
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Michael Catanzaro
Pull request: https://github.com/WebKit/WebKit/pull/53159
Alberto Garcia
I confirm that the x86 build succeeds with this patch, thanks!
EWS
Committed 302344@main (2a2707faa14a): <https://commits.webkit.org/302344@main>
Reviewed commits have been landed. Closing PR #53159 and removing active labels.