找回密码
 立即注册

QQ登录

只需一步,快速开始

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

本机win10子系统Ubuntu18.04编译lede出错 请大神们帮帮

[复制链接]
发表于 2021-2-19 12:17 | 显示全部楼层 |阅读模式

在本机win10自带的Ubuntu18.04lts上编译lede,提示出错如下。
make[8]: Leaving directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1/gettext-tools/m4'
make[7]: Leaving directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1/gettext-tools/m4'
Making install in its
make[7]: Entering directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1/gettext-tools/its'
make[8]: Entering directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1/gettext-tools/its'
make[8]: Nothing to be done for 'install-exec-am'.
/bin/mkdir -p '/home/zhou/lede/staging_dir/hostpkg/share/gettext-0.19.8/its'
/usr/bin/install -c -m 644 glade.loc glade1.its glade2.its gtkbuilder.its gsettings.loc gsettings.its appdata.loc appdata.its '/home/zhou/lede/staging_dir/hostpkg/share/gettext-0.19.8/its'
make[8]: Leaving directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1/gettext-tools/its'
make[7]: Leaving directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1/gettext-tools/its'
make[7]: Entering directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1/gettext-tools'
make[8]: Entering directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1/gettext-tools'
make[8]: Nothing to be done for 'install-exec-am'.
/bin/mkdir -p '/home/zhou/lede/staging_dir/hostpkg/share/doc/gettext/examples/build-aux'
/usr/bin/install -c -m 644 ../build-aux/javacomp.sh.in ../build-aux/javaexec.sh.in ../build-aux/csharpcomp.sh.in ../build-aux/csharpexec.sh.in '/home/zhou/lede/staging_dir/hostpkg/share/doc/gettext/examples/build-aux'
/bin/mkdir -p '/home/zhou/lede/staging_dir/hostpkg/share/gettext'
/usr/bin/install -c ../build-aux/config.rpath '/home/zhou/lede/staging_dir/hostpkg/share/gettext'
make[8]: Leaving directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1/gettext-tools'
make[7]: Leaving directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1/gettext-tools'
make[6]: Leaving directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1/gettext-tools'
make[6]: Entering directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1'
make[7]: Entering directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1'
make[7]: Nothing to be done for 'install-exec-am'.
make[7]: Nothing to be done for 'install-data-am'.
make[7]: Leaving directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1'
make[6]: Leaving directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1'
make[5]: Leaving directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1'
make[4]: Leaving directory '/home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1'
mkdir -p /home/zhou/lede/staging_dir/hostpkg/stamp
touch /home/zhou/lede/build_dir/hostpkg/gettext-0.19.8.1/.built
touch /home/zhou/lede/staging_dir/hostpkg/stamp/.gettext-full_installed
make[3]: Leaving directory '/home/zhou/lede/package/libs/gettext-full'
time: package/libs/gettext-full/host-compile#282.71#811.78#1268.96
make[2]: Leaving directory '/home/zhou/lede'
package/Makefile:107: recipe for target '/home/zhou/lede/staging_dir/target-x86_64_musl/stamp/.package_compile' failed
make[1]: *** [/home/zhou/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/zhou/lede'
Build failed - please re-run with -j1 to see the real error message
/home/zhou/lede/include/toplevel.mk:222: recipe for target 'world' failed
make: *** [world] Error 1
zhou@DESKTOP-2GEJI8P:~/lede$
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2021-2-19 12:28 | 显示全部楼层
子系统的话,要设置一下
在 Ubuntu系统 里的 etc 目录里 创建 wsl.conf 文件,在文件里添加 2行
[interop]
appendWindowsPath = false
然后 改一下 win10系统的 注册表
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss{GUID}\Flags
把 7 改成 5
然后重启一下win系统
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2021-2-19 12:44 | 显示全部楼层
图上说是让你增加-j1参数重新运行编译看看到底出错在哪里,你试试呗
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2021-2-19 14:22 | 显示全部楼层
atshot 发表于 2021-2-19 12:44
图上说是让你增加-j1参数重新运行编译看看到底出错在哪里,你试试呗

target-x86_64_musl/root-x86/stamp/.trojan_installedecho "trojan" >> /home/zhou/lede/staging_dir/target-x86_64_musl/pkginfo/trojan.default.installmake[3]: Leaving directory '/home/zhou/lede/package/lean/trojan'time: package/lean/trojan/compile#0.07#1.96#2.05make[3]: Entering directory '/home/zhou/lede/package/lean/违禁软件-plugin'rm -f /home/zhou/lede/build_dir/target-x86_64_musl/违禁软件-plugin-1.8.0/.builttouch /home/zhou/lede/build_dir/target-x86_64_musl/违禁软件-plugin-1.8.0/.built_checkCONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/zhou/lede/tmp/go-build" GO_MOD_CACHE_DIR="/home/zhou/lede/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/违禁软件/违禁软件-plugin" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/违禁软件/违禁软件-plugin/..." GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/zhou/lede/build_dir/target-x86_64_musl/违禁软件-plugin-1.8.0" GO_BUILD_DIR="/home/zhou/lede/build_dir/target-x86_64_musl/违禁软件-plugin-1.8.0/.go_work/build" GO_BUILD_BIN_DIR="/home/zhou/lede/build_dir/target-x86_64_musl/违禁软件-plugin-1.8.0/.go_work/build/bin" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/home/zhou/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 -ffile-prefix-map=/home/zhou/lede/build_dir/target-x86_64_musl/违禁软件-plugin-1.8.0=违禁软件-plugin-1.8.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/home/zhou/lede/staging_dir/target-x86_64_musl/usr/include -I/home/zhou/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/include -I/home/zhou/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include/fortify -I/home/zhou/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-variable -Wno-error=unused-result -ffile-prefix-map=/home/zhou/lede/build_dir/target-x86_64_musl/违禁软件-plugin-1.8.0=违禁软件-plugin-1.8.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/home/zhou/lede/staging_dir/target-x86_64_musl/usr/lib -L/home/zhou/lede/staging_dir/target-x86_64_musl/lib -L/home/zhou/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/lib -L/home/zhou/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -znow -zrelro" GOPATH="/home/zhou/lede/build_dir/target-x86_64_musl/违禁软件-plugin-1.8.0/.go_work/build" GOCACHE="/home/zhou/lede/tmp/go-build" GOMODCACHE="/home/zhou/lede/dl/go-mod-cache" GOENV=off /usr/bin/env bash /home/zhou/lede/feeds/packages/lang/golang//golang-build.sh build -v -trimpath -ldflags "all=-buildid '1613487741' -linkmode external -extldflags '-L/home/zhou/lede/staging_dir/target-x86_64_musl/usr/lib -L/home/zhou/lede/staging_dir/target-x86_64_musl/lib -L/home/zhou/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/lib -L/home/zhou/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -Wl,-z,now -Wl,-z,relro'"        -ldflags "-s -w  -buildid '1613487741' -linkmode external -extldflags '-L/home/zhou/lede/staging_dir/target-x86_64_musl/usr/lib -L/home/zhou/lede/staging_dir/target-x86_64_musl/lib -L/home/zhou/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/lib -L/home/zhou/lede/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -Wl,-z,now -Wl,-z,relro'"Finding targetsgo: github.com/v2fly/违禁软件-core@v4.34.0+incompatible: reading https://goproxy.cn/github.com/v2fly/违禁软件-core/@v/v4.34.0+incompatible.mod: 404 Not Found        server response: not found: github.com/v2fly/违禁软件-core@v4.34.0+incompatible: invalid version: +incompatible suffix not allowed: module contains a go.mod file, so semantic import versioning is requiredBuilding targetsgo: github.com/v2fly/违禁软件-core@v4.34.0+incompatible: reading https://goproxy.cn/github.com/v2fly/违禁软件-core/@v/v4.34.0+incompatible.mod: 404 Not Found        server response: not found: github.com/v2fly/违禁软件-core@v4.34.0+incompatible: invalid version: +incompatible suffix not allowed: module contains a go.mod file, so semantic import versioning is requiredMakefile:74: recipe for target '/home/zhou/lede/build_dir/target-x86_64_musl/违禁软件-plugin-1.8.0/.built' failedmake[3]: *** [/home/zhou/lede/build_dir/target-x86_64_musl/违禁软件-plugin-1.8.0/.built] Error 1make[3]: Leaving directory '/home/zhou/lede/package/lean/违禁软件-plugin'time: package/lean/违禁软件-plugin/compile#0.20#2.75#7.20package/Makefile:111: recipe for target 'package/lean/违禁软件-plugin/compile' failedmake[2]: *** [package/lean/违禁软件-plugin/compile] Error 2make[2]: Leaving directory '/home/zhou/lede'package/Makefile:107: recipe for target '/home/zhou/lede/staging_dir/target-x86_64_musl/stamp/.package_compile' failedmake[1]: *** [/home/zhou/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2make[1]: Leaving directory '/home/zhou/lede'/home/zhou/lede/include/toplevel.mk:222: recipe for target 'world' failed

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

使用道具 举报

发表于 2021-2-19 15:15 | 显示全部楼层
不建议用win10自带的编译,虚拟机挺简单的啊
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2021-2-19 15:38 | 显示全部楼层
可能插件之间有冲突吧
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2021-2-19 16:53 | 显示全部楼层
wqzxhpx 发表于 2021-2-19 15:15
不建议用win10自带的编译,虚拟机挺简单的啊

有教程没

点评

下载个虚拟机安装到电脑,然后在虚拟机安装ubuntu系统,就直接按照lean大佬的方式来就行  详情 回复 发表于 2021-2-20 09:32
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2021-2-20 09:32 | 显示全部楼层

下载个虚拟机安装到电脑,然后在虚拟机安装ubuntu系统,就直接按照lean大佬的方式来就行
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2024-9-21 08:49

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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