Hi, I am getting reliably on clean build: ..... # compile libstdc++-v3/fs_ops.o /dumps/sysbuild/amd64/tools/bin/x86_64--netbsd-c++ -frandom-seed=a3e2ff35 -O2 -Wall -Wpointer-arith -Wno-sign-compare -Wa,--fatal-warnings -Werror -fPIE -fno-implicit-templates --sysroot=/dumps/sysbuild/amd64/destdir -I/home/sysbuild/src/external/gpl3/gcc/dist/gcc -I/home/sysbuild/src/external/gpl3/gcc/dist/include -I/home/sysbuild/src/external/gpl3/gcc/d ist/libstdc++-v3/libsupc++ -I/home/sysbuild/src/external/gpl3/gcc/dist/libgcc -I/home/sysbuild/src/external/gpl3/gcc/lib/libstdc++-v3/../libstdc++-v3/arch/x86_64 -I. -DHAVE_STDLIB_ H -DHAVE_STRING_H -I/home/sysbuild/src/external/gpl3/gcc/dist/libstdc++-v3/include -I/home/sysbuild/src/external/gpl3/gcc/dist/gcc/config/i386 -I/home/sysbuild/src/external/gpl3/gc c/lib/libstdc++-v3/arch/x86_64 -D_GLIBCXX_SHARED -DGTHREAD_USE_WEAK -DSUPPORTS_WEAK -I/home/sysbuild/src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly -c -std=gnu++1 7 -fimplicit-templates /home/sysbuild/src/external/gpl3/gcc/dist/libstdc++-v3/src/c++17/fs_ops.cc -o fs_ops.o In file included from /home/sysbuild/src/external/gpl3/gcc/dist/libstdc++-v3/src/c++17/fs_ops.cc:62: /home/sysbuild/src/external/gpl3/gcc/dist/libstdc++-v3/src/c++17/../filesystem/ops-common.h: In function 'bool std::filesystem::do_copy_file(const __gnu_posix::char_type*, const __ gnu_posix::char_type*, copy_options_existing_file, __gnu_posix::stat_type*, __gnu_posix::stat_type*, std::error_code&)': /home/sysbuild/src/external/gpl3/gcc/dist/libstdc++-v3/src/c++17/../filesystem/ops-common.h:516:12: error: unused variable 'count' [-Werror=unused-variable] 516 | size_t count = from_st->st_size; | ^~~~~ cc1plus: all warnings being treated as errors *** Failed target: fs_ops.o *** In directory: /home/sysbuild/src/external/gpl3/gcc/lib/libstdc++-v3 ....
Any pointers? Chavdar -- ----