Open IngwiePhoenix opened 6 days ago
/cc #1919
haven't tested it in a while, but now that Alpine 3.20 has RISC-V support, you should be able to compile k0s directly on the VisionFive using Docker. It'll take time, but it should work.
Cross compilation is not really supported by the k0s build system. Sorry. You can disable the docker wrapper by make GO=go K0S_EMBEDDED_BINS=none
. Note that you'll need RISC-V docker images as well if you want to run workloads on the cluster.
That was my last attempt: https://github.com/k0sproject/k0s/issues/1919#issuecomment-1746962060
You can have a look at the diff to figure out what to tweak.
@ncopa concerning https://github.com/k0sproject/k0s/issues/1919#issuecomment-1761203870, do you think we can simply unconditionally switch from binutils-gold
to binutils
?
Go forces use of gold on arm/arm64 due to an old bug in binutils, which seems to be fixed now. Go still need to adapt.
See: https://github.com/golang/go/issues/22040
I think we can pull in binutils-gold
conditionally.
Hello!
I have been using k3s for a while now, but long-term I want to expand to literally all my hardware - which includes a VisionFive2. So, I just throw stuff at a wall and see what sticks. Hence, here is an attempt at compiling for riscv64:
Notes:
I thought setting
EMBEDDED_BINS_BUILDMODE=none
would disable Docker alltogether, but it did not...?Any improvements I could do to get this building a little further than...that?
Kind regards, Ingwie