<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/59982>59982</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-13: error: unable to execute command: Segmentation fault (core dumped)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          aheirich
      </td>
    </tr>
</table>

<pre>
    See Makefile in y.tar
this line causes the crash
-L/tools/foss/llvm/13.0.1/x86_64/ubuntu.20.04/lib64
without this it gets a ld error not found libc++
with this phrase it gets a core dump from clang
[x.tar.gz](https://github.com/llvm/llvm-project/files/10407501/x.tar.gz)
[y.tar.gz](https://github.com/llvm/llvm-project/files/10407502/y.tar.gz)

Alan Heirich
aheirich@rivosinc.com

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysks1unTAQhZ_GbEZBZgxcWLC4UYS6aFd5gMqYAdwa-8o_SW6fvjIoSaWuKlVCGBidOXw6R4agV0s0sOaRNU-FTHFzfpAbaa_VVkxuvg_PRPBN_qRFGwJt4V5G6Rl_YvwaNx3AaEugZAoUIG4EysuwnfOHrwzH6JwJDMfFhXwY87IzHCtR8rJiOL517fe2ZjimKdmYSuQlz69GT219rnnVcXMpwmGnI6wUA0gwM5D3zoN1ERaX7AxGT4rhY74-lKfstnkZ6A-1cp5gTvsNFu92UEba9RSx5vEtM5brL9Y8Mey2GG-BiSvDkeG46rilqVRu_6TJx8PNux-kYkbVhjJrxWt-afiB-b4R-w-X-391QYbj_S-X43410sKXM9Tzy3vErOZev7igrTq8jmExD2LuRS8LGqr2IppLI1pRbMPUTaJtW-R9V4lKNp1ApOYiLlIskmYs9IAcBa8qwZFjLUo5qaVbUImq7-e6FqzmtEttysxSOr8WOoREQ9P3HRZGTmTC0UZES69wDBliLqcfDv4prYHV3OgQw-eWqKOh4QjxoRJMXM9q5Idk5WQIogN6I5UigXL7Lu2ch8-07mSjjNpZWGQyERh2H92gmWFfJG-Gf07n-PUcz4H2OwAA__-snRLg">