I use a Windows 10 computer with the Bash on Ubuntu on Windows feature to run a Linux command line. I wanted to try to build Legato apps from the command line using this tool, but after installing the Legato toolchain I am met with this unexpected result:
/opt/swi/y17-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ --version Segmentation fault (core dumped)
As far as I can tell this is a problem with the toolchain version (1.7.3) that is distributed with Legato. Using the official Poky toolchain version 1.8 or later does not cause the same issue:
/opt/poky/1.8/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi /arm-poky-linux-gnueabi-g++ --version arm-poky-linux-gnueabi-g++ (GCC) 4.9.2 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Has anyone tried to use Bash on Ubuntu on Windows with Legato before and made it work?
If I cannot get the version 1.7.3 toolchain to work, is there a way to use the version 1.8 to build Legato apps? Can I change the toolchain or will this not work?