Hi folks, On 2025-11-24 06:22, Adrian Bunk wrote: > Emanuele, did you use a version built without optimization when > discovering that -ffunction-sections helps? > Without -ffunction-sections it builds for me when optimization is not > disabled, mold/arm64 seems to fail on the unoptimized code - which it > shouldn't but that's not such a big issue.
I did have -O2 in my flags. Looking through the old build logs: -Wno-inline -Wno-deprecated-declarations -g -O2 -ffile-prefix-map=/build/reproducible-path/trilinos-16.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -fuse-ld=mold -ffunction-sections -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 Full logs here: https://people.debian.org/~ema/trilinos_16.1.0-2_arm64-2025-09-09T09:52:25Z.build

