OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by james-mcguire - 11.11.2020

FS#3442 - Build fails on WSL / WSL2

* 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_x6479rhkp1fndgsc:/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

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing