lede icon indicating copy to clipboard operation
lede copied to clipboard

Win10/Ubuntu编译报错不安全

Open lymatthew opened this issue 6 years ago • 10 comments

find /home/xxx/lean-lede/build_dir/target-x86_64_musl/root-x86/ -mindepth 1 -execdir touch -hcd "@1582293501" "{}" + find: The relative path 'Files/WindowsApps/CanonicalGroupLimited.Ubuntu18.04onWindows_1804.2019.522.0_x64__79rhkp1fndgsc' is included in the PATH environment variable, which is insecure in combination with the -execdir action of find. Please remove that entry from $PATH package/Makefile:65: recipe for target 'package/install' failed make[2]: *** [package/install] Error 1 make[2]: Leaving directory '/home/xxx/lean-lede' package/Makefile:108: recipe for target '/home/xxx/lean-lede/staging_dir/target-x86_64_musl/stamp/.package_install' failed make[1]: *** [/home/xxx/lean-lede/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2 make[1]: Leaving directory '/home/xxx/lean-lede' /home/ly/lean-lede/include/toplevel.mk:225: recipe for target 'world' failed make: *** [world] Error 2

大神好!最近两天编译报错,显示是环境变量不安全。用的是Win10下的Ubuntu,2月20日之前都没有问题,怀疑跟adjust build script (#3235)这条对编译脚本的修改有关,麻烦大神看一下,谢谢!

lymatthew avatar Feb 23 '20 09:02 lymatthew

find /home/xxx/lean-lede/build_dir/target-x86_64_musl/root-x86/ -mindepth 1 -execdir touch -hcd "@1582293501" "{}" + find: The relative path 'Files/WindowsApps/CanonicalGroupLimited.Ubuntu18.04onWindows_1804.2019.522.0_x64__79rhkp1fndgsc' is included in the PATH environment variable, which is insecure in combination with the -execdir action of find. Please remove that entry from $PATH package/Makefile:65: recipe for target 'package/install' failed make[2]: *** [package/install] Error 1 make[2]: Leaving directory '/home/xxx/lean-lede' package/Makefile:108: recipe for target '/home/xxx/lean-lede/staging_dir/target-x86_64_musl/stamp/.package_install' failed make[1]: *** [/home/xxx/lean-lede/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2 make[1]: Leaving directory '/home/xxx/lean-lede' /home/ly/lean-lede/include/toplevel.mk:225: recipe for target 'world' failed make: *** [world] Error 2

大神好!最近两天编译报错,显示是环境变量不安全。用的是Win10下的Ubuntu,2月20日之前都没有问题,怀疑跟adjust build script (#3235)这条对编译脚本的修改有关,麻烦大神看一下,谢谢!

VMware Workstation Pro 它不香吗。。。。。干嘛都用Win10自带的。。。。

Aes64X avatar Feb 23 '20 09:02 Aes64X

个人使用经验,Windows10 自带的Ubuntu编译出问题的几率高于虚拟机安装Ubuntu原版,VB+18.04 server一直非常稳定编译固件。

dolphinpaopao avatar Feb 23 '20 10:02 dolphinpaopao

不要用WSL了 VMWARE虚拟机里玩吧

ckxt avatar Feb 23 '20 10:02 ckxt

@AmadeusGhost 抱歉&谢谢! 找到原因了,是WSL与windows互交互,但CSDN的那个教程是错的。正确的办法是改 /etc/wsl.conf

[interop] enabled=false # enable launch of Windows binaries; default is true appendWindowsPath=false # append Windows path to $PATH variable; default is true

WSL的好处是直接在 Win里用笔记本编辑就可以了。。 @dolphinpaopao @Aes64X @ckxt

lymatthew avatar Feb 23 '20 10:02 lymatthew

@AmadeusGhost 抱歉&谢谢! 找到原因了,是WSL与windows互交互,但CSDN的那个教程是错的。正确的办法是改 /etc/wsl.conf

[interop] enabled=false # enable launch of Windows binaries; default is true appendWindowsPath=false # append Windows path to $PATH variable; default is true

WSL的好处是直接在 Win里用笔记本编辑就可以了。。 @dolphinpaopao @Aes64X @ckxt

你说的是笔记本编辑?还是我理解错了?

QQ截图20200223191445

Aes64X avatar Feb 23 '20 11:02 Aes64X

我懂了

Aes64X avatar Feb 23 '20 11:02 Aes64X

编译前执行:export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

Terutoki avatar Feb 23 '20 13:02 Terutoki

楼主你好,我也是有同样的编译出错,WSL2,但是我在\wsl$\Ubuntu-18.04\etc下找不到wsl.conf,请问是这个路径吗?

mkcczh avatar Oct 02 '20 08:10 mkcczh

楼主你好,我也是有同样的编译出错,WSL2,但是我在\wsl$\Ubuntu-18.04\etc下找不到wsl.conf,请问是这个路径吗?

是的。你要新建一个。

lymatthew avatar Oct 03 '20 03:10 lymatthew

谢谢楼主,编译成功了!

mkcczh avatar Oct 03 '20 07:10 mkcczh