Build error using cmd "make wp76xx" (fix)

Hi,

I am a new mangOH Green user. I want to build WP7603 and it had error message.

Below are my steps:
(1).Download “mangOH Dev using Legato 17.07.2 on Ubuntu 16.04 - r1.ova” and import it using VirtualBox 5.1.28
(2).Power on the Legato 17.07.2 VM and enter following commands

sudo dpkg --configure -a
sudo apt-get update
sudo apt-get install -y build-essential python python-jinja2 python-pkg-resources python-git cmake git libsdl-dev diffstat texinfo gawk chrpath wget cpio bash ninja-build bc unzip libxml2-utils gcovr libcurl4-gnutls-dev zlib1g-dev libbz2-dev bsdiff libssl-dev autoconf automake iputils-ping
sudo apt-get install -y repo
mkdir workspace;cd workspace
repo init -u git://github.com/legatoproject/manifest
repo sync
cd legato
make << success build
. bin/configlegatoenv
bin/legs
make wp76xx << has error message as below

[10/396] Linking C executable
FAILED: /opt/swi/y17-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/opt/swi/y17-ext/sysroots/armv7a-vfp-neon-poky-linux-gnueabi -Wl,–build-id -g -o /home/mangoh/workspace/legato/build/wp76xx/system/app/modemService/obj/modemDaemon/modemDaemon /home/mangoh/workspace/legato/build/wp76xx/system/app/modemService/obj/modemDaemon/_main.c.o -rdynamic -Wl,–enable-new-dtags,-rpath=“$ORIGIN/…/lib” “-Lbuild/wp76xx/system/component/8f826313ac5cef720c835d98b729b799/obj” -lComponent_modemDaemon -ljansson -L/home/mangoh/workspace/legato/platformAdaptor/qmi/bin/wp76xx/components/le_pa_ecall -lComponent_le_pa_ecall “-Lbuild/wp76xx/system/component/518ac3f345acdb892dfec8bd7f2afc21/obj” -lComponent_le_pa_ecall_default -L/home/mangoh/workspace/legato/platformAdaptor/qmi/bin/wp76xx/components/le_pa -lComponent_le_pa -L/home/mangoh/workspace/legato/platformAdaptor/qmi/bin/wp76xx/components/swiQmi -lComponent_swiQmi “-Lbuild/wp76xx/system/component/a9ba8a575e784332f5dde755c2be2008/obj” -lComponent_le_pa_default “-L$LEGATO_BUILD/framework/lib” -llegato -lpthread -lrt -ldl -lm -g && splitdebug -d build/wp76xx/debug /home/mangoh/workspace/legato/build/wp76xx/system/app/modemService/obj/modemDaemon/modemDaemon
/home/mangoh/workspace/legato/platformAdaptor/qmi/bin/wp76xx/components/le_pa/libComponent_le_pa.so: undefined reference to `qmi_linux_get_conn_id_by_name_ex’
collect2: error: ld returned 1 exit status
[10/396] Running external build step
aclocal: warning: autoconf input should be named ‘configure.ac’, not ‘configure.in’
ninja: build stopped: subcommand failed.
Makefile:404: recipe for target ‘system_wp76xx’ failed
make: *** [system_wp76xx] Error 1
mangoh@mangoh-virtualbox:~/workspace/legato$

How could I fix it?

Thanks,
Neil

Hi,

can you try with the toolchain here:
https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-5-components/

Please see below on how to install the toolchain :

Thank you, maybe it works , I will try it later.

Below is the log after I upgrade the toolchain:

Target: wp76xx
Input: /home/mangoh/workspace/legato/build/wp76xx/_staging_system.wp76xx.update
Output: /home/mangoh/workspace/legato/build/wp76xx
Version: 17.07.0-144-g02e6b23 02e6b23 mangoh-virtualbox 2017/10/15 19:25:11
Stripping /home/mangoh/workspace/legato/build/wp76xx/_staging_system.wp76xx.update/apps/92d0ce6d839b1577d77a1a7461cde5ca/read-only/lib/libtinycbor.so.0
Stripping /home/mangoh/workspace/legato/build/wp76xx/_staging_system.wp76xx.update/system/bin/startSystem
Stripping /home/mangoh/workspace/legato/build/wp76xx/_staging_system.wp76xx.update/system/lib/libjansson.so
wp76xx: Generating the framework image (squashfs.4k.ubi)
wp76xx: Generating the framework image (squashfs)
wp76xx: Generating the framework cwe (squashfs.4k.ubi)
wp76xx: Generating the framework image (squashfs.2k.ubi)
wp76xx: Generating the framework image (squashfs)
wp76xx: Generating the framework cwe (squashfs.2k.ubi)

Check PA libraries.

checkpa wp76xx || true
Checking PAs
Analyzing libComponent_le_pa_dcs.so (ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=2d3e16d224911799a53bc18d53fac17faf85e0de, stripped)
WARN: Unable to find default PA for libComponent_le_pa_dcs.so
mangoh@mangoh-virtualbox:~/workspace/legato$

Thanks,
Neil

Hi @Neil1,

looks like this log is fine, am-I missing something?

Hi CoRfr,

Because I don’t receive the mangOH Green board yet(maybe this week I can receive it), I just build code first. So I think it is fine now, thank you.