操作系统:Arch Linux(64 位)
核心:4.18.5-arch1-1-ARCH
壳:巴什
我尝试安装耶对于我的 Arch Linux,但遇到了错误。
这是日志:
==> Making package: yay 9.1.0-1 (Mon 18 Feb 2019 08:01:59 PM MSK)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found yay-9.1.0.tar.gz
==> Validating source files with sha1sums...
yay-9.1.0.tar.gz ... Passed
==> Extracting sources...
-> Extracting yay-9.1.0.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
go build -v -ldflags '-s -w -X main.version=9.1.0' -o yay -mod=vendor
# github.com/Jguer/yay/v9
/usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: /tmp/go-link-743391074/000012.o: unable to initialize decompress status for section .debug_info
/usr/bin/ld: /tmp/go-link-743391074/000012.o: unable to initialize decompress status for section .debug_info
/usr/bin/ld: /tmp/go-link-743391074/000012.o: unable to initialize decompress status for section .debug_info
/usr/bin/ld: /tmp/go-link-743391074/000012.o: unable to initialize decompress status for section .debug_info
/tmp/go-link-743391074/000012.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
make: *** [Makefile:51: build] Error 2
==> ERROR: A failure occurred in build().
Aborting...
问题可能是什么?
答案1
升级您的系统链接器
# pacman -Sy binutils