Error compiling master on WSL2 Ubuntu 20.04

Bas Mevissen abuse at basmevissen.nl
Mon Jun 7 13:35:26 PDT 2021


Hi all,

In the last stages of compiling OpenWRT master on a WSL2 running Ubuntu 
20.04, I get the following error message:

> sed -i "s/Installed-Time: .*/Installed-Time: 1623018311/" /home/bas/Workspace/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/usr/lib/opkg/status
> rm -rf /home/bas/Workspace/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/boot /home/bas/Workspace/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/tmp/* /home/bas/Workspace/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/usr/lib/opkg/info/*.postinst* /home/bas/Workspace/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/usr/lib/opkg/lists/* /home/bas/Workspace/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/var/lock/*.lock
> find /home/bas/Workspace/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/ -mindepth 1 -execdir touch -hcd "@1623018311" "{}" +
> find: The relative path 'Files/dotnet/' is included in the PATH environment variable, which is insecure in combination with the -execdir action of find.  Please remove that entry from $PATH
> make[2]: *** [package/Makefile:73: package/install] Error 1
> make[2]: Leaving directory '/home/bas/Workspace/openwrt'
> make[1]: *** [package/Makefile:111: /home/bas/Workspace/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_install] Error 2
> make[1]: Leaving directory '/home/bas/Workspace/openwrt'
> make: *** [/home/bas/Workspace/openwrt/include/toplevel.mk:230: world] Error 2

The actual path is: $ echo $PATH
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/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/dotnet/:/mnt/c/Program Files (x86)/GnuPG/bin:/mnt/c/Program Files (x86)/dotnet/:/mnt/c/Program Files/WireGuard/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files (x86)/AOMEI/AOMEI Backupper/6.5.1:/mnt/c/Program Files (x86)/Bitvise SSH Client:/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/Users/Bas Mevissen/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/Bas Mevissen/.dotnet/tools

It contains /mnt/c/Program Files/dotnet/ and other unquoted paths with 
spaces. I would have expected them to be quoted or escaped, but none of 
them seems to be the case.

(and shortening the path to a usual Linux path made the build finish, so 
no other issues at hand)

Having spaces in PATH is discussed here: 
https://github.com/Microsoft/WSL/issues/1766 in 2017 and apparently seen 
as OK.

If I do for example:
$ which dotnet.exe
/mnt/c/Program Files/dotnet//dotnet.exe

it seems to work fine.


Any ideas?

Cheers,

Bas.



More information about the openwrt-devel mailing list