From be30db19f35dd815ff1aec63e6436a58d39ac2c6 Mon Sep 17 00:00:00 2001 From: Vincent Li Date: Wed, 28 Aug 2024 15:38:27 +0000 Subject: [PATCH] golang: upgrade golang to 1.23.0 release when add loxilb development tree, loxilb requires go >= 1.23.0 ranlib libloxilbdp.a make[3]: Leaving directory '/usr/src/loxilb-0.9.x/loxilb-ebpf/kernel' make[2]: Leaving directory '/usr/src/loxilb-0.9.x/loxilb-ebpf' go: go.mod requires go >= 1.23.0 (running go 1.22.0) make[1]: *** [Makefile:14: build] Error 1 make[1]: Leaving directory '/usr/src/loxilb-0.9.x' make: *** [loxilb:76: /usr/src/log/loxilb-0.9.x] Error 2 after upgrading golang to 1.23.0, loxilb development tree result in error make[2]: Leaving directory '/usr/src/loxilb-0.9.x/loxilb-ebpf' # runtime /usr/lib/go/src/runtime/mbitmap_noallocheaders.go:53:2: mallocHeaderSize redeclared in this block /usr/lib/go/src/runtime/mbitmap.go:71:2: other declaration of mallocHeaderSize /usr/lib/go/src/runtime/mbitmap_noallocheaders.go:54:2: minSizeForMallocHeader redeclared in this block the workaround is to remove build/usr/lib/go directory, then rm log/go-1.23.0, ./make.sh build to re-add go 1.23.0 Signed-off-by: Vincent Li --- lfs/go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lfs/go b/lfs/go index 903674f9e..4e9d2ffe1 100644 --- a/lfs/go +++ b/lfs/go @@ -24,7 +24,7 @@ include Config -VER = 1.22.0 +VER = 1.23.0 THISAPP = go-$(VER) DL_FILE = go$(VER).$(GOOS)-$(GOARCH).tar.gz @@ -42,7 +42,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) go$(VER).$(GOOS)-arm64.tar.gz_BLAKE2 = 330336e36ebc7cb8666159256ff6dce965465195db84e29467fe0ffa79b1fa1b698d8751df73bec1cd7d04b528d9d6a9cad259f6ad5036eb89212ebc3e91b686 -go$(VER).$(GOOS)-amd64.tar.gz_BLAKE2 = 018b9dd68d12ed0f2859993b6496d95bec946031353da022eb7fff2337c6082aadabbb4f858987d854599c1c2491e7ca404a7273bde01d61a2491097b24ce1b6 +go$(VER).$(GOOS)-amd64.tar.gz_BLAKE2 = f8ba6b631ea0f729558e27524bb9886e65937c7b6844fe3ecfb597b5493a4629cc6b87be994afc69b80d47e7222580791e058c93dd73c8752683d9d94ae72a6a install : $(TARGET)