<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/81695>81695</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
"ld: Undefined symbols" with `Clang/LLVM 15.0.0` and `ifort 2021.7.0.20220726`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
zaikunzhang
</td>
</tr>
</table>
<pre>
Dear LLVM maintainers,
My project at
https://github.com/libprima/prima
fails to build with `Clang/LLVM 15.0.0` and `ifort 2021.7.0.20220726`.
See https://github.com/libprima/prima/actions/runs/7894696232/job/21545822585
Note, however, that the following run was successful:
https://github.com/libprima/prima/actions/runs/7894650578/job/21545696890
Checking the runner images (See "Set up job" section of the log), I found the following.
Failure (for https://github.com/libprima/prima/actions/runs/7894696232/job/21545822585):
```
Image: macos-13
Version: 20240204.1
Included Software: https://github.com/actions/runner-images/blob/macos-13/20240204.1/images/macos/macos-13-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/macos-13%2F20240204.1
```
Success (for https://github.com/libprima/prima/actions/runs/7894650578/job/21545696890):
```
Image: macos-13
Version: 20240114.1
Included Software: https://github.com/actions/runner-images/blob/macos-13/20240114.1/images/macos/macos-13-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/macos-13%2F20240114.1
```
We can see that the two runs used different versions of the image. In particular, following the "Included Software" link, I find that the failing run used `Clang/LLVM 15.0.0`, while the successful one used `Clang/LLVM 14.0.3`. I am not sure whether this is the reason for the failure (doesn't `clang` provide `ld` on macOS-13?).
I also note that `gfortran` works fine (maybe due to the `ld` it uses?).
Thanks for taking a look.
Best regards,
Zaikun
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVt9v2zYQ_mvol0ME6vTD1oMf0gQCDLQb0GwdsDdKPElsKDIgqRjpXz-QtmsbS4qt-4ECQSSLvLvvviO_O-G9G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