sbwml / luci-app-alist

LuCI support for Alist
https://github.com/AlistGo/alist
1.35k stars 202 forks source link

编译失败 #110

Closed ywt114 closed 7 months ago

ywt114 commented 7 months ago

2024-04-22T10:59:14.1992612Z make[3]: Entering directory '/home/runner/work/test/test/openwrt/package/lean/alist/alist' 2024-04-22T10:59:14.3447850Z rm -f /home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/alist-3.33.0/.built 2024-04-22T10:59:14.3476703Z touch /home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/alist-3.33.0/.built_check 2024-04-22T10:59:14.3523801Z CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/runner/work/test/test/openwrt/tmp/go-build" GO_MOD_CACHE_DIR="/home/runner/work/test/test/openwrt/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/alist-org/alist" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/alist-org/alist/..." GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/alist-3.33.0" GO_BUILD_DIR="/home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/alist-3.33.0/.go_work/build" GO_BUILD_BIN_DIR="/home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/alist-3.33.0/.go_work/build/bin" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/home/runner/work/test/test/openwrt/staging_dir/target-x86_64_musl/usr/share/gocode/src" GOOS="linux" GOARCH="amd64" GO386="" GOAMD64="v1" GOARM="" GOMIPS="" GOMIPS64="" GOPPC64="" CGO_ENABLED=1 CC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" CGO_CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/alist-3.33.0=alist-3.33.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -D_LARGEFILE64_SOURCE" CGO_CPPFLAGS="-I/home/runner/work/test/test/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/include -I/home/runner/work/test/test/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/include/fortify -I/home/runner/work/test/test/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/include" CGO_CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/alist-3.33.0=alist-3.33.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -D_LARGEFILE64_SOURCE" CGO_LDFLAGS="-L/home/runner/work/test/test/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/lib -L/home/runner/work/test/test/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/lib -znow -zrelro" GOPATH="/home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/alist-3.33.0/.go_work/build" GOCACHE="/home/runner/work/test/test/openwrt/tmp/go-build" GOMODCACHE="/home/runner/work/test/test/openwrt/dl/go-mod-cache" GOENV=off GOTOOLCHAIN=local /usr/bin/env bash /home/runner/work/test/test/openwrt/feeds/packages/lang/golang//golang-build.sh build -v -buildvcs=false -trimpath -ldflags "all=-buildid '1713710385' -linkmode external -extldflags '-L/home/runner/work/test/test/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/lib -L/home/runner/work/test/test/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/lib -Wl,-z,now -Wl,-z,relro'" -ldflags "-w -s -X github.com/alist-org/alist/v3/internal/conf.Version=v3.33.0-x86_64 -X github.com/alist-org/alist/v3/internal/conf.WebVersion=3.33.0 -buildid '1713710385' -linkmode external -extldflags '-L/home/runner/work/test/test/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/lib -L/home/runner/work/test/test/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/lib -Wl,-z,now -Wl,-z,relro'"
2024-04-22T10:59:14.3558144Z Finding targets 2024-04-22T10:59:14.6909909Z 2024-04-22T10:59:14.6910534Z Building targets 2024-04-22T10:59:15.0888193Z github.com/winfsp/cgofuse/fuse 2024-04-22T10:59:15.1509922Z # github.com/winfsp/cgofuse/fuse 2024-04-22T10:59:15.1511911Z ../../../../../dl/go-mod-cache/github.com/winfsp/cgofuse@v1.5.1-0.20230130140708-f87f5db493b5/fuse/host_cgo.go:117:10: fatal error: fuse.h: No such file or directory 2024-04-22T10:59:15.1513692Z 117 | #include 2024-04-22T10:59:15.1514182Z | ^~~~ 2024-04-22T10:59:15.1521159Z compilation terminated. 2024-04-22T10:59:17.5759358Z 2024-04-22T10:59:17.7179736Z make[3]: [Makefile:92: /home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/alist-3.33.0/.built] Error 1 2024-04-22T10:59:17.7180905Z make[3]: Leaving directory '/home/runner/work/test/test/openwrt/package/lean/alist/alist' 2024-04-22T10:59:17.7183920Z time: package/lean/alist/alist/compile#2.59#1.78#3.52 2024-04-22T10:59:17.7191492Z ERROR: package/lean/alist/alist failed to build. 2024-04-22T10:59:17.7195142Z make[2]: [package/Makefile:116: package/lean/alist/alist/compile] Error 1 2024-04-22T10:59:17.7199622Z make[2]: Leaving directory '/home/runner/work/test/test/openwrt' 2024-04-22T10:59:17.7205504Z make[1]: [package/Makefile:110: /home/runner/work/test/test/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 2024-04-22T10:59:17.7210951Z make[1]: Leaving directory '/home/runner/work/test/test/openwrt' 2024-04-22T10:59:17.7218598Z make: [/home/runner/work/test/test/openwrt/include/toplevel.mk:231: world] Error 2 2024-04-22T10:59:17.7238504Z ##[error]Process completed with exit code 2.

而且我编译环境已经安装了libfuse-dev,同时也已经把alist的Makefile里的PKG_BUILD_DEPENDS:=golang/host改成PKG_BUILD_DEPENDS:=golang/host fuse/host还是编译失败

sbwml commented 7 months ago

image

ywt114 commented 7 months ago

image

我的编译环境里已经安装了libfuse-dev啦

sudo apt update -y sudo apt full-upgrade -y sudo apt install -y libfuse-dev

sbwml commented 7 months ago

你没有安装

从 Windows 版邮件发送

发件人: ywt114 发送时间: 2024年4月22日 22:57 收件人: sbwml/luci-app-alist 抄送: Bard; Comment 主题: Re: [sbwml/luci-app-alist] 编译失败 (Issue #110)

image.png (view on web) 我的编译环境里已经安装了libfuse-dev啦 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

ywt114 commented 7 months ago

你没有安装

从 Windows 版邮件发送

发件人: ywt114

发送时间: 2024年4月22日 22:57

收件人: sbwml/luci-app-alist

抄送: Bard; Comment

主题: Re: [sbwml/luci-app-alist] 编译失败 (Issue #110)

image.png (view on web)

我的编译环境里已经安装了libfuse-dev啦

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.Message ID: @.***>

ubuntu系统 git clone之前就已经安装编译依赖 选择了libfuse-dev 你说的没有安装 我就不明白了而且原来一直正常 就前两天开始报错的

sbwml commented 7 months ago

就你发的日志看,它来自GitHub action 工作流,但是我顺着你头像进去看工作流并没有任何安装 libfuse-dev 包的动作。

从 Windows 版邮件发送

发件人: ywt114 发送时间: 2024年4月22日 23:04 收件人: sbwml/luci-app-alist 抄送: Bard; Comment 主题: Re: [sbwml/luci-app-alist] 编译失败 (Issue #110)

你没有安装 从 Windows 版邮件发送 发件人: ywt114 发送时间: 2024年4月22日 22:57 收件人: sbwml/luci-app-alist 抄送: Bard; Comment 主题: Re: [sbwml/luci-app-alist] 编译失败 (Issue #110) image.png (view on web) 我的编译环境里已经安装了libfuse-dev啦 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> ubuntu系统 git clone之前就已经安装编译依赖 选择了libfuse-dev 你说的没有安装 我就不明白了 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

ywt114 commented 7 months ago

就你发的日志看,它来自GitHub action 工作流,但是我顺着你头像进去看工作流并没有任何安装 libfuse-dev 包的动作。

从 Windows 版邮件发送

发件人: ywt114

发送时间: 2024年4月22日 23:04

收件人: sbwml/luci-app-alist

抄送: Bard; Comment

主题: Re: [sbwml/luci-app-alist] 编译失败 (Issue #110)

你没有安装

从 Windows 版邮件发送

发件人: ywt114

发送时间: 2024年4月22日 22:57

收件人: sbwml/luci-app-alist

抄送: Bard; Comment

主题: Re: [sbwml/luci-app-alist] 编译失败 (Issue #110)

image.png (view on web)

我的编译环境里已经安装了libfuse-dev啦

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.Message ID: @.***>

ubuntu系统 git clone之前就已经安装编译依赖 选择了libfuse-dev 你说的没有安装 我就不明白了

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.Message ID: @.***>

终极原因找到了 是github修改了部分规则导致raw文件链接识别失效导致 我之前安装环境编译依赖用的是sudo -E apt -yqq install $(curl -fsSL https://raw.githubusercontent.com/xxxxxx)之前都是可以正常识别https://raw.githubusercontent.com/xxxxxx的链接 规则修改后识别成https://raw.githubusercontent.com/xxxxxx) 带括号,不能正常读取造成依赖没用被安装造成 我修改了代码sudo -E apt -yqq install $(curl -fsSL https://raw.githubusercontent.com/xxxxxx | tr '\n' ' ') 解决 很抱歉 我太粗心没有关注到fuse没有被正常安装 所以实际上源码并没有问题 Makefile不需要修改