Hi,
I am a newbie to legato, I have successfully downloaded the toolchain according to the manual page.
ntram@ubuntu:/opt/swi/y22-ext/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel$ ls
arch firmware Kbuild Makefile scripts usr
block fs Kconfig mm security virt
crypto include kernel Module.symvers sound
Documentation init kernel-abiversion net System.map-3.18.140
drivers ipc lib samples tools
ntram@ubuntu:/opt/swi/y22-ext/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel$ sudo chown -R $USER .
[sudo] password for ntram:
ntram@ubuntu:/opt/swi/y22-ext/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel$ ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- make scripts
CC scripts/mod/empty.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
ntram@ubuntu:/opt/swi/y22-ext/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel$ sudo chown -R root .
ntram@ubuntu:/opt/swi/y22-ext/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel$ ls
arch Documentation fs ipc kernel Makefile net security tools
block drivers include Kbuild kernel-abiversion mm samples sound usr
crypto firmware init Kconfig lib Module.symvers scripts System.map-3.18.140 virt
Then configure Application Framework for a Target
Run “make wp76xx” to build the framework for the target but got the problem:
ntram@ubuntu:~/WORKSPACE/legatoAF/legato-17.06.0$ ls
3rdParty CONTRIB_COMPANY.md legatofwk.cp Makefile.targetTools sources.md5
apps CONTRIB_INDIVIDUAL.md legatoTargetConfig.sinc modules targetDefs
bin default_readonly.sdef LICENSE.md package.properties targetFiles
build default.sdef localhost.sdef platformAdaptor targets
cmake drivers Makefile platformBuildVars.sinc version
CMakeLists.txt framework Makefile.framework README.md
components interfaces Makefile.hostTools run-tests
ntram@ubuntu:~/WORKSPACE/legatoAF/legato-17.06.0$ make wp76xx
No toolchain found for target 'wp76xx'.
No toolchain found for target 'wp76xx'.
Module: WiFi
modules/WiFi/moduleDefs:14: Legato WiFi version is undefined...
********************* VERSION ********************
Legato WiFi version: UNDEFINED
**************************************************
Module: Dualsys
make -f Makefile.hostTools
make[1]: Entering directory '/home/ntram/WORKSPACE/legatoAF/legato-17.06.0'
mkdir -p bin
Using ninja installed at: /usr/bin/ninja
mkdir -p /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/tools
export TOOLS_ARCH=x86_64 && \
framework/tools/mkTools/ninja-generator
Tools arch: x86_64
ln -sf ../build/tools/mk bin/mk
ln -sf mk bin/mkcomp
ln -sf mk bin/mkexe
ln -sf mk bin/mkapp
ln -sf mk bin/mksys
ln -sf ../framework/tools/scripts/splitdebug ../framework/tools/scripts/instsys ../framework/tools/scripts/settime ../framework/tools/scripts/mkinfo ../framework/tools/scripts/legato-qemu ../framework/tools/scripts/stoplegato ../framework/tools/scripts/settz ../framework/tools/scripts/createsdk ../framework/tools/scripts/findtoolchain ../framework/tools/scripts/instlegato ../framework/tools/scripts/checkpa ../framework/tools/scripts/update-pack ../framework/tools/scripts/security-pack ../framework/tools/scripts/instapp ../framework/tools/scripts/mklegatoimg ../framework/tools/scripts/app ../framework/tools/scripts/av-pack ../framework/tools/scripts/releaselegato ../framework/tools/scripts/sbhelper ../framework/tools/scripts/systocwe ../framework/tools/scripts/configlegatoenv ../framework/tools/scripts/update ../framework/tools/scripts/configtargetssh ../framework/tools/scripts/legs ../framework/tools/scripts/gettargettype ../framework/tools/scripts/update-util ../framework/tools/scripts/configToolchainDirEnvVars ../framework/tools/scripts/simu ../framework/tools/scripts/fwupdate ../framework/tools/scripts/setname ../framework/tools/scripts/mkdoc ../framework/tools/scripts/startlegato ../framework/tools/scripts/shlib ../framework/tools/scripts/mklegatotreero bin/
ln -sf ../framework/tools/ifgen/ifgen bin/
make -C framework/tools/mkPatch mkPatch
make[2]: Entering directory '/home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/tools/mkPatch'
/usr/bin/gcc -Wall -Werror -o /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/bin/mkPatch \
mkPatch.c /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/src/crc.c \
-I/home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/inc \
-I/home/ntram/WORKSPACE/legatoAF/legato-17.06.0/3rdParty/include
make[2]: Leaving directory '/home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/tools/mkPatch'
ninja -f /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/tools/build.ninja
[62/62] Linking mk tools
make[1]: Leaving directory '/home/ntram/WORKSPACE/legatoAF/legato-17.06.0'
# Generate an MD5 hash of everything in the source directories.
find framework components interfaces platformAdaptor modules apps/platformServices apps/proprietary apps/tools targetFiles Makefile.framework Makefile.hostTools Makefile.targetTools Makefile targetDefs CMakeLists.txt -type f | grep -v ".git" | sort | while read filePath ; \
do \
echo "$filePath" && \
cat "$filePath" ; \
done | md5sum | awk '{ print $1 }' > sources.md5
version=17.06.0
md5=dfc334194a31aa6203e9e1873856cf10
make -f Makefile.framework
make[1]: Entering directory '/home/ntram/WORKSPACE/legatoAF/legato-17.06.0'
mkdir -p /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/lib
framework/c/src/ninja-generator
ninja -f /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/build.ninja
[1/49] Compiling liblegato source file
FAILED: /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/addr.c.o
/gcc -MMD -MF /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/addr.c.o.d -g -c /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/src/addr.c -o /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/addr.c.o -Wall -fPIC -Werror -O2 -DLE_COMPONENT_NAME=framework -I/home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/inc -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\"" -DLEGATO_EMBEDDED
/bin/sh: 1: /gcc: not found
[2/49] Compiling liblegato source file
FAILED: /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/args.c.o
/gcc -MMD -MF /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/args.c.o.d -g -c /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/src/args.c -o /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/args.c.o -Wall -fPIC -Werror -O2 -DLE_COMPONENT_NAME=framework -I/home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/inc -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\"" -DLEGATO_EMBEDDED
/bin/sh: 1: /gcc: not found
[3/49] Compiling liblegato source file
FAILED: /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/fdMonitor.c.o
/gcc -MMD -MF /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/fdMonitor.c.o.d -g -c /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/src/fdMonitor.c -o /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/fdMonitor.c.o -Wall -fPIC -Werror -O2 -DLE_COMPONENT_NAME=framework -I/home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/inc -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\"" -DLEGATO_EMBEDDED
/bin/sh: 1: /gcc: not found
ninja: build stopped: subcommand failed.
Makefile.framework:96: recipe for target 'liblegato' failed
make[1]: *** [liblegato] Error 1
make[1]: Leaving directory '/home/ntram/WORKSPACE/legatoAF/legato-17.06.0'
Makefile:242: recipe for target 'framework_wp76xx' failed
make: *** [framework_wp76xx] Error 2
Any help will be very much appreciated !!!
jyijyi
2
you need to do the following before “make wp76xx”
. bin/configlegatoenv
make wp76xx
it still doesn’t work
ntram@ubuntu:~/WORKSPACE/legatoAF/legato-17.06.0$ . bin/configlegatoenv
No toolchain found for target 'ar7'.
Unable to find compatible cross-build toolchain for target 'ar7'.
No toolchain found for target 'ar86'.
Unable to find compatible cross-build toolchain for target 'ar86'.
No toolchain found for target 'wp85'.
Unable to find compatible cross-build toolchain for target 'wp85'.
No toolchain found for target 'wp750x'.
Unable to find compatible cross-build toolchain for target 'wp750x'.
No toolchain found for target 'wp76xx'.
Unable to find compatible cross-build toolchain for target 'wp76xx'.
No toolchain found for target 'ar758x'.
Unable to find compatible cross-build toolchain for target 'ar758x'.
No toolchain found for target 'ar759x'.
Unable to find compatible cross-build toolchain for target 'ar759x'.
No toolchain found for target 'em75xx'.
Unable to find compatible cross-build toolchain for target 'em75xx'.
ntram@ubuntu:~/WORKSPACE/legatoAF/legato-17.06.0$ make wp76xx
No toolchain found for target 'wp76xx'.
No toolchain found for target 'wp76xx'.
Module: WiFi
modules/WiFi/moduleDefs:14: Legato WiFi version is undefined...
********************* VERSION ********************
Legato WiFi version: UNDEFINED
**************************************************
Module: Dualsys
make -f Makefile.hostTools
make[1]: Entering directory '/home/ntram/WORKSPACE/legatoAF/legato-17.06.0'
Using ninja installed at: /usr/bin/ninja
ln -sf ../build/tools/mk bin/mk
ln -sf mk bin/mkcomp
ln -sf mk bin/mkexe
ln -sf mk bin/mkapp
ln -sf mk bin/mksys
ln -sf ../framework/tools/scripts/splitdebug ../framework/tools/scripts/instsys ../framework/tools/scripts/settime ../framework/tools/scripts/mkinfo ../framework/tools/scripts/legato-qemu ../framework/tools/scripts/stoplegato ../framework/tools/scripts/settz ../framework/tools/scripts/createsdk ../framework/tools/scripts/findtoolchain ../framework/tools/scripts/instlegato ../framework/tools/scripts/checkpa ../framework/tools/scripts/update-pack ../framework/tools/scripts/security-pack ../framework/tools/scripts/instapp ../framework/tools/scripts/mklegatoimg ../framework/tools/scripts/app ../framework/tools/scripts/av-pack ../framework/tools/scripts/releaselegato ../framework/tools/scripts/sbhelper ../framework/tools/scripts/systocwe ../framework/tools/scripts/configlegatoenv ../framework/tools/scripts/update ../framework/tools/scripts/configtargetssh ../framework/tools/scripts/legs ../framework/tools/scripts/gettargettype ../framework/tools/scripts/update-util ../framework/tools/scripts/configToolchainDirEnvVars ../framework/tools/scripts/simu ../framework/tools/scripts/fwupdate ../framework/tools/scripts/setname ../framework/tools/scripts/mkdoc ../framework/tools/scripts/startlegato ../framework/tools/scripts/shlib ../framework/tools/scripts/mklegatotreero bin/
ln -sf ../framework/tools/ifgen/ifgen bin/
make -C framework/tools/mkPatch mkPatch
make[2]: Entering directory '/home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/tools/mkPatch'
/usr/bin/gcc -Wall -Werror -o /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/bin/mkPatch \
mkPatch.c /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/src/crc.c \
-I/home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/inc \
-I/home/ntram/WORKSPACE/legatoAF/legato-17.06.0/3rdParty/include
make[2]: Leaving directory '/home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/tools/mkPatch'
ninja -f /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/tools/build.ninja
ninja: no work to do.
make[1]: Leaving directory '/home/ntram/WORKSPACE/legatoAF/legato-17.06.0'
# Generate an MD5 hash of everything in the source directories.
find framework components interfaces platformAdaptor modules apps/platformServices apps/proprietary apps/tools targetFiles Makefile.framework Makefile.hostTools Makefile.targetTools Makefile targetDefs CMakeLists.txt -type f | grep -v ".git" | sort | while read filePath ; \
do \
echo "$filePath" && \
cat "$filePath" ; \
done | md5sum | awk '{ print $1 }' > sources.md5
version=17.06.0
md5=dfc334194a31aa6203e9e1873856cf10
make -f Makefile.framework
make[1]: Entering directory '/home/ntram/WORKSPACE/legatoAF/legato-17.06.0'
ninja -f /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/build.ninja
[1/49] Compiling liblegato source file
FAILED: /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/args.c.o
/gcc -MMD -MF /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/args.c.o.d -g -c /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/src/args.c -o /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/args.c.o -Wall -fPIC -Werror -O2 -DLE_COMPONENT_NAME=framework -I/home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/inc -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\"" -DLEGATO_EMBEDDED
/bin/sh: 1: /gcc: not found
[2/49] Compiling liblegato source file
FAILED: /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/addr.c.o
/gcc -MMD -MF /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/addr.c.o.d -g -c /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/src/addr.c -o /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/addr.c.o -Wall -fPIC -Werror -O2 -DLE_COMPONENT_NAME=framework -I/home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/inc -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\"" -DLEGATO_EMBEDDED
/bin/sh: 1: /gcc: not found
[3/49] Compiling liblegato source file
FAILED: /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/fdMonitor.c.o
/gcc -MMD -MF /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/fdMonitor.c.o.d -g -c /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/src/fdMonitor.c -o /home/ntram/WORKSPACE/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/fdMonitor.c.o -Wall -fPIC -Werror -O2 -DLE_COMPONENT_NAME=framework -I/home/ntram/WORKSPACE/legatoAF/legato-17.06.0/framework/c/inc -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\"" -DLEGATO_EMBEDDED
/bin/sh: 1: /gcc: not found
ninja: build stopped: subcommand failed.
Makefile.framework:96: recipe for target 'liblegato' failed
make[1]: *** [liblegato] Error 1
make[1]: Leaving directory '/home/ntram/WORKSPACE/legatoAF/legato-17.06.0'
Makefile:242: recipe for target 'framework_wp76xx' failed
make: *** [framework_wp76xx] Error 2
jyijyi
4
You can try the following according to your environment:
sudo apt-get install cmake
export WP76XX_TOOLCHAIN_DIR=/opt/swi/y22-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
export WP76XX_TOOLCHAIN_PREFIX=arm-poky-linux-gnueabi-
make wp76xx
Hi,
I still get the error, I really don’t understand why follow the instructions properly but still get these errors
ntram@ubuntu:~/workspace/legatoAF/legato-17.06.0$ sudo apt-get install cmake
[sudo] password for ntram:
Reading package lists... Done
Building dependency tree
Reading state information... Done
cmake is already the newest version (3.10.2-1ubuntu2.18.04.2).
The following packages were automatically installed and are no longer required:
fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0
gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0
grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1
libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5
libcolamd2 libdazzle-1.0-0 libe-book-0.1-1 libedataserverui-1.2-2 libeot0
libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14
libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2
libgom-1.0-0 libgpgmepp6 libgpod-common libgpod4 liblangtag-common
liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1
libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2
libssh-4 libsuitesparseconfig5 libvncclient1 libwinpr2-2 libxapian30
libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe
syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 215 not upgraded.
ntram@ubuntu:~/workspace/legatoAF/legato-17.06.0$ export WP76XX_TOOLCHAIN_DIR=/opt/swi/y22-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
ntram@ubuntu:~/workspace/legatoAF/legato-17.06.0$ export WP76XX_TOOLCHAIN_PREFIX=arm-poky-linux-gnueabi-
ntram@ubuntu:~/workspace/legatoAF/legato-17.06.0$ make wp76xx
Module: WiFi
modules/WiFi/moduleDefs:14: Legato WiFi version is undefined...
********************* VERSION ********************
Legato WiFi version: UNDEFINED
**************************************************
Module: Dualsys
make -f Makefile.hostTools
make[1]: Entering directory '/home/ntram/workspace/legatoAF/legato-17.06.0'
mkdir -p bin
Using ninja installed at: /usr/bin/ninja
mkdir -p /home/ntram/workspace/legatoAF/legato-17.06.0/build/tools
export TOOLS_ARCH=x86_64 && \
framework/tools/mkTools/ninja-generator
Tools arch: x86_64
ln -sf ../build/tools/mk bin/mk
ln -sf mk bin/mkcomp
ln -sf mk bin/mkexe
ln -sf mk bin/mkapp
ln -sf mk bin/mksys
ln -sf ../framework/tools/scripts/splitdebug ../framework/tools/scripts/findtoolchain ../framework/tools/scripts/instsys ../framework/tools/scripts/settime ../framework/tools/scripts/mkinfo ../framework/tools/scripts/instlegato ../framework/tools/scripts/stoplegato ../framework/tools/scripts/settz ../framework/tools/scripts/createsdk ../framework/tools/scripts/legato-qemu ../framework/tools/scripts/checkpa ../framework/tools/scripts/update-pack ../framework/tools/scripts/security-pack ../framework/tools/scripts/instapp ../framework/tools/scripts/mklegatoimg ../framework/tools/scripts/app ../framework/tools/scripts/av-pack ../framework/tools/scripts/releaselegato ../framework/tools/scripts/sbhelper ../framework/tools/scripts/systocwe ../framework/tools/scripts/configlegatoenv ../framework/tools/scripts/update ../framework/tools/scripts/configtargetssh ../framework/tools/scripts/legs ../framework/tools/scripts/gettargettype ../framework/tools/scripts/update-util ../framework/tools/scripts/configToolchainDirEnvVars ../framework/tools/scripts/simu ../framework/tools/scripts/fwupdate ../framework/tools/scripts/setname ../framework/tools/scripts/mkdoc ../framework/tools/scripts/startlegato ../framework/tools/scripts/shlib ../framework/tools/scripts/mklegatotreero bin/
ln -sf ../framework/tools/ifgen/ifgen bin/
make -C framework/tools/mkPatch mkPatch
make[2]: Entering directory '/home/ntram/workspace/legatoAF/legato-17.06.0/framework/tools/mkPatch'
/usr/bin/gcc -Wall -Werror -o /home/ntram/workspace/legatoAF/legato-17.06.0/bin/mkPatch \
mkPatch.c /home/ntram/workspace/legatoAF/legato-17.06.0/framework/c/src/crc.c \
-I/home/ntram/workspace/legatoAF/legato-17.06.0/framework/c/inc \
-I/home/ntram/workspace/legatoAF/legato-17.06.0/3rdParty/include
make[2]: Leaving directory '/home/ntram/workspace/legatoAF/legato-17.06.0/framework/tools/mkPatch'
ninja -f /home/ntram/workspace/legatoAF/legato-17.06.0/build/tools/build.ninja
[62/62] Linking mk tools
make[1]: Leaving directory '/home/ntram/workspace/legatoAF/legato-17.06.0'
# Generate an MD5 hash of everything in the source directories.
find framework components interfaces platformAdaptor modules apps/platformServices apps/proprietary apps/tools targetFiles Makefile.framework Makefile.hostTools Makefile.targetTools Makefile targetDefs CMakeLists.txt -type f | grep -v ".git" | sort | while read filePath ; \
do \
echo "$filePath" && \
cat "$filePath" ; \
done | md5sum | awk '{ print $1 }' > sources.md5
version=17.06.0
md5=dfc334194a31aa6203e9e1873856cf10
make -f Makefile.framework
make[1]: Entering directory '/home/ntram/workspace/legatoAF/legato-17.06.0'
mkdir -p /home/ntram/workspace/legatoAF/legato-17.06.0/build/wp76xx/framework/lib
framework/c/src/ninja-generator
ninja -f /home/ntram/workspace/legatoAF/legato-17.06.0/build/wp76xx/framework/build.ninja
[1/49] Compiling liblegato source file
FAILED: /home/ntram/workspace/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/clock.c.o
/opt/swi/y22-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -MMD -MF /home/ntram/workspace/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/clock.c.o.d -g -c /home/ntram/workspace/legatoAF/legato-17.06.0/framework/c/src/clock.c -o /home/ntram/workspace/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/clock.c.o -Wall -fPIC -Werror -O2 -DLE_COMPONENT_NAME=framework -I/home/ntram/workspace/legatoAF/legato-17.06.0/framework/c/inc -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\"" -DLEGATO_EMBEDDED
In file included from /home/ntram/workspace/legatoAF/legato-17.06.0/framework/c/src/clock.c:8:0:
/home/ntram/workspace/legatoAF/legato-17.06.0/framework/c/inc/legato.h:145:10: fatal error: unistd.h: No such file or directory
#include <unistd.h>
^~~~~~~~~~
compilation terminated.
[2/49] Compiling liblegato source file
FAILED: /home/ntram/workspace/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/args.c.o
/opt/swi/y22-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -MMD -MF /home/ntram/workspace/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/args.c.o.d -g -c /home/ntram/workspace/legatoAF/legato-17.06.0/framework/c/src/args.c -o /home/ntram/workspace/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/args.c.o -Wall -fPIC -Werror -O2 -DLE_COMPONENT_NAME=framework -I/home/ntram/workspace/legatoAF/legato-17.06.0/framework/c/inc -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\"" -DLEGATO_EMBEDDED
In file included from /home/ntram/workspace/legatoAF/legato-17.06.0/framework/c/src/args.c:7:0:
/home/ntram/workspace/legatoAF/legato-17.06.0/framework/c/inc/legato.h:145:10: fatal error: unistd.h: No such file or directory
#include <unistd.h>
^~~~~~~~~~
compilation terminated.
[3/49] Compiling liblegato source file
FAILED: /home/ntram/workspace/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/daemon.c.o
/opt/swi/y22-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -MMD -MF /home/ntram/workspace/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/daemon.c.o.d -g -c /home/ntram/workspace/legatoAF/legato-17.06.0/framework/c/src/daemon.c -o /home/ntram/workspace/legatoAF/legato-17.06.0/build/wp76xx/framework/obj/daemon.c.o -Wall -fPIC -Werror -O2 -DLE_COMPONENT_NAME=framework -I/home/ntram/workspace/legatoAF/legato-17.06.0/framework/c/inc -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\"" -DLEGATO_EMBEDDED
In file included from /home/ntram/workspace/legatoAF/legato-17.06.0/framework/c/src/daemon.c:10:0:
/home/ntram/workspace/legatoAF/legato-17.06.0/framework/c/inc/legato.h:145:10: fatal error: unistd.h: No such file or directory
#include <unistd.h>
^~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Makefile.framework:96: recipe for target 'liblegato' failed
make[1]: *** [liblegato] Error 1
make[1]: Leaving directory '/home/ntram/workspace/legatoAF/legato-17.06.0'
Makefile:242: recipe for target 'framework_wp76xx' failed
make: *** [framework_wp76xx] Error 2
jyijyi
6
The error log has been changed compared to previous one.
Seems you are not using the latest toolchain and legato version.
Legato version 17 is really old one.
https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-16,-d-,1-components/
Another approach is to install LEAF+VSCODE, and then compile the legato image inside “leaf shell” which will set up all the toolchain path for you.