m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.49k stars 257 forks source link

curl: nonblock.c: In function 'curlx_nonblock': no non-blocking method was found/used/set (GCC 14?) #2674

Closed LigH-de closed 1 month ago

LigH-de commented 1 month ago

https://github.com/curl/curl/issues/13579

  CC       libcurl_la-nonblock.lo
../../lib/nonblock.c: In function 'curlx_nonblock':
../../lib/nonblock.c:82:4: error: #error "no non-blocking method was found/used/set"
   82 | #  error "no non-blocking method was found/used/set"
      |    ^~~~~
make[2]: *** [Makefile:2831: libcurl_la-nonblock.lo] Error 1

logs.zip

Fishman0919 commented 1 month ago

Same.

logs.zip

LigH-de commented 1 month ago

Possible reason:

gcc.exe (Rev2, Built by MSYS2 project) 14.1.0

LigH-de commented 1 month ago

https://github.com/curl/curl/commit/4bab28f0661d95bb6421d9ae3630cb1cca2fc487 applied as patch might help?

 [[ $standalone = y || $curl != n ]] && _check+=(bin-global/curl.exe)
 if [[ $mediainfo = y || $bmx = y || $curl != n || $cyanrip = y ]] &&
     do_vcs "$SOURCE_REPO_CURL"; then
     do_pacman_install nghttp2
+    do_patch "https://github.com/curl/curl/commit/4bab28f0661d95bb6421d9ae3630cb1cca2fc487.diff" 

     do_uninstall include/curl bin-global/curl-config "${_check[@]}"
     [[ $standalone = y || $curl != n ]] ||
         sed -ri "s;(^SUBDIRS = lib) src (include) scripts;\1 \2;" Makefile.in

compiles for me. Expecting a soon fix upstream.

LigH-de commented 1 month ago

Merged upstream.