找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1324|回复: 11

Openwrt 在实体机编译错误

[复制链接]
在Ubuntu就编译老是报错,但是同样的配置文件在Github上能编译成功。帮我看下到底哪里出错了


Compiling build-manifest v0.1.0 (/home/feige/lede/build_dir/hostpkg/rustc-1.68.1-src/src/tools/build-manifest)
    Finished release [optimized] target(s) in 16.12s
Dist build-manifest-1.68.1-x86_64-unknown-linux-gnu
        finished in 1.574 seconds
Build completed successfully in 0:35:38
touch /home/feige/lede/build_dir/hostpkg/rustc-1.68.1-src/.built
( cd /home/feige/lede/build_dir/hostpkg/rustc-1.68.1-src/build/dist ; find -iname "*.xz" -exec tar -xJf {} \; ; find ./* -type f -name install.sh -execdir sh {} --prefix=/home/feige/lede/staging_dir/hostpkg/cargo --disable-ldconfig \; ; sed -e 's|@RUSTC_TARGET_ARCH@|x86_64-unknown-linux-musl|g' -e 's|@TARGET_CC_NOCACHE@|x86_64-openwrt-linux-musl-gcc|g' -e 's|@RUSTC_LDFLAGS@|-lssp_nonshared|g' /home/feige/lede/feeds/packages/lang/rust/files/cargo-config > /home/feige/lede/staging_dir/hostpkg/cargo/config ; )
find: The relative path 'Files/WindowsApps/Microsoft.WindowsTerminal_1.12.10983.0_x64__8wekyb3d8bbwe' is included in the PATH environment variable, which is insecure in combination with the -execdir action of find.  Please remove that entry from $PATH
bash: line 1: /home/feige/lede/staging_dir/hostpkg/cargo/config: No such file or directory
make[3]: *** [Makefile:103: /home/feige/lede/staging_dir/hostpkg/stamp/.rust_installed] Error 1
make[3]: Leaving directory '/home/feige/lede/feeds/packages/lang/rust'
time: package/feeds/packages/rust/host-compile#5987.46#173.45#2212.63
    ERROR: package/feeds/packages/rust [host] failed to build.
make[2]: *** [package/Makefile:114: package/feeds/packages/rust/host/compile] Error 1
make[2]: Leaving directory '/home/feige/lede'
make[1]: *** [package/Makefile:110: /home/feige/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/feige/lede'
make: *** [/home/feige/lede/include/toplevel.mk:231: world] Error 2

实体机能顺利出海么?
回复

使用道具 举报

 楼主| | 显示全部楼层
badcrazy 发表于 2023-8-30 23:23
实体机能顺利出海么?

可以,clash开的全局,下载源码几秒钟就完成了
回复

使用道具 举报

wsl上编译有特殊设置,自己搜下吧
回复

使用道具 举报

 楼主| | 显示全部楼层
atshot 发表于 2023-8-31 00:13
wsl上编译有特殊设置,自己搜下吧

make命令前需要添加那行代码? 好像这次真没有添加,明天再试试
回复

使用道具 举报

怎么回事滴?
回复

使用道具 举报

来自手机 | 显示全部楼层
一样的报错,不知道什么情况。
回复

使用道具 举报

先make download -j1单线程下载,下载成功再编译,移动喜欢随机断开导致下载的文件没下载完整
回复

使用道具 举报

你这啥编译环境,应该是环境问题。
回复

使用道具 举报

 楼主| | 显示全部楼层
XanaduNWH 发表于 2023-8-31 12:48
你这啥编译环境,应该是环境问题。

Wls ubuntu 22.04
回复

使用道具 举报


提示你$PATH设置有问题,尽量别用WSL,虚拟机装个Ubuntu吧。
回复

使用道具 举报

我也是相同的问题,请问你最后怎么解决了的呢?
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2024-5-21 19:36

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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