microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.33k stars 6.45k forks source link

[gloo] Build failure on x64-linux #38852

Open ktimam opened 6 months ago

ktimam commented 6 months ago

Package: gloo:x64-linux@20201203#3

Host Environment

To Reproduce

vcpkg install gloo

Failure logs

-- Using cached facebookincubator-gloo-1da21174054eaabbbd189b7f657ea24842d821e2.tar.gz.
-- Cleaning sources at /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /mnt/c/Kiko/Tools/vcpkg/downloads/facebookincubator-gloo-1da21174054eaabbbd189b7f657ea24842d821e2.tar.gz
-- Applying patch fix-array.patch
-- Using source at /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean
-- Configuring x64-linux
-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /mnt/c/Kiko/Tools/vcpkg/downloads/tools/cmake-3.29.2-linux/cmake-3.29.2-linux-x86_64/bin/cmake --build . --config Debug --target install -- -v -j17
    Working Directory: /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg
    See logs for more information:
      /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/install-x64-linux-dbg-out.log

Call Stack (most recent call first):
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/gloo/portfile.cmake:27 (vcpkg_cmake_install)
  scripts/ports.cmake:175 (include)
/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/install-x64-linux-dbg-out.log ``` Change Dir: '/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg' Run Build Command(s): /mnt/c/Kiko/Tools/vcpkg/downloads/tools/ninja/1.10.2-linux/ninja -v -v -j17 install [1/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/types.cc.o -MF gloo/CMakeFiles/gloo.dir/types.cc.o.d -o gloo/CMakeFiles/gloo.dir/types.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/types.cc [2/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/common/logging.cc.o -MF gloo/CMakeFiles/gloo.dir/common/logging.cc.o.d -o gloo/CMakeFiles/gloo.dir/common/logging.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/common/logging.cc [3/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/algorithm.cc.o -MF gloo/CMakeFiles/gloo.dir/algorithm.cc.o.d -o gloo/CMakeFiles/gloo.dir/algorithm.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/algorithm.cc [4/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/barrier.cc.o -MF gloo/CMakeFiles/gloo.dir/barrier.cc.o.d -o gloo/CMakeFiles/gloo.dir/barrier.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/barrier.cc [5/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/gather.cc.o -MF gloo/CMakeFiles/gloo.dir/gather.cc.o.d -o gloo/CMakeFiles/gloo.dir/gather.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/gather.cc [6/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/broadcast.cc.o -MF gloo/CMakeFiles/gloo.dir/broadcast.cc.o.d -o gloo/CMakeFiles/gloo.dir/broadcast.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/broadcast.cc [7/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/allgather.cc.o -MF gloo/CMakeFiles/gloo.dir/allgather.cc.o.d -o gloo/CMakeFiles/gloo.dir/allgather.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/allgather.cc [8/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/alltoall.cc.o -MF gloo/CMakeFiles/gloo.dir/alltoall.cc.o.d -o gloo/CMakeFiles/gloo.dir/alltoall.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/alltoall.cc [9/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/gatherv.cc.o -MF gloo/CMakeFiles/gloo.dir/gatherv.cc.o.d -o gloo/CMakeFiles/gloo.dir/gatherv.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/gatherv.cc [10/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/scatter.cc.o -MF gloo/CMakeFiles/gloo.dir/scatter.cc.o.d -o gloo/CMakeFiles/gloo.dir/scatter.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/scatter.cc [11/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/transport/buffer.cc.o -MF gloo/CMakeFiles/gloo.dir/transport/buffer.cc.o.d -o gloo/CMakeFiles/gloo.dir/transport/buffer.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/transport/buffer.cc [12/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/allgatherv.cc.o -MF gloo/CMakeFiles/gloo.dir/allgatherv.cc.o.d -o gloo/CMakeFiles/gloo.dir/allgatherv.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/allgatherv.cc [13/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/context.cc.o -MF gloo/CMakeFiles/gloo.dir/context.cc.o.d -o gloo/CMakeFiles/gloo.dir/context.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/context.cc [14/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/alltoallv.cc.o -MF gloo/CMakeFiles/gloo.dir/alltoallv.cc.o.d -o gloo/CMakeFiles/gloo.dir/alltoallv.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/alltoallv.cc [15/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/common/linux.cc.o -MF gloo/CMakeFiles/gloo.dir/common/linux.cc.o.d -o gloo/CMakeFiles/gloo.dir/common/linux.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/common/linux.cc FAILED: gloo/CMakeFiles/gloo.dir/common/linux.cc.o /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/common/linux.cc.o -MF gloo/CMakeFiles/gloo.dir/common/linux.cc.o.d -o gloo/CMakeFiles/gloo.dir/common/linux.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/common/linux.cc In file included from /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/common/linux.cc:15: /usr/include/linux/ethtool.h: In function ‘int gloo::getInterfaceSpeedGLinkSettings(int, ifreq*)’: /usr/include/linux/ethtool.h:2214:17: error: flexible array member ‘ethtool_link_settings::link_mode_masks’ not at end of ‘struct gloo::getInterfaceSpeedGLinkSettings(int, ifreq*)::’ 2214 | __u32 link_mode_masks[]; | ^~~~~~~~~~~~~~~ /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/common/linux.cc:192:11: note: next member ‘__u32 gloo::getInterfaceSpeedGLinkSettings(int, ifreq*)::::link_mode_data [381]’ declared here 192 | __u32 link_mode_data[link_mode_data_nwords]; | ^~~~~~~~~~~~~~ /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/common/linux.cc:190:10: note: in the definition of ‘struct gloo::getInterfaceSpeedGLinkSettings(int, ifreq*)::’ 190 | struct { | ^ [16/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/reduce.cc.o -MF gloo/CMakeFiles/gloo.dir/reduce.cc.o.d -o gloo/CMakeFiles/gloo.dir/reduce.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/reduce.cc [17/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/allreduce_local.cc.o -MF gloo/CMakeFiles/gloo.dir/allreduce_local.cc.o.d -o gloo/CMakeFiles/gloo.dir/allreduce_local.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/allreduce_local.cc [18/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/transport/address.cc.o -MF gloo/CMakeFiles/gloo.dir/transport/address.cc.o.d -o gloo/CMakeFiles/gloo.dir/transport/address.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/transport/address.cc [19/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/transport/unbound_buffer.cc.o -MF gloo/CMakeFiles/gloo.dir/transport/unbound_buffer.cc.o.d -o gloo/CMakeFiles/gloo.dir/transport/unbound_buffer.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/transport/unbound_buffer.cc [20/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/allreduce.cc.o -MF gloo/CMakeFiles/gloo.dir/allreduce.cc.o.d -o gloo/CMakeFiles/gloo.dir/allreduce.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/allreduce.cc [21/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/rendezvous/store.cc.o -MF gloo/CMakeFiles/gloo.dir/rendezvous/store.cc.o.d -o gloo/CMakeFiles/gloo.dir/rendezvous/store.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/rendezvous/store.cc [22/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/transport/pair.cc.o -MF gloo/CMakeFiles/gloo.dir/transport/pair.cc.o.d -o gloo/CMakeFiles/gloo.dir/transport/pair.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/transport/pair.cc [23/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/transport/device.cc.o -MF gloo/CMakeFiles/gloo.dir/transport/device.cc.o.d -o gloo/CMakeFiles/gloo.dir/transport/device.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/transport/device.cc [24/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/rendezvous/prefix_store.cc.o -MF gloo/CMakeFiles/gloo.dir/rendezvous/prefix_store.cc.o.d -o gloo/CMakeFiles/gloo.dir/rendezvous/prefix_store.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/rendezvous/prefix_store.cc [25/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/transport/tcp/address.cc.o -MF gloo/CMakeFiles/gloo.dir/transport/tcp/address.cc.o.d -o gloo/CMakeFiles/gloo.dir/transport/tcp/address.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/transport/tcp/address.cc [26/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/transport/context.cc.o -MF gloo/CMakeFiles/gloo.dir/transport/context.cc.o.d -o gloo/CMakeFiles/gloo.dir/transport/context.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/transport/context.cc [27/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/rendezvous/hash_store.cc.o -MF gloo/CMakeFiles/gloo.dir/rendezvous/hash_store.cc.o.d -o gloo/CMakeFiles/gloo.dir/rendezvous/hash_store.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/rendezvous/hash_store.cc [28/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/rendezvous/file_store.cc.o -MF gloo/CMakeFiles/gloo.dir/rendezvous/file_store.cc.o.d -o gloo/CMakeFiles/gloo.dir/rendezvous/file_store.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/rendezvous/file_store.cc [29/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/transport/tcp/buffer.cc.o -MF gloo/CMakeFiles/gloo.dir/transport/tcp/buffer.cc.o.d -o gloo/CMakeFiles/gloo.dir/transport/tcp/buffer.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/transport/tcp/buffer.cc [30/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/rendezvous/context.cc.o -MF gloo/CMakeFiles/gloo.dir/rendezvous/context.cc.o.d -o gloo/CMakeFiles/gloo.dir/rendezvous/context.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/rendezvous/context.cc [31/37] /usr/bin/c++ -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean -I/mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/x64-linux-dbg -fPIC -std=c++11 -fPIC -g -MD -MT gloo/CMakeFiles/gloo.dir/transport/tcp/context.cc.o -MF gloo/CMakeFiles/gloo.dir/transport/tcp/context.cc.o.d -o gloo/CMakeFiles/gloo.dir/transport/tcp/context.cc.o -c /mnt/c/Kiko/Tools/vcpkg/buildtrees/gloo/src/4842d821e2-a23aea63a5.clean/gloo/transport/tcp/context.cc ninja: build stopped: subcommand failed. ```
FrankXie05 commented 6 months ago

Reproduce on x64-linux.

FrankXie05 commented 6 months ago

@ktimam The flexible array member link_mode_masks should be at the end of the structure, otherwise it is illegal in C++.

And this structure requires dynamic allocation of memory to ensure that the flexible array members have enough space to store the required data.

I think this is an upstream problem, I will submit a solution to upstream and ask for help from upstream. :)

dg0yt commented 5 months ago

I think it is a compiler bug: The array is to have a static (constexpr) size.