在 Arch Linux 上安装 yay 时出现 Collect2 错误

在 Arch Linux 上安装 yay 时出现 Collect2 错误

我不知道为什么会发生这种情况。Google 没有帮助我。

操作系统:Arch Linux(64 位)
核心:4.18.5-arch1-1-ARCH


我尝试为我的 Arch Linux 安装 yay,但遇到了错误。
以下是日志:

==> 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...


可能是什么问题?

相关内容