Problem compiling with golang. #115
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, I can't compile snapd with go:
I think something needs to be recompiled with GCC 12, however I'm not sure what exactly. I tried compiling and installing go myself and I still get the error.
Yeah, I think we need to recompile all packages once with GCC 12 and also bump the pkgrel. Is this possible @anonfunc?
Probably not all, but a few have these problems because gcc is not mandatory to list as makedep because its in base-devel (which is fine), but ALHP did not take that into account until https://git.harting.dev/ALHP/ALHP.GO/commit/f190902b412df4bffee6c553fbd179a67557cb02.
I'll try to figure out what causes your specific issue, so that we can queue it with gcc 12 again.
Looks like the lastest update to go fixed the issue.
@anonfunc btw the "1to1" sounds like we/Arch are/is using
-flto-partition=1to1atm? 🤔That would be quite suboptimal compared to the
-flto-partition=dynamicwhich is the standard.However #117 contains a patch to set it to
-flto-partition=onewhich can cross boundaries between sourcecode objects in the first pass and supposedly avoid some issues with compiling programs - with the drawback of loading the full program into memory and do single thread processing on it.We and Archlinux are using
-flto-partition's default. You can always check their makepkg.conf in devtools to know what they are currently using, since this config gets used by all build-helpers (and so the packagers; it's also the basis for our own makepkg.conf).Ah thanks. I was under the impression that the makepkg.conf of arch itself was beeing used (which is part of the pacman package).
Thanks for the clarification!
So Arch/we should be using the default which is
-flto-partition=dynamic.