LinuxQuestions.org
Visit Jeremy's Blog.
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 06-05-2022, 01:44 PM   #1
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Fail to compile fzf (google-go-lang thing)


Hi all,

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
Any hint would be apreciate !
 
Old 06-05-2022, 02:04 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,118

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
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.
 
1 members found this post helpful.
Old 06-05-2022, 02:13 PM   #3
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407

Original Poster
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
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
 
Old 06-05-2022, 02:24 PM   #4
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407

Original Poster
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I just did the two export by hand and it worked

My WM is i3-gapps with no DE. Here's my .xinitrc
Code:
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# Merge in defaults and keymaps
[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
[ -f $userresources ] && /usr/bin/xrdb -merge $userresources
[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap

# Start i3
QT_QPA_PLATFORMTHEME="qt5ct"
SAL_USE_VCLPLUGIN="qt5"
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
    export QT_QPA_PLATFORMTHEME="qt5ct" && export SAL_USE_VCLPLUGIN && exec ck-launch-session dbus-launch --exit-with-session /usr/bin/i3
else
    export QT_QPA_PLATFORMTHEME="qt5ct" && export SAL_USE_VCLPLUGIN && exec dbus-launch --exit-with-session /usr/bin/i3
fi
Does someone see what could be wrong ? (even somewhere else ?)
 
Old 06-05-2022, 02:31 PM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,118

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
Quote:
Originally Posted by Tonus View Post
I just did the two export by hand and it worked
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.
 
1 members found this post helpful.
Old 06-05-2022, 03:50 PM   #6
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407

Original Poster
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
You're definitly right !

How much will I be bitten by same error before learning ?

Thousand thanks !
 
  


Reply



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: A Quick Introduction To fzf (Interactive Command-Line Fuzzy Finder) LXer Syndicated Linux News 0 03-16-2021 11:36 PM
LXer: Level up your shell history with Loki and fzf LXer Syndicated Linux News 0 10-02-2020 10:21 AM
LXer: Weekly Command: Fuzzy finding everything with fzf LXer Syndicated Linux News 0 04-27-2018 03:08 AM
[SOLVED] $LANG per user doesn't obey the global $LANG set in /etc/profile.d/lang.sh me_h Slackware 23 11-20-2016 07:28 AM
What is the use of lang in <head lang=''> tooparam Programming 2 02-01-2006 05:55 PM

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

All times are GMT -5. The time now is 01:24 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