[gdal-dev] GDAL 3.11.0 "Eganville" beta1 available for testing

Greg Troxel gdt at lexort.com
Thu Apr 17 16:50:04 PDT 2025


Even Rouault <even.rouault at spatialys.com> writes:

> those errors are related to the new float16 (RFC100) support. Support
> for that type is a bit weak with some compilers / C/C++ libraries. Can
> you give a try at https://github.com/OSGeo/gdal/pull/12165 ?

Thanks for the quick fix!  With that patch, I get a successful build.

I have a few remaining warnings, which I don't claim are new in 3.11,
but they don't seem like incorrect warnings at first glance.  The first
file may also have missing std::, resulting in calling the C function abs
rather than C++ std::abs, but that's still not float?

I've trimmed the build log; happy to send the whole thing if helpful.
The rest of it, aside from some harmless-looking cmake warnings, is
clean.

[106/1299] Building CXX object alg/CMakeFiles/alg.dir/gdal_homography.cpp.o
/tmp/work/geography/gdal-lib/work/gdal-3.11.0beta1/alg/gdal_homography.cpp: In function 'int GDALGCPsToHomography(int, const GDAL_GCP*, double*)':
/tmp/work/geography/gdal-lib/work/gdal-3.11.0beta1/alg/gdal_homography.cpp:265:25: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion]
  265 |     if (abs(h_normalized(6, 0)) < 1.0e-15)
      |             ~~~~~~~~~~~~^~~~~~
/tmp/work/geography/gdal-lib/work/gdal-3.11.0beta1/alg/gdal_homography.cpp: In function 'int GDALApplyHomography(const double*, double, double, double*, double*)':
/tmp/work/geography/gdal-lib/work/gdal-3.11.0beta1/alg/gdal_homography.cpp:394:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion]
  394 |     if (abs(w) < 1.0e-15)
      |             ^
/tmp/work/geography/gdal-lib/work/gdal-3.11.0beta1/alg/gdal_homography.cpp: In function 'int GDALHomographyTransform(void*, int, int, double*, double*, double*, int*)':
/tmp/work/geography/gdal-lib/work/gdal-3.11.0beta1/alg/gdal_homography.cpp:573:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion]
  573 |         if (abs(w) < 1.0e-15)
      |                 ^


[956/1299] Building CXX object ogr/ogrsf_frmts/sqlite/CMakeFiles/ogr_SQLite.dir/ogrsqlitevirtualogr.cpp.o
In file included from /tmp/work/geography/gdal-lib/work/gdal-3.11.0beta1/ogr/ogrsf_frmts/sqlite/ogrsqlitesqlfunctionscommon.cpp:22,
                 from /tmp/work/geography/gdal-lib/work/gdal-3.11.0beta1/ogr/ogrsf_frmts/sqlite/ogrsqlitesqlfunctions.cpp:34,
                 from /tmp/work/geography/gdal-lib/work/gdal-3.11.0beta1/ogr/ogrsf_frmts/sqlite/ogrsqlitevirtualogr.cpp:140:
/tmp/work/geography/gdal-lib/work/gdal-3.11.0beta1/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp: In function 'void OGRSQLiteREGEXPFunction(sqlite3_context*, int, sqlite3_value**)':
/tmp/work/geography/gdal-lib/work/gdal-3.11.0beta1/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:212:62: warning: use of old-style cast to 'const char*' [-Wold-style-cast]
  212 |     const char *re = (const char *)sqlite3_value_text(argv[0]);
      |                                                              ^
      |                      --------------
      |                      reinterpret_cast<const char *> (         )
/tmp/work/geography/gdal-lib/work/gdal-3.11.0beta1/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:225:63: warning: use of old-style cast to 'const char*' [-Wold-style-cast]
  225 |     const char *str = (const char *)sqlite3_value_text(argv[1]);
      |                                                               ^
      |                       --------------
      |                       reinterpret_cast<const char *> (         )
/tmp/work/geography/gdal-lib/work/gdal-3.11.0beta1/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:233:62: warning: use of old-style cast to 'struct cache_entry*' [-Wold-style-cast]
  233 |     cache_entry *cache = (cache_entry *)sqlite3_user_data(ctx);
      |                                                              ^
      |                          -
      |                          static_cast<  -
      |                                        > (                    )


More information about the gdal-dev mailing list