Error compiling master on WSL2 Ubuntu 20.04
Alberto Bursi
bobafetthotmail at gmail.com
Tue Jun 8 02:11:07 PDT 2021
On 08/06/21 01:11, Bas Mevissen via openwrt-devel wrote:
> Thanks for the link. I wasn't aware of the existence of such a page.
>
> I don't really like the proposed solution. The problem is not the fact
> that they are Windows directories, but that they contain spaces.
>
> A better way would be to call OpenWRT Make with a Linux-only path like:
>
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin make
>
> instead of modifying a global WSL setting.
>
> BTW. As far as I could find, spaces are legal in $PATH, so I would say
> that there are bugs in OpenWRT regarding handling paths with spaces.
>
> Thanks again,
>
> Bas.
That's what I said, Openwrt build system does not handle spaces in
directories and path (also on Linux systems) and so far it has always
been easier to just "make sure to not have spaces" than track down and
sanitize all instances where spaces would break stuff. Consider that due
to how it works, it's running the makefiles and autoconfig and whatever
other random build infrastructure each package ships with its sources so
it's not as simple as just fixing this limitation in the core build system.
I'll add your "less invasive" method to the wiki, thanks.
-Alberto
More information about the openwrt-devel
mailing list