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 10-22-2023, 07:24 PM   #1
Marshall_Banana
LQ Newbie
 
Registered: Feb 2023
Posts: 22

Rep: Reputation: 1
broken fzf build script (?)


I have been having trouble attempting to install fzf from SBo. Here is the output error I receive whenever I try to install it.

Code:
zf-0.42.0/src/tui/tui_test.go
fzf-0.42.0/src/util/
fzf-0.42.0/src/util/atomicbool.go
fzf-0.42.0/src/util/atomicbool_test.go
fzf-0.42.0/src/util/chars.go
fzf-0.42.0/src/util/chars_test.go
fzf-0.42.0/src/util/eventbox.go
fzf-0.42.0/src/util/eventbox_test.go
fzf-0.42.0/src/util/slab.go
fzf-0.42.0/src/util/util.go
fzf-0.42.0/src/util/util_test.go
fzf-0.42.0/src/util/util_unix.go
fzf-0.42.0/src/util/util_windows.go
fzf-0.42.0/test/
fzf-0.42.0/test/fzf.vader
fzf-0.42.0/test/test_go.rb
fzf-0.42.0/typos.toml
fzf-0.42.0/uninstall
fatal: not a git repository (or any of the parent directories): .git
GOARCH=amd64 go build -a -ldflags "-s -w -X main.version=0.42.0 -X main.revision=Slackware" -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:88:2: //go:build comment without // +build comment
vendor/github.com/mattn/go-runewidth/runewidth.go:7:2: //go:build comment without // +build comment
make: *** [Makefile:136: target/fzf-gccgo_amd64] Error 1
Failure encountered while building fzf:
  fzf.SlackBuild return non-zero
Has anyone else experienced this before? I tried to check the thread broken SBo scripts, but there seems to be a lot to go through.
I apologize in advance if this post is a bit bare on details, this is the first time I've encountered a problem of this nature regarding SBo/slack-builds, but I'm happy to provide any relevant details upon inquiry, as necessary.

EDIT:
Attempted to install with both SBO['15.0']=https://www.slackbuilds.org/slackbuilds/15.0/ and SBO['current']=https://cgit.ponce.cc/slackbuilds/ repo's, both of which produced same error as shown above, by uncommenting one line running
Code:
$slackpkg update
$sboinstall fzf
and repeating vice versa with the other line.

The go-lang dependency is satisfied as well.

Last edited by Marshall_Banana; 10-22-2023 at 11:27 PM. Reason: additional information
 
Old 10-22-2023, 09:45 PM   #2
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 335

Rep: Reputation: Disabled
Since you don't say which way you tried to install fzf, or indicate whether you are using current or stable (and if stable which stable) there is not really much I can suggest to you.

However I am curious to know whether you read the slackbuilds info about fzf, which clearly states that fzf which requires a dependent to be installed first.
 
Old 10-22-2023, 11:20 PM   #3
Marshall_Banana
LQ Newbie
 
Registered: Feb 2023
Posts: 22

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by quickbreakfast View Post
Since you don't say which way you tried to install fzf, or indicate whether you are using current or stable (and if stable which stable) there is not really much I can suggest to you.

However I am curious to know whether you read the slackbuilds info about fzf, which clearly states that fzf which requires a dependent to be installed first.
I tried to install through both the sbopkg ncurses menu, as well as with sboinstall, both of which yielded the exact same error.
I also tried to install from both current and stable, which I believe the proper way to do is through un-commenting one of the following lines in slackpkgplus.conf,

SBO['15.0']=https://www.slackbuilds.org/slackbuilds/15.0/
SBO['current']=https://cgit.ponce.cc/slackbuilds/

running $slackpkg update, then $sboinstall fzf, and then repeating the same process with the un-commenting done in vice versa between the two lines.

And yes, I'm aware that it requires go-lang 1.18 or greater as a dependency; of which I currently have go-lang 1.20 installed.
And as a bonus, I also have slackpkgplus.conf currently configured with PKGS_PRIORITY=( multilib ), if that makes a difference, although I don't think it should.
 
Old 10-23-2023, 12:26 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,100

Rep: Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177
installing google-go-lang is not enough: you have to logout and login again from your root shell (or use "su -l") so that the appropriate files in /etc/profile.d are sourced and the new go compiler is used, it's explained in google-go-lang's README (you're supposed to read the READMEs of stuff you install from SBo).
I say this because from the log you posted you still seem to use the go compiler from gcc.
 
2 members found this post helpful.
Old 10-25-2023, 02:14 AM   #5
Marshall_Banana
LQ Newbie
 
Registered: Feb 2023
Posts: 22

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by ponce View Post
installing google-go-lang is not enough: you have to logout and login again from your root shell (or use "su -l") so that the appropriate files in /etc/profile.d are sourced and the new go compiler is used, it's explained in google-go-lang's README (you're supposed to read the READMEs of stuff you install from SBo).
I say this because from the log you posted you still seem to use the go compiler from gcc.
The $su -l seems to have done the trick. You claimed that the compiler is mentioned in the google-go-lang READ-ME but I saw no such thing, unless we are referring to different READ-ME's. Here is the READ-ME from my /usr/doc/google-go-lang-1.20.5/README.md

Code:
# The Go Programming Language

Go is an open source programming language that makes it easy to build simple,
reliable, and efficient software.

![Gopher image](https://golang.org/doc/gopher/fiveyears.jpg)
*Gopher image by [Renee French][rf], licensed under [Creative Commons 4.0 Attributions license][cc4-by].*

Our canonical Git repository is located at https://go.googlesource.com/go.
There is a mirror of the repository at https://github.com/golang/go.

Unless otherwise noted, the Go source files are distributed under the
BSD-style license found in the LICENSE file.

### Download and Install

#### Binary Distributions

Official binary distributions are available at https://go.dev/dl/.

After downloading a binary release, visit https://go.dev/doc/install
for installation instructions.

#### Install From Source

If a binary distribution is not available for your combination of
operating system and architecture, visit
https://go.dev/doc/install/source
for source installation instructions.

### Contributing

Go is the work of thousands of contributors. We appreciate your help!

To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.

Note that the Go project uses the issue tracker for bug reports and
proposals only. See https://go.dev/wiki/Questions for a list of
places to ask questions about the Go language.

[rf]: https://reneefrench.blogspot.com/
[cc4-by]: https://creativecommons.org/licenses/by/4.0/
Are there any specific files in profile.d I should be giving particular attention to where this compiler configuration occurs?

Last edited by Marshall_Banana; 10-26-2023 at 02:27 AM. Reason: grammar
 
Old 10-25-2023, 04:11 AM   #6
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
He was speaking of the README in the SlackBuild directory of google-go-lang.

Quote:
The tools are added to the path by putting go.sh and go.csh files in
/etc/profile.d and letting the system's /etc/profile or /etc/csh.login
pick it up.
I agree, could be more explicit.

We had a chat on the mailing list about the opportunity to source the changed path in SlackBuilds depending on google-go-lang with no decision AFAIK.

Last edited by Tonus; 10-25-2023 at 04:23 AM.
 
1 members found this post helpful.
Old 10-25-2023, 05:03 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,100

Rep: Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177
FWIW, the need to use "su -l" instead of the plain "su" is explained also in the main HOWTO.
 
1 members found this post helpful.
Old 10-27-2023, 07:59 PM   #8
Marshall_Banana
LQ Newbie
 
Registered: Feb 2023
Posts: 22

Original Poster
Rep: Reputation: 1
Welp, with that, I believe it's time to declare this problem solved, mark the thread as "solved," and say thanks to everyone that took the time to respond. 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
[SOLVED] Fail to compile fzf (google-go-lang thing) Tonus Slackware 5 06-05-2022 03:50 PM
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

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

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

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