Closed fabianonunes closed 1 year ago
I've found out that the issue lies with the GCC flags -flto=auto -ffat-lto-objects
, which became default in Ubuntu 21.04 and onwards (turning on link time optimizations (LTO) for 21.04).
To disable LTO, it is necessary to include the environment variable export DEB_BUILD_MAINT_OPTIONS=optimize=-lto
in the rules file (https://wiki.ubuntu.com/ToolChain/LTO)
I'm not sure if this is the best channel to open this type of ticket. If it is not, could you please inform me of the most appropriate channel?
I have noticed that the Ubuntu 22.04 packages distributed by packagecloud were compiled without jemalloc support, while the Ubuntu 20.04 packages were. In both Jammy and Focal, the version of
libjemalloc2
in the repositories is 5.2.1.Output on Ubuntu 20.04:
Output on Ubuntu 22.04: