[MacPorts] #67468: GDAL needs -DBUILD_WITHOUT_64BIT_OFFSET on i386

MacPorts noreply at macports.org
Sat May 20 09:04:48 UTC 2023


#67468: GDAL needs -DBUILD_WITHOUT_64BIT_OFFSET on i386
-------------------------------+----------------------
 Reporter:  barracuda156       |      Owner:  Veence
     Type:  defect             |     Status:  assigned
 Priority:  Normal             |  Milestone:
Component:  ports              |    Version:  2.8.1
 Keywords:  snowleopard, i386  |       Port:  gdal
-------------------------------+----------------------
 {{{
 I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_gdal/gdal/work/gdal-3.7.0/frmts/gtiff/libgeotiff
 -I/opt/local/include -I/opt/local/lib/proj9/include -pipe
 -DGDAL_COMPILATION -DNDEBUG -I/opt/local/include
 -I/opt/local/include/LegacySupport -stdlib=libc++ -fno-finite-math-only
 -fvisibility=hidden -arch i386 -mmacosx-version-min=10.6 -fPIC -Wall
 -Wextra -Winit-self -Wunused-parameter -Wmissing-declarations
 -Wshorten-64-to-32 -Wshadow -Wshadow-field -Wmissing-include-dirs -Wformat
 -Werror=format-security -Wno-format-nonliteral -Werror=vla -Wdate-time
 -Wnull-dereference -Wextra-semi -Wcomma -Wfloat-conversion -Wdocumentation
 -Wno-documentation-deprecated-sync -Wunused-private-field -Wnon-virtual-
 dtor -Woverloaded-virtual -Wsuggest-override -fno-operator-names -Wzero-
 as-null-pointer-constant -Weffc++ -MD -MT
 frmts/gtiff/CMakeFiles/gdal_GTIFF.dir/gt_citation.cpp.o -MF
 CMakeFiles/gdal_GTIFF.dir/gt_citation.cpp.o.d -o
 CMakeFiles/gdal_GTIFF.dir/gt_citation.cpp.o -c
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_gdal/gdal/work/gdal-3.7.0/frmts/gtiff/gt_citation.cpp
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_gdal/gdal/work/gdal-3.7.0/port/cpl_vsil_unix_stdio_64.cpp:141:1:
 error: static_assert failed due to requirement 'sizeof (ftell(nullptr)) ==
 sizeof(unsigned long long)' "File API does not seem to support 64-bit
 offset. If you still want to build GDAL without > 4GB file support, add
 the -DBUILD_WITHOUT_64BIT_OFFSET define"
 static_assert(sizeof(VSI_FTELL64(nullptr)) == sizeof(vsi_l_offset),
 ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_gdal/gdal/work/gdal-3.7.0/port/cpl_vsil_unix_stdio_64.cpp:328:41:
 warning: implicit conversion loses integer precision: 'vsi_l_offset' (aka
 'unsigned long long') to 'long' [-Wshorten-64-to-32]
     const int nResult = VSI_FSEEK64(fp, nOffsetIn, nWhence);
                         ~~~~~~~~~~~     ^~~~~~~~~
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_gdal/gdal/work/gdal-3.7.0/port/cpl_vsil_unix_stdio_64.cpp:435:29:
 warning: implicit conversion loses integer precision: 'vsi_l_offset' (aka
 'unsigned long long') to 'long' [-Wshorten-64-to-32]
         if (VSI_FSEEK64(fp, m_nOffset, SEEK_SET) != 0)
             ~~~~~~~~~~~     ^~~~~~~~~
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_gdal/gdal/work/gdal-3.7.0/port/cpl_vsil_unix_stdio_64.cpp:497:29:
 warning: implicit conversion loses integer precision: 'vsi_l_offset' (aka
 'unsigned long long') to 'long' [-Wshorten-64-to-32]
         if (VSI_FSEEK64(fp, m_nOffset, SEEK_SET) != 0)
             ~~~~~~~~~~~     ^~~~~~~~~
 3 warnings and 1 error generated.
 }}}

 https://build.macports.org/builders/ports-10.6_i386-builder/builds/120039/steps
 /install-port/logs/stdio

 I will verify if `ppc` needs it too or not.

-- 
Ticket URL: <https://trac.macports.org/ticket/67468>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list