Legato build issue

I have issue when installing legato the first time. I have successfully installed toolchain from legato.io/legato-docs/latest … build.html. Problem is than when I execute make command at the legato-af I get error about the invalid pch-files. I read somewhere that problem is solved if those files are deleted (and rebuild during make) but I can’t locate the pch-files.

heiautio@Linux:~/legato/legato-af$ make
No toolchain found for target ‘ar6’.
No toolchain found for target ‘ar7’.
No toolchain found for target ‘ar86’.
No toolchain found for target ‘wp7’.

Create the build/tools directory, run cmake in there to construct Makefiles, then run make.

mkdir -p build/tools &&
cd build/tools &&
cmake …/…/framework/tools/mkTools
-DUSE_CLANG=0
-DHOST_ARCH=i686
-DTOOLS_ARCH=i686 &&
make
– The C compiler identification is GNU
– The CXX compiler identification is GNU
– Check for working C compiler: /usr/bin/arm-linux-gnueabihf-gcc
– Check for working C compiler: /usr/bin/arm-linux-gnueabihf-gcc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working CXX compiler: /usr/bin/arm-linux-gnueabihf-g++
– Check for working CXX compiler: /usr/bin/arm-linux-gnueabihf-g++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Version: 15.10.2.Beta
– Build Host arch: i686
– Tools arch: i686
– Configuring done
– Generating done
– Build files have been written to: /home/heiautio/legato/legato-af/build/tools
make[1]: Entering directory /home/heiautio/legato/legato-af/build/tools' make[2]: Entering directory /home/heiautio/legato/legato-af/build/tools’
make[3]: Entering directory /home/heiautio/legato/legato-af/build/tools' Scanning dependencies of target PrecompiledHeader make[3]: Leaving directory /home/heiautio/legato/legato-af/build/tools’
make[3]: Entering directory /home/heiautio/legato/legato-af/build/tools' [ 2%] Generating mkTools.h.gch make[3]: Leaving directory /home/heiautio/legato/legato-af/build/tools’
[ 2%] Built target PrecompiledHeader
make[3]: Entering directory /home/heiautio/legato/legato-af/build/tools' Scanning dependencies of target mkTools make[3]: Leaving directory /home/heiautio/legato/legato-af/build/tools’
make[3]: Entering directory /home/heiautio/legato/legato-af/build/tools' [ 4%] Building CXX object CMakeFiles/mkTools.dir/exception.cpp.o cc1plus: error: one or more PCH files were found, but they were invalid cc1plus: error: use -Winvalid-pch for more information cc1plus: fatal error: /home/heiautio/legato/legato-af/build/tools/mkTools.h: No such file or directory compilation terminated. make[3]: *** [CMakeFiles/mkTools.dir/exception.cpp.o] Error 1 make[3]: Leaving directory /home/heiautio/legato/legato-af/build/tools’
make[2]: *** [CMakeFiles/mkTools.dir/all] Error 2
make[2]: Leaving directory /home/heiautio/legato/legato-af/build/tools' make[1]: *** [all] Error 2 make[1]: Leaving directory /home/heiautio/legato/legato-af/build/tools’
make: *** [tools] Error 2
heiautio@Linux:~/legato/legato-af$

Can you give us some more information about your environment?

Also, did you try “make clean” and then “make”?