The code is compiling fine, I used the same environment as you to compile PlatON-Go with the following message:
jht@jht:~/go/src/github.com/PlatONnetwork/PlatON-Go$ go version
go version go1.18.1 linux/amd64
jht@jht:~/go/src/github.com/PlatONnetwork/PlatON-Go$ sudo lsb_release -a
[sudo] password for jht:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
jht@jht:~/go/src/github.com/PlatONnetwork/PlatON-Go$ ./build/bin/platon version
PlatON
Version: 1.5.0-unstable
Git Commit: 9d3ec224bea63be92fba399a55fd01963b791858
Git Commit Date: 20241122
Architecture: amd64
Go Version: go1.18.1
Operating System: linux
GOPATH=
GOROOT=go
Before compiling the code you have to install some dependencies as mentioned in the readme, such as libgmp-dev libssl-dev, etc. and compile it after executing go mod tidy
, of course you have to make sure that your network is OK!
my ENV info