Cannot build WP77xx framework

Hi,

I am having issues building framework for WP77xx. I have newest legato framework (17.11.0).
When running make wp77xx I get error:

FAILED: /home/sebastian/legato_framework/legato/build/wp77xx/system/app/modemService/obj/modemDaemon/modemDaemon /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/sebastian/legato_framework/legato/build/wp77xx/system/app/modemService/obj/modemDaemon/modemDaemon /home/sebastian/legato_framework/legato/build/wp77xx/system/app/modemService/obj/modemDaemon/_main.c.o -rdynamic -Wl,--enable-new-dtags,-rpath="\$ORIGIN/../lib" "-Lbuild/wp77xx/system/component/48910f1fce3e4dca46058ee6f70c04fa/obj" -lComponent_modemDaemon -ljansson -L/home/sebastian/legato_framework/legato/platformAdaptor/qmi/bin/wp77xx/components/le_pa_ecall -lComponent_le_pa_ecall "-Lbuild/wp77xx/system/component/1b4232aab4640c8b591168d97394969e/obj" -lComponent_le_pa_ecall_default -L/home/sebastian/legato_framework/legato/platformAdaptor/qmi/bin/wp77xx/components/le_pa -lComponent_le_pa -L/home/sebastian/legato_framework/legato/platformAdaptor/qmi/bin/wp77xx/components/swiQmi -lComponent_swiQmi "-Lbuild/wp77xx/system/component/0e7692cca8775bc9704a0b18c77502a0/obj" -lComponent_le_pa_default "-Lbuild/wp77xx/system/component/141f6217a671898f6529ccfbf1d7b628/obj" -lComponent_watchdogChain "-L$LEGATO_BUILD/framework/lib" -llegato -lpthread -lrt -ldl -lm -g && splitdebug -d build/wp77xx/debug /home/sebastian/legato_framework/legato/build/wp77xx/system/app/modemService/obj/modemDaemon/modemDaemon /home/sebastian/legato_framework/legato/platformAdaptor/qmi/bin/wp77xx/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 [655/771] Compiling C source ninja: build stopped: subcommand failed. Makefile:414: recipe for target 'system_wp77xx' failed make: *** [system_wp77xx] Error 1

Any help on what could be wrong would be nice. Thanks!

Are you using the tool chain which corresponds to WP77XX ?

Same question as @Manukumar, as you’re likely using a wp85 toolchain which is not appropriate.

Thanks for the answer. Yes that might be the case. Where can Ii find the correct toolchain for WP77XX?

The wp77xx toolchain is the same as the wp76xx (overall, the linux part of wp77xx is the same as wp76xx).

You can therefore find the toolchain on https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-6,-d-,1-components/

Thanks @CoRfr, that worked! Had to uninstall toolchain for WPx5xx though to get it to work, is there a easy way to have 2 toolchains installed, and switch between them when building?

HI @Senyberg
there is a tool under study for that,
but currently there is no easy way to do it.
best regards,