[PROJ] Problems in CI: MacOS build

Javier Jimenez Shaw j1 at jimenezshaw.com
Sat Aug 15 03:11:57 PDT 2026


Apparently the compilation in CI changed for MacOS
Before it was using Clang 19.1.7, and now Clang 21.1.0

Unfortunately it does not compile with Clang 21.1.0

I have seen two different problems. Sometimes it is complaining about the
linker:

https://github.com/OSGeo/PROJ/actions/runs/31825301827/job/94847898881

    Linking C executable cmTC_51f2b
    /Users/runner/micromamba/envs/proj/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_51f2b.dir/link.txt --verbose=1
    ld: -lto_library library filename must be 'libLTO.dylib'
    clang: error: linker command failed with exit code 1 (use -v to see
invocation)


Others it is showing two compilation errors:

https://github.com/jjimenezshaw/PROJ/actions/runs/31823956660/job/94843554428

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:
/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]
  520 |   PrintTo(ImplicitCast_<char32_t>(c), os);
      |           ~~~~~~~~~~~~~           ^
1 error generated.

...

[ 30%] Linking CXX shared library ../lib/libproj.dylib
Undefined symbols for architecture arm64:
  "___divdc3", referenced from:
      complex_horner_iterative_inverse_4d(PJ_COORD&, PJconsts*) in
unity_22_cxx.cxx.o
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)


Any idea how to fix it? I have no idea what is the condition to trigger
each scenario.

Thanks
Javier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20260815/944cfd65/attachment.htm>


More information about the PROJ mailing list