I downloaded and installed the “64-bit ToolChain” toolchain from the link you provided but after that I am getting following error while compiling legato ( legato-17.11.0.tar.bz2):
Generate an MD5 hash of everything in the source directories.
find framework components interfaces platformAdaptor modules apps/platformServices apps/proprietary apps/tools targetFiles Makefile Makefile.framework Makefile.hostTools Makefile.targetTools 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.11.0
md5=e0ed9a2830fc6f2e541fdbec0b6365f2
make -f Makefile.framework CC=/opt/swi/y17-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
make[1]: Entering directory /home/warlord/legato_cmd/legato-17.11.0' mkdir -p /home/warlord/legato_cmd/legato-17.11.0/build/wp76xx/framework/lib framework/liblegato/ninja-generator ninja -f /home/warlord/legato_cmd/legato-17.11.0/build/wp76xx/framework/build.ninja [2/51] Compiling liblegato source file FAILED: /opt/swi/y17-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -MMD -MF /home/warlord/legato_cmd/legato-17.11.0/build/wp76xx/framework/obj/doublyLinkedList.c.o.d -c /home/warlord/legato_cmd/legato-17.11.0/framework/liblegato/doublyLinkedList.c -o /home/warlord/legato_cmd/legato-17.11.0/build/wp76xx/framework/obj/doublyLinkedList.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/warlord/legato_cmd/legato-17.11.0/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/warlord/legato_cmd/legato-17.11.0/framework/liblegato/linux -DLE_COMPONENT_NAME=framework -I/home/warlord/legato_cmd/legato-17.11.0/framework/include -I/home/warlord/legato_cmd/legato-17.11.0/framework/liblegato -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\"" In file included from /home/warlord/legato_cmd/legato-17.11.0/framework/liblegato/doublyLinkedList.c:6:0: /home/warlord/legato_cmd/legato-17.11.0/framework/include/legato.h:145:20: fatal error: unistd.h: No such file or directory #include <unistd.h> ^ compilation terminated. [2/51] Compiling liblegato source file FAILED: /opt/swi/y17-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -MMD -MF /home/warlord/legato_cmd/legato-17.11.0/build/wp76xx/framework/obj/crc.c.o.d -c /home/warlord/legato_cmd/legato-17.11.0/framework/liblegato/crc.c -o /home/warlord/legato_cmd/legato-17.11.0/build/wp76xx/framework/obj/crc.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/warlord/legato_cmd/legato-17.11.0/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/warlord/legato_cmd/legato-17.11.0/framework/liblegato/linux -DLE_COMPONENT_NAME=framework -I/home/warlord/legato_cmd/legato-17.11.0/framework/include -I/home/warlord/legato_cmd/legato-17.11.0/framework/liblegato -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\"" In file included from /home/warlord/legato_cmd/legato-17.11.0/framework/liblegato/crc.c:12:0: /home/warlord/legato_cmd/legato-17.11.0/framework/include/legato.h:145:20: fatal error: unistd.h: No such file or directory #include <unistd.h> ^ compilation terminated. ninja: build stopped: subcommand failed. make[1]: *** [liblegato] Error 1 make[1]: Leaving directory /home/warlord/legato_cmd/legato-17.11.0’
make: *** [framework_wp76xx] Error 2
I tried with 32 bit toolchain on Ubuntu 14, there is no problem to build “make wp76xx” on legato 17.11.0.
I saw the toolchain should be installed in /opt/swi/y22-ext/, but in your log, it is still /opt/swi/y17-ext/.
Are you sure you installed the toolchain?
. bin/configlegatoenv was giving following output:
[ar7] No toolchain found for target ‘ar7’.
[ar86] No toolchain found for target ‘ar86’.
[wp85] No toolchain found for target ‘wp85’.
[wp750x] No toolchain found for target ‘wp750x’. [wp76xx] No toolchain found for target ‘wp76xx’.
[wp77xx] No toolchain found for target ‘wp77xx’.
[ar758x] No toolchain found for target ‘ar758x’.
[ar759x] No toolchain found for target ‘ar759x’.
[em75xx] No toolchain found for target ‘em75xx’.
[virt] No toolchain found for target ‘virt’.
and export was giving no output for WP76XX_TOOLCHAIN_DIR
warlord@ubuntu:~/legato_cmd/legato-17.11.0$ export|grep WP76XX_TOOLCHAIN_DIR
so I exported WP76XX_TOOLCHAIN_DIR
export WP76XX_TOOLCHAIN_DIR=“/opt/swi/y22-ext/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi”
warlord@ubuntu:~/legato_cmd/legato-17.11.0$
warlord@ubuntu:~/legato_cmd/legato-17.11.0$
and run the configlegatoenv script
warlord@ubuntu:~/legato_cmd/legato-17.11.0$ . bin/configlegatoenv
[ar7] No toolchain found for target ‘ar7’.
[ar86] No toolchain found for target ‘ar86’.
[wp85] No toolchain found for target ‘wp85’.
[wp750x] No toolchain found for target ‘wp750x’. [wp76xx] Toolchain dir[/opt/swi/y22-ext/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi] prefix[arm-poky-linux-gnueabi-]
[wp77xx] No toolchain found for target ‘wp77xx’.
[ar758x] No toolchain found for target ‘ar758x’.
[ar759x] No toolchain found for target ‘ar759x’.
[em75xx] No toolchain found for target ‘em75xx’.
[virt] No toolchain found for target ‘virt’.
warlord@ubuntu:~/legato_cmd/legato-17.11.0$
warlord@ubuntu:~/legato_cmd/legato-17.11.0$
warlord@ubuntu:~/legato_cmd/legato-17.11.0$ export|grep WP76XX_TOOLCHAIN_DIR declare -x WP76XX_TOOLCHAIN_DIR=“/opt/swi/y22-ext/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi”
Now I am able to compile the AF and sample apps. Are the steps, that I have carried out above, correct?