Hello,
I seem to be encountering a build error with go-2:1.15.5-1 today. The error looks to be related to invalid linker flags, as shown here:
go build runtime/cgo: invalid flag in go:cgo_ldflag: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
Git Clone URL: | https://aur.archlinux.org/yay.git (read-only, click to copy) |
---|---|
Package Base: | yay |
Description: | Yet another yogurt. Pacman wrapper and AUR helper written in go. |
Upstream URL: | https://github.com/Jguer/yay |
Keywords: | arm AUR go helper pacman wrapper x86 |
Licenses: | GPL-3.0-or-later |
Submitter: | jguer |
Maintainer: | jguer |
Last Packager: | jguer |
Votes: | 2254 |
Popularity: | 25.31 |
First Submitted: | 2016-10-05 17:20 (UTC) |
Last Updated: | 2024-09-19 14:27 (UTC) |
« First ‹ Previous 1 .. 11 12 13 14 15 16 17 18 19 20 21 .. 35 Next › Last »
Hello,
I seem to be encountering a build error with go-2:1.15.5-1 today. The error looks to be related to invalid linker flags, as shown here:
go build runtime/cgo: invalid flag in go:cgo_ldflag: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
i'm trying to install yay git and i believe a change i made a while ago when installing arch may have messed with makepkg. here's the debug:
==> Making package: yay 10.0.4-1 (Tue 03 Nov 2020 09:32:13 PM GMT) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found yay-10.0.4.tar.gz ==> Validating source files with sha256sums... yay-10.0.4.tar.gz ... Passed ==> Extracting sources... -> Extracting yay-10.0.4.tar.gz with bsdtar ==> Removing existing $pkgdir/ directory... ==> Starting build()... go build -v -trimpath -mod=readonly -modcacherw -ldflags '-s -w -extldflags "-Wl,-O1,- -sort-common,--as-needed,-z,relro,-z,now" -X "main.yayVersion=10.0.4" -X "main.localeP ath=/usr/share/locale/"' -buildmode=pie -o yay runtime/cgo
cc1: error: bad value ('native=generic') for '-march=' switch cc1: note: valid arguments to '-march=' switch are: nocona core2 nehalem corei7 westme re sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake sky lake-avx512 cannonlake icelake-client icelake-server cascadelake tigerlake cooperlake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver 1 znver2 btver1 btver2 native make: *** [Makefile:127: yay] Error 2 ==> ERROR: A failure occurred in build(). Aborting... please help!
@Linuxious remove your out-of-date mark - fakeroot is in the base-devel
group, which is a prerequisite for building AUR packages. Please familiarise yourself with the AUR building process.
This version has become very slow probably due to bugs
What is happend with GPG keys?
spotify: gpg: keyserver receive failed: General error\n problem importing keys
caddy2: gpg: keyserver receive failed: General error\n problem importing keys
@duckdalbe: What are you talking about? Of course gcc
is in the base-devel
group.
gcc
is a makedepends, should be added (and is not included in base-devel).
@darnir: -flto
is not used in the default /etc/makepkg.conf
, no changes are necessary except on your end, apparently.
@darnir See the pinned comment.
Pinned Comments
jguer commented on 2024-03-16 08:06 (UTC)
This will happen if you upgrade pacman and yay separately If you have this error you need to manually recompile yay
jguer commented on 2019-04-16 14:08 (UTC)
I cannot delete the spam comments appearing regularly in this page, which has also led me to disable notifications from here. I remind that the best way to receive support or report a problem is through the Upstream URL.