dounei5721 2019-06-18 04:01
浏览 168

在msys2中构建失败

yay https://github.com/Jguer/yay is a tool for build Arch User Repository packages. I'm trying to build it in Windows msys2(https://www.msys2.org/) which is based on the similar package manager 'pacman'.

My steps

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

The error message occurs in build 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条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
    • ¥15 微信公众号自制会员卡没有收款渠道啊
    • ¥15 stable diffusion
    • ¥100 Jenkins自动化部署—悬赏100元
    • ¥15 关于#python#的问题:求帮写python代码
    • ¥20 MATLAB画图图形出现上下震荡的线条
    • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
    • ¥15 perl MISA分析p3_in脚本出错
    • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
    • ¥15 ubuntu虚拟机打包apk错误