I got error when I compile R17 yocto

Hi,

I got error:

Initialising tasks: 100% |#######################################| Time: 0:00:08
Sstate summary: Wanted 210 Found 0 Missed 210 Current 1738 (0% match, 89% complete)
NOTE: Executing Tasks
ERROR: glib-networking-2.62.4-r0 do_configure: meson failed
ERROR: glib-networking-2.62.4-r0 do_configure: Execution of '/home/test/workspace/WP7607_R17/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/glib-networking/2.62.4-r0/temp/run.do_configure.20360' failed with exit code 1
ERROR: Logfile of failure stored in: /home/test/workspace/WP7607_R17/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/glib-networking/2.62.4-r0/temp/log.do_configure.20360
Log data follows:
| DEBUG: Executing shell function do_configure
| NOTE: Executing meson -Dgnome_proxy=disabled -Dgnutls=disabled -Dlibproxy=disabled -Dopenssl=disabled...
| The Meson build system
| Version: 0.53.2
| Source dir: /home/test/workspace/WP7607_R17/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/glib-networking/2.62.4-r0/glib-networking-2.62.4
| Build dir: /home/test/workspace/WP7607_R17/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/glib-networking/2.62.4-r0/build
| Build type: cross build
| Project name: glib-networking
| Project version: 2.62.4
| C compiler for the build machine: gcc (gcc 5.4.0 "gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609")
| C linker for the build machine: gcc ld.bfd 2.26.1
| C compiler for the host machine: arm-poky-linux-gnueabi-gcc -march=armv7-a -mfpu=neon -mfloat-abi=softfp -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/test/workspace/WP7607_R17/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/glib-networking/2.62.4-r0/recipe-sysroot (gcc 9.3.0 "arm-poky-linux-gnueabi-gcc (GCC) 9.3.0")
| C linker for the host machine: arm-poky-linux-gnueabi-gcc -march=armv7-a -mfpu=neon -mfloat-abi=softfp -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/test/workspace/WP7607_R17/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/glib-networking/2.62.4-r0/recipe-sysroot ld.bfd 2.34.0.20200220
| Build machine cpu family: x86_64
| Build machine cpu: x86_64
| Host machine cpu family: arm
| Host machine cpu: arm
| Target machine cpu family: arm
| Target machine cpu: arm
| Compiler for C supports link arguments -Wl,--version-script,/home/test/workspace/WP7607_R17/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/glib-networking/2.62.4-r0/glib-networking-2.62.4/glib-networking.map: YES
| Found pkg-config: /home/test/workspace/WP7607_R17/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/glib-networking/2.62.4-r0/recipe-sysroot-native/usr/bin/pkg-config (0.29.2)
| Run-time dependency glib-2.0 found: YES 2.62.6
| Run-time dependency gio-2.0 found: YES 2.62.6
| Dependency gio-2.0 found: YES 2.62.6 (cached)
| Run-time dependency gmodule-2.0 found: YES 2.62.6
| Dependency libproxy-1.0 skipped: feature libproxy disabled
| Dependency gsettings-desktop-schemas skipped: feature gnome_proxy disabled
| Dependency gnutls skipped: feature gnutls disabled
| 
| meson.build:125:2: ERROR: Problem encountered: No TLS backends enabled. Please enable at least one TLS backend
| 
| A full log can be found at /home/test/workspace/WP7607_R17/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/glib-networking/2.62.4-r0/build/meson-logs/meson-log.txt
| ERROR: meson failed
| WARNING: /home/test/workspace/WP7607_R17/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/glib-networking/2.62.4-r0/temp/run.do_configure.20360:1 exit 1 from 'exit 1'
| ERROR: Execution of '/home/test/workspace/WP7607_R17/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/glib-networking/2.62.4-r0/temp/run.do_configure.20360' failed with exit code 1
ERROR: Task (/home/test/workspace/WP7607_R17/yocto/poky/meta/recipes-core/glib-networking/glib-networking_2.62.4.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3094 tasks of which 3080 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/test/workspace/WP7607_R17/yocto/poky/meta/recipes-core/glib-networking/glib-networking_2.62.4.bb:do_configure
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
meta-swi-wp/common.mk:335: recipe for target 'image_bin' failed
make: *** [image_bin] Error 1

I think error is below, How can I fix it?

meson.build:125:2: ERROR: Problem encountered: No TLS backends enabled. Please enable at least one TLS backend

No problem is found on my side, I can build the R17 yocto image in Ubuntu 16:

owner@CNHKG-EX-001367:~/Yocto/WP76/R17_SWI9X07Y_03.01.07.00/yocto$ ls ./build_bin/tmp/deploy/images/swi-mdm9x28-wp/yocto_wp76xx.4k.cwe -l
-rw-rw-r-- 1 owner owner 34186488 Jun 18 00:07 ./build_bin/tmp/deploy/images/swi-mdm9x28-wp/yocto_wp76xx.4k.cwe

I add gstreamer tools, then got this error.

then can you compile with the original yocto package of R17?

Hi @jyijyi ,

Yes I can.

you can try the followings:

  1. open /home/test/workspace/WP7607_R17/yocto/poky/meta/recipes-core/glib-networking/glib-networking_2.62.4.bb

  2. in line 15, change it to

PACKAGECONFIG ??= "gnutls openssl"