Skip to content

MinGW build error "File too big"

Maik Froechtenicht requested to merge ifmfr/vtk:mingw-bigobjects into master

MinGW fails to build on Windows with "file too big"/"too many sections" error for vtkGenericDataArray.cxx, vtkDataArray.cxx and vtkPCAStatistics.cxx.

The results differ for using 32 or 64 bit version of MinGW and Debug vs. Release configuration. Building 64 bit works with compile flags -Wa,-mbig as used by MSVC (/bigobj). MinGW 32 bit seems to accept this flag but it does not alter the building process. That is why I choose -Og instead which preservers almost all debug infos.

Merge request reports