kenzok8 / small

ssr passwall homeprxoy 依赖
Apache License 2.0
1.02k stars 797 forks source link

云编译alist报错 #84

Closed AbelTu96 closed 1 year ago

AbelTu96 commented 1 year ago

应该是这个地方

make[3]: Entering directory '/workdir/openwrt/feeds/kenzo/alist' rm -f /workdir/openwrt/build_dir/target-x86_64_musl/alist-3.27.0/.built touch /workdir/openwrt/build_dir/target-x86_64_musl/alist-3.27.0/.built_check CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/workdir/openwrt/tmp/go-build" GO_MOD_CACHE_DIR="/workdir/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="/workdir/openwrt/build_dir/target-x86_64_musl/alist-3.27.0" GO_BUILD_DIR="/workdir/openwrt/build_dir/target-x86_64_musl/alist-3.27.0/.go_work/build" GO_BUILD_BIN_DIR="/workdir/openwrt/build_dir/target-x86_64_musl/alist-3.27.0/.go_work/build/bin" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/workdir/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=/workdir/openwrt/build_dir/target-x86_64_musl/alist-3.27.0=alist-3.27.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -D_LARGEFILE64_SOURCE" CGO_CPPFLAGS="-I/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/include -I/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/include/fortify -I/workdir/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=/workdir/openwrt/build_dir/target-x86_64_musl/alist-3.27.0=alist-3.27.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -D_LARGEFILE64_SOURCE" CGO_LDFLAGS="-L/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/lib -L/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/lib -znow -zrelro" GOPATH="/workdir/openwrt/build_dir/target-x86_64_musl/alist-3.27.0/.go_work/build" GOCACHE="/workdir/openwrt/tmp/go-build" GOMODCACHE="/workdir/openwrt/dl/go-mod-cache" GOENV=off /usr/bin/env bash /workdir/openwrt/feeds/packages/lang/golang//golang-build.sh build -v -buildvcs=false -trimpath -ldflags "all=-buildid '1693733730' -linkmode external -extldflags '-L/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/lib -L/workdir/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.27.0-x86_64 -X github.com/alist-org/alist/v3/internal/conf.WebVersion=3.27.0 -buildid '1693733730' -linkmode external -extldflags '-L/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/lib -L/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/lib -Wl,-z,now -Wl,-z,relro'"
Finding targets

Building targets github.com/winfsp/cgofuse/fuse

github.com/winfsp/cgofuse/fuse

../../../../../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 117 | #include | ^~~~ compilation terminated.

make[3]: [Makefile:76: /workdir/openwrt/build_dir/target-x86_64_musl/alist-3.27.0/.built] Error 1 make[3]: Leaving directory '/workdir/openwrt/feeds/kenzo/alist' time: package/feeds/kenzo/alist/compile#3.21#0.73#2.93 ERROR: package/feeds/kenzo/alist failed to build. make[2]: [package/Makefile:116: package/feeds/kenzo/alist/compile] Error 1 make[2]: Leaving directory '/workdir/openwrt' make[1]: [package/Makefile:110: /workdir/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/workdir/openwrt' make: [/workdir/openwrt/include/toplevel.mk:231: world] Error 2 Error: Process completed with exit code 2.

kenzok8 commented 1 year ago

#411 或者看看作者的仓库 https://github.com/sbwml/luci-app-alist

AbelTu96 commented 1 year ago

那就没办法了 小白一个 只能opkg手动安装了

kenzok8 commented 1 year ago

ubuntu/debian: sudo apt install libfuse-dev

CentOS: sudo yum install fuse-devel