Summary: | www-client/chromium-112.0.5615.165 failed to rebuild with GCC 13 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Leonid Kopylov <leonchik1976> |
Component: | Current packages | Assignee: | Chromium Project <chromium> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kangie |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | ARM64 | ||
OS: | Linux | ||
URL: | https://github.com/llvm/llvm-project/commit/ff1681ddb303223973653f7f5f3f3435b48a1983 | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=895710 https://swiftshader-review.googlesource.com/c/SwiftShader/+/71608 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 865117 | ||
Attachments: |
build.log.xz
Bulk of fixes Lines endings |
Description
Leonid Kopylov
2023-05-01 13:54:35 UTC
Created attachment 861018 [details]
build.log.xz
FAILED: [0mobj/third_party/swiftshader/third_party/llvm-10.0/swiftshader_llvm_support/Signals.o aarch64-unknown-linux-gnu-g++ -MMD -MF obj/third_party/swiftshader/third_party/llvm-10.0/swiftshader_llvm_support/Signals.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I../../third_party/swiftshader/third_party/llvm-10.0/llvm/include -I../../third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64 -I../../third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM -I../../third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips -I../../third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC -I../../third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV -I../../third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86 -I../../third_party/swiftshader/third_party/llvm-10.0/configs/common/include -I../../third_party/swiftshader/third_party/llvm-10.0/configs/common/lib/IR -I../../third_party/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/AArch64 -I../../third_party/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/ARM -I../../third_party/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/Mips -I../../third_party/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/PowerPC -I../../third_party/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/RISCV -I../../third_party/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/X86 -I../../third_party/swiftshader/third_party/llvm-10.0/configs/common/lib/Transforms/InstCombine -I../../third_party/swiftshader/third_party/llvm-10.0/configs/linux/include -I../.. -Igen -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -fno-omit-frame-pointer -fvisibility=hidden -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Os -std=gnu++2a -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -Wno-narrowing -Wno-class-memaccess -O2 -pipe -fno-tree-vectorize -c ../../third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Signals.cpp -o obj/third_party/swiftshader/third_party/llvm-10.0/swiftshader_llvm_support/Signals.o In file included from ../../third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Signals.cpp:14: ../../third_party/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/Signals.h:117:8: error: variable or field ‘CleanupOnSignal’ declared void 117 | void CleanupOnSignal(uintptr_t Context); | ^~~~~~~~~~~~~~~ ../../third_party/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/Signals.h:117:24: error: ‘uintptr_t’ was not declared in this scope 117 | void CleanupOnSignal(uintptr_t Context); | ^~~~~~~~~ ../../third_party/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/Signals.h:18:1: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 17 | #include <string> +++ |+#include <cstdint> 18 | In file included from ../../third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Signals.cpp:220: ../../third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/Signals.inc:346:44: error: ‘void llvm::sys::CleanupOnSignal(uintptr_t)’ should have been declared inside ‘llvm::sys’ 346 | void sys::CleanupOnSignal(uintptr_t Context) { | ^ Needs to be committed to SwiftShader repo (they maintain their own llvm tree). Created attachment 861146 [details, diff]
Bulk of fixes
These are most of the changes I needed to get things compiling for me with clang and libstdc++ 13
Created attachment 861147 [details, diff]
Lines endings
When this one was included as part of the previous patch, portage refused to apply it due to differing line endings
I've split it out and it appears to apply now
Fixed upstream in https://github.com/google/swiftshader/commit/ecefa6c6596982616fa1f564fcee363ef8533808 Swiftshader has been rolled at least a dozen times since then - I think we're safe. |