Replies: 6 comments 12 replies
-
AFAIK, the openssl-sys crate is the most common Rust dependency that will be broken when LTO is enabled. |
Beta Was this translation helpful? Give feedback.
-
The buildarm server had lto enabled and |
Beta Was this translation helpful? Give feedback.
-
(From https://build.archlinuxcn.org/imlonghao-api/pkg/rpcs3-git/log/1655587008) Nice :D /cc @heavysink |
Beta Was this translation helpful? Give feedback.
-
pcsx2-git fails with
(From https://build.archlinuxcn.org/imlonghao-api/pkg/pcsx2-git/log/1655616862) Apparently upstream build system detection is incomplete PCSX2/pcsx2#4938 |
Beta Was this translation helpful? Give feedback.
-
First case in archlinuxcn with broken LTO + CGO: @dctxmei https://build.archlinuxcn.org/imlonghao-api/pkg/clash-dev-git/log/1655647665 https://build.archlinuxcn.org/imlonghao-api/pkg/clash-dctxmei/log/1655647630 |
Beta Was this translation helpful? Give feedback.
-
@lilydjwg It seems that |
Beta Was this translation helpful? Give feedback.
-
devtools-archlinuxcn on the build server is upgraded to the latest version. Upstream devtools introduces several changes that may fail builds or cause runtime crashes.
LTO is now enabled by default
This change is from [1]. Some known issues:
options+=(!lto)
is generally a viable workaround for such issues.New security flags for compilers
This change is from [2]. Some relevant issues:
-Werror=format-security
: may cause compile errors like(From https://buildarm.archlinuxcn.org/imlonghao-api/pkg/gdb-git/log/1654708826)
The fix is refactoring calls to printf-like functions.
-Wp,-D_GLIBCXX_ASSERTIONS
: programs may abort withAssertion 'xxx' failed
. The proper fix, identifying incorrect usage in the code and then fixing it (ex: [3]), is generally difficult. As a result, many packagers simply remove the flag (ex: chromium, electron and ispc [4])[1] https://gitlab.archlinux.org/archlinux/rfcs/-/blob/master/rfcs/0004-lto-by-default.rst
[2] https://gitlab.archlinux.org/archlinux/rfcs/-/blob/master/rfcs/0003-buildflags.rst
[3] pytorch/pytorch#71965
[4] https://pkgbuild.vdwaa.nl/?q=-D_GLIBCXX_ASSERTIONS&i=nope&files=&excludeFiles=&repos=
Beta Was this translation helpful? Give feedback.
All reactions