找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 198|回复: 7

编译官方固件失败,请大神帮看看

[复制链接]
发表于 2024-9-22 14:48 | 显示全部楼层 |阅读模式
mosdns插件编译报错,麻烦帮看看
golang库已经更新到今天最新
编译指令:make package/feeds/small/mosdns/{clean,compile} V=99
以前编译从未出现过这个问题。
手动使用./build_dir/hostpkg/go-1.23.1/bin/go可以下载下方不存在报错的依赖库,但使用make mosdns就会出错
已试过以下方法后,再下载更新编译,均失败:
make clean
make dirclean
./scripts/feeds clean

编译环境:
1.debian12
2.路由器已全局


make[2]: Entering directory '/home/s3/git/openwrt/feeds/small/mosdns'
touch /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.prepared_958a578098337157cdea672d8f7240b1_6664517399ebbbc92a37c5bb081b5c53_check
. /home/s3/git/openwrt/include/shell.sh; /home/s3/git/openwrt/staging_dir/host/bin/libdeflate-gzip -dc /home/s3/git/openwrt/dl/mosdns-5.3.3.tar.gz | tar -C /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3

Applying /home/s3/git/openwrt/feeds/small/mosdns/patches/203-add-response-for-bad-request-in-ServeHTTP-handler.patch using plaintext:
patching file pkg/server/http_handler.go

Applying /home/s3/git/openwrt/feeds/small/mosdns/patches/204-black_hole-apply-Fisher-Yates-shuffle-algorithm-to-r.patch using plaintext:
patching file plugin/executable/black_hole/black_hole.go

Applying /home/s3/git/openwrt/feeds/small/mosdns/patches/205-format-logtime.patch using plaintext:
patching file mlog/logger.go
touch /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.prepared_958a578098337157cdea672d8f7240b1_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.configured_*
rm -f /home/s3/git/openwrt/staging_dir/target-x86_64_musl/stamp/.mosdns_installed
CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/s3/git/openwrt/tmp/go-build" GO_MOD_CACHE_DIR="/home/s3/git/openwrt/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/IrineSistiana/mosdns" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/IrineSistiana/mosdns/..." GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3" GO_BUILD_DIR="/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.go_work/build" GO_BUILD_BIN_DIR="/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.go_work/build/bin" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/home/s3/git/openwrt/staging_dir/target-x86_64_musl/usr/share/gocode/src" /usr/bin/env bash /home/s3/git/openwrt/feeds/packages/lang/golang//golang-build.sh configure
Copying files from /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3 into /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.go_work/build/src/github.com/IrineSistiana/mosdns
coremain/config.go
coremain/mosdns.go
coremain/plugin.go
coremain/run.go
coremain/service.go
go.mod
go.sum
main.go
mlog/logger.go
pkg/cache/cache.go
pkg/cache/cache_test.go
pkg/concurrent_lru/concurrent_lru.go
pkg/concurrent_lru/concurrent_lru_test.go
pkg/concurrent_map/map.go
pkg/concurrent_map/map_test.go
pkg/dnsutils/msg.go
pkg/dnsutils/net_io.go
pkg/dnsutils/ptr_parser.go
pkg/dnsutils/ptr_parser_test.go
pkg/hosts/hosts.go
pkg/hosts/hosts_test.go
pkg/list/elem.go
pkg/list/list.go
pkg/list/list_test.go
pkg/lru/lru.go
pkg/lru/lru_test.go
pkg/matcher/domain/interface.go
pkg/matcher/domain/load_helper.go
pkg/matcher/domain/matcher.go
pkg/matcher/domain/matcher_test.go
pkg/matcher/domain/utils.go
pkg/matcher/domain/utils_test.go
pkg/matcher/netlist/interface.go
pkg/matcher/netlist/list.go
pkg/matcher/netlist/load_helper.go
pkg/matcher/netlist/netlist_test.go
pkg/nftset_utils/handler.go
pkg/nftset_utils/handler_test.go
pkg/pool/allocator.go
pkg/pool/bytes_buf.go
pkg/pool/msg_buf.go
pkg/pool/timer.go
pkg/query_context/context.go
pkg/query_context/kv.go
pkg/rate_limiter/rate_limiter.go
pkg/rate_limiter/rate_limiter_test.go
pkg/safe_close/safe_close.go
pkg/server/doq.go
pkg/server/http_handler.go
pkg/server/iface.go
pkg/server/tcp.go
pkg/server/tls.go
pkg/server/udp.go
pkg/server/udp_linux.go
pkg/server/udp_others.go
pkg/server/utils.go
pkg/server_handler/entry_handler.go
pkg/upstream/bootstrap/bootstrap.go
pkg/upstream/doh/upstream.go
pkg/upstream/event_stat.go
pkg/upstream/transport/conn_lazy_dial.go
pkg/upstream/transport/conn_quic.go
pkg/upstream/transport/conn_traditional.go
pkg/upstream/transport/conn_traditional_test.go
pkg/upstream/transport/pipeline.go
pkg/upstream/transport/pipeline_test.go
pkg/upstream/transport/reuse.go
pkg/upstream/transport/reuse_test.go
pkg/upstream/transport/transport.go
pkg/upstream/transport/utils.go
pkg/upstream/upstream.go
pkg/upstream/upstream_test.go
pkg/upstream/utils.go
pkg/upstream/utils_others.go
pkg/upstream/utils_unix.go
pkg/utils/config_helper.go
pkg/utils/net.go
pkg/utils/quic.go
pkg/utils/server.go
pkg/utils/strings.go
pkg/utils/utils.go
pkg/utils/utils_test.go
pkg/zone_file/zone_file.go
pkg/zone_file/zone_file_test.go
plugin/data_provider/domain_set/domain_set.go
plugin/data_provider/domain_set/group.go
plugin/data_provider/iface.go
plugin/data_provider/ip_set/ip_set.go
plugin/enabled_plugin_test.go
plugin/enabled_plugins.go
plugin/executable/arbitrary/arbitrary.go
plugin/executable/black_hole/black_hole.go
plugin/executable/cache/cache.go
plugin/executable/cache/cache_test.go
plugin/executable/cache/dump.pb.go
plugin/executable/cache/dump.proto
plugin/executable/cache/utils.go
plugin/executable/debug_print/print.go
plugin/executable/drop_resp/drop_resp.go
plugin/executable/dual_selector/cache.go
plugin/executable/dual_selector/dual_selector.go
plugin/executable/dual_selector/dual_selector_test.go
plugin/executable/ecs_handler/handler.go
plugin/executable/forward/forward.go
plugin/executable/forward/utils.go
plugin/executable/forward_edns0opt/forwarder.go
plugin/executable/hosts/hosts.go
plugin/executable/ipset/ipset.go
plugin/executable/ipset/ipset_linux.go
plugin/executable/ipset/ipset_other.go
plugin/executable/ipset/ipset_test.go
plugin/executable/metrics_collector/collector.go
plugin/executable/nftset/nftset.go
plugin/executable/nftset/nftset_linux.go
plugin/executable/nftset/nftset_other.go
plugin/executable/query_summary/query_summary.go
plugin/executable/rate_limiter/rate_limiter.go
plugin/executable/redirect/redirect.go
plugin/executable/reverse_lookup/reverse_lookup.go
plugin/executable/reverse_lookup/utils.go
plugin/executable/sequence/built_in.go
plugin/executable/sequence/chain.go
plugin/executable/sequence/config.go
plugin/executable/sequence/config_test.go
plugin/executable/sequence/fallback/fallback.go
plugin/executable/sequence/iface.go
plugin/executable/sequence/quick_config.go
plugin/executable/sequence/quick_setup.go
plugin/executable/sequence/sequence.go
plugin/executable/sequence/sequence_test.go
plugin/executable/sequence/utils.go
plugin/executable/sleep/sleep.go
plugin/executable/ttl/ttl.go
plugin/mark/mark.go
plugin/matcher/base_domain/domain_matcher.go
plugin/matcher/base_int/int_matcher.go
plugin/matcher/base_ip/ip_matcher.go
plugin/matcher/client_ip/client_ip_matcher.go
plugin/matcher/cname/cname_matcher.go
plugin/matcher/env/env.go
plugin/matcher/has_resp/has_resp.go
plugin/matcher/has_wanted_ans/has_wanted_ans.go
plugin/matcher/ptr_ip/ptr_ip.go
plugin/matcher/qclass/qclass.go
plugin/matcher/qname/qname.go
plugin/matcher/qtype/qtype.go
plugin/matcher/random/random.go
plugin/matcher/rcode/rcode.go
plugin/matcher/resp_ip/resp_ip.go
plugin/matcher/string_exp/string_exp.go
plugin/matcher/string_exp/string_exp_test.go
plugin/server/http_server/http_server.go
plugin/server/quic_server/quic_server.go
plugin/server/server_utils/handler.go
plugin/server/server_utils/socket_utils.go
plugin/server/server_utils/socket_utils_linux.go
plugin/server/server_utils/socket_utils_others.go
plugin/server/tcp_server/tcp_server.go
plugin/server/udp_server/udp_server.go
tools/config.go
tools/init.go
tools/probe.go

/home/s3/git/openwrt/staging_dir/target-x86_64_musl/usr/share/gocode/src does not exist, skipping symlinks

touch /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.configured_1cd727ac7b9ebbe4ee453b5ddb8504b3
rm -f /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.built
touch /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.built_check
CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/s3/git/openwrt/tmp/go-build" GO_MOD_CACHE_DIR="/home/s3/git/openwrt/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/IrineSistiana/mosdns" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/IrineSistiana/mosdns/..." GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3" GO_BUILD_DIR="/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.go_work/build" GO_BUILD_BIN_DIR="/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.go_work/build/bin" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/home/s3/git/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/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3=mosdns-5.3.3 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include" CGO_CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3=mosdns-5.3.3 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -znow -zrelro" GOPATH="/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.go_work/build" GOCACHE="/home/s3/git/openwrt/tmp/go-build" GOMODCACHE="/home/s3/git/openwrt/dl/go-mod-cache" GOENV=off GOTOOLCHAIN=local /usr/bin/env bash /home/s3/git/openwrt/feeds/packages/lang/golang//golang-build.sh build -v -buildvcs=false -trimpath -ldflags "all=-buildid '1726693477' -linkmode external -extldflags '-L/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -Wl,-z,now -Wl,-z,relro'"        -ldflags " -X main.version=v5.3.3 -buildid '1726693477' -linkmode external -extldflags '-L/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -Wl,-z,now -Wl,-z,relro'"  
Finding targets
go: downloading github.com/go-chi/chi/v5 v5.1.0
go: downloading github.com/kardianos/service v1.2.2
go: downloading github.com/prometheus/client_golang v1.19.1
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/spf13/cobra v1.8.1
go: downloading github.com/spf13/viper v1.19.0
go: downloading go.uber.org/zap v1.27.0
go: downloading github.com/miekg/dns v1.1.62
go: downloading github.com/google/nftables v0.2.0
go: downloading go4.org/netipx v0.0.0-20231129151722-fdeea329fbba
go: downloading github.com/IrineSistiana/go-bytes-pool v0.0.0-20230918115058-c72bd9761c57
go: downloading golang.org/x/time v0.6.0
go: downloading github.com/quic-go/quic-go v0.46.0
go: downloading golang.org/x/net v0.28.0
go: downloading golang.org/x/sys v0.24.0
go: downloading golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa
go: downloading github.com/klauspost/compress v1.17.9
go: downloading golang.org/x/sync v0.8.0
go: downloading google.golang.org/protobuf v1.34.2
go: downloading github.com/IrineSistiana/ipset v0.5.1-0.20220703061533-6e0fc3b04c0a
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/prometheus/client_model v0.6.1
go: downloading github.com/prometheus/common v0.55.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/prometheus/procfs v0.15.1
go: downloading github.com/fsnotify/fsnotify v1.7.0
go: downloading github.com/sagikazarmark/slog-shim v0.1.0
go: downloading github.com/spf13/afero v1.11.0
go: downloading github.com/spf13/cast v1.7.0
go: downloading go.uber.org/multierr v1.11.0
go: downloading github.com/mdlayher/netlink v1.7.2
go: downloading github.com/quic-go/qpack v0.4.0
go: downloading github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
go: downloading github.com/subosito/gotenv v1.6.0
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading github.com/magiconair/properties v1.8.7
go: downloading golang.org/x/text v0.17.0
go: downloading github.com/josharian/native v1.1.0
go: downloading github.com/mdlayher/socket v0.5.1
go: downloading golang.org/x/crypto v0.26.0
../../../../../dl/go-mod-cache/google.golang.org/protobuf@v1.34.2/internal/filedesc/editions.go:11:2: no required module provides package google.golang.org/protobuf/internal/editiondefaults; to add it:
        go get google.golang.org/protobuf/internal/editiondefaults
../../../../../dl/go-mod-cache/github.com/spf13/afero@v1.11.0/iofs.go:14:2: no required module provides package github.com/spf13/afero/internal/common; to add it:
        go get github.com/spf13/afero/internal/common
../../../../../dl/go-mod-cache/github.com/spf13/viper@v1.19.0/viper.go:51:2: no required module provides package github.com/spf13/viper/internal/features; to add it:
        go get github.com/spf13/viper/internal/features
../../../../../dl/go-mod-cache/github.com/google/nftables@v0.2.0/expr/dynset.go:22:2: no required module provides package github.com/google/nftables/internal/parseexprfunc; to add it:
        go get github.com/google/nftables/internal/parseexprfunc
../../../../../dl/go-mod-cache/github.com/mdlayher/netlink@v1.7.2/attribute.go:9:2: no required module provides package github.com/josharian/native; to add it:
        go get github.com/josharian/native

Building targets
../../../../../dl/go-mod-cache/google.golang.org/protobuf@v1.34.2/internal/filedesc/editions.go:11:2: no required module provides package google.golang.org/protobuf/internal/editiondefaults; to add it:
        go get google.golang.org/protobuf/internal/editiondefaults
../../../../../dl/go-mod-cache/github.com/spf13/afero@v1.11.0/iofs.go:14:2: no required module provides package github.com/spf13/afero/internal/common; to add it:
        go get github.com/spf13/afero/internal/common
../../../../../dl/go-mod-cache/github.com/spf13/viper@v1.19.0/viper.go:51:2: no required module provides package github.com/spf13/viper/internal/features; to add it:
        go get github.com/spf13/viper/internal/features
../../../../../dl/go-mod-cache/github.com/google/nftables@v0.2.0/expr/dynset.go:22:2: no required module provides package github.com/google/nftables/internal/parseexprfunc; to add it:
        go get github.com/google/nftables/internal/parseexprfunc
../../../../../dl/go-mod-cache/github.com/mdlayher/netlink@v1.7.2/attribute.go:9:2: no required module provides package github.com/josharian/native; to add it:
        go get github.com/josharian/native

make[2]: *** [Makefile:47: /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.built] Error 1
make[2]: Leaving directory '/home/s3/git/openwrt/feeds/small/mosdns'
time: package/feeds/small/mosdns/compile#2.13#0.35#8.71
    ERROR: package/feeds/small/mosdns failed to build.
make[1]: *** [package/Makefile:129: package/feeds/small/mosdns/compile] Error 1
make[1]: Leaving directory '/home/s3/git/openwrt'
make: *** [/home/s3/git/openwrt/include/toplevel.mk:232: package/feeds/small/mosdns/compile] Error 2
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2024-9-22 16:19 | 显示全部楼层
试试取消编译SAMLL插件。

点评

small下所有插件都不编译吗?因为它下的xray-core也会编译失败,差不多的报错  详情 回复 发表于 2024-9-22 21:33
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-9-22 21:33 来自手机 | 显示全部楼层
liuhaicun 发表于 2024-9-22 16:19
试试取消编译SAMLL插件。

small下所有插件都不编译吗?因为它下的xray-core也会编译失败,差不多的报错

点评

mosdns取消这个试一下  详情 回复 发表于 2024-9-22 21:56
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2024-9-22 21:56 | 显示全部楼层
btestwy 发表于 2024-9-22 21:33
small下所有插件都不编译吗?因为它下的xray-core也会编译失败,差不多的报错 ...

mosdns取消这个试一下

点评

取消这个编译, xray-core编译报错了 编译指令:make -j$(nproc) V=99 make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/wy/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/m  详情 回复 发表于 2024-9-22 22:39
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-9-22 22:39 | 显示全部楼层
本帖最后由 btestwy 于 2024-9-22 22:40 编辑
liuhaicun 发表于 2024-9-22 21:56
mosdns取消这个试一下

取消这个编译, xray-core编译报错了
编译指令:make -j$(nproc) V=99





make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/man'
make[4]: Leaving directory '/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5'
CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5=libselinux-3.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -D_LARGEFILE64_SOURCE  -I/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5=libselinux-3.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -D_LARGEFILE64_SOURCE  -I/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include " LDFLAGS="-L/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -znow -zrelro " make -C /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/. AR="x86_64-openwrt-linux-musl-gcc-ar" AS="x86_64-openwrt-linux-musl-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5=libselinux-3.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -D_LARGEFILE64_SOURCE" LD=x86_64-openwrt-linux-musl-ld NM="x86_64-openwrt-linux-musl-gcc-nm" CC="x86_64-openwrt-linux-musl-gcc" GCC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" RANLIB="x86_64-openwrt-linux-musl-gcc-ranlib" STRIP=x86_64-openwrt-linux-musl-strip OBJCOPY=x86_64-openwrt-linux-musl-objcopy OBJDUMP=x86_64-openwrt-linux-musl-objdump SIZE=x86_64-openwrt-linux-musl-size CROSS="x86_64-openwrt-linux-musl-" ARCH="x86_64" FTS_LDLIBS=-lfts SHLIBDIR=/usr/lib OS=Linux DESTDIR="/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install"  install;
make[4]: Entering directory '/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5'
make[5]: Entering directory '/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/include'
test -d /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/include/selinux || install -m 755 -d /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/include/selinux
install -m 644 selinux/avc.h selinux/context.h selinux/get_context_list.h selinux/get_default_type.h selinux/label.h selinux/restorecon.h selinux/selinux.h /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/include/selinux
make[5]: Leaving directory '/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/include'
make[5]: Entering directory '/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/src'
test -d /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/lib || install -m 755 -d /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/lib
install -m 644 libselinux.a  /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/lib
test -d /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/lib || install -m 755 -d /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/lib
install -m 755 libselinux.so.1 /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/lib
test -d /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/lib/pkgconfig || install -m 755 -d /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/lib/pkgconfig
install -m 644 libselinux.pc /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/lib/pkgconfig
ln -sf --relative /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/lib/libselinux.so.1 /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/lib/libselinux.so
make[5]: Leaving directory '/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/src'
make[5]: Entering directory '/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/utils'
mkdir -p /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/sbin
install -m 755 avcstat compute_av compute_create compute_member compute_relabel getconlist getdefaultcon getenforce getfilecon getpidcon getpidprevcon getsebool getseuser matchpathcon policyvers sefcontext_compile selabel_digest selabel_get_digests_all_partial_matches selabel_lookup selabel_lookup_best_match selabel_partial_match selinux_check_access selinux_check_securetty_context selinuxenabled selinuxexeccon setenforce setfilecon togglesebool validatetrans /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/sbin
make[5]: Leaving directory '/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/utils'
make[5]: Entering directory '/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/man'
mkdir -p /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/share/man/man3
mkdir -p /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/share/man/man5
mkdir -p /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/share/man/man8
install -m 644 man3/*.3 /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/share/man/man3
install -m 644 man5/*.5 /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/share/man/man5
install -m 644 man8/*.8 /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/share/man/man8
for lang in ru ; do \
        if [ -e ${lang}/man3 ] ; then \
                mkdir -p /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/share/man/${lang}/man3 ; \
                install -m 644 ${lang}/man3/*.3 /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/share/man/${lang}/man3 ; \
        fi ; \
        if [ -e ${lang}/man5 ] ; then \
                mkdir -p /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/share/man/${lang}/man5 ; \
                install -m 644 ${lang}/man5/*.5 /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/share/man/${lang}/man5 ; \
        fi ; \
        if [ -e ${lang}/man8 ] ; then \
                mkdir -p /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/share/man/${lang}/man8 ; \
                install -m 644 ${lang}/man8/*.8 /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/share/man/${lang}/man8 ; \
        fi ; \
done
make[5]: Leaving directory '/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/man'
make[4]: Leaving directory '/home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5'
touch /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/.built
rm -rf /home/s3/git/openwrt/tmp/stage-libselinux
mkdir -p /home/s3/git/openwrt/tmp/stage-libselinux/host /home/s3/git/openwrt/staging_dir/target-x86_64_musl/packages
install -d -m0755 /home/s3/git/openwrt/tmp/stage-libselinux/usr/include
cp -fpR /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/include/* /home/s3/git/openwrt/tmp/stage-libselinux/usr/include/
install -d -m0755 /home/s3/git/openwrt/tmp/stage-libselinux/usr/lib
cp -fpR /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/lib/* /home/s3/git/openwrt/tmp/stage-libselinux/usr/lib/
install -d -m0755 /home/s3/git/openwrt/tmp/stage-libselinux/usr/lib/pkgconfig
install -m0644 /home/s3/git/openwrt/build_dir/target-x86_64_musl/libselinux-3.5/ipkg-install/usr/lib/pkgconfig/libselinux.pc /home/s3/git/openwrt/tmp/stage-libselinux/usr/lib/pkgconfig/
/home/s3/git/openwrt/staging_dir/host/bin/sed -i -e 's,/usr/include,${prefix}/include,g' /home/s3/git/openwrt/tmp/stage-libselinux/usr/lib/pkgconfig/libselinux.pc
/home/s3/git/openwrt/staging_dir/host/bin/sed -i -e 's,/usr/lib,${exec_prefix}/lib,g' /home/s3/git/openwrt/tmp/stage-libselinux/usr/lib/pkgconfig/libselinux.pc
find /home/s3/git/openwrt/tmp/stage-libselinux -name '*.la' | xargs -r rm -f;
if [ -f /home/s3/git/openwrt/staging_dir/target-x86_64_musl/packages/libselinux.list ]; then /home/s3/git/openwrt/scripts/clean-package.sh "/home/s3/git/openwrt/staging_dir/target-x86_64_musl/packages/libselinux.list" "/home/s3/git/openwrt/staging_dir/target-x86_64_musl"; fi
if [ -d /home/s3/git/openwrt/tmp/stage-libselinux ]; then (cd /home/s3/git/openwrt/tmp/stage-libselinux; find ./ > /home/s3/git/openwrt/tmp/stage-libselinux.files);         SHELL= flock /home/s3/git/openwrt/tmp/.staging-dir.flock -c ' mv /home/s3/git/openwrt/tmp/stage-libselinux.files /home/s3/git/openwrt/staging_dir/target-x86_64_musl/packages/libselinux.list && cp -fpR /home/s3/git/openwrt/tmp/stage-libselinux/* /home/s3/git/openwrt/staging_dir/target-x86_64_musl/; '; fi
rm -rf /home/s3/git/openwrt/tmp/stage-libselinux
touch /home/s3/git/openwrt/staging_dir/target-x86_64_musl/stamp/.libselinux_installed
make[3]: Leaving directory '/home/s3/git/openwrt/package/libs/libselinux'
time: package/libs/libselinux/compile#9.01#1.07#10.42
go: downloading github.com/caddyserver/certmagic v0.17.2
go: downloading github.com/libdns/cloudflare v0.1.1
go: downloading github.com/libdns/duckdns v0.2.0
go: downloading github.com/libdns/gandi v1.0.3
go: downloading github.com/libdns/godaddy v1.0.3
go: downloading github.com/libdns/namedotcom v0.3.3
go: downloading github.com/libdns/vultr v1.0.0
go: downloading github.com/mholt/acmez v1.0.4
go: downloading github.com/spf13/cobra v1.7.0
go: downloading github.com/spf13/viper v1.15.0
go: downloading go.uber.org/zap v1.24.0
go: downloading golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
go: downloading golang.org/x/sys v0.21.0
go: downloading github.com/txthinking/socks5 v0.0.0-20230325130024-4230056ae301
go: downloading github.com/apernet/go-tproxy v0.0.0-20230809025308-8f4723fd742f
go: downloading github.com/apernet/sing-tun v0.2.6-0.20240323130332-b9f6511036ad
go: downloading github.com/sagernet/sing v0.3.2
go: downloading github.com/mdp/qrterminal/v3 v3.1.1
go: downloading github.com/apernet/quic-go v0.46.1-0.20240816230517-268ed2476167
go: downloading github.com/stretchr/testify v1.9.0
go: downloading golang.org/x/crypto v0.24.0
go: downloading github.com/babolivier/go-doh-client v0.0.0-20201028162107-a76cff4cb8b6
go: downloading github.com/miekg/dns v1.1.59
go: downloading github.com/refraction-networking/utls v1.6.6
go: downloading github.com/libdns/libdns v0.2.2
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/vultr/govultr/v3 v3.6.4
go: downloading golang.org/x/oauth2 v0.20.0
go: downloading github.com/klauspost/cpuid/v2 v2.1.1
go: downloading golang.org/x/net v0.25.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/fsnotify/fsnotify v1.7.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/spf13/afero v1.9.3
go: downloading github.com/spf13/cast v1.5.0
go: downloading github.com/spf13/jwalterweatherman v1.1.0
go: downloading go.uber.org/atomic v1.11.0
go: downloading go.uber.org/multierr v1.11.0
go: downloading github.com/patrickmn/go-cache v2.1.0+incompatible
go: downloading github.com/txthinking/runnergroup v0.0.0-20210608031112-152c7c4432bf
go: downloading github.com/hashicorp/golang-lru/v2 v2.0.5
go: downloading google.golang.org/protobuf v1.34.1
go: downloading github.com/hashicorp/golang-lru v0.5.4
go: downloading rsc.io/qr v0.2.0
go: downloading github.com/sagernet/netlink v0.0.0-20220905062125-8043b4a9aa97
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/stretchr/objx v0.5.2
go: downloading github.com/google/go-querystring v1.1.0
go: downloading github.com/hashicorp/go-retryablehttp v0.7.6
go: downloading golang.org/x/text v0.16.0
go: downloading github.com/subosito/gotenv v1.4.2
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading github.com/magiconair/properties v1.8.7
go: downloading github.com/cloudflare/circl v1.3.9
go: downloading github.com/klauspost/compress v1.17.9
go: downloading github.com/vishvananda/netns v0.0.0-20211101163701-50045581ed74
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/hashicorp/go-cleanhttp v0.5.2

Building targets
package github.com/apernet/hysteria/app/v2
        imports github.com/apernet/hysteria/app/v2/cmd
        imports github.com/apernet/hysteria/app/v2/internal/tun
        imports github.com/apernet/sing-tun
        imports github.com/sagernet/sing/common/buf
        imports github.com/sagernet/sing/common/atomic: build constraints exclude all Go files in /home/s3/git/openwrt/dl/go-mod-cache/github.com/sagernet/sing@v0.3.2/common/atomic
../../../../../dl/go-mod-cache/github.com/sagernet/sing@v0.3.2/common/buf/buffer.go:10:2: no required module provides package github.com/sagernet/sing/common/debug; to add it:
        cd /home/s3/git/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.1/app
        go get github.com/sagernet/sing/common/debug
../../../../../dl/go-mod-cache/github.com/apernet/sing-tun@v0.2.6-0.20240323130332-b9f6511036ad/monitor_linux.go:10:2: no required module provides package github.com/sagernet/sing/common/logger; to add it:
        cd /home/s3/git/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.1/app
        go get github.com/sagernet/sing/common/logger
../../../../../dl/go-mod-cache/google.golang.org/protobuf@v1.34.1/internal/filedesc/editions.go:11:2: no required module provides package google.golang.org/protobuf/internal/editiondefaults; to add it:
        cd /home/s3/git/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.1/extras
        go get google.golang.org/protobuf/internal/editiondefaults
../../../../../dl/go-mod-cache/github.com/klauspost/compress@v1.17.9/huff0/decompress_amd64.go:12:2: no required module provides package github.com/klauspost/compress/internal/cpuinfo; to add it:
        cd /home/s3/git/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.1/extras
        go get github.com/klauspost/compress/internal/cpuinfo
../../../../../dl/go-mod-cache/github.com/refraction-networking/utls@v1.6.6/cipher_suites.go:22:2: no required module provides package github.com/refraction-networking/utls/internal/boring; to add it:
        cd /home/s3/git/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.1/extras
        go get github.com/refraction-networking/utls/internal/boring
../../../../../dl/go-mod-cache/github.com/refraction-networking/utls@v1.6.6/u_common.go:16:2: no required module provides package github.com/refraction-networking/utls/internal/helper; to add it:
        cd /home/s3/git/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.1/extras
        go get github.com/refraction-networking/utls/internal/helper
../../../../../dl/go-mod-cache/github.com/spf13/afero@v1.9.3/iofs.go:14:2: no required module provides package github.com/spf13/afero/internal/common; to add it:
        cd /home/s3/git/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.1/app
        go get github.com/spf13/afero/internal/common

make[3]: *** [Makefile:62: /home/s3/git/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.1/.built] Error 1
make[3]: Leaving directory '/home/s3/git/openwrt/feeds/small/hysteria'
time: package/feeds/small/hysteria/compile#2.42#0.57#39.08
    ERROR: package/feeds/small/hysteria failed to build.
make[2]: *** [package/Makefile:129: package/feeds/small/hysteria/compile] Error 1
make[2]: Leaving directory '/home/s3/git/openwrt'
make[1]: *** [package/Makefile:123: /home/s3/git/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/s3/git/openwrt'
make: *** [/home/s3/git/openwrt/include/toplevel.mk:232: world] Error 2

只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2024-9-23 07:53 | 显示全部楼层
那就把它也取消

点评

那就不能编译国际友谊插件了  详情 回复 发表于 2024-9-23 19:59
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-9-23 19:59 | 显示全部楼层

那就不能编译国际友谊插件了

点评

本地编译,不稳定因素太多。建议不在本地编译。  详情 回复 发表于 2024-9-23 22:27
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2024-9-23 22:27 | 显示全部楼层
btestwy 发表于 2024-9-23 19:59
那就不能编译国际友谊插件了

本地编译,不稳定因素太多。建议不在本地编译。
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-9-25 04:35

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表