<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/69524>69524</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[bug] D18557 still valid in aarch64/fbsd
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
gczuczy
</td>
</tr>
</table>
<pre>
I've been building a petproject of mine, and hit [D18557](https://reviews.llvm.org/D18557). I've disabled PCH and it got fixed.
Codebase: https://github.com/gczuczy/aegir/tree/master/aegir-brewd
Error:
```
$ gmake
[ 4%] Building CXX object CMakeFiles/brewd.dir/src/Exception.cc.o
/usr/home/aegir/aegir/aegir-brewd/src/Exception.cc:12:5: error: non-const lvalue reference to type '__builtin_va_list' cannot bind to a value of unrelated type 'va_list' (aka 'std::__va_list')
va_start(args, _fmt);
^~~~~~~~~~~~~~~~~~~~
/usr/include/sys/_stdarg.h:42:47: note: expanded from macro 'va_start'
#define va_start(ap, last) __builtin_va_start((ap), (last))
^~~~
/usr/home/aegir/aegir/aegir-brewd/src/Exception.cc:14:12: error: non-const lvalue reference to type '__builtin_va_list' cannot bind to a value of unrelated type 'va_list' (aka 'std::__va_list')
va_end(args);
^~~~
/usr/include/sys/_stdarg.h:48:38: note: expanded from macro 'va_end'
#define va_end(ap) __builtin_va_end(ap)
^~
2 errors generated.
```
After [disabling pch](https://github.com/gczuczy/aegir/blob/bb0d140676ac67c3c4cfe52f300f5208125c351e/aegir-brewd/include/CMakeLists.txt#L23), it built successfully.
Sys/tooling info:
```
$ clang -v
FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)
Target: aarch64-unknown-freebsd14.0
Thread model: posix
InstalledDir: /usr/bin
$ uname -a
FreeBSD aegir 14.0-RC1 FreeBSD 14.0-RC1 #0 releng/14.0-n265264-b82c5a3429bb: Sun Oct 15 07:21:56 UTC 2023 toor@xx:/tank/rpi3/obj/tank/rpi3/src/arm64.aarch64/sys/AEGIR arm64
```
Could you please check D18557's relevance on aarch64?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUVk9v47YT_TT0ZWBBIvXPBx8cJ_r9Ftiixe4W2JtBkSOZG5o0SMpx9tDPXlCSnbgJtl2glwqBFY1GM_PeGw7JvVe9QVyT4o4U9ws-hL116158H8T350Vr5fP6A6HVCaFFNNAOSktleuBwxHB09huKALaDgzJI6Ba4kbBXAUhxd5_VRVGR4p7Qeh_C0RO2IbQhtHF4UvjkE61Ph8S6ntBmdqarBOZ8UnneapTw2_b_Y1gVoLcBOnVGmZD0nqSb6XdrJbbcI2EbuE3Uq7Af2kTYQ3yYQBHacOyVI7QJDpHQ5sB9QHexL1uHT3KK_OCcdTHalK1M57_pkebQH_gjzo_FHUBOaEGKe7i78LT9-hVsO7K0_YU_YqM0ekKbMUkixzK8E4Q2D2eBx6CsSYRI7CVFM_josrcHfFX4zX0u-L04hG0yStimiNTgDAaMNUthjQ-gT1wPCA47dGgEQrAQno8IhFa7XRQ7KLM78Z1WPhBageDG2ACtMjL6cpgC2A4G41DzgPIa4NVnhNb8kUejDzLyyTa7V2EJXU144cR3PnAX4geu97Gjdt0hRAd2N_uQ4uGPt9dfCFNG6EFGzvxz5Hvng-SuT_aEbfJISV5NVISxbfB85EaihM7ZAxy4cHaGMJdTXeIziZ0yeFPpMdapecSygvG6Ie_iN7uuojeh9fzBC_gJ2L-nfH6R_z8hPUDkFI28av9G85_RuCZsw-p_pvGY9D2F52qOV10v1w1Dr7xelTv9SyfuPfRo0EWSkveHyfi76QK6ODun4RcHyFHs3xuhfzPZWm3beGtTmeVpWZVclJVgIhcdFrRjadoVNK0zWghWZPimoV6oHafWR-WDT8I5EMo-Ujb3sArjfhDAD0Kg992g9fPNZP486hKsHaEo09kfDVOhuelheZosjUO8-3w_W0_ovLIGsjJJkxJ-zEfcV-bbct6jkl4FiAbr-uUUZ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