找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1757|回复: 17

oepnwrt R9原代码编译无法通过,请求大神出手

[复制链接]
发表于 2020-3-22 13:58 | 显示全部楼层 |阅读模式
用的是虚拟机安装的UBUNTU 14.04 LTS 最新版64位
安装的库为sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint

源码为:git clone https://github.com/coolsnowwolf/lede.git r9lede

按源码处大神说明进行的每一步,用默认的CONFIG配置编译YK1 可以成功,但乳酸菌饮料+里面的v贰瑞订阅代理无法启动乳酸菌饮料 用乳酸菌饮料订阅可以启动代理,在配置中选中了v贰瑞后编译一直无法通过


下面是出错代码上上面部分,请大神看看是为什么这样,或是如何才能使默认的配置编译的固件能使用v贰瑞订阅,谢谢
/home/hong/openwrtR/r9lede/staging_dir/target-mipsel_24kc_musl/usr/share/gocode/src does not exist, skipping symlinks

touch /home/hong/openwrtR/r9lede/build_dir/target-mipsel_24kc_musl/v贰瑞-core-4.22.1/.configured_1cb8d937842536ed4b0e7e1ea908129b
rm -f /home/hong/openwrtR/r9lede/build_dir/target-mipsel_24kc_musl/v贰瑞-core-4.22.1/.built
touch /home/hong/openwrtR/r9lede/build_dir/target-mipsel_24kc_musl/v贰瑞-core-4.22.1/.built_check
( cd /home/hong/openwrtR/r9lede/build_dir/target-mipsel_24kc_musl/v贰瑞-core-4.22.1/.go_work/build ; export                 GOOS=linux GOARCH=mipsle GO386= GOARM= GOMIPS=softfloat GOMIPS64= 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 -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap/home/hong/openwrtR/r9lede/build_dir/target-mipsel_24kc_musl/v贰瑞-core-4.22.1:v贰瑞-core-4.22.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/home/hong/openwrtR/r9lede/staging_dir/target-mipsel_24kc_musl/usr/include -I/home/hong/openwrtR/r9lede/staging_dir/target-mipsel_24kc_musl/include -I/home/hong/openwrtR/r9lede/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/usr/include -I/home/hong/openwrtR/r9lede/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/include/fortify -I/home/hong/openwrtR/r9lede/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/include" CGO_CXXFLAGS="-Os -pipe -mno-branch-likely -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap/home/hong/openwrtR/r9lede/build_dir/target-mipsel_24kc_musl/v贰瑞-core-4.22.1:v贰瑞-core-4.22.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/home/hong/openwrtR/r9lede/staging_dir/target-mipsel_24kc_musl/usr/lib -L/home/hong/openwrtR/r9lede/staging_dir/target-mipsel_24kc_musl/lib -L/home/hong/openwrtR/r9lede/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/usr/lib -L/home/hong/openwrtR/r9lede/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/lib -znow -zrelro"         GOPATH=/home/hong/openwrtR/r9lede/build_dir/target-mipsel_24kc_musl/v贰瑞-core-4.22.1/.go_work/build GOCACHE=/home/hong/openwrtR/r9lede/build_dir/target-mipsel_24kc_musl/v贰瑞-core-4.22.1/.go_work/cache GOENV=off ; echo "Finding targets" ; targets=$(go list v贰瑞.com/core/main) ; for pattern in ; do targets=$(echo "$targets" | grep -v "$pattern") ; done ; echo ; if [ "" = 1 ]; then echo "Calling go generate" ; go generate -v  $targets ; echo ; fi ; if [ "" != 1 ]; then echo "Building targets" ; case mipsle in arm)             installsuffix="v" ;; mips|mipsle)     installsuffix="softfloat" ;; mips64|mips64le) installsuffix="" ;; esac ; ldflags="-linkmode external -extldflags '-L/home/hong/openwrtR/r9lede/staging_dir/target-mipsel_24kc_musl/usr/lib -L/home/hong/openwrtR/r9lede/staging_dir/target-mipsel_24kc_musl/lib -L/home/hong/openwrtR/r9lede/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/usr/lib -L/home/hong/openwrtR/r9lede/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/lib -Wl,-z,now -Wl,-z,relro'" ; pkg_gcflags="" ; pkg_ldflags="-s -w" ; for def in v贰瑞.com/core.version=4.22.1 v贰瑞.com/core.build=Lean v贰瑞.com/core.codename=OpenWrt; do pkg_ldflags="$pkg_ldflags -X $def" ; done ; go install  ${installsuffix:+-installsuffix $installsuffix} -trimpath -ldflags "all=$ldflags" -v ${pkg_gcflags:+-gcflags "$pkg_gcflags"} ${pkg_ldflags:+-ldflags "$pkg_ldflags $ldflags"}  $targets ; retval=$? ; echo ; if [ "$retval" -eq 0 ] && [ -z "$(find /home/hong/openwrtR/r9lede/build_dir/target-mipsel_24kc_musl/v贰瑞-core-4.22.1/.go_work/build/bin/linux_mipsle -maxdepth 0 -type d \! -empty 2>/dev/null)" ]; then echo "No binaries were generated, consider adding GO_PKG_SOURCE_ONLY:=1 to Makefile" ; echo ; fi ; echo "Cleaning module download cache (golang/go#27455)" ; go clean -modcache ; echo ; fi ; exit $retval ; )
Finding targets
go: github.com/golang/mock@v1.2.0: Get "https://proxy.golang.org/github.com/golang/mock/@v/v1.2.0.mod": proxyconnect tcp: net/http: TLS handshake timeout

Building targets
go: github.com/golang/mock@v1.2.0: Get "https://proxy.golang.org/github.com/golang/mock/@v/v1.2.0.mod": proxyconnect tcp: net/http: TLS handshake timeout

Cleaning module download cache (golang/go#27455)

make[3]: *** [/home/hong/openwrtR/r9lede/build_dir/target-mipsel_24kc_musl/v贰瑞-core-4.22.1/.built] Error 1
make[3]: Leaving directory `/home/hong/openwrtR/r9lede/package/lean/v贰瑞'
time: package/lean/v贰瑞/compile#0.43#5.69#46.89
make[2]: *** [package/lean/v贰瑞/compile] Error 2
make[2]: Leaving directory `/home/hong/openwrtR/r9lede'
make[1]: *** [/home/hong/openwrtR/r9lede/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/hong/openwrtR/r9lede'
make: *** [world] 错误 2


我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2020-3-22 14:00 | 显示全部楼层
后来查了,有说是少了什么库存 ,sudo apt-get -y install mock 安装后还是一直报错
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-3-22 14:08 | 显示全部楼层
这是配置内选中的项,
# CONFIG_PACKAGE_luci-app-splash is not set
CONFIG_PACKAGE_luci-app-sqm=y
# CONFIG_PACKAGE_luci-app-squid is not set
CONFIG_PACKAGE_luci-app-乳酸菌饮料-plus=y
# CONFIG_PACKAGE_luci-app-乳酸菌饮料-plus_INCLUDE_s-s is not set
# CONFIG_PACKAGE_luci-app-乳酸菌饮料-plus_INCLUDE_Simple_obfs is not set
# CONFIG_PACKAGE_luci-app-乳酸菌饮料-plus_INCLUDE_v贰瑞_plugin is not set
# CONFIG_PACKAGE_luci-app-乳酸菌饮料-plus_INCLUDE_v贰瑞 is not set
# CONFIG_PACKAGE_luci-app-乳酸菌饮料-plus_INCLUDE_Trojan is not set
# CONFIG_PACKAGE_luci-app-乳酸菌饮料-plus_INCLUDE_red---socks2 is not set
# CONFIG_PACKAGE_luci-app-乳酸菌饮料-plus_INCLUDE_Kcptun is not set
# CONFIG_PACKAGE_luci-app-乳酸菌饮料-plus_INCLUDE_违禁软件_Server is not set
# CONFIG_PACKAGE_luci-app-乳酸菌饮料server-python is not set
# CONFIG_PACKAGE_luci-app-statistics is not set
# CONFIG_PACKAGE_luci-app-syncdial is not set
# CONFIG_PACKAGE_luci-app-tinyproxy is not set
# CONFIG_PACKAGE_luci-app-transmission is not set
# CONFIG_PACKAGE_luci-app-travelmate is not set
# CONFIG_PACKAGE_luci-app-ttyd is not set
# CONFIG_PACKAGE_luci-app-udpxy is not set
# CONFIG_PACKAGE_luci-app-uhttpd is not set
# CONFIG_PACKAGE_luci-app-unblockmusic is not set
# CONFIG_UnblockNeteaseMusic_Go is not set
# CONFIG_UnblockNeteaseMusic_NodeJS is not set
# CONFIG_PACKAGE_luci-app-unbound is not set
CONFIG_PACKAGE_luci-app-upnp=y
CONFIG_PACKAGE_luci-app-usb-printer=y
CONFIG_PACKAGE_luci-app-v贰瑞-server=y
# CONFIG_PACKAGE_luci-app-verysync is not set
CONFIG_PACKAGE_luci-app-vlmcsd=y
# CONFIG_PACKAGE_luci-app-vnstat is not set
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-3-23 08:31 | 显示全部楼层
就没有大神能帮忙看看吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-3-26 20:36 | 显示全部楼层
都几天了,一直都是这个出错,https://proxy.golang.org/github.com/golang/mock/@v/v1.2.0.mod直接这个地址可以打开,返回的是module github.com/golang/mock
都不知是什么原因,有大神能帮我解答一下吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-3-30 14:20 | 显示全部楼层
都没有大神帮忙看一下吗,
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-3-30 15:43 | 显示全部楼层
网络问题。挂手工竹梯子

点评

网络肯定没有问题,我用R9的就可以成功。  详情 回复 发表于 2020-3-31 16:41
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-3-31 09:15 | 显示全部楼层
用18.4不香吗??,make download V=s 把dl包下载完整

点评

最新版的V2比较稳定,所以一直想自己来操作,重点也是想学习一下,已经用make download V=s 全部下载了,并在DL文件夹中看了,都是有效的文件,但这个不知是什么提示  详情 回复 发表于 2020-3-31 16:43
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-3-31 09:24 | 显示全部楼层
楼主最后成功了吗?r9代码在哪找的。我想编译lean的r9应该怎么操作?

点评

git clone https://github.com/coolsnowwolf/openwrt.git 这个可以编译,但版本可能老一些 git clone https://github.com/coolsnowwolf/lede.git 这个是最新版的,作者经常更新的 我用最新版一直后,在S S R +里  详情 回复 发表于 2020-3-31 16:45
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-3-31 16:41 | 显示全部楼层
260821425 发表于 2020-3-30 15:43
网络问题。挂手工竹梯子

网络肯定没有问题,我用R9的就可以成功。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-3-31 16:43 | 显示全部楼层
ITdesk 发表于 2020-3-31 09:15
用18.4不香吗??,make download V=s 把dl包下载完整

最新版的V2比较稳定,所以一直想自己来操作,重点也是想学习一下,已经用make download V=s 全部下载了,并在DL文件夹中看了,都是有效的文件,但这个不知是什么提示
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-3-31 16:45 | 显示全部楼层
qq743204199 发表于 2020-3-31 09:24
楼主最后成功了吗?r9代码在哪找的。我想编译lean的r9应该怎么操作?

git clone https://github.com/coolsnowwolf/openwrt.git 这个可以编译,但版本可能老一些
git clone https://github.com/coolsnowwolf/lede.git 这个是最新版的,作者经常更新的

我用最新版一直后,在S S R +里面加选了 V 2 的话就会一直是这个报错,用默认的配置编译可以通过的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-3-31 21:33 | 显示全部楼层
hong9187 发表于 2020-3-31 16:45
git clone https://github.com/coolsnowwolf/openwrt.git 这个可以编译,但版本可能老一些
git clone ht ...

我找了个r9可以编译。之前的源码丢了不然不需要重新弄
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-4-1 11:45 | 显示全部楼层
http: TLS handshake timeout,全局了解一下

点评

编译时就是全局手工竹梯子编译的,但还是一直出这个提示,我认为不是这个问题,要不是我的系统少了什么依赖  详情 回复 发表于 2020-4-2 14:34
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-4-1 13:57 | 显示全部楼层
Collected errors:
* check_data_file_clashes: Package libustream-openssl20150806 wants to install file /home/lede/lede20200326/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-ipq40xx/lib/libustream-ssl.so
        But that file is already provided by package  * libustream-mbedtls20150806
* opkg_install_cmd: Cannot install package libustream-openssl20150806.
package/Makefile:65: recipe for target 'package/install' failed
make[2]: *** [package/install] Error 255

请问这个错误如何解决。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-3-29 08:35

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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