kenzok8 / small

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

luci-app-vssr无法编译 #80

Closed ChaingTsung closed 1 year ago

ChaingTsung commented 1 year ago

编译平台 ubuntu20.04, kernel 5.19

目标平台 Banana pi r3

源码 Openwrt offical code with branch main

日志

...
github.com/antonfisher/nested-logrus-formatter
go.uber.org/zap/internal/color
go.uber.org/zap/internal/exit
go.uber.org/multierr
golang.org/x/text/transform
golang.org/x/text/unicode/bidi
go.uber.org/zap/zapcore
golang.org/x/text/unicode/norm
golang.org/x/text/secure/bidirule
github.com/jtacoma/uritemplates
github.com/pion/dtls/v2/internal/util
github.com/pion/dtls/v2/pkg/crypto/ccm
golang.org/x/crypto/curve25519/internal/field
go.uber.org/zap/internal
github.com/pion/dtls/v2/pkg/crypto/hash
golang.org/x/crypto/curve25519
golang.org/x/net/idna
github.com/pion/dtls/v2/pkg/crypto/signature
github.com/pion/dtls/v2/pkg/crypto/elliptic
github.com/pion/dtls/v2/internal/closer
github.com/pion/transport/v2/deadline
github.com/pion/transport/v2/replaydetector
github.com/pion/udp/pkg/sync
github.com/pion/transport/v2/packetio
golang.org/x/net/http2/hpack
github.com/fsnotify/fsnotify
github.com/quic-go/qpack
google.golang.org/protobuf/internal/detrand
google.golang.org/protobuf/internal/pragma
google.golang.org/protobuf/internal/flags
google.golang.org/protobuf/internal/errors
google.golang.org/protobuf/internal/set
google.golang.org/protobuf/internal/version
google.golang.org/protobuf/encoding/protowire
github.com/spf13/afero/internal/common
golang.org/x/text/runes
google.golang.org/protobuf/reflect/protoreflect
github.com/spf13/afero/mem
github.com/spf13/cast
github.com/spf13/viper/internal/encoding
github.com/subosito/gotenv
github.com/apernet/hysteria/core/utils
github.com/oschwald/maxminddb-golang
github.com/apernet/hysteria/core/pktconns/faketcp
github.com/apernet/hysteria/core/pktconns/udp
github.com/apernet/hysteria/core/pktconns/wechat
github.com/apernet/hysteria/core/sockopt
github.com/txthinking/x
github.com/apernet/hysteria/core/pktconns
github.com/quic-go/quic-go/internal/utils
github.com/quic-go/qtls-go1-20
github.com/oschwald/geoip2-golang
github.com/txthinking/socks5
github.com/apernet/hysteria/core/acl
golang.org/x/net/internal/socket
github.com/apernet/hysteria/core/transport
github.com/elazarl/goproxy
github.com/LiamHaworth/go-tproxy
golang.org/x/net/ipv4
golang.org/x/net/ipv6
github.com/elazarl/goproxy/ext/auth
go.uber.org/zap
golang.org/x/crypto/ocsp
github.com/RackSec/srslog
github.com/miekg/dns
github.com/pion/dtls/v2/pkg/protocol
github.com/mholt/acmez/acme
github.com/pion/dtls/v2/pkg/crypto/prf
github.com/quic-go/quic-go/internal/qtls
# github.com/quic-go/quic-go/internal/qtls
../../../../../dl/go-mod-cache/github.com/apernet/quic-go@v0.34.1-0.20230507231629-ec008b7e8473/internal/qtls/go121.go:5:13: cannot use "The version of quic-go you're using can't be built on Go 1.21 yet. For more details, please see https://github.com/quic-go/quic-go/wiki/quic-go-and-Go-versions." (untyped string constant "The version of quic-go you're using can't be built on Go 1.21 yet. F...) as int value in variable declaration
github.com/pion/dtls/v2/pkg/protocol/alert
github.com/pion/dtls/v2/pkg/crypto/signaturehash
github.com/pion/transport/v2/connctx
github.com/pion/udp
github.com/pion/dtls/v2/pkg/protocol/extension
golang.org/x/net/http/httpguts
github.com/mholt/acmez
github.com/pion/dtls/v2/pkg/protocol/handshake
golang.org/x/net/http2
github.com/pion/dtls/v2/pkg/protocol/recordlayer
github.com/pion/dtls/v2/pkg/crypto/ciphersuite
google.golang.org/protobuf/internal/encoding/messageset
google.golang.org/protobuf/internal/strs
github.com/pion/dtls/v2/internal/ciphersuite
google.golang.org/protobuf/internal/encoding/text
google.golang.org/protobuf/internal/genid
github.com/pion/dtls/v2
google.golang.org/protobuf/internal/order
google.golang.org/protobuf/reflect/protoregistry
google.golang.org/protobuf/runtime/protoiface
google.golang.org/protobuf/proto
google.golang.org/protobuf/internal/encoding/defval
google.golang.org/protobuf/internal/descfmt
google.golang.org/protobuf/encoding/prototext
google.golang.org/protobuf/internal/descopts
google.golang.org/protobuf/internal/filedesc
github.com/prometheus/procfs
github.com/spf13/cobra
github.com/caddyserver/certmagic
github.com/spf13/afero
google.golang.org/protobuf/internal/encoding/tag
google.golang.org/protobuf/internal/impl
github.com/spf13/viper/internal/encoding/dotenv
github.com/spf13/viper/internal/encoding/hcl
github.com/spf13/viper/internal/encoding/ini
github.com/spf13/viper/internal/encoding/javaproperties
github.com/spf13/viper/internal/encoding/json
github.com/pelletier/go-toml/v2/internal/characters
github.com/pelletier/go-toml/v2/internal/danger
github.com/spf13/viper/internal/encoding/yaml
github.com/pelletier/go-toml/v2/unstable
github.com/pelletier/go-toml/v2/internal/tracker
github.com/pelletier/go-toml/v2
github.com/spf13/viper/internal/encoding/toml
github.com/spf13/viper
google.golang.org/protobuf/internal/filetype
google.golang.org/protobuf/runtime/protoimpl
google.golang.org/protobuf/types/known/timestamppb
google.golang.org/protobuf/types/descriptorpb
github.com/golang/protobuf/ptypes/timestamp
google.golang.org/protobuf/reflect/protodesc
github.com/golang/protobuf/proto
github.com/prometheus/client_model/go
github.com/matttproud/golang_protobuf_extensions/pbutil
github.com/prometheus/common/expfmt
github.com/prometheus/client_golang/prometheus/internal
github.com/prometheus/client_golang/prometheus
github.com/prometheus/client_golang/prometheus/promhttp

make[2]: *** [Makefile:56: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/hysteria-1.3.5/.built] Error 1
make[2]: Leaving directory '/home/yoki/openwrt/feeds/small/hysteria'
time: package/feeds/small/hysteria/compile#67.58#32.65#47.56
    ERROR: package/feeds/small/hysteria failed to build.
make[1]: *** [package/Makefile:120: package/feeds/small/hysteria/compile] Error 1
make[1]: Leaving directory '/home/yoki/openwrt'
make: *** [/home/yoki/openwrt/include/toplevel.mk:232:package/feeds/small/luci-app-vssr/compile] 错误 2
kenzok8 commented 1 year ago

./scripts/feeds clean git pull && ./scripts/feeds update -a && ./scripts/feeds install -a 我编译好好的,本地与云编译都能过啊!你们选择了什么? ssr passwall等默认配置编译就行了

dukmonki commented 1 year ago

再试试。

ChaingTsung commented 1 year ago

./scripts/feeds clean git pull && ./scripts/feeds update -a && ./scripts/feeds install -a 我编译好了,本地与云编译过啊!你们选择什么? ssr passwall 等默认配置编译就行了

不行啊,cp .config ~/old.config && make clean && make dirclean && git pull && ./scripts/feeds update -a && ./scripts/feeds install -a && cp ~/old.config .config && $(make -j4 || make -j1 V=s) 还是错误一堆

...
Packaged contents of /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/ipkg-all/v2ray-geoip into /home/yoki/openwrt/bin/packages/aarch64_cortex-a53/base/v2ray-geoip_202308240036-203_all.ipk
removed '/home/yoki/openwrt/bin/packages/aarch64_cortex-a53/base/v2ray-geosite_20230825070717-203_all.ipk'
mkdir -p /home/yoki/openwrt/bin/targets/mediatek/filogic/packages /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/ipkg-all/v2ray-geosite/CONTROL /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo
install -d -m0755 /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/ipkg-all/v2ray-geosite/usr/share/v2ray
install -m0644 /home/yoki/openwrt/dl/dlc.dat.20230825070717 /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/ipkg-all/v2ray-geosite/usr/share/v2ray/geosite.dat
find /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/ipkg-all/v2ray-geosite -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="aarch64-openwrt-linux-musl-"  NO_RENAME=1 ; NM="aarch64-openwrt-linux-musl-nm" STRIP="/home/yoki/openwrt/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/home/yoki/openwrt/scripts/strip-kmod.sh" PATCHELF="/home/yoki/openwrt/staging_dir/host/bin/patchelf" /home/yoki/openwrt/scripts/rstrip.sh /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/ipkg-all/v2ray-geosite
(cd /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/ipkg-all/v2ray-geosite/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /home/yoki/openwrt/bin/packages/aarch64_cortex-a53/base
/home/yoki/openwrt/staging_dir/host/bin/fakeroot /home/yoki/openwrt/staging_dir/host/bin/bash /home/yoki/openwrt/scripts/ipkg-build -m "" /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/ipkg-all/v2ray-geosite /home/yoki/openwrt/bin/packages/aarch64_cortex-a53/base
Packaged contents of /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/ipkg-all/v2ray-geosite into /home/yoki/openwrt/bin/packages/aarch64_cortex-a53/base/v2ray-geosite_20230825070717-203_all.ipk
rm -rf /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/.pkgdir/v2ray-geosite.installed /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/.pkgdir/v2ray-geosite
mkdir -p /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/.pkgdir/v2ray-geosite
install -d -m0755 /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/.pkgdir/v2ray-geosite/usr/share/v2ray
install -m0644 /home/yoki/openwrt/dl/dlc.dat.20230825070717 /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/.pkgdir/v2ray-geosite/usr/share/v2ray/geosite.dat
touch /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/.pkgdir/v2ray-geosite.installed
mkdir -p /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp
SHELL= flock /home/yoki/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-geodata/.pkgdir/v2ray-geosite/. /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/'
touch /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp/.v2ray-geosite_installed
make[3]: Leaving directory '/home/yoki/openwrt/package/small/v2ray-geodata'
time: package/small/v2ray-geodata/compile#1.48#0.27#1.59
make[3]: Entering directory '/home/yoki/openwrt/package/small/v2ray-core'
rm -f /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-core-5.7.0/.built
touch /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-core-5.7.0/.built_check
CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/yoki/openwrt/tmp/go-build" GO_MOD_CACHE_DIR="/home/yoki/openwrt/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/v2fly/v2ray-core/v5" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/v2fly/v2ray-core/v5/main" GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-core-5.7.0" GO_BUILD_DIR="/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-core-5.7.0/.go_work/build" GO_BUILD_BIN_DIR="/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-core-5.7.0/.go_work/build/bin/linux_arm64" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/share/gocode/src" GOOS="linux" GOARCH="arm64" GO386="" GOAMD64="" GOARM="" GOMIPS="" GOMIPS64="" GOPPC64="" CGO_ENABLED=1 CC="aarch64-openwrt-linux-musl-gcc" CXX="aarch64-openwrt-linux-musl-g++" CGO_CFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-core-5.7.0=v2ray-core-5.7.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/usr/include -I/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/include/fortify -I/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/include" CGO_CXXFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-core-5.7.0=v2ray-core-5.7.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/usr/lib -L/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro" GOPATH="/home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-core-5.7.0/.go_work/build" GOCACHE="/home/yoki/openwrt/tmp/go-build" GOMODCACHE="/home/yoki/openwrt/dl/go-mod-cache" GOENV=off GOTOOLCHAIN=local /usr/bin/env bash /home/yoki/openwrt/feeds/packages/lang/golang//golang-build.sh build -v -buildvcs=false -trimpath -ldflags "all=-buildid '1693623177' -linkmode external -extldflags '-L/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/usr/lib -L/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/lib -fuse-ld=bfd -Wl,-z,now -Wl,-z,relro'"        -ldflags " -X github.com/v2fly/v2ray-core/v5.build=OpenWrt -X github.com/v2fly/v2ray-core/v5.version=5.7.0 -buildid '1693623177' -linkmode external -extldflags '-L/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/usr/lib -L/home/yoki/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/lib -fuse-ld=bfd -Wl,-z,now -Wl,-z,relro'"  
Finding targets

Building targets
github.com/quic-go/quic-go/internal/qtls
# github.com/quic-go/quic-go/internal/qtls
../../../../../dl/go-mod-cache/github.com/quic-go/quic-go@v0.33.0/internal/qtls/go121.go:5:13: cannot use "The version of quic-go you're using can't be built on Go 1.21 yet. For more details, please see https://github.com/quic-go/quic-go/wiki/quic-go-and-Go-versions." (untyped string constant "The version of quic-go you're using can't be built on Go 1.21 yet. F...) as int value in variable declaration

make[3]: *** [Makefile:80: /home/yoki/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-core-5.7.0/.built] Error 1
make[3]: Leaving directory '/home/yoki/openwrt/package/small/v2ray-core'
time: package/small/v2ray-core/compile#6.19#1.34#5.99
    ERROR: package/small/v2ray-core failed to build.
make[2]: *** [package/Makefile:120: package/small/v2ray-core/compile] Error 1
make[2]: Leaving directory '/home/yoki/openwrt'
make[1]: *** [package/Makefile:114: /home/yoki/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/yoki/openwrt'
make: *** [/home/yoki/openwrt/include/toplevel.mk:232:world] 错误 2