LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Error compiling runc on Slackware 15 (https://www.linuxquestions.org/questions/slackware-14/error-compiling-runc-on-slackware-15-a-4175735174/)

camerabambai 03-22-2024 11:52 AM

Error compiling runc on Slackware 15
 
Code:

runc-1.1.12/vendor/google.golang.org/protobuf/runtime/protoiface/methods.go
runc-1.1.12/vendor/google.golang.org/protobuf/runtime/protoimpl/
runc-1.1.12/vendor/google.golang.org/protobuf/runtime/protoimpl/impl.go
runc-1.1.12/vendor/google.golang.org/protobuf/runtime/protoimpl/version.go
runc-1.1.12/vendor/modules.txt
go build -trimpath "-buildmode=pie"  -tags "seccomp" -ldflags "-X main.gitCommit=51d5e94601ceffbbd85688df1c928ecccbfa4685 -X main.version=1.1.12 " -o runc .
checkpoint.go:12:2: //go:build comment without // +build comment
libcontainer/cgroups/utils.go:15:2: //go:build comment without // +build comment
make: *** [Makefile:60: runc] error 1

Any help?
Thanks

camerabambai 03-22-2024 11:55 AM

Very strange. Compiling on another cpu works.

Error on cpu: AMD A10-5800K APU with Radeon(tm) HD Graphics

Compile fine on: AMD Ryzen 3 3100 4-Core Processor

brianL 03-22-2024 11:58 AM

I had that problem, contacted the SlackBuild maintainer and his advice sorted it out:
Quote:

All you need to do is log out and back in or source /etc/profile.d/go.sh
script manually, which activates google-go-lang.


All times are GMT -5. The time now is 08:55 PM.