[SOLVED] Fail to compile fzf (google-go-lang thing)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It might be something trivial for those who know about google-go-lang but I can't figure it. That is what I get while compiling fzf with sbopkg :
Code:
fatal: not a git repository (or any parent up to mount point /tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
GOARCH=amd64 go build -a -ldflags "-s -w -X main.version=0.30.0 -X main.revision=0.30.0" -tags "" -mod=vendor -o target/fzf-gccgo_amd64
main.go:4:2: //go:build comment without // +build comment
main.go:5:2: //go:build comment without // +build comment
src/ansi.go:8:2: //go:build comment without // +build comment
src/algo/algo.go:87:2: //go:build comment without // +build comment
make: *** [Makefile:130: target/fzf-gccgo_amd64] Error 1
from your log it seems that you are still using gcc's go, not the go compiler from google-go-lang.
you most probably have to logout from your root shell after having installed google-go-lang and then login again before trying to build fzf, so that you environment loads /etc/profile.d/go.sh: it's explained in google-go-lang's README.
I indeed shutdown and rebooted several times since installed google-go-lang. And builded fzf at least one time. I have no idea why gcc-go is still used
Thanks for the hint ponce.
Last edited by Tonus; 06-05-2022 at 02:20 PM.
Reason: Thank you Matteo
maybe it's because you are not using "su -" to become root and so you don't open a root login shell?
you should definitely use it, it's explained at step 4 of the HOWTO.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.