Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Failure to build -current amd64



On Sun, 30 Jun 2024 at 12:56, Chavdar Ivanov <ci4ic4%gmail.com@localhost> wrote:
>
> 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?

I did:

Index: ops-common.h
===================================================================
RCS file: /cvsroot/src/external/gpl3/gcc/dist/libstdc++-v3/src/filesystem/ops-common.h,v
retrieving revision 1.1.1.5
diff -u -r1.1.1.5 ops-common.h
--- ops-common.h        30 Jun 2024 07:35:39 -0000      1.1.1.5
+++ ops-common.h        30 Jun 2024 13:37:19 -0000
@@ -513,8 +513,8 @@
        return false;
       }

-    size_t count = from_st->st_size;
 #if defined _GLIBCXX_USE_SENDFILE && ! defined _GLIBCXX_FILESYSTEM_IS_WINDOWS
+    size_t count = from_st->st_size;
     ssize_t n = 0;
     if (count != 0)
       {

and is carrying on, we'll see further.

>
>
> Chavdar
>
>
> --
> ----



-- 
----


Home | Main Index | Thread Index | Old Index