Arch Linux용 yay를 설치할 때 Collect2 오류가 발생함

Arch Linux용 yay를 설치할 때 Collect2 오류가 발생함

운영 체제:아치 리눅스(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

관련 정보