Closed FabioLolix closed 1 month ago
Thanks @FabioLolix!
We're actually using a fork of spread: https://github.com/MirServer/spread-mir-ci/, you should be able to use it as a snap: https://snapcraft.io/spread-mir-ci/.
I had to add Arch Linux support there:
https://github.com/canonical/spread/commit/50434fee9b6062c11ca74f2672c164616e52d2cb
And with the tweaks I made to your task, I successfully built locally :)
CI for it will fail until the snap gets built: https://launchpad.net/~mir-team/+snap/spread-mir-ci, will monitor when that's done and circle back.
Thanks again :)
We're actually using a fork of spread: https://github.com/MirServer/spread-mir-ci/, you should be able to use it as a snap
I prefer native packagig :), so I builded that but I have the same problem as before
And with the tweaks I made to your task, I successfully built locally :)
No issues around with LTO ? I got a problem with that
Thanks again :)
You're welcome :)
let me know if you'd like to tweak anything.
It's fine
I prefer native packagig :), so I builded that but I have the same problem as before
Do you have LXD working? That's what our setup uses for containers… Anyway, OT.
No issues around with LTO ? I got a problem with that
No, I suppose it's not enabled by default? Could you try a PR with however you're enabling LTO?
I'll merge in the mean time.
No, I suppose it's not enabled by default? Could you try a PR with however you're enabling LTO?
Ah yes, it is enable by default when packaging, not when launching cmake directly
The flags can be seen here: https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/blob/main/makepkg.conf?ref_type=heads
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
-Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
-fstack-clash-protection -fcf-protection \
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
-Wl,-z,pack-relative-relocs"
LTOFLAGS="-flto=auto"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#-- Debugging flags
DEBUG_CFLAGS="-g"
DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
I'm not sure how to correctly pass that to cmake here
Do you have LXD working? That's what our setup uses for containers… Anyway, OT.
Yes for VM, had to downgrade Qemu to 9.0.2, containers still fails to run but don't have problems with Instance not found
Hello, following the kind request to add spread CI for Arch Linux https://github.com/canonical/mir/issues/3537#issuecomment-2341510597 https://github.com/canonical/mir/issues/3593#issuecomment-2396120297
I started with wlcs because it have less dependencies
I have never used spread, LXC, LXD or any CI/CD before and I have at least an issue with most LXD images
spread.yaml is still unedited
spread
compiled yesterday (local Arch pkgbuild)