LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   another compiling problem: docker-machine-kvm (https://www.linuxquestions.org/questions/slackware-14/another-compiling-problem-docker-machine-kvm-4175735199/)

camerabambai 03-23-2024 05:00 AM

another compiling problem: docker-machine-kvm
 
Another compiling problem: docker-machine-kvm
Any idea? Thanks

Code:

patching file kvm.go
chmod: cannot operate on dangling symlink './build/src/github.com/docker/machine/vendor/github.com/docker/docker/project/CONTRIBUTING.md'
chmod: cannot operate on dangling symlink './build/src/github.com/docker/machine/vendor/github.com/docker/docker/integration-cli/fixtures/https/client-key.pem'
chmod: cannot operate on dangling symlink './build/src/github.com/docker/machine/vendor/github.com/docker/docker/integration-cli/fixtures/https/server-key.pem'
chmod: cannot operate on dangling symlink './build/src/github.com/docker/machine/vendor/github.com/docker/docker/integration-cli/fixtures/https/server-cert.pem'
chmod: cannot operate on dangling symlink './build/src/github.com/docker/machine/vendor/github.com/docker/docker/integration-cli/fixtures/https/ca.pem'
chmod: cannot operate on dangling symlink './build/src/github.com/docker/machine/vendor/github.com/docker/docker/integration-cli/fixtures/https/client-cert.pem'
make: Entering directory '/tmp/SBo/docker-machine-kvm-0.10.0/cmd/docker-machine-driver-kvm'
GOGC=off go build -i -o docker-machine-driver-kvm
flag provided but not defined: -i


business_kid 03-23-2024 05:20 AM

It's trying to operate on a dangling symlink, which is one that points at nothing. If you run 'ls --color=always' it will show dangling symlinks as reddish, and valid ones as pale blue.

ponce 03-23-2024 05:22 AM

when you installed google-go-lang have you logged out from your root shell and logged in again (or become root with "su -", note the leading dash) before building what depended on it?
the google-go-lang stuff is added to your environment via /etc/profile.d/* scripts (that are sourced in login shells), it's explained in its README.
what is the output of
Code:

set | grep GO
EDIT: no, the problem was actually another: see this gentoo bug
just add a line to the SlackBuild
Code:

--- a/system/docker-machine-kvm/docker-machine-kvm.SlackBuild
+++ b/system/docker-machine-kvm/docker-machine-kvm.SlackBuild
@@ -80,6 +80,9 @@ find -L . \
 mkdir -p build/src/github.com/dhiltgen
 ln -sf $TMP/$PRGNAM-$VERSION build/src/github.com/dhiltgen/$PRGNAM
 
+# https://bugs.gentoo.org/893080
+sed -e 's: -i::' -i cmd/docker-machine-driver-kvm/Makefile
+
 export GO111MODULE="off"
 make -C cmd/docker-machine-driver-kvm \
  GOPATH=$TMP/$PRGNAM-$VERSION/build

thanks for the report!


All times are GMT -5. The time now is 05:11 PM.