I have easily build this and other packages with LTO enabled without any issues.
Thanks! I can confirm LTO works and I've updated PKGBUILD.
I just want to give you a feedback because I saw you disabled it in various packages.
I disabled LTO because it wasn't working. If it works now, feel free to leave a comment at corresponding packages.
Pinned Comments
yan12125 commented on 2021-01-26 08:35 (UTC) (edited on 2022-05-29 17:11 (UTC) by yan12125)
Prebuilt packages for python-onnxruntime and dependencies are available in the unofficial [archlinuxcn] repository [1]. python-onnxruntime in that repository is also maintained by me.
If you want to build from sources, make sure you have enough free memory and disk space. On my machine (8-core Intel i7-4770), building this packages takes ~20GB disk space, ~2.3GB memory space and 40 minute build time. On a more powerful server (40-core Intel Xeon 4114), building takes ~18 minutes.
If you don't need CUDA, modify PKGBUILD and replace
_ENABLE_CUDA=1
with_ENABLE_CUDA=0
. Build time will be much shorter.[1] https://github.com/archlinuxcn/repo/