Closed as not planned
Description
Since LLVM 17, the bootstrap fails building stage2 on 32-bit PowerPC with:
[50/7756] "/<<PKGBUILDDIR>>/build-llvm/./bin/clang++" -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I"/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/lib/Support" -I"/<<PKGBUILDDIR>>/llvm/lib/Support" -I"/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/include" -I"/<<PKGBUILDDIR>>/llvm/include" -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/<<PKGBUILDDIR>>/= -no-canonical-prefixes -Werror=global-constructors -O2 -DNDEBUG -g1 -std=c++17 -fno-exceptions -funwind-tables -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/DebugCounter.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/DebugCounter.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/DebugCounter.cpp.o -c '/<<PKGBUILDDIR>>/llvm/lib/Support/DebugCounter.cpp'
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/DebugCounter.cpp.o
"/<<PKGBUILDDIR>>/build-llvm/./bin/clang++" -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I"/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/lib/Support" -I"/<<PKGBUILDDIR>>/llvm/lib/Support" -I"/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/include" -I"/<<PKGBUILDDIR>>/llvm/include" -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/<<PKGBUILDDIR>>/= -no-canonical-prefixes -Werror=global-constructors -O2 -DNDEBUG -g1 -std=c++17 -fno-exceptions -funwind-tables -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/DebugCounter.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/DebugCounter.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/DebugCounter.cpp.o -c '/<<PKGBUILDDIR>>/llvm/lib/Support/DebugCounter.cpp'
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /<<PKGBUILDDIR>>/build-llvm/./bin/clang++ -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/lib/Support -I/<<PKGBUILDDIR>>/llvm/lib/Support -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/include -I/<<PKGBUILDDIR>>/llvm/include -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/<<PKGBUILDDIR>>/= -no-canonical-prefixes -Werror=global-constructors -O2 -DNDEBUG -g1 -std=c++17 -fno-exceptions -funwind-tables -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/DebugCounter.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/DebugCounter.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/DebugCounter.cpp.o -c /<<PKGBUILDDIR>>/llvm/lib/Support/DebugCounter.cpp
1. <eof> parser at end of file
2. Per-file LLVM IR generation
3. /usr/lib/gcc/powerpc-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:1567:7: Generating code for declaration 'std::basic_string<char>::assign'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 clang++ 0x01fab7dc
1 clang++ 0x01fa90fc
2 clang++ 0x01ecb808
3 linux-vdso32.so.1 0xf7a103f4 __kernel_sigtramp32 + 0
4 clang++ 0x02397554
5 clang++ 0x02397660
6 clang++ 0x02397660
7 clang++ 0x02397660
8 clang++ 0x02397660
9 clang++ 0x02397660
10 clang++ 0x02397660
11 clang++ 0x023238d4
12 clang++ 0x02324288
13 clang++ 0x02395fb8
14 clang++ 0x023af0e4
15 clang++ 0x02411ad0
16 clang++ 0x0240cce8
17 clang++ 0x02417ff8
18 clang++ 0x02418010
19 clang++ 0x02418010
20 clang++ 0x02418010
21 clang++ 0x02418010
22 clang++ 0x02418010
23 clang++ 0x02418010
24 clang++ 0x02418010
25 clang++ 0x02418010
26 clang++ 0x02418010
27 clang++ 0x02418010
28 clang++ 0x02419454
29 clang++ 0x0346c10c
30 clang++ 0x03468f14
31 clang++ 0x047b2730
32 clang++ 0x02c14bf8
33 clang++ 0x0346a024
34 clang++ 0x02c1b2b4
35 clang++ 0x02b9e11c
36 clang++ 0x02cfccf4
37 clang++ 0x00c86c10
38 clang++ 0x00c7ec34
39 clang++ 0x029b0adc
40 clang++ 0x01ecbfd8
41 clang++ 0x029b14d4
42 clang++ 0x0296ec40
43 clang++ 0x0296f858
44 clang++ 0x02985e48
45 clang++ 0x00c83e04
46 clang++ 0x00bea2c8
47 libc.so.6 0xf77c9f60
48 libc.so.6 0xf77ca1a0 __libc_start_main + 480
clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
Debian clang version 18.0.0
Target: powerpc-unknown-linux-gnu
Thread model: posix
InstalledDir: /<<PKGBUILDDIR>>/build-llvm/./bin
clang++: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /tmp/DebugCounter-f935f6.cpp
clang++: note: diagnostic msg: /tmp/DebugCounter-f935f6.sh
clang++: note: diagnostic msg:
********************
(...)
FAILED: tools/clang/stage2-stamps/stage2-build /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-stamps/stage2-build
cd "/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins" && /usr/bin/cmake --build "/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/" --config Release && /usr/bin/cmake -E touch "/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-stamps/stage2-build"
ninja: build stopped: subcommand failed.