[FS#3442] Build fails on WSL / WSL2

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Tue Nov 10 20:12:26 EST 2020


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - james-mcguire (james-mcguire) 

Attached to Project - OpenWrt/LEDE Project
Summary - Build fails on WSL / WSL2
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - * Install WSL2 on Windows 10
* Install Ubuntu
* Confirm `$PATH` has paths with spaces:
```
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.UbuntuonWindows_2004.2020.812.0_x64__79rhkp1fndgsc:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/PuTTY/:/mnt/c/Users/Owner/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/Owner/AppData/Local/Programs/Microsoft VS Code/bin:/snap/bin
```
Follow https://github.com/openwrt/openwrt/blob/master/README.md directions to prep environment and build openwrt

After many minutes/hours of building, observe `make` fails due to an issue with path:

This was the command:
find /home/ubuntu/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/root-ipq806x/ -mindepth 1 -execdir touch -hcd "@1587126718" "{}" +

The was the error:
find: The relative path 'Files/WindowsApps/CanonicalGroupLimited.UbuntuonWindows_1804.2020.5.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

Workarounds:
Remove all paths from $PATH that have spaces

Other links:
https://github.com/microsoft/WSL/discussions/5099
https://github.com/microsoft/WSL/issues/6208


More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3442

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list