You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.8.13 unconditionally adds -g to CFLAGS and LDFLAGS if LTO is enabled, even if no debugging support is requested. This considerably raises memory requirements, and I am unable to link Python 3.8.13 with LTO on FreeBSD 13.0 amd64 on a computer with 1 GB RAM + 1 GB swap, where I used to be able to link it without -flto -g. (This computer uses clang 11 as system compiler, and ld.lld for the linker).
Manually removing the excess -g from CFLAGS and LDFLAGS (CONFIGURE_*FLAGS_NODIST) considerably reduces memory requirement of the linker to below 400 MB virtual, and the computer does not need to reach into swap, in spite of LTO.
I am hereby proposing that configure.ac should only add the -g along with -fltoif debug support is enabled.
The text was updated successfully, but these errors were encountered:
Based on a quick glance at the discussion in gh-74530, I don't expect the -g flag to be removed with LTO any time soon. Unless the problem in gh-74530 is no longer a problem, or it can be worked around in another way.
Python 3.8.13 unconditionally adds -g to CFLAGS and LDFLAGS if LTO is enabled, even if no debugging support is requested. This considerably raises memory requirements, and I am unable to link Python 3.8.13 with LTO on FreeBSD 13.0 amd64 on a computer with 1 GB RAM + 1 GB swap, where I used to be able to link it without
-flto -g
. (This computer uses clang 11 as system compiler, and ld.lld for the linker).Manually removing the excess
-g
from CFLAGS and LDFLAGS (CONFIGURE_*FLAGS_NODIST) considerably reduces memory requirement of the linker to below 400 MB virtual, and the computer does not need to reach into swap, in spite of LTO.I am hereby proposing that configure.ac should only add the
-g
along with-flto
if debug support is enabled.The text was updated successfully, but these errors were encountered: