sirpdboy / luci-app-ddns-go

luci-app-ddns-go 自动获得你的公网 IPv4 或 IPv6 地址,并解析到对应的域名服务。支持的域名服务商 Alidns(阿里云) Dnspod(腾讯云) Cloudflare 华为云 Callback 百度云 porkbun GoDaddy
512 stars 74 forks source link

编译报错 #52

Closed snakexgc closed 9 months ago

snakexgc commented 10 months ago

使用的是最新的lede版本和当前最新的luci-app-ddns-go,编译红米ac2100的固件的时候报错(之前编译正常,加入ddns-go的包后报错),报错内容如下:

make[3]: Entering directory '/home/user/lede/package/ddns-go/ddns-go'
rm -f /home/user/lede/build_dir/target-mipsel_24kc_musl/ddns-go-5.7.1/.built
touch /home/user/lede/build_dir/target-mipsel_24kc_musl/ddns-go-5.7.1/.built_check
CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/user/lede/tmp/go-build" GO_MOD_CACHE_DIR="/home/user/lede/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/jeessy2/ddns-go/v5" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/jeessy2/ddns-go/v5/..." GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/user/lede/build_dir/target-mipsel_24kc_musl/ddns-go-5.7.1" GO_BUILD_DIR="/home/user/lede/build_dir/target-mipsel_24kc_musl/ddns-go-5.7.1/.go_work/build" GO_BUILD_BIN_DIR="/home/user/lede/build_dir/target-mipsel_24kc_musl/ddns-go-5.7.1/.go_work/build/bin/linux_mipsle" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/home/user/lede/staging_dir/target-mipsel_24kc_musl/usr/share/gocode/src" GOOS="linux" GOARCH="mipsle" GO386="" GOAMD64="" GOARM="" GOMIPS="softfloat" GOMIPS64="" GOPPC64="" CGO_ENABLED=1 CC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" CGO_CFLAGS="-Os -pipe -mno-branch-likely -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -mips16 -minterlink-mips16 -fmacro-prefix-map=/home/user/lede/build_dir/target-mipsel_24kc_musl/ddns-go-5.7.1=ddns-go-5.7.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/home/user/lede/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/usr/include -I/home/user/lede/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/include/fortify -I/home/user/lede/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/include" CGO_CXXFLAGS="-Os -pipe -mno-branch-likely -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -mips16 -minterlink-mips16 -fmacro-prefix-map=/home/user/lede/build_dir/target-mipsel_24kc_musl/ddns-go-5.7.1=ddns-go-5.7.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/home/user/lede/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/usr/lib -L/home/user/lede/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/lib -znow -zrelro" GOPATH="/home/user/lede/build_dir/target-mipsel_24kc_musl/ddns-go-5.7.1/.go_work/build" GOCACHE="/home/user/lede/tmp/go-build" GOMODCACHE="/home/user/lede/dl/go-mod-cache" GOENV=off GOTOOLCHAIN=local /usr/bin/env bash /home/user/lede/feeds/packages/lang/golang//golang-build.sh build -v -buildvcs=false -trimpath -ldflags "all=-buildid '1705941012' -linkmode external -extldflags '-L/home/user/lede/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/usr/lib -L/home/user/lede/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/lib -Wl,-z,now -Wl,-z,relro'"     -installsuffix "softfloat"   -ldflags " -X main.version=5.7.1 -buildid '1705941012' -linkmode external -extldflags '-L/home/user/lede/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/usr/lib -L/home/user/lede/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/lib -Wl,-z,now -Wl,-z,relro'"  
Finding targets

Building targets
runtime/cgo
# runtime/cgo
gcc_mipsx.S: Assembler messages:
gcc_mipsx.S:27: Error: invalid operands `sw $18,12($29)'
gcc_mipsx.S:28: Error: invalid operands `sw $19,16($29)'
gcc_mipsx.S:29: Error: invalid operands `sw $20,20($29)'
gcc_mipsx.S:30: Error: invalid operands `sw $21,24($29)'
gcc_mipsx.S:31: Error: invalid operands `sw $22,28($29)'
gcc_mipsx.S:32: Error: invalid operands `sw $23,32($29)'
gcc_mipsx.S:33: Error: invalid operands `sw $30,36($29)'
gcc_mipsx.S:46: Error: invalid operands `jalr $20'
gcc_mipsx.S:50: Error: invalid operands `lw $18,12($29)'
gcc_mipsx.S:51: Error: invalid operands `lw $19,16($29)'
gcc_mipsx.S:52: Error: invalid operands `lw $20,20($29)'
gcc_mipsx.S:53: Error: invalid operands `lw $21,24($29)'
gcc_mipsx.S:54: Error: invalid operands `lw $22,28($29)'
gcc_mipsx.S:55: Error: invalid operands `lw $23,32($29)'
gcc_mipsx.S:56: Error: invalid operands `lw $30,36($29)'
gcc_mipsx.S:65: Error: invalid operands `lw $31,0($29)'

make[3]: *** [Makefile:61: /home/user/lede/build_dir/target-mipsel_24kc_musl/ddns-go-5.7.1/.built] Error 1
make[3]: Leaving directory '/home/user/lede/package/ddns-go/ddns-go'
time: package/ddns-go/ddns-go/compile#0.36#0.30#0.39
    ERROR: package/ddns-go/ddns-go failed to build.
make[2]: *** [package/Makefile:116: package/ddns-go/ddns-go/compile] Error 1
make[2]: Leaving directory '/home/user/lede'
make[1]: *** [package/Makefile:110: /home/user/lede/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/user/lede'
make: *** [/home/user/lede/include/toplevel.mk:231:world] 错误 2
BronyaSe commented 10 months ago

image 编译同样报错

snakexgc commented 10 months ago

image 编译同样报错

老哥放弃ddns-go吧,用ddns去,只要编译前把要用的 ddns-scripts-<ddns服务商> 的包加入编译安装,就能正常用

sirpdboy commented 9 months ago

新版本 没问题了。