qgis / QGIS-Mac-Packager

Scripts for Official QGIS MacOS Packages
https://www.qgis.org
GNU General Public License v2.0
54 stars 21 forks source link

clang 12 C++17 -O3 uses 17GB of memory or get "stuck" in top cmd #132

Closed PeterPetrik closed 3 years ago

PeterPetrik commented 3 years ago

created Apple feedback report: https://feedbackassistant.apple.com/feedback/9127211

It looks like the nightly builds after C++17 introduction + Big Sur updates were hanging because compilation of https://github.com/qgis/QGIS/blob/master/src/core/proj/qgscoordinatereferencesystem.cpp needs 18GB+ RAM!!! and the 4GB poor server got to "stuck" state (in top command) after successfully swapped 13GB data.

looks like -std=gnu++17 -O3 <- stuck -std=gnu++17 -O2 <- stuck -std=gnu++17 -O1 <- OK -std=gnu++17 -O3 -fno-inline <- OK

clang --version
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

see https://github.com/qgis/QGIS/blob/master/src/core/CMakeLists.txt#L1701

PeterPetrik commented 3 years ago

closing for now since the build is fixed