[postgis-tickets] [PostGIS] #5400: GHA ci is failing on PG15-clang-geos311-gdal35 C compiler works... no

PostGIS trac at osgeo.org
Fri Jun 16 17:44:53 PDT 2023


#5400: GHA ci is failing on PG15-clang-geos311-gdal35  C compiler works... no
-------------------------+--------------------------------------
  Reporter:  robe        |      Owner:  robe
      Type:  defect      |     Status:  assigned
  Priority:  blocker     |  Milestone:  Website Management, Bots
 Component:  management  |    Version:  3.3.x
Resolution:              |   Keywords:
-------------------------+--------------------------------------
Comment (by robe):

 Okay looked at this closer, putting in an echo on clang --version

 It looks like our scripts in github/run_usan_clang.sh are hard-coded to
 work with clang 11.
 I suspect this broken when debian-slim (I'm guessing it's based on
 bookworm but haven't looked) started shipping with clang 14.

 I discovered this by having the script output clang --version.

 https://github.com/robe2/postgis/actions/runs/5295165329/jobs/9585211344

 The PG13 clang that still works was built a while ago and shows:


 {{{
  Debian clang version 11.0.1-2
 }}}


 While the new one pg15-clang-geos311-gdal35-proj90

 shows:
 {{{
 Debian clang version 14.0.6
 Target: x86_64-pc-linux-gnu
 }}}

 and errors out in the usan_clang script:


 {{{
 ERROR: ld.so: object '/usr/lib/clang/11/lib/linux/libclang_rt.asan-
 x86_64.so' from LD_PRELOAD cannot be preloaded (cannot open shared object
 file): ignored.
 }}}

 I'm going to confirm that by hardcoding 14 and if that works try to make
 it conditional based on clang version
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5400#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list