<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/60700>60700</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
dump when i build generate-ninja with llvm
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Divinity96
</td>
</tr>
</table>
<pre>
Hello, i got dump when i build generate-ninja use 'debuild' with llvm, on RISC-V on ubuntu22.04
the version of llvm is llvm-14 14.0.0-1ubuntu1 (https://launchpad.net/ubuntu/+source/llvm-toolchain-14)
the version of generate-ninja is 0.0~git20220118.0725d78-1 (https://launchpad.net/ubuntu/+source/generate-ninja)
Could you please tell me how to build with llvm? Thank you very much.
The following is the log:
dpkg-buildpackage -us -uc -ui
dpkg-buildpackage: info: 源码包 generate-ninja
dpkg-buildpackage: info: 源码版本 0.0~git20220118.0725d78-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: 源码修改者 Boyuan Yang <byang@debian.org>
dpkg-source --before-build .
dpkg-buildpackage: info: 主机架构 riscv64
debian/rules clean
dh clean --buildsystem=ninja --builddirectory=out
dh_auto_clean -O--buildsystem=ninja -O--builddirectory=out
dh_autoreconf_clean -O--buildsystem=ninja -O--builddirectory=out
dh_clean -O--buildsystem=ninja -O--builddirectory=out
dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building generate-ninja using existing ./generate-ninja_0.0~git20220118.0725d78.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: building generate-ninja in generate-ninja_0.0~git20220118.0725d78-1.debian.tar.xz
dpkg-source: info: building generate-ninja in generate-ninja_0.0~git20220118.0725d78-1.dsc
debian/rules binary
dh binary --buildsystem=ninja --builddirectory=out
dh_update_autotools_config -O--buildsystem=ninja -O--builddirectory=out
dh_autoreconf -O--buildsystem=ninja -O--builddirectory=out
debian/rules override_dh_auto_configure
make[1]: 进入目录“/home/ubuntukylin/generate-ninja/generate-ninja-0.0~git20220118.0725d78”
python3 /home/ubuntukylin/generate-ninja/generate-ninja-0.0~git20220118.0725d78/build/gen.py
make[1]: 离开目录“/home/ubuntukylin/generate-ninja/generate-ninja-0.0~git20220118.0725d78”
dh_auto_build -O--buildsystem=ninja -O--builddirectory=out
cd out && LC_ALL=C.UTF-8 ninja -j4 -v
[1/283] clang++ -MMD -MF src/base/files/file_enumerator.o.d -I../src -I. -g -O2 -ffile-prefix-map=/home/ubuntukylin/generate-ninja/generate-ninja-0.0~git20220118.0725d78=. -fstack-protector-strong -Wformato
FAILED: src/base/files/file_enumerator.o
clang++ -MMD -MF src/base/files/file_enumerator.o.d -I../src -I. -g -O2 -ffile-prefix-map=/home/ubuntukylin/generate-ninja/generate-ninja-0.0~git20220118.0725d78=. -fstack-protector-strong -Wformat -Werroro
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: clang++ -MMD -MF src/base/files/file_enumerator.o.d -I../src -I. -g -O2 -ffile-prefix-map=/home/ubuntukylin/generate-ninja/generate-ninja-0.0~git20220118.0725d78=. -fstack-proteco
1. Compilation construction
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):
/lib/riscv64-linux-gnu/libLLVM-14.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x38)[0x3fc5ed66ee]
Illegal instruction (core dumped)
[2/283] clang++ -MMD -MF src/base/environment.o.d -I../src -I. -g -O2 -ffile-prefix-map=/home/ubuntukylin/generate-ninja/generate-ninja-0.0~git20220118.0725d78=. -fstack-protector-strong -Wformat -Werror=fo
FAILED: src/base/environment.o
clang++ -MMD -MF src/base/environment.o.d -I../src -I. -g -O2 -ffile-prefix-map=/home/ubuntukylin/generate-ninja/generate-ninja-0.0~git20220118.0725d78=. -fstack-protector-strong -Wformat -Werror=format-seo
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: clang++ -MMD -MF src/base/environment.o.d -I../src -I. -g -O2 -ffile-prefix-map=/home/ubuntukylin/generate-ninja/generate-ninja-0.0~git20220118.0725d78=. -fstack-protector-strongo
1. Compilation construction
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):
/lib/riscv64-linux-gnu/libLLVM-14.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x38)[0x3feb1b96ee]
Illegal instruction (core dumped)
[3/283] clang++ -MMD -MF src/base/files/file.o.d -I../src -I. -g -O2 -ffile-prefix-map=/home/ubuntukylin/generate-ninja/generate-ninja-0.0~git20220118.0725d78=. -fstack-protector-strong -Wformat -Werror=foo
FAILED: src/base/files/file.o
clang++ -MMD -MF src/base/files/file.o.d -I../src -I. -g -O2 -ffile-prefix-map=/home/ubuntukylin/generate-ninja/generate-ninja-0.0~git20220118.0725d78=. -fstack-protector-strong -Wformat -Werror=format-seco
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: clang++ -MMD -MF src/base/files/file.o.d -I../src -I. -g -O2 -ffile-prefix-map=/home/ubuntukylin/generate-ninja/generate-ninja-0.0~git20220118.0725d78=. -fstack-protector-strong o
1. Compilation construction
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):
/lib/riscv64-linux-gnu/libLLVM-14.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x38)[0x3fd6c746ee]
Illegal instruction (core dumped)
[4/283] clang++ -MMD -MF src/base/command_line.o.d -I../src -I. -g -O2 -ffile-prefix-map=/home/ubuntukylin/generate-ninja/generate-ninja-0.0~git20220118.0725d78=. -fstack-protector-strong -Wformat -Werror=o
FAILED: src/base/command_line.o
clang++ -MMD -MF src/base/command_line.o.d -I../src -I. -g -O2 -ffile-prefix-map=/home/ubuntukylin/generate-ninja/generate-ninja-0.0~git20220118.0725d78=. -fstack-protector-strong -Wformat -Werror=format-so
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: clang++ -MMD -MF src/base/command_line.o.d -I../src -I. -g -O2 -ffile-prefix-map=/home/ubuntukylin/generate-ninja/generate-ninja-0.0~git20220118.0725d78=. -fstack-protector-strono
1. Compilation construction
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):
/lib/riscv64-linux-gnu/libLLVM-14.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x38)[0x3fb74106ee]
Illegal instruction (core dumped)
ninja: build stopped: subcommand failed.
dh_auto_build: error: cd out && LC_ALL=C.UTF-8 ninja -j4 -v returned exit code 1
make: *** [debian/rules:22:binary] 错误 25
dpkg-buildpackage: 错误: debian/rules binary subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui failed
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsWl9znDgS_zTySxcUCJiBh3mA-VObKmc3leR2a_dlSkAPKAaJ0x_bsw_32a8E2LETx-dMXHXxllMpj0BSq_vX3T81CKY1bwTiiiQFSTZnzJpWqtWGX3LBzTFbnJWyPq5-wa6ThK6BQyMN1LYf4KpFARxKy7saGhSomEFPcPGJgdUIhC5rHHsJXcIVNy103WXvpEgB7998WHu_u5YtrTCWUj-ISbAhQW5ahEtUmksB8jBOAq5hbHhhDGHsB37ghdPEEAhNW2MGTaKc0B2hu45ZUbUDq32BhtDdNHDsK7S0qkI3yEkzUnZVy7jwwpjQ7MH1vzCNawj84D8NNzSgNAjD1A-WNKmXqXeqKvdXuNVjLW1Xw1FaGDpkGsFg10GP0MorMH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