Skip to contentSkip to conversation

cmake-native: use internal cmcurl library

PATCH In review [email protected] 3 participants 14 messages Dec 29, 2022 – Jan 29, 2023 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 cmake-native: use internal cmcurl library

From: Changqing Li <[email protected]>

This commit is for breaking circular dependency in following condition:
After enabling PACKAGECONFIG nghttp2 for curl, the dependency chain is:
curl-native -> nghttp2-native -> cmake-native -> curl-native. So change to use internal cmcurl library to fix this. And as using system curl library before, disable nghttp2 and use system openssl library for cmcurl.

---
 .../cmake/cmake-native_3.25.1.bb              |  8 +++--
 ...1-CMakeLists.txt-disable-USE_NGHTTP2.patch | 31 +++++++++++++++++++
 2 files changed, 36 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-devtools/cmake/cmake/0001-CMakeLists.txt-disable-USE_NGHTTP2.patch
meta/recipes-devtools/cmake/cmake-native_3.25.1.bb +5 -3
index bcc87eb8f2..c150aef5ef 100644
@@ -1,21 +1,23 @@
 require cmake.inc
 inherit native
 
-DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native ncurses-native zstd-native"
+DEPENDS += "bzip2-replacement-native xz-native zlib-native ncurses-native zstd-native openssl-native"
 
 SRC_URI += "file://OEToolchainConfig.cmake \
             file://environment.d-cmake.sh \
             file://0001-CMakeDetermineSystem-use-oe-environment-vars-to-load.patch \
             file://0005-Disable-use-of-ext2fs-ext2_fs.h-by-cmake-s-internal-.patch \
+            file://0001-CMakeLists.txt-disable-USE_NGHTTP2.patch \
             "
 
-LICENSE:append = " & BSD-1-Clause & MIT & BSD-2-Clause"
+LICENSE:append = " & BSD-1-Clause & MIT & BSD-2-Clause & curl"
 LIC_FILES_CHKSUM:append = " \
     file://Utilities/cmjsoncpp/LICENSE;md5=5d73c165a0f9e86a1342f32d19ec5926 \
     file://Utilities/cmlibarchive/COPYING;md5=d499814247adaee08d88080841cb5665 \
     file://Utilities/cmexpat/COPYING;md5=9e2ce3b3c4c0f2670883a23bbd7c37a9 \
     file://Utilities/cmlibrhash/COPYING;md5=a8c2a557a5c53b1c12cddbee98c099af \
     file://Utilities/cmlibuv/LICENSE;md5=ad93ca1fffe931537fcf64f6fcce084d \
+    file://Utilities/cmcurl/COPYING;md5=190c514872597083303371684954f238 \
 "
 
 B = "${WORKDIR}/build"
@@ -30,9 +32,9 @@ CMAKE_EXTRACONF = "\
     -DCMAKE_USE_SYSTEM_LIBRARY_LIBUV=0 \
     -DCMAKE_USE_SYSTEM_LIBRARY_LIBRHASH=0 \
     -DCMAKE_USE_SYSTEM_LIBRARY_EXPAT=0 \
+    -DCMAKE_USE_SYSTEM_LIBRARY_CURL=0 \
     -DENABLE_ACL=0 -DHAVE_ACL_LIBACL_H=0 \
     -DHAVE_SYS_ACL_H=0 \
-    -DCURL_LIBRARIES=-lcurl \
 "
 
 do_configure () {
meta/recipes-devtools/cmake/cmake/0001-CMakeLists.txt-disable-USE_NGHTTP2.patch new file +31 -0
new file mode 100644
index 0000000000..d6486cb45f
@@ -0,0 +1,31 @@
+From 3fd6082c52a8140db5995afb59fb391f7d5c19d7 Mon Sep 17 00:00:00 2001
+From: Changqing Li <[email protected]>
+Date: Wed, 28 Dec 2022 17:51:27 +0800
+Subject: [PATCH] CMakeLists.txt: disable USE_NGHTTP2
+
+nghttp2 depends on cmake-native to build, to break circular
+dependency, disable nghttp2.
+
+Upstream-Status: Inappropriate [oe specific]
+
+Signed-off-by: Changqing Li <[email protected]>
+---
+ Utilities/cmcurl/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt
+index f842270b..17b1ce19 100644
+--- a/Utilities/cmcurl/CMakeLists.txt
++++ b/Utilities/cmcurl/CMakeLists.txt
+@@ -68,7 +68,7 @@ set(ENABLE_UNIX_SOCKETS OFF CACHE INTERNAL "No curl Unix domain sockets support"
+ set(HTTP_ONLY OFF CACHE INTERNAL "Curl is not http-only")
+ set(PICKY_COMPILER OFF CACHE INTERNAL "Enable picky compiler options")
+ set(USE_LIBIDN2 ON)
+-set(USE_NGHTTP2 ON)
++set(USE_NGHTTP2 OFF)
+ set(USE_NGTCP2 OFF)
+ set(USE_QUICHE OFF)
+ set(USE_WIN32_IDN OFF)
+-- 
+2.25.1
+
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 curl: enable nghttp2 for support HTTP2

From: Changqing Li <[email protected]>

After commit ostree: replace libsoup-2.4 by curl, ostree depends on
libcurl, but it needs http2 support, otherwise it will fail with
error:
OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0) | Bail out! OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0)

Enable nghttp2 to fix above error.

---
 meta/recipes-support/curl/curl_7.86.0.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-support/curl/curl_7.86.0.bb +3 -3
index f5e3e7235d..6cee548f35 100644
@@ -24,9 +24,9 @@ inherit autotools pkgconfig binconfig multilib_header ptest
 # Entropy source for random PACKAGECONFIG option
 RANDOM ?= "/dev/urandom"
 
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
 
 # 'ares' and 'threaded-resolver' are mutually exclusive
 PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares,,,threaded-resolver"
Signature · 1 line
2.25.1
#2 lore raw

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

nghttp2-native fails to build which is exposed by this change

ERROR: nghttp2-native-1.50.0-r0 do_compile:
ExecutionError('/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093', 1, None, None)
ERROR: Logfile of failure stored in:
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/log.do_compile.1646093
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: cmake --build
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/build
--target all --
| [1/1] cd /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/build/python
&& /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/recipe-sysroot-native/usr/bin/python3-native/ python3 setup.py build
| FAILED: python/CMakeFiles/python /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/build/python/CMakeFiles/python
| cd /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/build/python
&& /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/recipe-sysroot-native/usr/bin/python3-native/python 3 setup.py build
| Traceback (most recent call last):
| File "/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/build/python/setup.py",
line 24, in <module>

|     from setuptools import setup, Extension
| ModuleNotFoundError: No module named 'setuptools'
| ninja: build stopped: subcommand failed.
| WARNING: /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093:161

exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} } cmake --build '/mnt/b/yoe/master/build/tmp/work/x8
6_64-linux/nghttp2-native/1.50.0-r0/build' "$@" -- ${EXTRA_OECMAKE_BUILD}'
| WARNING: Backtrace (BB generated script):
| #1: cmake_runcmake_build,
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093, line 161
| #2: cmake_do_compile,
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093, line 155
| #3: do_compile,
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093, line 150
| #4: main,
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093, line 174
ERROR: Task (virtual:native:/mnt/b/yoe/master/sources/poky/meta/recipes-support/nghttp2/nghttp2_1.50.0.bb:do_compile) failed with exit code '1'

Quoted 45 lines · Changqing Li

From: Changqing Li <[email protected]>

After commit ostree: replace libsoup-2.4 by curl, ostree depends on
libcurl, but it needs http2 support, otherwise it will fail with
error:
OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0) | Bail out! OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0)

Enable nghttp2 to fix above error.

---
 meta/recipes-support/curl/curl_7.86.0.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-support/curl/curl_7.86.0.bb +3 -4
index f5e3e7235d..6cee548f35 100644
@@ -24,9 +24,9 @@ inherit autotools pkgconfig binconfig multilib_header ptest
 # Entropy source for random PACKAGECONFIG option
 RANDOM ?= "/dev/urandom"
 
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
 
 # 'ares' and 'threaded-resolver' are mutually exclusive
 PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares,,,threaded-resolver"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#175090): https://lists.openembedded.org/g/openembedded-core/message/175090
Mute This Topic: https://lists.openembedded.org/mt/95931602/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

Quoted 40 lines · Khem Raj

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

nghttp2-native fails to build which is exposed by this change

ERROR: nghttp2-native-1.50.0-r0 do_compile:
ExecutionError('/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093', 1, None, None)
ERROR: Logfile of failure stored in:
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/log.do_compile.1646093
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: cmake --build
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/build
--target all --
| [1/1] cd /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/build/python
&& /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/recipe-sysroot-native/usr/bin/python3-native/ python3 setup.py build
| FAILED: python/CMakeFiles/python /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/build/python/CMakeFiles/python
| cd /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/build/python
&& /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/recipe-sysroot-native/usr/bin/python3-native/python 3 setup.py build
| Traceback (most recent call last):
| File "/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/build/python/setup.py",
line 24, in <module>

|     from setuptools import setup, Extension
| ModuleNotFoundError: No module named 'setuptools'
| ninja: build stopped: subcommand failed.
| WARNING: /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093:161

exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} } cmake --build '/mnt/b/yoe/master/build/tmp/work/x8
6_64-linux/nghttp2-native/1.50.0-r0/build' "$@" -- ${EXTRA_OECMAKE_BUILD}'
| WARNING: Backtrace (BB generated script):
| #1: cmake_runcmake_build,
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093, line 161
| #2: cmake_do_compile,
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093, line 155

Quoted 8 lines

| #3: do_compile,
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093, line 150
| #4: main,
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093, line 174
ERROR: Task (virtual:native:/mnt/b/yoe/master/sources/poky/meta/recipes-support/nghttp2/nghttp2_1.50.0.bb:do_compile) failed with exit code '1'

Hi, Khem

I think autobuilder reproduced  this issue since on this machine, cython and PythonLibs is found so ENABLE_PYTHON_BINDINGS is set to ON,

but on my build host,  it will be OFF, so python subdir will not be compiled. I plan to just disable ENABLE_PYTHON_BINDINGS directly to make

deterministic build, and send V2 later.

Refer part of the CMakeList.txt

find_package(Cython)

find_package(PythonLibs)

if(CYTHON_FOUND AND PYTHONLIBS_FOUND)

set(ENABLE_PYTHON_BINDINGS_DEFAULT ON)

else()

set(ENABLE_PYTHON_BINDINGS_DEFAULT OFF)

endif()

Quoted 47 lines
Quoted 44 lines · Changqing Li

From: Changqing Li <[email protected]>

After commit ostree: replace libsoup-2.4 by curl, ostree depends on
libcurl, but it needs http2 support, otherwise it will fail with
error:
OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0) | Bail out! OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0)

Enable nghttp2 to fix above error.

---
  meta/recipes-support/curl/curl_7.86.0.bb | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-support/curl/curl_7.86.0.bb +3 -4
index f5e3e7235d..6cee548f35 100644
@@ -24,9 +24,9 @@ inherit autotools pkgconfig binconfig multilib_header ptest
  # Entropy source for random PACKAGECONFIG option
  RANDOM ?= "/dev/urandom"
 
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
 
  # 'ares' and 'threaded-resolver' are mutually exclusive
  PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares,,,threaded-resolver"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#175090): https://lists.openembedded.org/g/openembedded-core/message/175090
Mute This Topic: https://lists.openembedded.org/mt/95931602/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

Quoted 54 lines · Changqing Li
Quoted 40 lines · Khem Raj

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

nghttp2-native fails to build which is exposed by this change

ERROR: nghttp2-native-1.50.0-r0 do_compile:
ExecutionError('/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093', 1, None, None)
ERROR: Logfile of failure stored in:
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/log.do_compile.1646093
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: cmake --build
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/build
--target all --
| [1/1] cd /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/build/python
&& /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/recipe-sysroot-native/usr/bin/python3-native/ python3 setup.py build
| FAILED: python/CMakeFiles/python /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/build/python/CMakeFiles/python
| cd /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/build/python
&& /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/recipe-sysroot-native/usr/bin/python3-native/python 3 setup.py build
| Traceback (most recent call last):
| File "/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/build/python/setup.py",
line 24, in <module>

|     from setuptools import setup, Extension
| ModuleNotFoundError: No module named 'setuptools'
| ninja: build stopped: subcommand failed.
| WARNING: /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093:161

exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} } cmake --build '/mnt/b/yoe/master/build/tmp/work/x8
6_64-linux/nghttp2-native/1.50.0-r0/build' "$@" -- ${EXTRA_OECMAKE_BUILD}'
| WARNING: Backtrace (BB generated script):
| #1: cmake_runcmake_build,
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093, line 161
| #2: cmake_do_compile,
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093, line 155

Quoted 8 lines

| #3: do_compile,
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093, line 150
| #4: main,
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.50.0-r0/temp/run.do_compile.1646093, line 174
ERROR: Task (virtual:native:/mnt/b/yoe/master/sources/poky/meta/recipes-support/nghttp2/nghttp2_1.50.0.bb:do_compile) failed with exit code '1'

Hi, Khem

Quoted 7 lines

I think autobuilder reproduced this issue since on this machine, cython and PythonLibs is found so ENABLE_PYTHON_BINDINGS is set to ON,

but on my build host, it will be OFF, so python subdir will not be compiled. I plan to just disable ENABLE_PYTHON_BINDINGS directly to make

deterministic build, and send V2 later.

Thanks for root causing the following up.

Quoted 65 lines

Refer part of the CMakeList.txt

find_package(Cython)

find_package(PythonLibs)

if(CYTHON_FOUND AND PYTHONLIBS_FOUND)

set(ENABLE_PYTHON_BINDINGS_DEFAULT ON)

else()

set(ENABLE_PYTHON_BINDINGS_DEFAULT OFF)

endif()

Quoted 47 lines
Quoted 44 lines · Changqing Li

From: Changqing Li <[email protected]>

After commit ostree: replace libsoup-2.4 by curl, ostree depends on
libcurl, but it needs http2 support, otherwise it will fail with
error:
OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0) | Bail out! OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0)

Enable nghttp2 to fix above error.

---
  meta/recipes-support/curl/curl_7.86.0.bb | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-support/curl/curl_7.86.0.bb +3 -4
index f5e3e7235d..6cee548f35 100644
@@ -24,9 +24,9 @@ inherit autotools pkgconfig binconfig multilib_header ptest
  # Entropy source for random PACKAGECONFIG option
  RANDOM ?= "/dev/urandom"
 
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
 
  # 'ares' and 'threaded-resolver' are mutually exclusive
  PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares,,,threaded-resolver"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#175090): https://lists.openembedded.org/g/openembedded-core/message/175090
Mute This Topic: https://lists.openembedded.org/mt/95931602/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

In reply to [email protected]

This fails on the AB:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/4580/steps/14/logs/stdio

| checking run-time libs availability... failed
| configure: error: one or more libs available at link-time are not available run-time. Libs used at link-time: -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz
| NOTE: The following config.log files may provide further information.
| NOTE: /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-109066/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

NOTE: recipe curl-native-7.87.0-r0: task do_configure: Failed
ERROR: Task (virtual:native:/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/recipes-support/curl/curl_7.87.0.bb:do_configure) failed with exit code '1'

Quoted 45 lines · Changqing Li

From: Changqing Li <[email protected]>

After commit ostree: replace libsoup-2.4 by curl, ostree depends on
libcurl, but it needs http2 support, otherwise it will fail with
error:
OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0) | Bail out! OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0)

Enable nghttp2 to fix above error.

---
 meta/recipes-support/curl/curl_7.86.0.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-support/curl/curl_7.86.0.bb +3 -3
index f5e3e7235d..6cee548f35 100644
@@ -24,9 +24,9 @@ inherit autotools pkgconfig binconfig multilib_header ptest
 # Entropy source for random PACKAGECONFIG option
 RANDOM ?= "/dev/urandom"
 
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
 
 # 'ares' and 'threaded-resolver' are mutually exclusive
 PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares,,,threaded-resolver"
Signature · 11 lines
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#175090): https://lists.openembedded.org/g/openembedded-core/message/175090
Mute This Topic: https://lists.openembedded.org/mt/95931602/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#6 lore raw

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

Quoted 6 lines · Alexandre Belloni

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

This fails on the AB:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/4580/steps/14/logs/stdio

Hi, Alexandre

I need some help to debug this issue.

I cannot reproduce this issue on my host. First,  the gcc command used to build the binary conftest will

have as-needed enabled by default,  so actually,  these libs will not be linked, and runtime check will passed.

Refer the command:

gcc -o conftest -isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include -pipe -Werror-implicit-function-declaration -g -O2 -std=gnu89 -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow -Winline -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wno-long-long -Wbad-function-cast -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef -Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement -Wold-style-definition -Wstrict-aliasing=3 -Wcast-align -Wtype-limits -Wold-style-declaration -Wmissing-parameter-type -Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion -Wno-sign-conversion -Wvla -ftree-vrp -Wdouble-promotion -Wformat=2 -Warray-bounds=2 -Wshift-negative-value -Wshift-overflow=2 -Wnull-dereference -fdelete-null-pointer-checks -Wduplicated-cond -Wunused-const-variable -Wduplicated-branches -Wrestrict -Walloc-zero -Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough=4 -Wno-system-headers -isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include -I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//include -I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -DOPENSSL_SUPPRESS_DEPRECATED -I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib -L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib -Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//lib -L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib -L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib conftest.c   -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz

I also tried to add "-Wl,--no-as-needed" in above comand, and manually run it,  then conftest will link those libraries. These libraries can also be found at runtime

since these libraries will be in recipe-sysroot-native.

$/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build# ldd conftest
    linux-vdso.so.1 (0x00007ffd447c1000)
    libnghttp2.so.14 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libnghttp2.so.14 (0x00007f6bd36af000) libssl.so.3 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libssl.so.3 (0x00007f6bd3606000) libcrypto.so.3 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libcrypto.so.3 (0x00007f6bd31cf000) libz.so.1 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libz.so.1 (0x00007f6bd31b5000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6bd2fb9000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6bd2f96000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6bd2f90000) /mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f6bd36e6000) $/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build# ./conftest

This should be an host related issue,  Does the worker "debian11-ty-3" means that this build is built on debian11 docker or debian11 host? Thanks.

Regards

Changqing

Quoted 59 lines
| checking run-time libs availability... failed
| configure: error: one or more libs available at link-time are not available run-time. Libs used at link-time: -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz
| NOTE: The following config.log files may provide further information.
| NOTE: /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-109066/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

NOTE: recipe curl-native-7.87.0-r0: task do_configure: Failed
ERROR: Task (virtual:native:/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/recipes-support/curl/curl_7.87.0.bb:do_configure) failed with exit code '1'

Quoted 35 lines · Changqing Li

From: Changqing Li <[email protected]>

After commit ostree: replace libsoup-2.4 by curl, ostree depends on
libcurl, but it needs http2 support, otherwise it will fail with
error:
OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0) | Bail out! OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0)

Enable nghttp2 to fix above error.

---
  meta/recipes-support/curl/curl_7.86.0.bb | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-support/curl/curl_7.86.0.bb +3 -4
index f5e3e7235d..6cee548f35 100644
@@ -24,9 +24,9 @@ inherit autotools pkgconfig binconfig multilib_header ptest
  # Entropy source for random PACKAGECONFIG option
  RANDOM ?= "/dev/urandom"
 
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
 
  # 'ares' and 'threaded-resolver' are mutually exclusive
  PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares,,,threaded-resolver"
--

2.25.1

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#175090): https://lists.openembedded.org/g/openembedded-core/message/175090
Mute This Topic: https://lists.openembedded.org/mt/95931602/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

#7 lore raw

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

Quoted 68 lines · Changqing Li
Quoted 6 lines · Alexandre Belloni

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

This fails on the AB:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/4580/steps/14/logs/stdio

Hi, Alexandre

I need some help to debug this issue.

I cannot reproduce this issue on my host. First,� the gcc command used to build the binary conftest will

have as-needed enabled by default,� so actually,� these libs will not be linked, and runtime check will passed.

Refer the command:

gcc -o conftest -isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include

(quoted diff) +0 -17
-pipe -Werror-implicit-function-declaration -g -O2 -std=gnu89 -pedantic
-Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow -Winline
-Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wno-long-long
-Wbad-function-cast -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef
-Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes
-Wdeclaration-after-statement -Wold-style-definition -Wstrict-aliasing=3
-Wcast-align -Wtype-limits -Wold-style-declaration -Wmissing-parameter-type
-Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion
-Wno-sign-conversion -Wvla -ftree-vrp -Wdouble-promotion -Wformat=2
-Warray-bounds=2 -Wshift-negative-value -Wshift-overflow=2
-Wnull-dereference -fdelete-null-pointer-checks -Wduplicated-cond
-Wunused-const-variable -Wduplicated-branches -Wrestrict -Walloc-zero
-Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough=4
-Wno-system-headers -isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include -I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//include -I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-DOPENSSL_SUPPRESS_DEPRECATED -I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib -L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,--enable-new-dtags -Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib -Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//lib -L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib -L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib

conftest.c�� -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz

I also tried to add "-Wl,--no-as-needed" in above comand, and manually run it,� then conftest will link those libraries. These libraries can also be found at runtime

since these libraries will be in recipe-sysroot-native.

$/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build# ldd
conftest
�� �linux-vdso.so.1 (0x00007ffd447c1000)
�� �libnghttp2.so.14 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libnghttp2.so.14 (0x00007f6bd36af000)
�� �libssl.so.3 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libssl.so.3 (0x00007f6bd3606000)
�� �libcrypto.so.3 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libcrypto.so.3 (0x00007f6bd31cf000)
�� �libz.so.1 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libz.so.1 (0x00007f6bd31b5000)
�� �libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6bd2fb9000)
�� �libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f6bd2f96000)
�� �libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6bd2f90000) �/mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f6bd36e6000) $/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build#
./conftest

Quoted 2 lines

This should be an host related issue,� Does the worker "debian11-ty-3" means that this build is built on debian11 docker or debian11 host? Thanks.

This is a debian 11 host.

Quoted 69 lines

Regards

Changqing

Quoted 41 lines
| checking run-time libs availability... failed
| configure: error: one or more libs available at link-time are not available run-time. Libs used at link-time: -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz
| NOTE: The following config.log files may provide further information.
| NOTE: /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-109066/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

NOTE: recipe curl-native-7.87.0-r0: task do_configure: Failed
ERROR: Task (virtual:native:/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/recipes-support/curl/curl_7.87.0.bb:do_configure) failed with exit code '1'

Quoted 30 lines · Changqing Li

From: Changqing Li <[email protected]>

After commit ostree: replace libsoup-2.4 by curl, ostree depends on
libcurl, but it needs http2 support, otherwise it will fail with
error:
OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0) | Bail out! OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0)

Enable nghttp2 to fix above error.

---
  meta/recipes-support/curl/curl_7.86.0.bb | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-support/curl/curl_7.86.0.bb +3 -3
index f5e3e7235d..6cee548f35 100644
@@ -24,9 +24,9 @@ inherit autotools pkgconfig binconfig multilib_header ptest
  # Entropy source for random PACKAGECONFIG option
  RANDOM ?= "/dev/urandom"
 
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
 
Quoted 12 lines
Quoted 7 lines
meta/recipes-support/curl/curl_7.86.0.bb +0 -1
  # 'ares' and 'threaded-resolver' are mutually exclusive
  PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares,,,threaded-resolver"
--

2.25.1

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#175812): https://lists.openembedded.org/g/openembedded-core/message/175812
Mute This Topic: https://lists.openembedded.org/mt/95931602/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#8 lore raw

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

Quoted 70 lines · Alexandre Belloni

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 66 lines · Changqing Li
Quoted 6 lines · Alexandre Belloni

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

This fails on the AB:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/4580/steps/14/logs/stdio

Hi, Alexandre

I need some help to debug this issue.

I cannot reproduce this issue on my host. First, the gcc command used to build the binary conftest will

have as-needed enabled by default, so actually, these libs will not be linked, and runtime check will passed.

Refer the command:

gcc -o conftest -isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include

(quoted diff) +0 -17
-pipe -Werror-implicit-function-declaration -g -O2 -std=gnu89 -pedantic
-Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow -Winline
-Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wno-long-long
-Wbad-function-cast -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef
-Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes
-Wdeclaration-after-statement -Wold-style-definition -Wstrict-aliasing=3
-Wcast-align -Wtype-limits -Wold-style-declaration -Wmissing-parameter-type
-Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion
-Wno-sign-conversion -Wvla -ftree-vrp -Wdouble-promotion -Wformat=2
-Warray-bounds=2 -Wshift-negative-value -Wshift-overflow=2
-Wnull-dereference -fdelete-null-pointer-checks -Wduplicated-cond
-Wunused-const-variable -Wduplicated-branches -Wrestrict -Walloc-zero
-Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough=4
-Wno-system-headers -isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include -I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//include -I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-DOPENSSL_SUPPRESS_DEPRECATED -I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib -L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,--enable-new-dtags -Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib -Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//lib -L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib -L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib

conftest.c -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz

I also tried to add "-Wl,--no-as-needed" in above comand, and manually run it, then conftest will link those libraries. These libraries can also be found at runtime

since these libraries will be in recipe-sysroot-native.

$/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build# ldd conftest

     linux-vdso.so.1 (0x00007ffd447c1000)
     libnghttp2.so.14 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libnghttp2.so.14
(0x00007f6bd36af000)
     libssl.so.3 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libssl.so.3
(0x00007f6bd3606000)
     libcrypto.so.3 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libcrypto.so.3
(0x00007f6bd31cf000)
     libz.so.1 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libz.so.1
(0x00007f6bd31b5000)
     libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6bd2fb9000)
     libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f6bd2f96000)
     libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6bd2f90000)

/mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f6bd36e6000)
$/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build#
./conftest

Quoted 3 lines
Quoted 2 lines

This should be an host related issue, Does the worker "debian11-ty-3" means that this build is built on debian11 docker or debian11 host? Thanks.

This is a debian 11 host.

Hi, Alex

I cannot reproduce this with debian 11 docker image.

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

configure:33927: checking run-time libs availability
configure:33983: gcc  -o conftest -isystem/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include -pipe -Werror-implicit-function-declaration -O2 -Wno-system-headers -isystem/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include -I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//include -I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -DOPENSSL_SUPPRESS_DEPRECATED -I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib -L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib -Wl,-rpath,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/mnt/yocto/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//lib -L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib -L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib conftest.c -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz  >&5 configure:33983: $? = 0
configure:33983: ./conftest
configure:33983: $? = 0
configure:33985: result: fine

Is it possible to login the autobuilder host to check this?

Regards

Changqing

Quoted 70 lines
Quoted 57 lines

Regards

Changqing

Quoted 40 lines
| checking run-time libs availability... failed
| configure: error: one or more libs available at link-time are not available run-time. Libs used at link-time: -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz
| NOTE: The following config.log files may provide further information.
| NOTE: /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-109066/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

NOTE: recipe curl-native-7.87.0-r0: task do_configure: Failed
ERROR: Task (virtual:native:/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/recipes-support/curl/curl_7.87.0.bb:do_configure) failed with exit code '1'

Quoted 30 lines · Changqing Li

From: Changqing Li <[email protected]>

After commit ostree: replace libsoup-2.4 by curl, ostree depends on
libcurl, but it needs http2 support, otherwise it will fail with
error:
OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0) | Bail out! OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0)

Enable nghttp2 to fix above error.

---
   meta/recipes-support/curl/curl_7.86.0.bb | 6 +++---
   1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-support/curl/curl_7.86.0.bb +3 -3
index f5e3e7235d..6cee548f35 100644
@@ -24,9 +24,9 @@ inherit autotools pkgconfig binconfig multilib_header ptest
   # Entropy source for random PACKAGECONFIG option
   RANDOM ?= "/dev/urandom"
 
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib"
-PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"
 
Quoted 11 lines
Quoted 7 lines
meta/recipes-support/curl/curl_7.86.0.bb +0 -1
   # 'ares' and 'threaded-resolver' are mutually exclusive
   PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares,,,threaded-resolver"
--

2.25.1

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#175812): https://lists.openembedded.org/g/openembedded-core/message/175812
Mute This Topic: https://lists.openembedded.org/mt/95931602/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#10 lore raw

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

Quoted 142 lines · Changqing Li
Quoted 93 lines · Alexandre Belloni

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 89 lines · Changqing Li
Quoted 7 lines · Alexandre Belloni

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

This fails on the AB:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/4580/steps/14/logs/stdio

Hi, Alexandre

I need some help to debug this issue.

I cannot reproduce this issue on my host. First,  the gcc command used to build the binary conftest will

have as-needed enabled by default,  so actually,  these libs will not be linked, and runtime check will passed.

Refer the command:

gcc -o conftest

(quoted diff) +0 -35
-isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-pipe -Werror-implicit-function-declaration -g -O2 -std=gnu89 -pedantic
-Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow -Winline
-Wnested-externs -Wmissing-declarations -Wmissing-prototypes 
-Wno-long-long
-Wbad-function-cast -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef
-Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes
-Wdeclaration-after-statement -Wold-style-definition 
-Wstrict-aliasing=3
-Wcast-align -Wtype-limits -Wold-style-declaration 
-Wmissing-parameter-type
-Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion
-Wno-sign-conversion -Wvla -ftree-vrp -Wdouble-promotion -Wformat=2
-Warray-bounds=2 -Wshift-negative-value -Wshift-overflow=2
-Wnull-dereference -fdelete-null-pointer-checks -Wduplicated-cond
-Wunused-const-variable -Wduplicated-branches -Wrestrict -Walloc-zero
-Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough=4
-Wno-system-headers 
-isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include 
-I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//include 
-I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include 
 
-DOPENSSL_SUPPRESS_DEPRECATED 
-I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include 
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib 
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib 
 
-Wl,--enable-new-dtags 
-Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib 
-Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib 
-Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib 
-Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib 
 
-Wl,-O1 -Wl,--allow-shlib-undefined 
-Wl,--dynamic-linker=/mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//lib 
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib 
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib 

conftest.c   -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz

I also tried to add "-Wl,--no-as-needed" in above comand, and manually run it,  then conftest will link those libraries. These libraries can also be found at runtime

since these libraries will be in recipe-sysroot-native.

$/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build# ldd
conftest
     linux-vdso.so.1 (0x00007ffd447c1000)
     libnghttp2.so.14 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libnghttp2.so.14 (0x00007f6bd36af000)
     libssl.so.3 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libssl.so.3 (0x00007f6bd3606000)
     libcrypto.so.3 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libcrypto.so.3 (0x00007f6bd31cf000)
     libz.so.1 => /mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libz.so.1 (0x00007f6bd31b5000)
     libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6bd2fb9000)
     libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f6bd2f96000)
     libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6bd2f90000) /mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f6bd36e6000) $/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build#
./conftest

Quoted 3 lines
Quoted 2 lines

This should be an host related issue,  Does the worker "debian11-ty-3" means that this build is built on debian11 docker or debian11 host? Thanks.

This is a debian 11 host.

Hi, Alex

I cannot reproduce this with debian 11 docker image.

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

configure:33927: checking run-time libs availability configure:33983: gcc  -o conftest

(quoted diff) +0 -19
-isystem/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include 
-pipe -Werror-implicit-function-declaration -O2 -Wno-system-headers 
-isystem/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include 
-I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//include 
-I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include 
-DOPENSSL_SUPPRESS_DEPRECATED 
-I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include 
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib 
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib 
-Wl,--enable-new-dtags 
-Wl,-rpath-link,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib 
-Wl,-rpath-link,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib 
-Wl,-rpath,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib 
-Wl,-rpath,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib 
-Wl,-O1 -Wl,--allow-shlib-undefined 
-Wl,--dynamic-linker=/mnt/yocto/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//lib 
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib 
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib 

conftest.c -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz  >&5 configure:33983: $? = 0
configure:33983: ./conftest
configure:33983: $? = 0
configure:33985: result: fine

Quoted 1 line

Is it possible to login the autobuilder host to check this?

Hi, Alex, Richard

Could you help to give some suggestions to debug this issue?

Thanks

Changqing

Quoted 87 lines

Regards

Changqing

Quoted 54 lines
Quoted 54 lines

Regards

Changqing

Quoted 48 lines

| checking run-time libs availability... failed
| configure: error: one or more libs available at link-time are not available run-time. Libs used at link-time: -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz

| NOTE: The following config.log files may provide further information.
| NOTE: /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-109066/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

NOTE: recipe curl-native-7.87.0-r0: task do_configure: Failed
ERROR: Task (virtual:native:/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/recipes-support/curl/curl_7.87.0.bb:do_configure) failed with exit code '1'

Quoted 37 lines · Changqing Li

From: Changqing Li <[email protected]>

After commit ostree: replace libsoup-2.4 by curl, ostree depends on
libcurl, but it needs http2 support, otherwise it will fail with
error:
OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0) | Bail out! OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0)

Enable nghttp2 to fix above error.

---
   meta/recipes-support/curl/curl_7.86.0.bb | 6 +++---

   1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-support/curl/curl_7.86.0.bb +0 -0
index f5e3e7235d..6cee548f35 100644
@@ -24,9 +24,9 @@ inherit autotools pkgconfig binconfig 

multilib_header ptest
   # Entropy source for random PACKAGECONFIG option RANDOM ?= "/dev/urandom"

-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib" -PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib" -PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib nghttp2" +PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2" +PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"

Quoted 18 lines
Quoted 13 lines
Quoted 11 lines
Quoted 7 lines

   # 'ares' and 'threaded-resolver' are mutually exclusive PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares,,,threaded-resolver"

Signature · 1 line
2.25.1
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176177): https://lists.openembedded.org/g/openembedded-core/message/176177
Mute This Topic: https://lists.openembedded.org/mt/95931602/3616873
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#11 lore raw

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

still failing on archlinux

| [26/27] Generating nghttp2.c
| /usr/lib/python3.10/site-packages/Cython/Compiler/Main.py:369:
FutureWarning: Cython directive 'language_level' not set, using 2 for
now (Py2). This will change in a later release! File:
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/nghttp2-1.51.0/python/nghttp2.pyx
| tree = Parsing.p_module(s, pxd, full_module_name)
| [27/27] cd /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python
&& /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 setup.py build
| FAILED: python/CMakeFiles/python /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python/CMakeFiles/python
| cd /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python
&& /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 setup.py build
| Traceback (most recent call last):
| File "/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python/setup.py",
line 24, in <module>

|     from setuptools import setup, Extension
| ModuleNotFoundError: No module named 'setuptools'
| ninja: build stopped: subcommand failed.
| WARNING: /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/temp/run.do_compile.2200023:167

exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} } cmake --build '/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build' "$@" -- ${EXTRA_OECMAKE_BUILD}'

Quoted 268 lines · Changqing Li
Quoted 155 lines · Changqing Li
Quoted 105 lines · Alexandre Belloni

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 100 lines · Changqing Li
Quoted 8 lines · Alexandre Belloni

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe.

This fails on the AB:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/4580/steps/14/logs/stdio

Hi, Alexandre

I need some help to debug this issue.

I cannot reproduce this issue on my host. First, the gcc command used to
build the binary conftest will

have as-needed enabled by default, so actually, these libs will not be
linked, and runtime check will passed.

Refer the command:

gcc -o conftest

(quoted diff) +0 -35
-isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-pipe -Werror-implicit-function-declaration -g -O2 -std=gnu89 -pedantic
-Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow -Winline
-Wnested-externs -Wmissing-declarations -Wmissing-prototypes
-Wno-long-long
-Wbad-function-cast -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef
-Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes
-Wdeclaration-after-statement -Wold-style-definition
-Wstrict-aliasing=3
-Wcast-align -Wtype-limits -Wold-style-declaration
-Wmissing-parameter-type
-Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion
-Wno-sign-conversion -Wvla -ftree-vrp -Wdouble-promotion -Wformat=2
-Warray-bounds=2 -Wshift-negative-value -Wshift-overflow=2
-Wnull-dereference -fdelete-null-pointer-checks -Wduplicated-cond
-Wunused-const-variable -Wduplicated-branches -Wrestrict -Walloc-zero
-Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough=4
-Wno-system-headers
-isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//include
-I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
 
-DOPENSSL_SUPPRESS_DEPRECATED
-I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
 
-Wl,--enable-new-dtags
-Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
 
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=/mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//lib
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib

conftest.c -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz

I also tried to add "-Wl,--no-as-needed" in above comand, and manually run
it, then conftest will link those libraries. These libraries can also be
found at runtime

since these libraries will be in recipe-sysroot-native.

$/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build# ldd conftest

     linux-vdso.so.1 (0x00007ffd447c1000)
     libnghttp2.so.14 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libnghttp2.so.14
(0x00007f6bd36af000)
     libssl.so.3 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libssl.so.3
(0x00007f6bd3606000)
     libcrypto.so.3 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libcrypto.so.3
(0x00007f6bd31cf000)
     libz.so.1 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libz.so.1
(0x00007f6bd31b5000)
     libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6bd2fb9000)
     libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f6bd2f96000)
     libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2

(0x00007f6bd2f90000) /mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f6bd36e6000) $/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build# ./conftest

Quoted 4 lines
Quoted 3 lines

This should be an host related issue, Does the worker "debian11-ty-3" means
that this build is built on debian11 docker or debian11 host? Thanks.

This is a debian 11 host.

Hi, Alex

I cannot reproduce this with debian 11 docker image.

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

configure:33927: checking run-time libs availability configure:33983: gcc -o conftest

(quoted diff) +0 -19
-isystem/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-pipe -Werror-implicit-function-declaration -O2 -Wno-system-headers
-isystem/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//include
-I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-DOPENSSL_SUPPRESS_DEPRECATED
-I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,--enable-new-dtags
-Wl,-rpath-link,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,-rpath,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=/mnt/yocto/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//lib
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib

conftest.c -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz >&5 configure:33983: $? = 0
configure:33983: ./conftest
configure:33983: $? = 0
configure:33985: result: fine

Quoted 1 line

Is it possible to login the autobuilder host to check this?

Hi, Alex, Richard

Could you help to give some suggestions to debug this issue?

Thanks

Changqing

Quoted 92 lines

Regards

Changqing

Quoted 83 lines
Quoted 78 lines

Regards

Changqing

Quoted 70 lines

| checking run-time libs availability... failed
| configure: error: one or more libs available at link-time are not
available run-time. Libs used at link-time: -lnghttp2 -lssl
-lcrypto -lssl -lcrypto -lz
| NOTE: The following config.log files may provide further
information.
| NOTE:
/home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-109066/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build/config.log | ERROR: configure failed
| WARNING: exit code 1 from a shell command.
NOTE: recipe curl-native-7.87.0-r0: task do_configure: Failed
ERROR: Task (virtual:native:/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/recipes-support/curl/curl_7.87.0.bb:do_configure) failed with exit code '1'

Quoted 42 lines · Changqing Li

From: Changqing Li <[email protected]>

After commit ostree: replace libsoup-2.4 by curl, ostree depends on libcurl, but it needs http2 support, otherwise it will fail with
error:
OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request:
assertion failed (rc == CURLM_OK): (1 == 0)
| Bail out! OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request:
assertion failed (rc == CURLM_OK): (1 == 0)

Enable nghttp2 to fix above error.

---
   meta/recipes-support/curl/curl_7.86.0.bb | 6 +++---
   1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-support/curl/curl_7.86.0.bb +0 -0
index f5e3e7235d..6cee548f35 100644
@@ -24,9 +24,9 @@ inherit autotools pkgconfig binconfig

multilib_header ptest
# Entropy source for random PACKAGECONFIG option RANDOM ?= "/dev/urandom"

-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib" -PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib" -PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2" +PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"

Quoted 8 lines

# 'ares' and 'threaded-resolver' are mutually exclusive PACKAGECONFIG[ares] =
"--enable-ares,--disable-ares,c-ares,,,threaded-resolver" --
2.25.1

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176459): https://lists.openembedded.org/g/openembedded-core/message/176459
Mute This Topic: https://lists.openembedded.org/mt/95931602/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#12 lore raw

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

I have sent a fix for nghttp2 which unblocks builds on archlinux build hosts atleast.

Quoted 300 lines · Khem Raj

still failing on archlinux

| [26/27] Generating nghttp2.c
| /usr/lib/python3.10/site-packages/Cython/Compiler/Main.py:369:
FutureWarning: Cython directive 'language_level' not set, using 2 for
now (Py2). This will change in a later release! File:
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/nghttp2-1.51.0/python/nghttp2.pyx
| tree = Parsing.p_module(s, pxd, full_module_name)
| [27/27] cd /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python
&& /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 setup.py build
| FAILED: python/CMakeFiles/python /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python/CMakeFiles/python
| cd /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python
&& /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 setup.py build
| Traceback (most recent call last):
| File "/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python/setup.py",
line 24, in <module>

|     from setuptools import setup, Extension
| ModuleNotFoundError: No module named 'setuptools'
| ninja: build stopped: subcommand failed.
| WARNING: /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/temp/run.do_compile.2200023:167

exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} } cmake --build '/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build' "$@" -- ${EXTRA_OECMAKE_BUILD}'

Quoted 268 lines · Changqing Li
Quoted 155 lines · Changqing Li
Quoted 105 lines · Alexandre Belloni

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 100 lines · Changqing Li
Quoted 8 lines · Alexandre Belloni

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe.

This fails on the AB:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/4580/steps/14/logs/stdio

Hi, Alexandre

I need some help to debug this issue.

I cannot reproduce this issue on my host. First, the gcc command used to
build the binary conftest will

have as-needed enabled by default, so actually, these libs will not be
linked, and runtime check will passed.

Refer the command:

gcc -o conftest

(quoted diff) +0 -35
-isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-pipe -Werror-implicit-function-declaration -g -O2 -std=gnu89 -pedantic
-Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow -Winline
-Wnested-externs -Wmissing-declarations -Wmissing-prototypes
-Wno-long-long
-Wbad-function-cast -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef
-Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes
-Wdeclaration-after-statement -Wold-style-definition
-Wstrict-aliasing=3
-Wcast-align -Wtype-limits -Wold-style-declaration
-Wmissing-parameter-type
-Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion
-Wno-sign-conversion -Wvla -ftree-vrp -Wdouble-promotion -Wformat=2
-Warray-bounds=2 -Wshift-negative-value -Wshift-overflow=2
-Wnull-dereference -fdelete-null-pointer-checks -Wduplicated-cond
-Wunused-const-variable -Wduplicated-branches -Wrestrict -Walloc-zero
-Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough=4
-Wno-system-headers
-isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//include
-I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
 
-DOPENSSL_SUPPRESS_DEPRECATED
-I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
 
-Wl,--enable-new-dtags
-Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
 
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=/mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//lib
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib

conftest.c -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz

I also tried to add "-Wl,--no-as-needed" in above comand, and manually run
it, then conftest will link those libraries. These libraries can also be
found at runtime

since these libraries will be in recipe-sysroot-native.

$/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build# ldd conftest

     linux-vdso.so.1 (0x00007ffd447c1000)
     libnghttp2.so.14 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libnghttp2.so.14
(0x00007f6bd36af000)
     libssl.so.3 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libssl.so.3
(0x00007f6bd3606000)
     libcrypto.so.3 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libcrypto.so.3
(0x00007f6bd31cf000)
     libz.so.1 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libz.so.1
(0x00007f6bd31b5000)
     libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6bd2fb9000)
     libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f6bd2f96000)
     libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2

(0x00007f6bd2f90000) /mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f6bd36e6000) $/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build# ./conftest

Quoted 4 lines
Quoted 3 lines

This should be an host related issue, Does the worker "debian11-ty-3" means
that this build is built on debian11 docker or debian11 host? Thanks.

This is a debian 11 host.

Hi, Alex

I cannot reproduce this with debian 11 docker image.

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

configure:33927: checking run-time libs availability configure:33983: gcc -o conftest

(quoted diff) +0 -19
-isystem/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-pipe -Werror-implicit-function-declaration -O2 -Wno-system-headers
-isystem/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//include
-I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-DOPENSSL_SUPPRESS_DEPRECATED
-I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,--enable-new-dtags
-Wl,-rpath-link,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,-rpath,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=/mnt/yocto/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//lib
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib

conftest.c -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz >&5 configure:33983: $? = 0
configure:33983: ./conftest
configure:33983: $? = 0
configure:33985: result: fine

Quoted 1 line

Is it possible to login the autobuilder host to check this?

Hi, Alex, Richard

Could you help to give some suggestions to debug this issue?

Thanks

Changqing

Quoted 92 lines

Regards

Changqing

Quoted 83 lines
Quoted 78 lines

Regards

Changqing

Quoted 70 lines

| checking run-time libs availability... failed
| configure: error: one or more libs available at link-time are not
available run-time. Libs used at link-time: -lnghttp2 -lssl
-lcrypto -lssl -lcrypto -lz
| NOTE: The following config.log files may provide further
information.
| NOTE:
/home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-109066/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build/config.log | ERROR: configure failed
| WARNING: exit code 1 from a shell command.
NOTE: recipe curl-native-7.87.0-r0: task do_configure: Failed
ERROR: Task (virtual:native:/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/recipes-support/curl/curl_7.87.0.bb:do_configure) failed with exit code '1'

Quoted 42 lines · Changqing Li

From: Changqing Li <[email protected]>

After commit ostree: replace libsoup-2.4 by curl, ostree depends on libcurl, but it needs http2 support, otherwise it will fail with
error:
OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request:
assertion failed (rc == CURLM_OK): (1 == 0)
| Bail out! OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request:
assertion failed (rc == CURLM_OK): (1 == 0)

Enable nghttp2 to fix above error.

---
   meta/recipes-support/curl/curl_7.86.0.bb | 6 +++---
   1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-support/curl/curl_7.86.0.bb +0 -0
index f5e3e7235d..6cee548f35 100644
@@ -24,9 +24,9 @@ inherit autotools pkgconfig binconfig

multilib_header ptest
# Entropy source for random PACKAGECONFIG option RANDOM ?= "/dev/urandom"

-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib" -PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib" -PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2" +PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"

Quoted 8 lines

# 'ares' and 'threaded-resolver' are mutually exclusive PACKAGECONFIG[ares] =
"--enable-ares,--disable-ares,c-ares,,,threaded-resolver" --
2.25.1

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176459): https://lists.openembedded.org/g/openembedded-core/message/176459
Mute This Topic: https://lists.openembedded.org/mt/95931602/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#13 lore raw

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

Quoted 5 lines · Khem Raj

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

I have sent a fix for nghttp2 which unblocks builds on archlinux build hosts atleast.

Thanks Khem, I planed to send out the fix together with this debian11 issue, but I cannot

reproduce this issue on debian11.  It is an different issue with this archlinux one.

//Changqing

Quoted 289 lines · Khem Raj
Quoted 288 lines

still failing on archlinux

| [26/27] Generating nghttp2.c
| /usr/lib/python3.10/site-packages/Cython/Compiler/Main.py:369:
FutureWarning: Cython directive 'language_level' not set, using 2 for
now (Py2). This will change in a later release! File:
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/nghttp2-1.51.0/python/nghttp2.pyx
| tree = Parsing.p_module(s, pxd, full_module_name)
| [27/27] cd /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python
&& /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 setup.py build
| FAILED: python/CMakeFiles/python /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python/CMakeFiles/python
| cd /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python
&& /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 setup.py build
| Traceback (most recent call last):
| File "/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python/setup.py",
line 24, in <module>

|     from setuptools import setup, Extension
| ModuleNotFoundError: No module named 'setuptools'
| ninja: build stopped: subcommand failed.
| WARNING: /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/temp/run.do_compile.2200023:167

exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} } cmake --build '/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build' "$@" -- ${EXTRA_OECMAKE_BUILD}'

Quoted 257 lines · Changqing Li
Quoted 153 lines · Changqing Li
Quoted 105 lines · Alexandre Belloni

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 100 lines · Changqing Li
Quoted 8 lines · Alexandre Belloni

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe.

This fails on the AB:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/4580/steps/14/logs/stdio

Hi, Alexandre

I need some help to debug this issue.

I cannot reproduce this issue on my host. First, the gcc command used to
build the binary conftest will

have as-needed enabled by default, so actually, these libs will not be
linked, and runtime check will passed.

Refer the command:

gcc -o conftest

(quoted diff) +0 -35
-isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-pipe -Werror-implicit-function-declaration -g -O2 -std=gnu89 -pedantic
-Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow -Winline
-Wnested-externs -Wmissing-declarations -Wmissing-prototypes
-Wno-long-long
-Wbad-function-cast -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef
-Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes
-Wdeclaration-after-statement -Wold-style-definition
-Wstrict-aliasing=3
-Wcast-align -Wtype-limits -Wold-style-declaration
-Wmissing-parameter-type
-Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion
-Wno-sign-conversion -Wvla -ftree-vrp -Wdouble-promotion -Wformat=2
-Warray-bounds=2 -Wshift-negative-value -Wshift-overflow=2
-Wnull-dereference -fdelete-null-pointer-checks -Wduplicated-cond
-Wunused-const-variable -Wduplicated-branches -Wrestrict -Walloc-zero
-Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough=4
-Wno-system-headers
-isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//include
-I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
 
-DOPENSSL_SUPPRESS_DEPRECATED
-I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
 
-Wl,--enable-new-dtags
-Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
 
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=/mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//lib
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib

conftest.c -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz

I also tried to add "-Wl,--no-as-needed" in above comand, and manually run
it, then conftest will link those libraries. These libraries can also be
found at runtime

since these libraries will be in recipe-sysroot-native.

$/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build# ldd conftest

      linux-vdso.so.1 (0x00007ffd447c1000)
      libnghttp2.so.14 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libnghttp2.so.14
(0x00007f6bd36af000)
      libssl.so.3 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libssl.so.3
(0x00007f6bd3606000)
      libcrypto.so.3 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libcrypto.so.3
(0x00007f6bd31cf000)
      libz.so.1 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libz.so.1
(0x00007f6bd31b5000)
      libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6bd2fb9000)
      libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f6bd2f96000)
      libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2

(0x00007f6bd2f90000) /mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f6bd36e6000) $/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build# ./conftest

Quoted 4 lines
Quoted 3 lines

This should be an host related issue, Does the worker "debian11-ty-3" means
that this build is built on debian11 docker or debian11 host? Thanks.

This is a debian 11 host.

Hi, Alex

I cannot reproduce this with debian 11 docker image.

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

configure:33927: checking run-time libs availability configure:33983: gcc -o conftest

(quoted diff) +0 -19
-isystem/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-pipe -Werror-implicit-function-declaration -O2 -Wno-system-headers
-isystem/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//include
-I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-DOPENSSL_SUPPRESS_DEPRECATED
-I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,--enable-new-dtags
-Wl,-rpath-link,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,-rpath,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=/mnt/yocto/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//lib
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib

conftest.c -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz >&5 configure:33983: $? = 0
configure:33983: ./conftest
configure:33983: $? = 0
configure:33985: result: fine

Quoted 1 line

Is it possible to login the autobuilder host to check this?

Hi, Alex, Richard

Could you help to give some suggestions to debug this issue?

Thanks

Changqing

Quoted 86 lines

Regards

Changqing

Quoted 79 lines
Quoted 75 lines

Regards

Changqing

Quoted 70 lines

| checking run-time libs availability... failed
| configure: error: one or more libs available at link-time are not
available run-time. Libs used at link-time: -lnghttp2 -lssl
-lcrypto -lssl -lcrypto -lz
| NOTE: The following config.log files may provide further
information.
| NOTE:
/home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-109066/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build/config.log | ERROR: configure failed
| WARNING: exit code 1 from a shell command.
NOTE: recipe curl-native-7.87.0-r0: task do_configure: Failed
ERROR: Task (virtual:native:/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/recipes-support/curl/curl_7.87.0.bb:do_configure) failed with exit code '1'

Quoted 42 lines · Changqing Li

From: Changqing Li <[email protected]>

After commit ostree: replace libsoup-2.4 by curl, ostree depends on libcurl, but it needs http2 support, otherwise it will fail with
error:
OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request:
assertion failed (rc == CURLM_OK): (1 == 0)
| Bail out! OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request:
assertion failed (rc == CURLM_OK): (1 == 0)

Enable nghttp2 to fix above error.

---
    meta/recipes-support/curl/curl_7.86.0.bb | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-support/curl/curl_7.86.0.bb +0 -0
index f5e3e7235d..6cee548f35 100644
@@ -24,9 +24,9 @@ inherit autotools pkgconfig binconfig

multilib_header ptest
# Entropy source for random PACKAGECONFIG option RANDOM ?= "/dev/urandom"

-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib" -PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib" -PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2" +PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"

Quoted 8 lines

# 'ares' and 'threaded-resolver' are mutually exclusive PACKAGECONFIG[ares] =
"--enable-ares,--disable-ares,c-ares,,,threaded-resolver" --
2.25.1

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176459): https://lists.openembedded.org/g/openembedded-core/message/176459
Mute This Topic: https://lists.openembedded.org/mt/95931602/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#14 lore raw

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

Note that it also breaks meta-mingw:

https://autobuilder.yoctoproject.org/typhoon/#/builders/89/builds/6613/steps/12/logs/stdio

Quoted 5 lines · Changqing Li
Quoted 3 lines · Khem Raj

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 9 lines
Quoted 2 lines

I have sent a fix for nghttp2 which unblocks builds on archlinux build hosts atleast.

Thanks Khem, I planed to send out the fix together with this debian11 issue, but I cannot

reproduce this issue on debian11.� It is an different issue with this archlinux one.

Here is the actual issue on debian11:

/usr/lib/gcc/x86_64-linux-gnu/10/cc1: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/pokybuild/yocto-worker/buildtools/build/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/l ib/pkgconfig/../../../usr/lib/libzstd.so.1)

I guess this is a missing dependency and you are linking with the host lib.

Quoted 291 lines

//Changqing

Quoted 289 lines · Khem Raj
Quoted 288 lines

still failing on archlinux

| [26/27] Generating nghttp2.c
| /usr/lib/python3.10/site-packages/Cython/Compiler/Main.py:369:
FutureWarning: Cython directive 'language_level' not set, using 2 for
now (Py2). This will change in a later release! File:
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/nghttp2-1.51.0/python/nghttp2.pyx
| tree = Parsing.p_module(s, pxd, full_module_name)
| [27/27] cd /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python
&& /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 setup.py build
| FAILED: python/CMakeFiles/python /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python/CMakeFiles/python
| cd /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python
&& /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 setup.py build
| Traceback (most recent call last):
| File "/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build/python/setup.py",
line 24, in <module>

|     from setuptools import setup, Extension
| ModuleNotFoundError: No module named 'setuptools'
| ninja: build stopped: subcommand failed.
| WARNING: /mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/temp/run.do_compile.2200023:167

exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} } cmake --build '/mnt/b/yoe/master/build/tmp/work/x86_64-linux/nghttp2-native/1.51.0-r0/build' "$@" -- ${EXTRA_OECMAKE_BUILD}'

Quoted 257 lines · Changqing Li
Quoted 153 lines · Changqing Li
Quoted 105 lines · Alexandre Belloni

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 100 lines · Changqing Li
Quoted 8 lines · Alexandre Belloni

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe.

This fails on the AB:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/4580/steps/14/logs/stdio

Hi, Alexandre

I need some help to debug this issue.

I cannot reproduce this issue on my host. First, the gcc command used to
build the binary conftest will

have as-needed enabled by default, so actually, these libs will not be
linked, and runtime check will passed.

Refer the command:

gcc -o conftest

(quoted diff) +0 -35
-isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-pipe -Werror-implicit-function-declaration -g -O2 -std=gnu89 -pedantic
-Wall -W -Wpointer-arith -Wwrite-strings -Wunused -Wshadow -Winline
-Wnested-externs -Wmissing-declarations -Wmissing-prototypes
-Wno-long-long
-Wbad-function-cast -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef
-Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes
-Wdeclaration-after-statement -Wold-style-definition
-Wstrict-aliasing=3
-Wcast-align -Wtype-limits -Wold-style-declaration
-Wmissing-parameter-type
-Wempty-body -Wclobbered -Wignored-qualifiers -Wconversion
-Wno-sign-conversion -Wvla -ftree-vrp -Wdouble-promotion -Wformat=2
-Warray-bounds=2 -Wshift-negative-value -Wshift-overflow=2
-Wnull-dereference -fdelete-null-pointer-checks -Wduplicated-cond
-Wunused-const-variable -Wduplicated-branches -Wrestrict -Walloc-zero
-Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough=4
-Wno-system-headers
-isystem/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//include
-I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
 
-DOPENSSL_SUPPRESS_DEPRECATED
-I/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
 
-Wl,--enable-new-dtags
-Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath,/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
 
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=/mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//lib
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib
-L/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib

conftest.c -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz

I also tried to add "-Wl,--no-as-needed" in above comand, and manually run
it, then conftest will link those libraries. These libraries can also be
found at runtime

since these libraries will be in recipe-sysroot-native.

$/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build# ldd conftest

      linux-vdso.so.1 (0x00007ffd447c1000)
      libnghttp2.so.14 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libnghttp2.so.14
(0x00007f6bd36af000)
      libssl.so.3 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libssl.so.3
(0x00007f6bd3606000)
      libcrypto.so.3 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libcrypto.so.3
(0x00007f6bd31cf000)
      libz.so.1 =>
/mnt/lincd/build/tmp-glibc/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/libz.so.1
(0x00007f6bd31b5000)
      libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6bd2fb9000)
      libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f6bd2f96000)
      libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2

(0x00007f6bd2f90000) /mnt/lincd/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f6bd36e6000) $/mnt/yocto/test/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build# ./conftest

Quoted 4 lines
Quoted 3 lines

This should be an host related issue, Does the worker "debian11-ty-3" means
that this build is built on debian11 docker or debian11 host? Thanks.

This is a debian 11 host.

Hi, Alex

I cannot reproduce this with debian 11 docker image.

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

configure:33927: checking run-time libs availability configure:33983: gcc -o conftest

(quoted diff) +0 -19
-isystem/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-pipe -Werror-implicit-function-declaration -O2 -Wno-system-headers
-isystem/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/include
-I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//include
-I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-DOPENSSL_SUPPRESS_DEPRECATED
-I/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,--enable-new-dtags
-Wl,-rpath-link,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath-link,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,-rpath,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib
-Wl,-rpath,/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/lib
-Wl,-O1 -Wl,--allow-shlib-undefined
-Wl,--dynamic-linker=/mnt/yocto/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/..//lib
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib
-L/mnt/yocto/build/tmp/work/x86_64-linux/curl-native/7.87.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib

conftest.c -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz >&5 configure:33983: $? = 0
configure:33983: ./conftest
configure:33983: $? = 0
configure:33985: result: fine

Quoted 1 line

Is it possible to login the autobuilder host to check this?

Hi, Alex, Richard

Could you help to give some suggestions to debug this issue?

Thanks

Changqing

Quoted 86 lines

Regards

Changqing

Quoted 79 lines
Quoted 75 lines

Regards

Changqing

Quoted 70 lines

| checking run-time libs availability... failed
| configure: error: one or more libs available at link-time are not
available run-time. Libs used at link-time: -lnghttp2 -lssl
-lcrypto -lssl -lcrypto -lz
| NOTE: The following config.log files may provide further
information.
| NOTE:
/home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-109066/tmp/work/x86_64-linux/curl-native/7.87.0-r0/build/config.log | ERROR: configure failed
| WARNING: exit code 1 from a shell command.
NOTE: recipe curl-native-7.87.0-r0: task do_configure: Failed
ERROR: Task (virtual:native:/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/recipes-support/curl/curl_7.87.0.bb:do_configure) failed with exit code '1'

Quoted 42 lines · Changqing Li

From: Changqing Li <[email protected]>

After commit ostree: replace libsoup-2.4 by curl, ostree depends on libcurl, but it needs http2 support, otherwise it will fail with
error:
OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request:
assertion failed (rc == CURLM_OK): (1 == 0)
| Bail out! OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request:
assertion failed (rc == CURLM_OK): (1 == 0)

Enable nghttp2 to fix above error.

---
    meta/recipes-support/curl/curl_7.86.0.bb | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-support/curl/curl_7.86.0.bb +0 -0
index f5e3e7235d..6cee548f35 100644
@@ -24,9 +24,9 @@ inherit autotools pkgconfig binconfig

multilib_header ptest
# Entropy source for random PACKAGECONFIG option RANDOM ?= "/dev/urandom"

-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib" -PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib" -PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib nghttp2"
+PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2" +PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib nghttp2"

Quoted 8 lines

# 'ares' and 'threaded-resolver' are mutually exclusive PACKAGECONFIG[ares] =
"--enable-ares,--disable-ares,c-ares,,,threaded-resolver" --
2.25.1

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#176459): https://lists.openembedded.org/g/openembedded-core/message/176459
Mute This Topic: https://lists.openembedded.org/mt/95931602/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com