<div dir="ltr"><div>Apparently the compilation in CI changed for MacOS</div><div>Before it was using <span class="gmail-CheckStep-line-content gmail-d-inline-block gmail-flex-auto gmail-tmp-ml-3 gmail-js-check-line-content"><span class="gmail-">Clang 19.1.7, and now Clang 21.1.0</span></span></div><div><span class="gmail-CheckStep-line-content gmail-d-inline-block gmail-flex-auto gmail-tmp-ml-3 gmail-js-check-line-content"><span class="gmail-"><br></span></span></div><div><span class="gmail-CheckStep-line-content gmail-d-inline-block gmail-flex-auto gmail-tmp-ml-3 gmail-js-check-line-content"><span class="gmail-">Unfortunately it does not compile with Clang 21.1.0</span></span></div><div><span class="gmail-CheckStep-line-content gmail-d-inline-block gmail-flex-auto gmail-tmp-ml-3 gmail-js-check-line-content"><span class="gmail-"><br></span></span></div><div><span class="gmail-CheckStep-line-content gmail-d-inline-block gmail-flex-auto gmail-tmp-ml-3 gmail-js-check-line-content"><span class="gmail-">I have seen two different problems. Sometimes it is complaining about the linker:</span></span></div><div><span class="gmail-CheckStep-line-content gmail-d-inline-block gmail-flex-auto gmail-tmp-ml-3 gmail-js-check-line-content"><span class="gmail-"><br></span></span></div><div><a href="https://github.com/OSGeo/PROJ/actions/runs/31825301827/job/94847898881">https://github.com/OSGeo/PROJ/actions/runs/31825301827/job/94847898881</a></div><div><br></div><div><span style="font-family:monospace">    Linking C executable cmTC_51f2b<br>    /Users/runner/micromamba/envs/proj/bin/cmake -E cmake_link_script CMakeFiles/cmTC_51f2b.dir/link.txt --verbose=1<br>    ld: -lto_library library filename must be 'libLTO.dylib'<br>    clang: error: linker command failed with exit code 1 (use -v to see invocation)<span class="gmail-CheckStep-line-content gmail-d-inline-block gmail-flex-auto gmail-tmp-ml-3 gmail-js-check-line-content"><span class="gmail-"> </span></span></span></div><div><span class="gmail-CheckStep-line-content gmail-d-inline-block gmail-flex-auto gmail-tmp-ml-3 gmail-js-check-line-content"><span class="gmail-"><br></span></span></div><div><span class="gmail-CheckStep-line-content gmail-d-inline-block gmail-flex-auto gmail-tmp-ml-3 gmail-js-check-line-content"><span class="gmail-"><br></span></span></div><div><span class="gmail-CheckStep-line-content gmail-d-inline-block gmail-flex-auto gmail-tmp-ml-3 gmail-js-check-line-content"><span class="gmail-">Others it is showing two compilation errors:</span></span></div><div><span class="gmail-CheckStep-line-content gmail-d-inline-block gmail-flex-auto gmail-tmp-ml-3 gmail-js-check-line-content"><span class="gmail-"><br></span></span></div><div><a href="https://github.com/jjimenezshaw/PROJ/actions/runs/31823956660/job/94843554428">https://github.com/jjimenezshaw/PROJ/actions/runs/31823956660/job/94843554428</a></div><div><br></div><div><span style="font-family:monospace">In file included from /Users/runner/work/PROJ/PROJ/build_from_dist/proj-9.9.0/shared_build/_deps/googletest-src/googletest/include/gtest/gtest-matchers.h:49:<br>/Users/runner/work/PROJ/PROJ/build_from_dist/proj-9.9.0/shared_build/_deps/googletest-src/googletest/include/gtest/gtest-printers.h:520:35: error: implicit conversion from 'char16_t' to 'char32_t' may change the meaning of the represented code unit [-Werror,-Wcharacter-conversion]<br>  520 |   PrintTo(ImplicitCast_<char32_t>(c), os);<br>      |           ~~~~~~~~~~~~~           ^<br>1 error generated.<br><br></span></div><div><span style="font-family:monospace">...</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">[ 30%] Linking CXX shared library ../lib/libproj.dylib<br>Undefined symbols for architecture arm64:<br>  "___divdc3", referenced from:<br>      complex_horner_iterative_inverse_4d(PJ_COORD&, PJconsts*) in unity_22_cxx.cxx.o<br>ld: symbol(s) not found for architecture arm64<br>clang++: error: linker command failed with exit code 1 (use -v to see invocation)</span><br><br></div><div><br></div><div>Any idea how to fix it? I have no idea what is the condition to trigger each scenario.</div><div><br></div><div>Thanks</div><div>Javier</div></div>