<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57403>57403</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-15.0.0_rc3 fails to compile with: FAILED: lib/Tooling/ASTNodeAPI.json and /bin/sh: -c: line 1: syntax error near unexpected token `('
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
stefson
</td>
</tr>
</table>
<pre>
hello everyone,
I just tried to compile clang-15.0.0_rc3 on gentoo-amd64 with musl-libc, and while llvm-15.0.0_rc3 build fine I got this error when compiling clang:
```
2138031-[850/1751] cd /var/tmp/portage/sys-devel/clang-15.0.0_rc3/work/x/y/clang-abi_x86_64.amd64/lib/Tooling && /var/tmp/portage/sys-devel/clang-15.0.0_rc3/work/x/y/clang-abi_x86_64.amd64/bin/clang-ast-dump --skip-processing=0 -I /lib/clang/15.0.0/include -I /var/tmp/portage/sys-devel/clang-15.0.0_rc3/work/clang/include -I /tools/clang/include -I /include -I /include -I /usr/lib/gcc/x86_64-gentoo-linux-musl/11.3.0/include/g++-v11 -I /usr/lib/gcc/x86_64-gentoo-linux-musl/11.3.0/include/g++-v11/x86_64-gentoo-linux-muslGNU\ assembler\ version\ 2.38\ (x86_64-gentoo-linux-musl)\ using\ BFD\ version\ (Gentoo\ 2.38\ p4)\ 2.38 -I /usr/lib/gcc/x86_64-gentoo-linux-musl/11.3.0/include/g++-v11/backward -I /usr/include -I /usr/lib/gcc/x86_64-gentoo-linux-musl/11.3.0/include --json-output-path /var/tmp/portage/sys-devel/clang-15.0.0_rc3/work/x/y/clang-abi_x86_64.amd64/lib/Tooling/ASTNodeAPI.json
2138919:FAILED: lib/Tooling/ASTNodeAPI.json /var/tmp/portage/sys-devel/clang-15.0.0_rc3/work/x/y/clang-abi_x86_64.amd64/lib/Tooling/ASTNodeAPI.json
2139060-cd /var/tmp/portage/sys-devel/clang-15.0.0_rc3/work/x/y/clang-abi_x86_64.amd64/lib/Tooling && /var/tmp/portage/sys-devel/clang-15.0.0_rc3/work/x/y/clang-abi_x86_64.amd64/bin/clang-ast-dump --skip-processing=0 -I /lib/clang/15.0.0/include -I /var/tmp/portage/sys-devel/clang-15.0.0_rc3/work/clang/include -I /tools/clang/include -I /include -I /include -I /usr/lib/gcc/x86_64-gentoo-linux-musl/11.3.0/include/g++-v11 -I /usr/lib/gcc/x86_64-gentoo-linux-musl/11.3.0/include/g++-v11/x86_64-gentoo-linux-muslGNU\ assembler\ version\ 2.38\ (x86_64-gentoo-linux-musl)\ using\ BFD\ version\ (Gentoo\ 2.38\ p4)\ 2.38 -I /usr/lib/gcc/x86_64-gentoo-linux-musl/11.3.0/include/g++-v11/backward -I /usr/include -I /usr/lib/gcc/x86_64-gentoo-linux-musl/11.3.0/include --json-output-path /var/tmp/portage/sys-devel/clang-15.0.0_rc3/work/x/y/clang-abi_x86_64.amd64/lib/Tooling/ASTNodeAPI.json
2139937-/bin/sh: -c: line 1: syntax error near unexpected token `('
2139997-/bin/sh: -c: line 1: `cd /var/tmp/portage/sys-devel/clang-15.0.0_rc3/work/x/y/clang-abi_x86_64.amd64/lib/Tooling && /var/tmp/portage/sys-devel/clang-15.0.0_rc3/work/x/y/clang-abi_x86_64.amd64/bin/clang-ast-dump --skip-processing=0 -I /lib/clang/15.0.0/include -I /var/tmp/portage/sys-devel/clang-15.0.0_rc3/work/clang/include -I /tools/clang/include -I /include -I /include -I /usr/lib/gcc/x86_64-gentoo-linux-musl/11.3.0/include/g++-v11 -I /usr/lib/gcc/x86_64-gentoo-linux-musl/11.3.0/include/g++-v11/x86_64-gentoo-linux-muslGNU\ assembler\ version\ 2.38\ (x86_64-gentoo-linux-musl)\ using\ BFD\ version\ (Gentoo\ 2.38\ p4)\ 2.38 -I /usr/lib/gcc/x86_64-gentoo-linux-musl/11.3.0/include/g++-v11/backward -I /usr/include -I /usr/lib/gcc/x86_64-gentoo-linux-musl/11.3.0/include --json-output-path /var/tmp/portage/sys-devel/clang-15.0.0_rc3/work/x/y/clang-abi_x86_64.amd64/lib/Tooling/ASTNodeAPI.json'
```
the compressed full build.log is attached: [build-clang-15.0.0_rc3.log.gz](https://github.com/llvm/llvm-project/files/9438281/build-clang-15.0.0_rc3.log.gz)
I've never had an issue like that before, I'm frankly kind of dumbstrucked by it :-( and I can't even find that ASTNodeAPI.json file in the source code.
anyone got an idea?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztWFuP4jYU_jXhxXKUCwnJQx6YUlZI1apSt88jx3YSD8aOfGGgv77HgWGY2e5sd3e2fUEEx8Y-9-MPH7eaHZuBS6kR33Nz1IpH2S8oSlZRsjy1G_TgrUPOCM6Q04jq3SgkR1QS1eO0iJM4uTc0R1qhniunNSY7Vs7Ro3AD2nkrsRQtDWyJYuhxCMRS7nfXtK0XkqFOKI42qNcgbhAWcWO0AQquzlKF6k9yo3z5QsmoTM7PNMzSvEryFEfFXVUkUbZOF0UaFStEGYLRnhho3W6EdtTGkR6sXtujxQy8IKH_2jj46VGbLbwO8D1eVpBW3B-q8r6cx5PRMAHGQvtJ60nbKCvh-elCW6Gep63DzO9GhLHdihGPRlNurQheWyUIb9BFy5MvwT2TTOgIRaVn_LzoR1R-Yv2SI2SHtF-cfWvkrbmo3VManDK5AJ9zDrztDzikW7AnjfNrewJNlN3Bg_dp-v4c36D98PHPqIDUt5bvWslNGMBOs0Kr0M3ivArvKKu-LL0OK_wUQejcrVevmADxh4nqmuM4PxOGH36KyS2h20di2Avm7xg1SOAHqxXW3o3e4ZEAnvynuxd6yz8-fdSML3_fxEGXZ3ip0xpAaL3c_PbrKqDRVwj_b8XRRfM6KRN8w8EbDt5w8IaDP4yDdZ0v8GXj2SFAIaYnQITDXBp69qgcOZxPc4oTg7zih5FTN50ot3C8Cye3rIqyxRXj-quMgeoGZDcguwHZDci-G8ieIOcf68hT6wY-1Z8GNh0gVuelPBWssdQ9gjqVO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