Created attachment 789458 [details] Build Log /bin/sh ../libtool --tag=CC --mode=compile loongarch64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/include -I../lib -I/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -fvisibility=hidden -O2 -pipe -Werror-implicit-function-declaration -c -o libcurl_la-easyoptions.lo `test -f 'easyoptions.c' || echo '/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib/'`easyoptions.c libtool: compile: loongarch64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/include -I../lib -I/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -fvisibility=hidden -O2 -pipe -Werror-implicit-function-declaration -c /var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib/easygetopt.c -fPIC -DPIC -o .libs/libcurl_la-easygetopt.o libtool: compile: loongarch64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/include -I../lib -I/var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -fvisibility=hidden -O2 -pipe -Werror-implicit-function-declaration -c /var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib/easyoptions.c -fPIC -DPIC -o .libs/libcurl_la-easyoptions.o In file included from /var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib/easy.c:89: /var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib/easy_lock.h: In function 'curl_simple_lock_lock': /var/tmp/portage/net-misc/curl-7.84.0/work/curl-7.84.0/lib/easy_lock.h:56:7: error: implicit declaration of function 'sched_yield' [-Werror=implicit-function-declaration] 56 | sched_yield(); | ^~~~~~~~~~~
Created attachment 789461 [details] emerge --info
➜ ~ emerge -pqv '=net-misc/curl-7.84.0::gentoo' [ebuild U ] net-misc/curl-7.84.0 [7.83.1] USE="ftp http2 imap ipv6 openssl pop3 progress-meter smtp ssl tftp -adns -alt-svc -brotli -gnutls -gopher -hsts -idn -kerberos -ldap -mbedtls (-nghttp3) -nss (-quiche) -rtmp -samba -ssh -sslv3 -static-libs -telnet -test -threads -verify-sig -zstd" CURL_SSL="openssl -gnutls -mbedtls -nss" ➜ ~
We need https://github.com/curl/curl/commit/e2e7f54b7bea521fa8373095d0f43261a720cda0.patch.
(In reply to Sam James from comment #3) > We need > https://github.com/curl/curl/commit/e2e7f54b7bea521fa8373095d0f43261a720cda0. > patch. Thanks, Problem solved.
(In reply to HougeLangley from comment #4) > (In reply to Sam James from comment #3) > > We need > > https://github.com/curl/curl/commit/e2e7f54b7bea521fa8373095d0f43261a720cda0. > > patch. > > Thanks, Problem solved. It's not fixed in Gentoo yet, but thanks for testing.
(In reply to Sam James from comment #5) > (In reply to HougeLangley from comment #4) > > (In reply to Sam James from comment #3) > > > We need > > > https://github.com/curl/curl/commit/e2e7f54b7bea521fa8373095d0f43261a720cda0. > > > patch. > > > > Thanks, Problem solved. > > It's not fixed in Gentoo yet, but thanks for testing. My pleasure ;)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5faad6a505dc25262ff894805bfae514df4fba8f commit 5faad6a505dc25262ff894805bfae514df4fba8f Author: Sam James <sam@gentoo.org> AuthorDate: 2022-07-02 12:41:03 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-07-02 12:41:03 +0000 net-misc/curl: backport include fix Closes: https://bugs.gentoo.org/855710 Signed-off-by: Sam James <sam@gentoo.org> net-misc/curl/curl-7.84.0.ebuild | 1 + .../curl/files/curl-7.84.0-include-sched.patch | 24 ++++++++++++++++++++++ 2 files changed, 25 insertions(+)