Hello all,on a fresh NetBSD 9.1_STABLE with pkgsrc2021Q1 I fail to build libfilezilla. If it makes any difference - I use pbulk in a sandbox. I have tried both with MAKE_JOBS=8 and MAKE_JOBS=1 - the problem occurs in both cases.
```/bin/sh ../libtool --tag=CXX --mode=compile c++ -std=c++17 -DHAVE_CONFIG_H -I../config -DBUILDING_LIBFILEZILLA -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include/p11-kit-1 -I. -I./libfilezilla -I/usr/pkg/include -I/usr/include -fvisibility=hidden -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -Wall -g -MT libfilezilla_la-invoker.lo -MD -MP -MF .deps/libfilezilla_la-invoker.Tpo -c -o libfilezilla_la-invoker.lo `test -f 'invoker.cpp' || echo './'`invoker.cpp libtool: compile: c++ -std=c++17 -DHAVE_CONFIG_H -I../config -DBUILDING_LIBFILEZILLA -I/tmp/work/.buildlink/include -I/tmp/work/.buildlink/include/p11-kit-1 -I. -I./libfilezilla -fvisibility=hidden -O2 -D_FORTIFY_SOURCE=2 -Wall -g -MT libfilezilla_la-invoker.lo -MD -MP -MF .deps/libfilezilla_la-invoker.Tpo -c invoker.cpp -fPIC -DPIC -o .libs/libfilezilla_la-invoker.o invoker.cpp: In function 'fz::invoker_factory fz::get_invoker_factory(fz::event_loop&)':
invoker.cpp:28:54: error: 'loop' was not declared in this scopereturn [handler = std::optional<thread_invoker>(), &loop](std::function<void()> const& cb) mutable {
^~~~ invoker.cpp: In lambda function: invoker.cpp:30:20: error: 'loop' is not captured handler.emplace(loop); ^~~~ invoker.cpp:28:58: note: the lambda has no capture-defaultreturn [handler = std::optional<thread_invoker>(), &loop](std::function<void()> const& cb) mutable {
^ invoker.cpp:28:54: note: '<typeprefixerror>loop' declared herereturn [handler = std::optional<thread_invoker>(), &loop](std::function<void()> const& cb) mutable {
^~~~ gmake[1]: *** [Makefile:768: libfilezilla_la-invoker.lo] Error 1 gmake[1]: Leaving directory '/tmp/work/libfilezilla-0.27.0/lib' gmake: *** [Makefile:487: all-recursive] Error 1 *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/net/libfilezilla *** Error code 1 Stop. make: stopped in /usr/pkgsrc/net/libfilezilla ```Is the problem already known? My Google search brought only relatively unspecific results related to Ubuntu[1] and GCC[2]. Accordingly, it seems to be a compiler problem that is fixed in GCC 8. However, NetBSD 9.1 still uses GCC 7.5.0. Could this be the reason and is there a workaround? In pkgsrc there are already newer GCC versions in it - how can I test the PKG to force the use of GCC 8 from pkgsrc?
According to HG, the libfilezilla PKG was updated on 03/12/2021, and before that last updated on 09/18/2021. This could be the reason why the problem did not occur with the same build setup (and pkgsrc2020Q4) so far.
Kind regards Matthias [1] https://forum.filezilla-project.org/viewtopic.php?t=53305 [2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71546
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature