LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-23-2024, 05:00 AM   #1
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 408

Rep: Reputation: 54
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
 
Old 03-23-2024, 05:20 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,305

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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.
 
Old 03-23-2024, 05:22 AM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
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!

Last edited by ponce; 03-23-2024 at 05:35 AM.
 
1 members found this post helpful.
  


Reply

Tags
error



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Difference between docker.io, docker-cd, and Docker Desktop LXer Syndicated Linux News 0 08-15-2022 05:39 PM
LXer: Create & manage docker hosts with Docker Machine on VirtualBox LXer Syndicated Linux News 0 11-28-2017 02:33 AM
[SOLVED] "No KVM, No qemu-kvm" Available error while trying to install KVM on CentOS 6.3 sriramdas Linux - Virtualization and Cloud 5 01-01-2013 10:46 AM
KVM on Redhat 5.7: KVM can ping outside network, outside network can't ping KVM svandyk Linux - Networking 1 09-23-2011 06:45 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration