Closed SaveTheRbtz closed 2 years ago
As a workaround, assembling BOLT without assertions works: -DLLVM_ENABLE_ASSERTIONS=OFF
The workaround could cause runtime failures for the app and is not recommended. The issue is likely in one of the statically linked standard libraries. I haven't narrowed it down to any particular function yet.
Yep, the only way how I was able to make this work was to switch from static to dynamic compilation, otherwise processed binaries either crash with "illegal instruction" or segfault in pthread or jemalloc.
As you've mentioned, dynamic compilation works beautifully.
How nice for a guy from Yandex trying to optimize Solana and having the same issue, to find another Yandexoid having the same issue with Chia :)
I'm using a following command:
(both profile and binary can be found here ~1.8Gb)
Traceback:
plot_chia
is a PGO/LTO binary build with clang with following notable build/link flags