Toblerity / Fiona

Fiona reads and writes geographic data files
https://fiona.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.14k stars 201 forks source link

1.9.6: build fails with `-Wincompatible-pointer-types` #1365

Open kloczek opened 3 months ago

kloczek commented 3 months ago

With latest glibc and -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS in $CFLAGS glibc headers are turning some warnings into errors

INFO:root:/usr/bin/gcc -shared -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security build/temp.linux-x86_64-cpython-39/fiona/crs.o -L/usr/lib64 -L/usr/lib64 -lgdal -o build/lib.linux-x86_64-cpython-39/fiona/crs.cpython-39-x86_64-linux-gnu.so
INFO:root:building 'fiona._env' extension
INFO:root:/usr/bin/gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -fPIC -I/usr/include -I/usr/include/python3.9 -c fiona/_env.c -o build/temp.linux-x86_64-cpython-39/fiona/_env.o
fiona/_env.c: In function ‘__pyx_f_5fiona_4_env_set_proj_search_path’:
fiona/_env.c:4226:32: error: passing argument 1 of ‘CSLAddString’ from incompatible pointer type [-Wincompatible-pointer-types]
 4226 |   __pyx_v_paths = CSLAddString(__pyx_v_paths, __pyx_v_path_c);
      |                                ^~~~~~~~~~~~~
      |                                |
      |                                const char **
In file included from fiona/_env.c:1231:
/usr/include/cpl_string.h:65:36: note: expected ‘char **’ but argument is of type ‘const char **’
   65 | char CPL_DLL **CSLAddString(char **papszStrList,
      |                             ~~~~~~~^~~~~~~~~~~~
fiona/_env.c:4226:17: error: assignment to ‘const char **’ from incompatible pointer type ‘char **’ [-Wincompatible-pointer-types]
 4226 |   __pyx_v_paths = CSLAddString(__pyx_v_paths, __pyx_v_path_c);
      |                 ^
error: command '/usr/bin/gcc' failed with exit code 1
kloczek commented 3 months ago

There are more warnings. Here is full build output where is possible to see some build warnings as well

```console + /usr/bin/python3 -sBm build -w --no-isolation * Getting build dependencies for wheel... /usr/lib/python3.9/site-packages/setuptools/_distutils/extension.py:134: UserWarning: Unknown Extension options: 'cython_compile_time_env' warnings.warn(msg) Compiling fiona/_geometry.pyx because it changed. Compiling fiona/schema.pyx because it changed. Compiling fiona/_transform.pyx because it changed. Compiling fiona/crs.pyx because it changed. Compiling fiona/_env.pyx because it changed. Compiling fiona/_err.pyx because it changed. Compiling fiona/ogrext.pyx because it changed. [1/7] Cythonizing fiona/_env.pyx warning: fiona/gdal.pxi:137:4: 'OGRErr' redeclared warning: fiona/_env.pxd:5:30: Function signature does not match previous declaration warning: fiona/_env.pyx:152:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310 performance hint: fiona/_env.pyx:141:5: Exception check on 'log_error' will always require the GIL to be acquired. Possible solutions: 1. Declare 'log_error' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions. 2. Use an 'int' return type on 'log_error' to allow an error code to be returned. performance hint: fiona/_env.pyx:157:9: Exception check on 'logging_error_handler' will always require the GIL to be acquired. Possible solutions: 1. Declare 'logging_error_handler' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions. 2. Use an 'int' return type on 'logging_error_handler' to allow an error code to be returned. [2/7] Cythonizing fiona/_err.pyx [3/7] Cythonizing fiona/_geometry.pyx warning: fiona/gdal.pxi:140:4: 'OGRwkbGeometryType' redeclared warning: fiona/gdal.pxi:88:4: 'OGRErr' redeclared warning: fiona/gdal.pxi:137:4: 'OGRErr' redeclared warning: fiona/gdal.pxi:141:8: 'wkbUnknown' redeclared warning: fiona/gdal.pxi:142:8: 'wkbPoint' redeclared warning: fiona/gdal.pxi:143:8: 'wkbLineString' redeclared warning: fiona/gdal.pxi:144:8: 'wkbPolygon' redeclared warning: fiona/gdal.pxi:145:8: 'wkbMultiPoint' redeclared warning: fiona/gdal.pxi:146:8: 'wkbMultiLineString' redeclared warning: fiona/gdal.pxi:147:8: 'wkbMultiPolygon' redeclared warning: fiona/gdal.pxi:148:8: 'wkbGeometryCollection' redeclared warning: fiona/gdal.pxi:149:8: 'wkbCircularString' redeclared warning: fiona/gdal.pxi:150:8: 'wkbCompoundCurve' redeclared warning: fiona/gdal.pxi:151:8: 'wkbCurvePolygon' redeclared warning: fiona/gdal.pxi:152:8: 'wkbMultiCurve' redeclared warning: fiona/gdal.pxi:153:8: 'wkbMultiSurface' redeclared warning: fiona/gdal.pxi:154:8: 'wkbCurve' redeclared warning: fiona/gdal.pxi:155:8: 'wkbSurface' redeclared warning: fiona/gdal.pxi:156:8: 'wkbPolyhedralSurface' redeclared warning: fiona/gdal.pxi:157:8: 'wkbTIN' redeclared warning: fiona/gdal.pxi:158:8: 'wkbTriangle' redeclared warning: fiona/gdal.pxi:159:8: 'wkbNone' redeclared warning: fiona/gdal.pxi:160:8: 'wkbLinearRing' redeclared warning: fiona/gdal.pxi:161:8: 'wkbCircularStringZ' redeclared warning: fiona/gdal.pxi:162:8: 'wkbCompoundCurveZ' redeclared warning: fiona/gdal.pxi:163:8: 'wkbCurvePolygonZ' redeclared warning: fiona/gdal.pxi:164:8: 'wkbMultiCurveZ' redeclared warning: fiona/gdal.pxi:165:8: 'wkbMultiSurfaceZ' redeclared warning: fiona/gdal.pxi:166:8: 'wkbCurveZ' redeclared warning: fiona/gdal.pxi:167:8: 'wkbSurfaceZ' redeclared warning: fiona/gdal.pxi:168:8: 'wkbPolyhedralSurfaceZ' redeclared warning: fiona/gdal.pxi:169:8: 'wkbTINZ' redeclared warning: fiona/gdal.pxi:170:8: 'wkbTriangleZ' redeclared warning: fiona/gdal.pxi:171:8: 'wkbPointM' redeclared warning: fiona/gdal.pxi:172:8: 'wkbLineStringM' redeclared warning: fiona/gdal.pxi:173:8: 'wkbPolygonM' redeclared warning: fiona/gdal.pxi:174:8: 'wkbMultiPointM' redeclared warning: fiona/gdal.pxi:175:8: 'wkbMultiLineStringM' redeclared warning: fiona/gdal.pxi:176:8: 'wkbMultiPolygonM' redeclared warning: fiona/gdal.pxi:177:8: 'wkbGeometryCollectionM' redeclared warning: fiona/gdal.pxi:178:8: 'wkbCircularStringM' redeclared warning: fiona/gdal.pxi:179:8: 'wkbCompoundCurveM' redeclared warning: fiona/gdal.pxi:180:8: 'wkbCurvePolygonM' redeclared warning: fiona/gdal.pxi:181:8: 'wkbMultiCurveM' redeclared warning: fiona/gdal.pxi:182:8: 'wkbMultiSurfaceM' redeclared warning: fiona/gdal.pxi:183:8: 'wkbCurveM' redeclared warning: fiona/gdal.pxi:184:8: 'wkbSurfaceM' redeclared warning: fiona/gdal.pxi:185:8: 'wkbPolyhedralSurfaceM' redeclared warning: fiona/gdal.pxi:186:8: 'wkbTINM' redeclared warning: fiona/gdal.pxi:187:8: 'wkbTriangleM' redeclared warning: fiona/gdal.pxi:188:8: 'wkbPointZM' redeclared warning: fiona/gdal.pxi:189:8: 'wkbLineStringZM' redeclared warning: fiona/gdal.pxi:190:8: 'wkbPolygonZM' redeclared warning: fiona/gdal.pxi:191:8: 'wkbMultiPointZM' redeclared warning: fiona/gdal.pxi:192:8: 'wkbMultiLineStringZM' redeclared warning: fiona/gdal.pxi:193:8: 'wkbMultiPolygonZM' redeclared warning: fiona/gdal.pxi:194:8: 'wkbGeometryCollectionZM' redeclared warning: fiona/gdal.pxi:195:8: 'wkbCircularStringZM' redeclared warning: fiona/gdal.pxi:196:8: 'wkbCompoundCurveZM' redeclared warning: fiona/gdal.pxi:197:8: 'wkbCurvePolygonZM' redeclared warning: fiona/gdal.pxi:198:8: 'wkbMultiCurveZM' redeclared warning: fiona/gdal.pxi:199:8: 'wkbMultiSurfaceZM' redeclared warning: fiona/gdal.pxi:200:8: 'wkbCurveZM' redeclared warning: fiona/gdal.pxi:201:8: 'wkbSurfaceZM' redeclared warning: fiona/gdal.pxi:202:8: 'wkbPolyhedralSurfaceZM' redeclared warning: fiona/gdal.pxi:203:8: 'wkbTINZM' redeclared warning: fiona/gdal.pxi:204:8: 'wkbTriangleZM' redeclared warning: fiona/gdal.pxi:205:8: 'wkbPoint25D' redeclared warning: fiona/gdal.pxi:206:8: 'wkbLineString25D' redeclared warning: fiona/gdal.pxi:207:8: 'wkbPolygon25D' redeclared warning: fiona/gdal.pxi:208:8: 'wkbMultiPoint25D' redeclared warning: fiona/gdal.pxi:209:8: 'wkbMultiLineString25D' redeclared warning: fiona/gdal.pxi:210:8: 'wkbMultiPolygon25D' redeclared warning: fiona/gdal.pxi:211:8: 'wkbGeometryCollection25D' redeclared warning: fiona/gdal.pxi:523:36: Function signature does not match previous declaration warning: fiona/gdal.pxi:525:23: Function signature does not match previous declaration warning: fiona/gdal.pxi:526:26: Function signature does not match previous declaration warning: fiona/gdal.pxi:527:25: Function signature does not match previous declaration warning: fiona/gdal.pxi:528:37: Function signature does not match previous declaration warning: fiona/gdal.pxi:530:30: Function signature does not match previous declaration warning: fiona/gdal.pxi:531:9: Function signature does not match previous declaration warning: fiona/gdal.pxi:532:28: Function signature does not match previous declaration warning: fiona/gdal.pxi:533:36: Function signature does not match previous declaration warning: fiona/gdal.pxi:534:30: Function signature does not match previous declaration warning: fiona/gdal.pxi:535:15: Function signature does not match previous declaration warning: fiona/gdal.pxi:536:29: Function signature does not match previous declaration warning: fiona/gdal.pxi:537:37: Function signature does not match previous declaration warning: fiona/gdal.pxi:538:27: Function signature does not match previous declaration warning: fiona/gdal.pxi:539:21: Function signature does not match previous declaration warning: fiona/gdal.pxi:540:21: Function signature does not match previous declaration warning: fiona/gdal.pxi:541:21: Function signature does not match previous declaration warning: fiona/gdal.pxi:542:30: Function signature does not match previous declaration warning: fiona/gdal.pxi:544:21: Function signature does not match previous declaration [4/7] Cythonizing fiona/_transform.pyx warning: fiona/gdal.pxi:137:4: 'OGRErr' redeclared warning: fiona/gdal.pxi:137:4: 'OGRErr' redeclared [5/7] Cythonizing fiona/crs.pyx warning: fiona/gdal.pxi:137:4: 'OGRErr' redeclared warning: fiona/gdal.pxi:137:4: 'OGRErr' redeclared warning: fiona/_env.pxd:5:30: Function signature does not match previous declaration [6/7] Cythonizing fiona/ogrext.pyx warning: fiona/gdal.pxi:137:4: 'OGRErr' redeclared warning: fiona/gdal.pxi:137:4: 'OGRErr' redeclared warning: fiona/ogrext.pyx:1044:35: Assigning to 'char *' from 'const char *' discards const qualifier warning: fiona/ogrext.pyx:2171:36: Assigning to 'char *' from 'const char *' discards const qualifier [7/7] Cythonizing fiona/schema.pyx INFO:root:running egg_info INFO:root:creating fiona.egg-info INFO:root:writing fiona.egg-info/PKG-INFO INFO:root:writing dependency_links to fiona.egg-info/dependency_links.txt INFO:root:writing entry points to fiona.egg-info/entry_points.txt INFO:root:writing requirements to fiona.egg-info/requires.txt INFO:root:writing top-level names to fiona.egg-info/top_level.txt INFO:root:writing manifest file 'fiona.egg-info/SOURCES.txt' INFO:root:dependency /usr/include/cpl_conv.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_error.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_string.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_vsi.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_alg.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_version.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdalwarper.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_core.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_srs_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/sys/stat.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_conv.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_error.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_string.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_vsi.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_alg.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_version.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdalwarper.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_core.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_geometry.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_spatialref.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_srs_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/sys/stat.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_conv.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_error.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_string.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_vsi.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_alg.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_version.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdalwarper.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_core.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_srs_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/sys/stat.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_conv.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_error.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_string.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_vsi.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_alg.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_version.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdalwarper.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_core.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_srs_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/sys/stat.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_error.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_vsi.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_core.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_conv.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_error.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_string.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_vsi.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_alg.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_version.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdalwarper.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_core.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_srs_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/sys/stat.h won't be automatically included in the manifest: the path must be relative INFO:root:reading manifest file 'fiona.egg-info/SOURCES.txt' INFO:root:reading manifest template 'MANIFEST.in' WARNING:root:warning: no previously-included files matching '.DS_Store' found anywhere in distribution WARNING:root:warning: no previously-included files matching '*.pyc' found anywhere in distribution WARNING:root:warning: no previously-included files matching '*' found under directory 'docs/data' WARNING:root:warning: no previously-included files matching '*' found under directory 'docs/_build' WARNING:root:warning: no previously-included files matching '*' found under directory '_build' WARNING:root:warning: no previously-included files matching '*' found under directory 'venv' WARNING:root:warning: no previously-included files found matching '*.txt' WARNING:root:warning: no previously-included files found matching 'tests/data/coutwildrnp.gpkg' WARNING:root:warning: no previously-included files found matching 'tests/data/coutwildrnp.json' WARNING:root:warning: no previously-included files found matching 'tests/data/coutwildrnp.tar' INFO:root:adding license file 'LICENSE.txt' INFO:root:writing manifest file 'fiona.egg-info/SOURCES.txt' * Building wheel... /usr/lib/python3.9/site-packages/setuptools/_distutils/extension.py:134: UserWarning: Unknown Extension options: 'cython_compile_time_env' warnings.warn(msg) INFO:root:running bdist_wheel INFO:root:running build INFO:root:running build_py INFO:root:creating build INFO:root:creating build/lib.linux-x86_64-cpython-39 INFO:root:creating build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/__init__.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/_show_versions.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/collection.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/compat.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/drvsupport.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/enums.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/env.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/errors.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/inspector.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/logutils.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/meta.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/model.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/path.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/rfc3339.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/session.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/transform.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/vfs.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/io.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/crs.py -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:creating build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/__init__.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/bounds.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/calc.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/cat.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/collect.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/distrib.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/dump.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/env.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/filter.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/helpers.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/info.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/insp.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/load.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/ls.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/main.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/options.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:copying fiona/fio/rm.py -> build/lib.linux-x86_64-cpython-39/fiona/fio INFO:root:creating build/lib.linux-x86_64-cpython-39/fiona/_vendor INFO:root:creating build/lib.linux-x86_64-cpython-39/fiona/_vendor/munch INFO:root:copying fiona/_vendor/munch/__init__.py -> build/lib.linux-x86_64-cpython-39/fiona/_vendor/munch INFO:root:copying fiona/_vendor/munch/python3_compat.py -> build/lib.linux-x86_64-cpython-39/fiona/_vendor/munch INFO:root:copying fiona/gdal.pxi -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/_cpl.pxd -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/_csl.pxd -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/_env.pxd -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/_err.pxd -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/_geometry.pxd -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/crs.pxd -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/ogrext1.pxd -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/ogrext2.pxd -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:copying fiona/ogrext3.pxd -> build/lib.linux-x86_64-cpython-39/fiona INFO:root:running build_ext INFO:root:building 'fiona._geometry' extension INFO:root:creating build/temp.linux-x86_64-cpython-39 INFO:root:creating build/temp.linux-x86_64-cpython-39/fiona INFO:root:/usr/bin/gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wno-error=incompatible-pointer-types -fPIC -I/usr/include -I/usr/include/python3.9 -c fiona/_geometry.c -o build/temp.linux-x86_64-cpython-39/fiona/_geometry.o INFO:root:/usr/bin/gcc -shared -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wno-error=incompatible-pointer-types build/temp.linux-x86_64-cpython-39/fiona/_geometry.o -L/usr/lib64 -L/usr/lib64 -lgdal -o build/lib.linux-x86_64-cpython-39/fiona/_geometry.cpython-39-x86_64-linux-gnu.so INFO:root:building 'fiona.schema' extension INFO:root:/usr/bin/gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wno-error=incompatible-pointer-types -fPIC -I/usr/include -I/usr/include/python3.9 -c fiona/schema.c -o build/temp.linux-x86_64-cpython-39/fiona/schema.o INFO:root:/usr/bin/gcc -shared -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wno-error=incompatible-pointer-types build/temp.linux-x86_64-cpython-39/fiona/schema.o -L/usr/lib64 -L/usr/lib64 -lgdal -o build/lib.linux-x86_64-cpython-39/fiona/schema.cpython-39-x86_64-linux-gnu.so INFO:root:building 'fiona._transform' extension INFO:root:/usr/bin/gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wno-error=incompatible-pointer-types -fPIC -I/usr/include -I/usr/include/python3.9 -c fiona/_transform.cpp -o build/temp.linux-x86_64-cpython-39/fiona/_transform.o -std=c++11 INFO:root:/usr/bin/g++ -shared -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wno-error=incompatible-pointer-types build/temp.linux-x86_64-cpython-39/fiona/_transform.o -L/usr/lib64 -L/usr/lib64 -lgdal -o build/lib.linux-x86_64-cpython-39/fiona/_transform.cpython-39-x86_64-linux-gnu.so INFO:root:building 'fiona.crs' extension INFO:root:/usr/bin/gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wno-error=incompatible-pointer-types -fPIC -I/usr/include -I/usr/include/python3.9 -c fiona/crs.c -o build/temp.linux-x86_64-cpython-39/fiona/crs.o fiona/crs.c:16075:18: warning: ‘__pyx_pw_5fiona_3crs_3CRS_35__hash__’ defined but not used [-Wunused-function] 16075 | static Py_hash_t __pyx_pw_5fiona_3crs_3CRS_35__hash__(PyObject *__pyx_v_self) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ INFO:root:/usr/bin/gcc -shared -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wno-error=incompatible-pointer-types build/temp.linux-x86_64-cpython-39/fiona/crs.o -L/usr/lib64 -L/usr/lib64 -lgdal -o build/lib.linux-x86_64-cpython-39/fiona/crs.cpython-39-x86_64-linux-gnu.so INFO:root:building 'fiona._env' extension INFO:root:/usr/bin/gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wno-error=incompatible-pointer-types -fPIC -I/usr/include -I/usr/include/python3.9 -c fiona/_env.c -o build/temp.linux-x86_64-cpython-39/fiona/_env.o fiona/_env.c: In function ‘__pyx_f_5fiona_4_env_set_proj_search_path’: fiona/_env.c:4226:32: warning: passing argument 1 of ‘CSLAddString’ from incompatible pointer type [-Wincompatible-pointer-types] 4226 | __pyx_v_paths = CSLAddString(__pyx_v_paths, __pyx_v_path_c); | ^~~~~~~~~~~~~ | | | const char ** In file included from fiona/_env.c:1231: /usr/include/cpl_string.h:65:36: note: expected ‘char **’ but argument is of type ‘const char **’ 65 | char CPL_DLL **CSLAddString(char **papszStrList, | ~~~~~~~^~~~~~~~~~~~ fiona/_env.c:4226:17: warning: assignment to ‘const char **’ from incompatible pointer type ‘char **’ [-Wincompatible-pointer-types] 4226 | __pyx_v_paths = CSLAddString(__pyx_v_paths, __pyx_v_path_c); | ^ INFO:root:/usr/bin/gcc -shared -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wno-error=incompatible-pointer-types build/temp.linux-x86_64-cpython-39/fiona/_env.o -L/usr/lib64 -L/usr/lib64 -lgdal -o build/lib.linux-x86_64-cpython-39/fiona/_env.cpython-39-x86_64-linux-gnu.so INFO:root:building 'fiona._err' extension INFO:root:/usr/bin/gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wno-error=incompatible-pointer-types -fPIC -I/usr/include -I/usr/include/python3.9 -c fiona/_err.c -o build/temp.linux-x86_64-cpython-39/fiona/_err.o INFO:root:/usr/bin/gcc -shared -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wno-error=incompatible-pointer-types build/temp.linux-x86_64-cpython-39/fiona/_err.o -L/usr/lib64 -L/usr/lib64 -lgdal -o build/lib.linux-x86_64-cpython-39/fiona/_err.cpython-39-x86_64-linux-gnu.so INFO:root:building 'fiona.ogrext' extension INFO:root:/usr/bin/gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wno-error=incompatible-pointer-types -fPIC -I/usr/include -I/usr/include/python3.9 -c fiona/ogrext.c -o build/temp.linux-x86_64-cpython-39/fiona/ogrext.o fiona/ogrext.c: In function ‘__pyx_pf_5fiona_6ogrext_7Session_4start’: fiona/ogrext.c:32375:55: warning: passing argument 1 of ‘__pyx_f_5fiona_6ogrext_gdal_open_vector’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 32375 | __pyx_t_7 = __pyx_f_5fiona_6ogrext_gdal_open_vector(__pyx_v_path_c, 0, __pyx_v_drivers, __pyx_v_kwargs); if (unlikely(__pyx_t_7 == ((void *)NULL))) __PYX_ERR(0, 588, __pyx_L1_error) | ^~~~~~~~~~~~~~ fiona/ogrext.c:22838:60: note: expected ‘char *’ but argument is of type ‘const char *’ 22838 | static void *__pyx_f_5fiona_6ogrext_gdal_open_vector(char *__pyx_v_path_c, int __pyx_v_mode, PyObject *__pyx_v_drivers, PyObject *__pyx_v_options) { | ~~~~~~^~~~~~~~~~~~~~ fiona/ogrext.c: In function ‘__pyx_pf_5fiona_6ogrext_7Session_36get_tag_item’: fiona/ogrext.c:38958:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 38958 | __pyx_v_value = GDALGetMetadataItem(__pyx_v_obj, __pyx_v_name, __pyx_v_domain); | ^ fiona/ogrext.c: In function ‘__pyx_pf_5fiona_6ogrext_14WritingSession_start’: fiona/ogrext.c:39769:36: warning: passing argument 1 of ‘CPLCheckForFile’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 39769 | __pyx_t_2 = (!(CPLCheckForFile(__pyx_v_path_c, NULL) != 0)); | ^~~~~~~~~~~~~~ In file included from fiona/ogrext.c:1247: /usr/include/cpl_conv.h:195:35: note: expected ‘char *’ but argument is of type ‘const char *’ 195 | int CPL_DLL CPLCheckForFile(char *pszFilename, char **papszSiblingList); | ~~~~~~^~~~~~~~~~~ fiona/ogrext.c:39820:62: warning: passing argument 1 of ‘__pyx_f_5fiona_6ogrext_gdal_open_vector’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 39820 | __pyx_t_10 = __pyx_f_5fiona_6ogrext_gdal_open_vector(__pyx_v_path_c, 1, Py_None, __pyx_v_kwargs); if (unlikely(__pyx_t_10 == ((void *)NULL))) __PYX_ERR(0, 1079, __pyx_L5_error) | ^~~~~~~~~~~~~~ fiona/ogrext.c:22838:60: note: expected ‘char *’ but argument is of type ‘const char *’ 22838 | static void *__pyx_f_5fiona_6ogrext_gdal_open_vector(char *__pyx_v_path_c, int __pyx_v_mode, PyObject *__pyx_v_drivers, PyObject *__pyx_v_options) { | ~~~~~~^~~~~~~~~~~~~~ fiona/ogrext.c:40328:36: warning: passing argument 1 of ‘CPLCheckForFile’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 40328 | __pyx_t_2 = (!(CPLCheckForFile(__pyx_v_path_c, NULL) != 0)); | ^~~~~~~~~~~~~~ /usr/include/cpl_conv.h:195:35: note: expected ‘char *’ but argument is of type ‘const char *’ 195 | int CPL_DLL CPLCheckForFile(char *pszFilename, char **papszSiblingList); | ~~~~~~^~~~~~~~~~~ fiona/ogrext.c:40852:66: warning: passing argument 1 of ‘__pyx_f_5fiona_6ogrext_gdal_open_vector’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 40852 | __pyx_t_10 = __pyx_f_5fiona_6ogrext_gdal_open_vector(__pyx_v_path_c, 1, Py_None, __pyx_v_kwargs); if (unlikely(__pyx_t_10 == ((void *)NULL))) __PYX_ERR(0, 1128, __pyx_L56_error) | ^~~~~~~~~~~~~~ fiona/ogrext.c:22838:60: note: expected ‘char *’ but argument is of type ‘const char *’ 22838 | static void *__pyx_f_5fiona_6ogrext_gdal_open_vector(char *__pyx_v_path_c, int __pyx_v_mode, PyObject *__pyx_v_drivers, PyObject *__pyx_v_options) { | ~~~~~~^~~~~~~~~~~~~~ fiona/ogrext.c: In function ‘__pyx_pf_5fiona_6ogrext_11_listlayers’: fiona/ogrext.c:54164:55: warning: passing argument 1 of ‘__pyx_f_5fiona_6ogrext_gdal_open_vector’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 54164 | __pyx_t_6 = __pyx_f_5fiona_6ogrext_gdal_open_vector(__pyx_v_path_c, 0, Py_None, __pyx_v_kwargs); if (unlikely(__pyx_t_6 == ((void *)NULL))) __PYX_ERR(0, 1885, __pyx_L1_error) | ^~~~~~~~~~~~~~ fiona/ogrext.c:22838:60: note: expected ‘char *’ but argument is of type ‘const char *’ 22838 | static void *__pyx_f_5fiona_6ogrext_gdal_open_vector(char *__pyx_v_path_c, int __pyx_v_mode, PyObject *__pyx_v_drivers, PyObject *__pyx_v_options) { | ~~~~~~^~~~~~~~~~~~~~ fiona/ogrext.c: In function ‘__pyx_pf_5fiona_6ogrext_19_get_metadata_item’: fiona/ogrext.c:59299:22: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 59299 | __pyx_v_metadata_c = GDALGetMetadataItem(__pyx_v_cogr_driver, __pyx_t_9, NULL); | ^ fiona/ogrext.c: In function ‘__pyx_pf_5fiona_6ogrext_14WritingSession_start’: fiona/ogrext.c:41331:38: warning: ‘__pyx_v_cogr_ds’ may be used uninitialized [-Wmaybe-uninitialized] 41331 | __pyx_v_self->__pyx_base.cogr_ds = __pyx_v_cogr_ds; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ fiona/ogrext.c:39515:9: note: ‘__pyx_v_cogr_ds’ was declared here 39515 | void *__pyx_v_cogr_ds; | ^~~~~~~~~~~~~~~ INFO:root:/usr/bin/gcc -shared -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wno-error=incompatible-pointer-types build/temp.linux-x86_64-cpython-39/fiona/ogrext.o -L/usr/lib64 -L/usr/lib64 -lgdal -o build/lib.linux-x86_64-cpython-39/fiona/ogrext.cpython-39-x86_64-linux-gnu.so INFO:wheel:installing to build/bdist.linux-x86_64/wheel INFO:root:running install INFO:root:running install_lib INFO:root:creating build/bdist.linux-x86_64 INFO:root:creating build/bdist.linux-x86_64/wheel INFO:root:creating build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/__init__.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/_show_versions.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/collection.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/compat.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/drvsupport.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/enums.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/env.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/errors.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/inspector.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/logutils.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/meta.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/model.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/path.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/rfc3339.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/session.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/transform.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/vfs.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/io.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/crs.py -> build/bdist.linux-x86_64/wheel/fiona INFO:root:creating build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/__init__.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/bounds.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/calc.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/cat.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/collect.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/distrib.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/dump.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/env.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/filter.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/helpers.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/info.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/insp.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/load.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/ls.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/main.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/options.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/fio/rm.py -> build/bdist.linux-x86_64/wheel/fiona/fio INFO:root:creating build/bdist.linux-x86_64/wheel/fiona/_vendor INFO:root:creating build/bdist.linux-x86_64/wheel/fiona/_vendor/munch INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/_vendor/munch/__init__.py -> build/bdist.linux-x86_64/wheel/fiona/_vendor/munch INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/_vendor/munch/python3_compat.py -> build/bdist.linux-x86_64/wheel/fiona/_vendor/munch INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/gdal.pxi -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/_cpl.pxd -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/_csl.pxd -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/_env.pxd -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/_err.pxd -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/_geometry.pxd -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/crs.pxd -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/ogrext1.pxd -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/ogrext2.pxd -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/ogrext3.pxd -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/_geometry.cpython-39-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/schema.cpython-39-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/_transform.cpython-39-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/crs.cpython-39-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/_env.cpython-39-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/_err.cpython-39-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/fiona INFO:root:copying build/lib.linux-x86_64-cpython-39/fiona/ogrext.cpython-39-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/fiona INFO:root:running install_egg_info INFO:root:running egg_info INFO:root:writing fiona.egg-info/PKG-INFO INFO:root:writing dependency_links to fiona.egg-info/dependency_links.txt INFO:root:writing entry points to fiona.egg-info/entry_points.txt INFO:root:writing requirements to fiona.egg-info/requires.txt INFO:root:writing top-level names to fiona.egg-info/top_level.txt INFO:root:dependency /usr/include/cpl_conv.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_error.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_string.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_vsi.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_alg.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_version.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdalwarper.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_core.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_srs_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/sys/stat.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_conv.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_error.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_string.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_vsi.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_alg.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_version.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdalwarper.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_core.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_geometry.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_spatialref.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_srs_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/sys/stat.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_conv.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_error.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_string.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_vsi.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_alg.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_version.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdalwarper.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_core.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_srs_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/sys/stat.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_conv.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_error.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_string.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_vsi.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_alg.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_version.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdalwarper.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_core.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_srs_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/sys/stat.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_error.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_vsi.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_core.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_conv.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_error.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_string.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/cpl_vsi.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_alg.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdal_version.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/gdalwarper.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_core.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/ogr_srs_api.h won't be automatically included in the manifest: the path must be relative INFO:root:dependency /usr/include/sys/stat.h won't be automatically included in the manifest: the path must be relative INFO:root:reading manifest file 'fiona.egg-info/SOURCES.txt' INFO:root:reading manifest template 'MANIFEST.in' WARNING:root:warning: no previously-included files matching '.DS_Store' found anywhere in distribution WARNING:root:warning: no previously-included files matching '*.pyc' found anywhere in distribution WARNING:root:warning: no previously-included files matching '*' found under directory 'docs/data' WARNING:root:warning: no previously-included files matching '*' found under directory 'docs/_build' WARNING:root:warning: no previously-included files matching '*' found under directory '_build' WARNING:root:warning: no previously-included files matching '*' found under directory 'venv' WARNING:root:warning: no previously-included files found matching 'tests/data/coutwildrnp.gpkg' WARNING:root:warning: no previously-included files found matching 'tests/data/coutwildrnp.json' WARNING:root:warning: no previously-included files found matching 'tests/data/coutwildrnp.tar' INFO:root:adding license file 'LICENSE.txt' INFO:root:writing manifest file 'fiona.egg-info/SOURCES.txt' INFO:root:Copying fiona.egg-info to build/bdist.linux-x86_64/wheel/fiona-1.9.6-py3.9.egg-info INFO:root:running install_scripts INFO:wheel:creating build/bdist.linux-x86_64/wheel/fiona-1.9.6.dist-info/WHEEL INFO:wheel:creating '/home/tkloczko/rpmbuild/BUILD/Fiona-1.9.6/dist/.tmp-ugc2zjh1/fiona-1.9.6-cp39-cp39-linux_x86_64.whl' and adding 'build/bdist.linux-x86_64/wheel' to it INFO:wheel:adding 'fiona/__init__.py' INFO:wheel:adding 'fiona/_cpl.pxd' INFO:wheel:adding 'fiona/_csl.pxd' INFO:wheel:adding 'fiona/_env.cpython-39-x86_64-linux-gnu.so' INFO:wheel:adding 'fiona/_env.pxd' INFO:wheel:adding 'fiona/_err.cpython-39-x86_64-linux-gnu.so' INFO:wheel:adding 'fiona/_err.pxd' INFO:wheel:adding 'fiona/_geometry.cpython-39-x86_64-linux-gnu.so' INFO:wheel:adding 'fiona/_geometry.pxd' INFO:wheel:adding 'fiona/_show_versions.py' INFO:wheel:adding 'fiona/_transform.cpython-39-x86_64-linux-gnu.so' INFO:wheel:adding 'fiona/collection.py' INFO:wheel:adding 'fiona/compat.py' INFO:wheel:adding 'fiona/crs.cpython-39-x86_64-linux-gnu.so' INFO:wheel:adding 'fiona/crs.pxd' INFO:wheel:adding 'fiona/crs.py' INFO:wheel:adding 'fiona/drvsupport.py' INFO:wheel:adding 'fiona/enums.py' INFO:wheel:adding 'fiona/env.py' INFO:wheel:adding 'fiona/errors.py' INFO:wheel:adding 'fiona/gdal.pxi' INFO:wheel:adding 'fiona/inspector.py' INFO:wheel:adding 'fiona/io.py' INFO:wheel:adding 'fiona/logutils.py' INFO:wheel:adding 'fiona/meta.py' INFO:wheel:adding 'fiona/model.py' INFO:wheel:adding 'fiona/ogrext.cpython-39-x86_64-linux-gnu.so' INFO:wheel:adding 'fiona/ogrext1.pxd' INFO:wheel:adding 'fiona/ogrext2.pxd' INFO:wheel:adding 'fiona/ogrext3.pxd' INFO:wheel:adding 'fiona/path.py' INFO:wheel:adding 'fiona/rfc3339.py' INFO:wheel:adding 'fiona/schema.cpython-39-x86_64-linux-gnu.so' INFO:wheel:adding 'fiona/session.py' INFO:wheel:adding 'fiona/transform.py' INFO:wheel:adding 'fiona/vfs.py' INFO:wheel:adding 'fiona/_vendor/munch/__init__.py' INFO:wheel:adding 'fiona/_vendor/munch/python3_compat.py' INFO:wheel:adding 'fiona/fio/__init__.py' INFO:wheel:adding 'fiona/fio/bounds.py' INFO:wheel:adding 'fiona/fio/calc.py' INFO:wheel:adding 'fiona/fio/cat.py' INFO:wheel:adding 'fiona/fio/collect.py' INFO:wheel:adding 'fiona/fio/distrib.py' INFO:wheel:adding 'fiona/fio/dump.py' INFO:wheel:adding 'fiona/fio/env.py' INFO:wheel:adding 'fiona/fio/filter.py' INFO:wheel:adding 'fiona/fio/helpers.py' INFO:wheel:adding 'fiona/fio/info.py' INFO:wheel:adding 'fiona/fio/insp.py' INFO:wheel:adding 'fiona/fio/load.py' INFO:wheel:adding 'fiona/fio/ls.py' INFO:wheel:adding 'fiona/fio/main.py' INFO:wheel:adding 'fiona/fio/options.py' INFO:wheel:adding 'fiona/fio/rm.py' INFO:wheel:adding 'fiona-1.9.6.dist-info/LICENSE.txt' INFO:wheel:adding 'fiona-1.9.6.dist-info/METADATA' INFO:wheel:adding 'fiona-1.9.6.dist-info/WHEEL' INFO:wheel:adding 'fiona-1.9.6.dist-info/entry_points.txt' INFO:wheel:adding 'fiona-1.9.6.dist-info/top_level.txt' INFO:wheel:adding 'fiona-1.9.6.dist-info/RECORD' INFO:wheel:removing build/bdist.linux-x86_64/wheel Successfully built fiona-1.9.6-cp39-cp39-linux_x86_64.whl ```
sgillies commented 3 months ago

@kloczek thanks for the report! I can do something about this for 1.10.0. I've fixed a bunch of these in the main branch already.

glaubitz commented 1 month ago

This prevents Fiona being built with GCC 14:

[   48s]   fiona/crs.c:16104:18: warning: ‘__pyx_pw_5fiona_3crs_3CRS_35__hash__’ defined but not used [-Wunused-function]
[   48s]   16104 | static Py_hash_t __pyx_pw_5fiona_3crs_3CRS_35__hash__(PyObject *__pyx_v_self) {
[   48s]         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[   54s]   INFO:root:gcc -shared build/temp.linux-x86_64-cpython-310/fiona/crs.o -L/usr/lib64 -L/usr/lib64 -lgdal -o build/lib.linux-x86_64-cpython-310/fiona/crs.cpython-310-x86_64-linux-gnu.so
[   55s]   INFO:root:building 'fiona._env' extension
[   55s]   INFO:root:gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -DOPENSSL_LOAD_CONF -fwrapv -fno-semantic-interposition -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -IVendor/ -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -IVendor/ -fPIC -I/usr/include/gdal -I/usr/include/python3.10 -c fiona/_env.c -o build/temp.linux-x86_64-cpython-310/fiona/_env.o
[   55s]   fiona/_env.c: In function ‘__pyx_f_5fiona_4_env_set_proj_search_path’:
[   55s]   fiona/_env.c:4255:32: error: passing argument 1 of ‘CSLAddString’ from incompatible pointer type [-Wincompatible-pointer-types]
[   55s]    4255 |   __pyx_v_paths = CSLAddString(__pyx_v_paths, __pyx_v_path_c);
[   55s]         |                                ^~~~~~~~~~~~~
[   55s]         |                                |
[   55s]         |                                const char **
[   55s]   In file included from fiona/_env.c:1260:
[   55s]   /usr/include/gdal/cpl_string.h:65:36: note: expected ‘char **’ but argument is of type ‘const char **’
[   55s]      65 | char CPL_DLL **CSLAddString(char **papszStrList,
[   55s]         |                             ~~~~~~~^~~~~~~~~~~~
[   55s]   fiona/_env.c:4255:17: error: assignment to ‘const char **’ from incompatible pointer type ‘char **’ [-Wincompatible-pointer-types]
[   55s]    4255 |   __pyx_v_paths = CSLAddString(__pyx_v_paths, __pyx_v_path_c);
[   55s]         |                 ^
[   55s]   error: command '/usr/bin/gcc' failed with exit code 1
[   55s]   error: subprocess-exited-with-error
[   55s]   
[   55s]   × Building wheel for fiona (pyproject.toml) did not run successfully.
[   55s]   │ exit code: 1
[   55s]   ╰─> See above for output.
[   55s]   
[   55s]   note: This error originates from a subprocess, and is likely not a problem with pip.
[   55s]   full command: /usr/bin/python3.10 /usr/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmpqk1sjr_o
[   55s]   cwd: /home/abuild/rpmbuild/BUILD/fiona-1.9.6
[   55s]   Building wheel for fiona (pyproject.toml): finished with status 'error'
[   55s]   ERROR: Failed building wheel for fiona
[   55s] Failed to build fiona
[   55s] ERROR: Failed to build one or more wheels
glaubitz commented 3 weeks ago

@kloczek thanks for the report! I can do something about this for 1.10.0. I've fixed a bunch of these in the main branch already.

Can you give some hints on how to fix these issues? I have tried looking into the Cython code but it's rather obfuscated to me.

sgillies commented 2 weeks ago

@kloczek @glaubitz what I see with fiona's main branch is that we only have one compiler warning/error when the package is built using GDAL's ubuntu-small-3.6.4 image (ubuntu 22.04 with gcc 13).

CFLAGS="-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS" make dockertest
    ...
    building 'fiona.ogrext' extension
    aarch64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include -I/venv/include -I/usr/include/python3.10 -c fiona/ogrext.c -o build/temp.linux-aarch64-3.10/fiona/ogrext.o
    fiona/ogrext.c: In function ‘__pyx_f_5fiona_6ogrext_15StringListField_set’:
    fiona/ogrext.c:32818:57: warning: passing argument 3 of ‘OGR_F_SetFieldStringList’ from incompatible pointer type [-Wincompatible-pointer-types]
    32818 |   OGR_F_SetFieldStringList(__pyx_v_feature, __pyx_v_i, ((char const **)__pyx_v_string_list));
          |                                                        ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          |                                                         |
          |                                                         const char **
    In file included from /usr/include/gdal.h:50,
                     from fiona/ogrext.c:1282:
    /usr/include/ogr_api.h:523:57: note: expected ‘CSLConstList’ {aka ‘char **’} but argument is of type ‘const char **’
      523 | void CPL_DLL OGR_F_SetFieldStringList(OGRFeatureH, int, CSLConstList);
          |                                                         ^~~~~~~~~~~~
    aarch64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.10/fiona/ogrext.o -lgdal -o build/lib.linux-aarch64-3.10/fiona/ogrext.cpython-310-aarch64-linux-gnu.so

Can either of you test with the main branch or the issue1365 branch to confirm?

glaubitz commented 2 weeks ago

@kloczek @glaubitz what I see with fiona's main branch is that we only have one compiler warning/error when the package is built using GDAL's ubuntu-small-3.6.4 image (ubuntu 22.04 with gcc 13).

CFLAGS="-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS" make dockertest
    ...
    building 'fiona.ogrext' extension
    aarch64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include -I/venv/include -I/usr/include/python3.10 -c fiona/ogrext.c -o build/temp.linux-aarch64-3.10/fiona/ogrext.o
    fiona/ogrext.c: In function ‘__pyx_f_5fiona_6ogrext_15StringListField_set’:
    fiona/ogrext.c:32818:57: warning: passing argument 3 of ‘OGR_F_SetFieldStringList’ from incompatible pointer type [-Wincompatible-pointer-types]
    32818 |   OGR_F_SetFieldStringList(__pyx_v_feature, __pyx_v_i, ((char const **)__pyx_v_string_list));
          |                                                        ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          |                                                         |
          |                                                         const char **
    In file included from /usr/include/gdal.h:50,
                     from fiona/ogrext.c:1282:
    /usr/include/ogr_api.h:523:57: note: expected ‘CSLConstList’ {aka ‘char **’} but argument is of type ‘const char **’
      523 | void CPL_DLL OGR_F_SetFieldStringList(OGRFeatureH, int, CSLConstList);
          |                                                         ^~~~~~~~~~~~
    aarch64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.10/fiona/ogrext.o -lgdal -o build/lib.linux-aarch64-3.10/fiona/ogrext.cpython-310-aarch64-linux-gnu.so

Can either of you test with the main branch or the issue1365 branch to confirm?

I'm confused. Your patch changes a different part of the source, so I'm not sure whether this patch will help.

I'm looking now whether the issue in question has already been fixed on the main branch.

glaubitz commented 2 weeks ago

The proper fix for this issue should be #1314.

sgillies commented 2 weeks ago

@glaubitz PR #1314 is already merged into the main branch, which will be 1.10.0. There won't be a 1.9.7. And in the issue1365 branch I no longer see any compiler warnings with gcc 13. I am not able to test with gcc 14 right now. That is why I am asking if you can check the issue1365 branch for me.