在msys2中构建失败

时间:2019-06-18 04:01:47

标签: go msys2

yay https://github.com/Jguer/yay是用于构建Arch User Repository软件包的工具。我正在尝试在基于类似软件包管理器“ pacman”的Windows msys2(https://www.msys2.org/)中构建它。

我的步骤

pacman -S base-devel base-mingw64-devel
pacman -S mingw-w64-x86_64-ca-certificates ca-certificates  # for git https
pacman -S mingw-w64-x86_64-go
export PATH=$PATH:/mingw64/bin
export GOROOT=/mingw64/lib/go  # com from /mingw64/etc/profile.d/go.zsh git 
pacman -S libarchive-devel  # for build dependency
clone https://aur.archlinux.org/yay.git
cd yay
vim PKGBUILD # remove the 'go' makedepend and 'sudo' depends
makepkg

错误消息出现在构建github.com/jguer/go-alpm

/usr/lib/../lib/libalpm.a(libalpm_la-alpm.o):(.text+0x18f): undefined reference to `libintl_bindtextdomain'
/usr/lib/../lib/libalpm.a(libalpm_la-alpm.o):(.text+0x18f): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libintl_bindtextdomain'
/usr/lib/../lib/libalpm.a(libalpm_la-alpm.o):(.text+0x1f2): undefined reference to `curl_global_cleanup'
/usr/lib/../lib/libalpm.a(libalpm_la-alpm.o):(.text+0x1f2): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `curl_global_cleanup'
...

0 个答案:

没有答案