openWrt(LEDE)编译错误time out https://proxy.golang.org/github.com/mitchellh/mapstructure/@v/v1.4.2.mod

提示:

timeout

https://proxy.golang.org/github.com/mitchellh/mapstructure/@v/v1.4.2.mo

 

错误内容:

 但是,下到的1.4.2.mod 文件中,里面就只有两行内容

1
2
3
module github.com/mitchellh/mapstructure
 
go 1.14

内容截图: 

 

 报错详情:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/ubuntu/lede/tmp/go-build" GO_MOD_CACHE_DIR="/home/ubuntu/lede/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw"
 GO_PKG="github.com/cnsilvan/UnblockNeteaseMusic" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/cnsilvan/UnblockNeteaseMusic" GO_EXCLUDES=""
 GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNeteaseMusic-0.2.13"
 GO_BUILD_DIR="/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNeteaseMusic-0.2.13/.go_work/build"
 GO_BUILD_BIN_DIR="/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNeteaseMusic-0.2.13/.go_work/build/bin"
GO_BUILD_DEPENDS_PATH="/usr/share/gocode"
GO_BUILD_DEPENDS_SRC="/home/ubuntu/lede/staging_dir/target-x86_64_musl/usr/share/gocode/src"
GOOS="linux" GOARCH="amd64" GO386="" GOARM="" GOMIPS="" GOMIPS64=""
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
 -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNe
teaseMusic-0.2.13=UnblockNeteaseMusic-0.2.13 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro"
CGO_CPPFLAGS="-I/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/include -I/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include/fortify
-I/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include" CGO_CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-vari
able -Wno-error=unused-result -fmacro-prefix-map=/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNeteaseMusic-0.2.13=UnblockNeteaseMusic-0.2.13 -Wformat -Werror=
format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_m
usl/usr/lib -L/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -znow -zrelro" GOPATH="/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNet
easeMusic-0.2.13/.go_work/build" GOCACHE="/home/ubuntu/lede/tmp/go-build" GOMODCACHE="/home/ubuntu/lede/dl/go-mod-cache" GOENV=off /usr/bin/env bash ../../lang/gol
ang//golang-build.sh build -v -trimpath -ldflags "all=-buildid '1646709695' -linkmode external -extldflags '-L/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_m
usl/usr/lib -L/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -Wl,-z,now -Wl,-z,relro'"     
  -ldflags "-s -w -X 'github.com/cnsilvan/UnblockNeteaseMusic/version.Version=0.2.13' -X 'github.com/cnsilvan/Unbl
ockNeteaseMusic/version.BuildTime=2022-03-13 20:50:10' -X 'github.com/cnsilvan/UnblockNeteaseMusic/version.ExGoVersionInfo= '
  -buildid '1646709695' -linkmode external -extldflags '-L/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/lib
 -L/home/ubuntu/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -Wl,-z,now -Wl,-z,relro'" 
Finding targets
go: github.com/mitchellh/mapstructure@v1.4.2: Get "https://proxy.golang.org/github.com/mitchellh/mapstructure/@v/v1.4.2.mod": dial tcp 172.217.160.81:443: i/o timeout
go: downloading github.com/mitchellh/mapstructure v1.4.2
go: downloading golang.org/x/text v0.3.3
go: github.com/mitchellh/mapstructure@v1.4.2: Get "https://proxy.golang.org/github.com/mitchellh/mapstructure/@v/v1.4.2.mod": dial tcp 172.217.160.81:443: i/o timeout
 
Building targets
go: github.com/mitchellh/mapstructure@v1.4.2: Get "https://proxy.golang.org/github.com/mitchellh/mapstructure/@v/v1.4.2.mod": dial tcp 172.217.160.81:443: i/o timeout
go: github.com/mitchellh/mapstructure@v1.4.2: Get "https://proxy.golang.org/github.com/mitchellh/mapstructure/@v/v1.4.2.mod": dial tcp 172.217.160.81:443: i/o timeout
 
Makefile:83: recipe for target '/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNeteaseMusic-0.2.13/.built' failed
make[3]: *** [/home/ubuntu/lede/build_dir/target-x86_64_musl/UnblockNeteaseMusic-0.2.13/.built] Error 1
make[3]: Leaving directory '/home/ubuntu/lede/feeds/packages/multimedia/UnblockNeteaseMusic-Go'
time: package/feeds/packages/UnblockNeteaseMusic-Go/compile#0.27#0.22#90.57
    ERROR: package/feeds/packages/UnblockNeteaseMusic-Go failed to build.
package/Makefile:114: recipe for target 'package/feeds/packages/UnblockNeteaseMusic-Go/compile' failed
make[2]: *** [package/feeds/packages/UnblockNeteaseMusic-Go/compile] Error 1
make[2]: Leaving directory '/home/ubuntu/lede'
package/Makefile:110: recipe for target '/home/ubuntu/lede/staging_dir/target-x86_64_musl/stamp/.package_compile' failed
make[1]: *** [/home/ubuntu/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/ubuntu/lede'
/home/ubuntu/lede/include/toplevel.mk:228: recipe for target 'world' failed
make: *** [world] Error 2

 解决方法:

编译全程“扶墙”上网

  

 

 

-

posted @   悟透  阅读(2009)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
点击右上角即可分享
微信分享提示