Open moratorium08 opened 2 years ago
Hmmm I'm not sure what the relation is with that issue. I have seen a similar C++ error before, and from memory it seemed to relate to a mix of standard libraries (libc++ vs libstdc++).
If I have some time, I'll have a dig and see what I can find.
Thanks for raising the issue!
@moratorium08 I think the problem is with older versions of LLD which do not support IFUNC.
PHP compiles fine with LTO and LLVM 16. Just be aware that it's memory hungry and can go OOM with -j$(nproc)
.
We cannot build PHP targets by the setting of
aflplusplus_lto
.It seems to be related to this issue. And in fact, as indicated in that issue, when we disable `intl', the build succeeds.
Though I'm not sure what is the root cause of this, we confirmed that we can successfully build it without LTO (
aflplusplus
). Therefore, LTO is doing something bad.