<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64349>64349</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
I used the following script - this is the stock script I have for building clang - as far as I can recall I did not make changes to it; it was a while ago; (I welcome improvements to the script you may have - in case you do):
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
shankarswamy
</td>
</tr>
</table>
<pre>
I used the following script - this is the stock script I have for building clang - as far as I can recall I did not make changes to it; it was a while ago; (I welcome improvements to the script you may have - in case you do):
```
touch ../buildTimes.txt
echo "cmake times: " >> ../buildTimes.txt && echo "" >> ../buildTimes.txt
date >> ../buildTimes.txt && echo "" >> ../buildTimes.txt
cmake -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi" \
-DCMAKE_INSTALL_PREFIX=/opt/llvmclang/clang16.0.1\
-DLLVM_PARALLEL_LINK_JOBS=1 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DLLVM_ENABLE_FFI=ON \
-DBUILD_SHARED_LIBS=ON \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_TARGETS_TO_BUILD="host" \
-DLLVM_BUILD_TESTS=ON \
-G "Unix Makefiles" \
../llvm
echo "" >> ../buildTimes.txt
echo "compile times: " >> ../buildTimes.txt && echo "" >> ../buildTimes.txt
date >> ../buildTimes.txt && make && date >> ../buildTimes.txt
echo "" >> ../buildTimes.txt
echo >> "make check-cxx times:" >> ../buildTimes.txt && echo "" >> ../buildTimes.txt
date >> ../buildTimes.txt && make check-cxx && date >> ../buildTimes.txt
echo "" >> ../buildTimes.txt
echo "make check-clang time: " >> ../buildTimes.txt && echo "" >> ../buildTimes.txt
time >> ../buildTimes.txt && make check-clang && time >> ../buildTimes.txt
echo "" >> ../buildTimes.txt
make check-clang
sudo make install
make check-cxx
sudo make install-cxx install-cxxabi
```
I don not know how they do it over at wandbox. I get the same with my Ubuntu system; but it runs fine on 14.0.6 on my system as well as on wandbox.com. **The problem is with 16.0.1 only**, both at Wandbox and on our systems.
_Originally posted by @shankarswamy in https://github.com/llvm/llvm-project/issues/64348#issuecomment-1662678377_
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzkVk2T4jYT_jXi0oXLlo0ZDhwMmH296xmmGObN5OSSbYEVZImy5AH-fUoSMztfyWaTbO0hVRSSpe6nn-6WukWUYjtB6RSNZmi0GJBeN7KbqoaIPenUkbTnQSnr8xQy6BWtQTcUtpJzeWRiB6rq2EHDEHTDFDBlt5WW1f5pK4OGPBqVDsqe8dpoVZyIHQyBKNiSzgwZVERARyvCOWRQsxqE1NCSPYWqIWJHFWgJTKNwBkzDkSggcGwYp0B20qwifJXBkfJKthRYe-jkI22p0FbR0nKEzrKHlpwdrSEwARVR1C7XEuEJChPkL5CfoNi__Oynln3VgOchvLSObFhLladP2m3TqpGAMK4sZ202UZiYFUBhisL0I1VAOEY4hiflP5d2hmqi6b8M6TgPF3n-_-sivUlmeVrcrlef0_nmDoUL45XJGApnnJXV6fQ8ISWz-KO5A4LhYn6dfEmL7OZuk-R5cbtOl9mDxVjKg0Z4yflj69Dw0o5B7Ple8BLC0rhN1kmep3mRZzdfis-rmWESvDAFz8Zm91m-KDa_3qYoXKwppyaf7znNi_nq-jbL0zUKF-4IfoQ2f3h4J4jwDOEZvCN5idVymaFwsbp5g-d43f0vWaeLIs-sB6-EXqOsN5sPYazMJll_Sjd3xWbl3HVpaaTSbxNgxS8hSe8274wCDD-Zg3Ev2AmuyZ5uGafqNQq4s2Jy9fp0_5XT9HwTZHsw9_Pn3wV7vC_zb6j8XXedEML4UrJotR9Wp9Oz8z_X9698fmwUXrtvr5gJwI9JvkH-zgC4S-_Wv6H-_SFw_2_NuVXV19IxYUJpwvl74dPpD0Rt3l7MTdH9qEFlUEth2-ZeyCM08mja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