You are not logged in.
Hello All
So I have been trying to setup a Hyprland desktop and a couple of packages just will not build for me and all seem to be failing at the calling of "go".
The problem is that the message does not seem to lead me to anything I can fix or that seems to be an issue for anyone else.
I am using paru as my installer of choice, and the output for eclipse is as follows:
$ paru -S clipse
:: Resolving dependencies...
:: There are 2 providers available for clipse:
:: Repository AUR:
1) clipse 2) clipse-bin
Enter a number (default=1):
:: Calculating conflicts...
:: Calculating inner conflicts...
Aur (1) clipse-1.1.0-1
:: Proceed to review? [Y/n]:
:: Downloading PKGBUILDs...
PKGBUILDs up to date
nothing new to review
fetching devel info...
==> Making package: clipse 1.1.0-1 (Sun 09 Feb 2025 12:17:01 AM AWST)
==> Retrieving sources...
-> Found clipse-1.1.0.tar.gz
==> Validating source files with sha256sums...
clipse-1.1.0.tar.gz ... Passed
==> Making package: clipse 1.1.0-1 (Sun 09 Feb 2025 12:17:02 AM AWST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found clipse-1.1.0.tar.gz
==> Validating source files with sha256sums...
clipse-1.1.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting clipse-1.1.0.tar.gz with bsdtar
==> Sources are ready.
clipse-1.1.0-1: parsing pkg list...
==> Making package: clipse 1.1.0-1 (Sun 09 Feb 2025 12:17:03 AM AWST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
go build -o "clipse"
go: downloading github.com/charmbracelet/bubbletea v1.1.1
go: downloading github.com/atotto/clipboard v0.1.4
go: downloading github.com/BourgeoisBear/rasterm v1.1.1
go: downloading github.com/charmbracelet/bubbles v0.20.0
go: downloading github.com/charmbracelet/lipgloss v0.13.0
go: downloading github.com/muesli/termenv v0.15.2
go: downloading github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
go: downloading github.com/mitchellh/go-ps v1.0.0
go: downloading github.com/sahilm/fuzzy v0.1.1
go: downloading github.com/charmbracelet/x/ansi v0.2.3
go: downloading github.com/rivo/uniseg v0.4.7
go: downloading github.com/mattn/go-runewidth v0.0.16
go: downloading golang.org/x/sync v0.8.0
go: downloading github.com/muesli/cancelreader v0.2.2
go: downloading github.com/charmbracelet/x/term v0.2.0
go: downloading github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6
go: downloading golang.org/x/term v0.18.0
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading golang.org/x/sys v0.24.0
# runtime/internal/sys
/usr/lib/go/src/runtime/internal/sys/consts.go:15:7: StackGuardMultiplier redeclared in this block
/usr/lib/go/src/runtime/internal/sys/arch.go:27:7: other declaration of StackGuardMultiplier
/usr/lib/go/src/runtime/internal/sys/consts.go:18:7: DefaultPhysPageSize redeclared in this block
/usr/lib/go/src/runtime/internal/sys/arch.go:36:7: other declaration of DefaultPhysPageSize
/usr/lib/go/src/runtime/internal/sys/consts.go:22:7: PCQuantum redeclared in this block
/usr/lib/go/src/runtime/internal/sys/arch.go:40:7: other declaration of PCQuantum
/usr/lib/go/src/runtime/internal/sys/consts.go:25:7: Int64Align redeclared in this block
/usr/lib/go/src/runtime/internal/sys/arch.go:43:7: other declaration of Int64Align
/usr/lib/go/src/runtime/internal/sys/consts.go:32:7: MinFrameSize redeclared in this block
/usr/lib/go/src/runtime/internal/sys/arch.go:50:7: other declaration of MinFrameSize
/usr/lib/go/src/runtime/internal/sys/consts.go:36:7: StackAlign redeclared in this block
/usr/lib/go/src/runtime/internal/sys/arch.go:54:7: other declaration of StackAlign
/usr/lib/go/src/runtime/internal/sys/arch.go:27:30: undefined: StackGuardMultiplierDefault
make: *** [Makefile:10: build] Error 1
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'clipse-1.1.0-1':
error: packages failed to build: clipse-1.1.0-1I get a similar type of issue when I try to build hyprpanel.
I have tried completely removing my installed version of go and reinstalling, along with just letting it use go as part
of the makedepends.
Sorry if this is super obvious to any of you but I would appreicate any assistance ![]()
Last edited by grail69 (2025-02-08 18:33:23)
Offline
Where is /usr/lib/go/src/runtime/internal/sys/arch.go coming from? It's not in any package in the repos.
Last edited by Scimmia (2025-02-08 16:44:33)
Offline
What if you use makepkg? Works fine here
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
clone complete: /home/ewaller/clipse
ewaller@odin/~% cd clipse
ewaller@odin/~/clipse% makepkg -sCc
==> Making package: clipse 1.1.0-1 (Sat 08 Feb 2025 08:38:08 AM PST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading clipse-1.1.0.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 4026k 0 4026k 0 0 4353k 0 --:--:-- --:--:-- --:--:-- 4353k
==> Validating source files with sha256sums...
clipse-1.1.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting clipse-1.1.0.tar.gz with bsdtar
==> Starting build()...
go build -o "clipse"
go: downloading github.com/atotto/clipboard v0.1.4
go: downloading github.com/charmbracelet/bubbletea v1.1.1
go: downloading github.com/mitchellh/go-ps v1.0.0
go: downloading github.com/BourgeoisBear/rasterm v1.1.1
go: downloading github.com/charmbracelet/bubbles v0.20.0
go: downloading github.com/charmbracelet/lipgloss v0.13.0
go: downloading github.com/muesli/termenv v0.15.2
go: downloading github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
go: downloading github.com/charmbracelet/x/ansi v0.2.3
go: downloading github.com/sahilm/fuzzy v0.1.1
go: downloading github.com/rivo/uniseg v0.4.7
go: downloading github.com/mattn/go-runewidth v0.0.16
go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading golang.org/x/sys v0.24.0
go: downloading golang.org/x/sync v0.8.0
go: downloading github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6
go: downloading github.com/charmbracelet/x/term v0.2.0
go: downloading github.com/muesli/cancelreader v0.2.2
go: downloading golang.org/x/term v0.18.0
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Stripping unneeded symbols from binaries and libraries...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "clipse"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Creating package "clipse-debug"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: clipse 1.1.0-1 (Sat 08 Feb 2025 08:38:18 AM PST)
==> Cleaning up...
ewaller@odin/~/clipse% Built inside hyprland. Auracle command is another way of doing git clone http://aur.archlinux.org/clipse
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Where are those files in /usr/lib/go/src/runtime/ coming from? They are not in any package in the repos.
Pretty sure they are defined in the package's go.mod file
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
# pacman -Fy
:: Synchronising package databases...
core 1132.9 KiB 2.37 MiB/s 00:00 [####################################################################] 100%
extra 44.7 MiB 9.56 MiB/s 00:05 [####################################################################] 100%
$ pacman -F usr/lib/go/src/runtime/internal/sys/consts.go
usr/lib/go/src/runtime/internal/sys/consts.go is owned by extra/go 2:1.23.6-1
$ pacman -F usr/lib/go/src/runtime/internal/sys/arch.goWhat installed /usr/lib/go/src/runtime/internal/sys/arch.go?
Offline
Scimmia wrote:Where are those files in /usr/lib/go/src/runtime/ coming from? They are not in any package in the repos.
Pretty sure they are defined in the package's go.mod file
I edited while you were posting, one is which I overlooked. The other is not.
Offline
So from the last time I called the install, all the go stuff was applied as part of the makedepends.
However, I have just run the following:
$ paru -Qo /usr/lib/go/src/runtime/internal/sys/arch.go
error: No package owns /usr/lib/go/src/runtime/internal/sys/arch.goHowever, everything in that directory was installed as part of calling the install of clipse
As for calling makepkg-sCc, I end with the exact same error message
So not sure if there could be something funny in my system??
Offline
So from the last time I called the install, all the go stuff was applied as part of the makedepends.
Was go already installed on the system or did the clipse build download go?
However, everything in that directory was installed as part of calling the install of clipse
What does 'calling the install of clipse' mean?
pacman -Qlp clipse-1.1.0-1-any.pkg.tar.zst
clipse /usr/
clipse /usr/bin/
clipse /usr/bin/clipseOffline
On the most recent installs it was installed as part of:
makedepends=(
'go'
)So my assumption here was that "as part of the install" it was temporarily installing go (happy to be corrected if wrong about that) and it would be removed once the install of clipse had completed
Offline
So my assumption here was that "as part of the install" it was temporarily installing go (happy to be corrected if wrong about that) and it would be removed once the install of clipse had completed
`makepkg -rs` would install makedepends before the build and remove them afterwards however no package in the official repositories including go contains the file /usr/lib/go/src/runtime/internal/sys/arch.go.
Edit:
https://github.com/golang/go/issues/47773 would explain the issue if you manually installed an older version of go.
Last edited by loqs (2025-02-08 17:46:31)
Offline
This isn't something that was installed as part of building clipse. That simply can't happen.
This is something you installed previously, probably by running sudo go or sudo make install or something. Use lostfiles to see all of the things you've installed outside of pacman.
Offline
So I am not sure what to tell you:
$ which go
which: no go in (/home/grail/.asdf/shims:/home/grail/.asdf/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/grail/bin)
$ paru -S clipse
:: Resolving dependencies...
:: There are 2 providers available for clipse:
:: Repository AUR:
1) clipse 2) clipse-bin
Enter a number (default=1):
:: Calculating conflicts...
:: Calculating inner conflicts...
Repo Make (1) go-2:1.23.6-1
Aur (1) clipse-1.1.0-1
:: Proceed to review? [Y/n]:
:: Downloading PKGBUILDs...
/home/grail/.cache/paru/clone/clipse/PKGBUILD [-------------------------------------------------------------]
# Contributor: raininja < dandenkijin at gmail dot com >
# Maintainer: raininja < dandenkijin at gmail dot com >
pkgname=clipse
pkgver=1.1.0
pkgrel=1
pkgdesc="A configurable TUI clipboard manager for Unix."
arch=('any')
url="https://github.com/savedra1/clipse"
license=('GPL-3.0-or-later')
makedepends=(
'go'
)
optdepends=(
'xclip'
'wl-clipboard'
)
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('a265b16505ef6ab45259d2daf8fbb4b13f18c8231a7deb70b08936fce759c29e')
build() {
export GOPATH="$srcdir"/gopath
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_ENABLED=1
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
cd "$srcdir/$pkgname-$pkgver"
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr" build
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}
:: Accept changes? [Y/n]:
[sudo] password for grail:
resolving dependencies...
looking for conflicting packages...
Packages (1) go-2:1.23.6-1
Total Installed Size: 223.38 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [---------------------------------------] 100%
(1/1) checking package integrity [---------------------------------------] 100%
(1/1) loading package files [---------------------------------------] 100%
(1/1) checking for file conflicts [---------------------------------------] 100%
(1/1) checking available disk space [---------------------------------------] 100%
:: Processing package changes...
(1/1) installing go [---------------------------------------] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
fetching devel info...
==> Making package: clipse 1.1.0-1 (Sun 09 Feb 2025 02:05:07 AM AWST)
==> Retrieving sources...
-> Downloading clipse-1.1.0.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 4026k 0 4026k 0 0 2366k 0 --:--:-- 0:00:01 --:--:-- 4623k
==> Validating source files with sha256sums...
clipse-1.1.0.tar.gz ... Passed
==> Making package: clipse 1.1.0-1 (Sun 09 Feb 2025 02:05:09 AM AWST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found clipse-1.1.0.tar.gz
==> Validating source files with sha256sums...
clipse-1.1.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting clipse-1.1.0.tar.gz with bsdtar
==> Sources are ready.
clipse-1.1.0-1: parsing pkg list...
==> Making package: clipse 1.1.0-1 (Sun 09 Feb 2025 02:05:10 AM AWST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
go build -o "clipse"
go: downloading github.com/charmbracelet/bubbletea v1.1.1
go: downloading github.com/mitchellh/go-ps v1.0.0
go: downloading github.com/atotto/clipboard v0.1.4
go: downloading github.com/charmbracelet/bubbles v0.20.0
go: downloading github.com/BourgeoisBear/rasterm v1.1.1
go: downloading github.com/charmbracelet/lipgloss v0.13.0
go: downloading github.com/muesli/termenv v0.15.2
go: downloading github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
go: downloading golang.org/x/sync v0.8.0
go: downloading github.com/sahilm/fuzzy v0.1.1
go: downloading github.com/rivo/uniseg v0.4.7
go: downloading github.com/charmbracelet/x/term v0.2.0
go: downloading github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6
go: downloading github.com/charmbracelet/x/ansi v0.2.3
go: downloading github.com/muesli/cancelreader v0.2.2
go: downloading github.com/mattn/go-runewidth v0.0.16
go: downloading golang.org/x/term v0.18.0
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading golang.org/x/sys v0.24.0
go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1
go: downloading github.com/mattn/go-isatty v0.0.20
# runtime/internal/sys
/usr/lib/go/src/runtime/internal/sys/consts.go:15:7: StackGuardMultiplier redeclared in this block
/usr/lib/go/src/runtime/internal/sys/arch.go:27:7: other declaration of StackGuardMultiplier
/usr/lib/go/src/runtime/internal/sys/consts.go:18:7: DefaultPhysPageSize redeclared in this block
/usr/lib/go/src/runtime/internal/sys/arch.go:36:7: other declaration of DefaultPhysPageSize
/usr/lib/go/src/runtime/internal/sys/consts.go:22:7: PCQuantum redeclared in this block
/usr/lib/go/src/runtime/internal/sys/arch.go:40:7: other declaration of PCQuantum
/usr/lib/go/src/runtime/internal/sys/consts.go:25:7: Int64Align redeclared in this block
/usr/lib/go/src/runtime/internal/sys/arch.go:43:7: other declaration of Int64Align
/usr/lib/go/src/runtime/internal/sys/consts.go:32:7: MinFrameSize redeclared in this block
/usr/lib/go/src/runtime/internal/sys/arch.go:50:7: other declaration of MinFrameSize
/usr/lib/go/src/runtime/internal/sys/consts.go:36:7: StackAlign redeclared in this block
/usr/lib/go/src/runtime/internal/sys/arch.go:54:7: other declaration of StackAlign
/usr/lib/go/src/runtime/internal/sys/arch.go:27:30: undefined: StackGuardMultiplierDefault
make: *** [Makefile:10: build] Error 1
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'clipse-1.1.0-1':
error: packages failed to build: clipse-1.1.0-1You can see in the above output that it says it is installing go.
And only after running this do I get:
$ which go
/sbin/go
$ ll /sbin/go
lrwxrwxrwx 1 root root 18 05.02.2025 08:18 /sbin/go -> /usr/lib/go/bin/go*
$ ll /usr/lib/go/src/runtime/internal/sys/arch.go
-rw-r--r-- 1 root root 1943 12.02.2022 19:52 /usr/lib/go/src/runtime/internal/sys/arch.goNone of the above existed before trying to install clipse
Offline
-rw-r--r-- 1 root root 1943 12.02.2022 19:52 /usr/lib/go/src/runtime/internal/sys/arch.go2022 while clipse was first uploaded to AUR in 2024. Please use `lostfiles` as suggested by Scimmia to locate files that have been installed without pacman.
Last edited by loqs (2025-02-08 18:16:11)
Offline
Yes, we see it installed go, that doesn't mean it installed that file. It didn't. That file was already there, left over from something *YOU* did outside of pacman 3 years ago.
Last edited by Scimmia (2025-02-08 18:16:53)
Offline
Thank you everyone, lostfiles did indeed help me track down the erroneous files that I was not aware of.
Last edited by grail69 (2025-02-08 18:27:55)
Offline