[libc-commits] [libc] [llvm] [libc] Add functions to send/recv messages (PR #106467)
LLVM Continuous Integration via libc-commits
libc-commits at lists.llvm.org
Thu Sep 19 14:47:24 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `libc-x86_64-debian-gcc-fullbuild-dbg` running on `libc-x86_64-debian-fullbuild` while building `libc,utils` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/131/builds/6780
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[377/539] Building CXX object projects/libc/src/pthread/CMakeFiles/libc.src.pthread.pthread_rwlock_clockwrlock.dir/pthread_rwlock_clockwrlock.cpp.o
[378/539] Building CXX object projects/libc/src/pthread/CMakeFiles/libc.src.pthread.pthread_rwlock_clockrdlock.dir/pthread_rwlock_clockrdlock.cpp.o
[379/539] Building CXX object projects/libc/src/pthread/CMakeFiles/libc.src.pthread.pthread_rwlock_timedrdlock.dir/pthread_rwlock_timedrdlock.cpp.o
[380/539] Building CXX object projects/libc/src/pthread/CMakeFiles/libc.src.pthread.pthread_rwlock_unlock.dir/pthread_rwlock_unlock.cpp.o
[381/539] Building CXX object projects/libc/src/pthread/CMakeFiles/libc.src.pthread.pthread_rwlock_timedwrlock.dir/pthread_rwlock_timedwrlock.cpp.o
[382/539] Building CXX object projects/libc/src/sys/select/linux/CMakeFiles/libc.src.sys.select.linux.select.dir/select.cpp.o
[383/539] Building CXX object projects/libc/src/string/CMakeFiles/libc.src.string.strxfrm_l.dir/strxfrm_l.cpp.o
[384/539] Building CXX object projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.socketpair.dir/socketpair.cpp.o
[385/539] Building CXX object projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.send.dir/send.cpp.o
[386/539] Building CXX object projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.sendto.dir/sendto.cpp.o
FAILED: projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.sendto.dir/sendto.cpp.o
/usr/bin/g++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/src/sys/socket/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -isystem/usr/lib/gcc/x86_64-linux-gnu/12//include -nostdinc -idirafter/usr/include -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -DLIBC_COPT_PUBLIC_PACKAGING -std=c++17 -MD -MT projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.sendto.dir/sendto.cpp.o -MF projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.sendto.dir/sendto.cpp.o.d -o projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.sendto.dir/sendto.cpp.o -c /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/linux/sendto.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/hdr/types/struct_sockaddr.h:13,
from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/sendto.h:14,
from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/linux/sendto.cpp:9:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/include/llvm-libc-types/struct_sockaddr.h:18:8: error: ISO C++ forbids flexible array member ‘sa_data’ [-Werror=pedantic]
18 | char sa_data[];
| ^~~~~~~
cc1plus: all warnings being treated as errors
[387/539] Building CXX object projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.recv.dir/recv.cpp.o
[388/539] Building CXX object projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.recvfrom.dir/recvfrom.cpp.o
FAILED: projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.recvfrom.dir/recvfrom.cpp.o
/usr/bin/g++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/src/sys/socket/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -isystem/usr/lib/gcc/x86_64-linux-gnu/12//include -nostdinc -idirafter/usr/include -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -DLIBC_COPT_PUBLIC_PACKAGING -std=c++17 -MD -MT projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.recvfrom.dir/recvfrom.cpp.o -MF projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.recvfrom.dir/recvfrom.cpp.o.d -o projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.recvfrom.dir/recvfrom.cpp.o -c /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/linux/recvfrom.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/hdr/types/struct_sockaddr.h:13,
from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/recvfrom.h:14,
from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/linux/recvfrom.cpp:9:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/include/llvm-libc-types/struct_sockaddr.h:18:8: error: ISO C++ forbids flexible array member ‘sa_data’ [-Werror=pedantic]
18 | char sa_data[];
| ^~~~~~~
cc1plus: all warnings being treated as errors
[389/539] Building CXX object projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.recvmsg.dir/recvmsg.cpp.o
[390/539] Building CXX object projects/libc/src/sys/sendfile/linux/CMakeFiles/libc.src.sys.sendfile.linux.sendfile.dir/sendfile.cpp.o
[391/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.fchmodat.dir/fchmodat.cpp.o
[392/539] Building CXX object projects/libc/src/string/CMakeFiles/libc.src.string.strxfrm.dir/strxfrm.cpp.o
[393/539] Building CXX object projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.sendmsg.dir/sendmsg.cpp.o
[394/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.chmod.dir/chmod.cpp.o
[395/539] Building CXX object projects/libc/src/termios/linux/CMakeFiles/libc.src.termios.linux.cfgetispeed.dir/cfgetispeed.cpp.o
[396/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.fchmod.dir/fchmod.cpp.o
[397/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.mkdirat.dir/mkdirat.cpp.o
[398/539] Building CXX object projects/libc/src/termios/linux/CMakeFiles/libc.src.termios.linux.cfgetospeed.dir/cfgetospeed.cpp.o
[399/539] Building CXX object projects/libc/src/termios/linux/CMakeFiles/libc.src.termios.linux.cfsetispeed.dir/cfsetispeed.cpp.o
[400/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.mkdir.dir/mkdir.cpp.o
[401/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.fstat.dir/fstat.cpp.o
[402/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.stat.dir/stat.cpp.o
[403/539] Building CXX object projects/libc/src/sys/prctl/linux/CMakeFiles/libc.src.sys.prctl.linux.prctl.dir/prctl.cpp.o
[404/539] Building CXX object projects/libc/src/sys/utsname/linux/CMakeFiles/libc.src.sys.utsname.linux.uname.dir/uname.cpp.o
[405/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.lstat.dir/lstat.cpp.o
[406/539] Building CXX object projects/libc/src/string/CMakeFiles/libc.src.string.memset_explicit.dir/memset_explicit.cpp.o
[407/539] Building CXX object projects/libc/src/sys/wait/linux/CMakeFiles/libc.src.sys.wait.linux.wait4.dir/wait4.cpp.o
Step 6 (build libc) failure: build libc (failure)
...
[377/539] Building CXX object projects/libc/src/pthread/CMakeFiles/libc.src.pthread.pthread_rwlock_clockwrlock.dir/pthread_rwlock_clockwrlock.cpp.o
[378/539] Building CXX object projects/libc/src/pthread/CMakeFiles/libc.src.pthread.pthread_rwlock_clockrdlock.dir/pthread_rwlock_clockrdlock.cpp.o
[379/539] Building CXX object projects/libc/src/pthread/CMakeFiles/libc.src.pthread.pthread_rwlock_timedrdlock.dir/pthread_rwlock_timedrdlock.cpp.o
[380/539] Building CXX object projects/libc/src/pthread/CMakeFiles/libc.src.pthread.pthread_rwlock_unlock.dir/pthread_rwlock_unlock.cpp.o
[381/539] Building CXX object projects/libc/src/pthread/CMakeFiles/libc.src.pthread.pthread_rwlock_timedwrlock.dir/pthread_rwlock_timedwrlock.cpp.o
[382/539] Building CXX object projects/libc/src/sys/select/linux/CMakeFiles/libc.src.sys.select.linux.select.dir/select.cpp.o
[383/539] Building CXX object projects/libc/src/string/CMakeFiles/libc.src.string.strxfrm_l.dir/strxfrm_l.cpp.o
[384/539] Building CXX object projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.socketpair.dir/socketpair.cpp.o
[385/539] Building CXX object projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.send.dir/send.cpp.o
[386/539] Building CXX object projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.sendto.dir/sendto.cpp.o
FAILED: projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.sendto.dir/sendto.cpp.o
/usr/bin/g++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/src/sys/socket/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -isystem/usr/lib/gcc/x86_64-linux-gnu/12//include -nostdinc -idirafter/usr/include -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -DLIBC_COPT_PUBLIC_PACKAGING -std=c++17 -MD -MT projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.sendto.dir/sendto.cpp.o -MF projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.sendto.dir/sendto.cpp.o.d -o projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.sendto.dir/sendto.cpp.o -c /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/linux/sendto.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/hdr/types/struct_sockaddr.h:13,
from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/sendto.h:14,
from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/linux/sendto.cpp:9:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/include/llvm-libc-types/struct_sockaddr.h:18:8: error: ISO C++ forbids flexible array member ‘sa_data’ [-Werror=pedantic]
18 | char sa_data[];
| ^~~~~~~
cc1plus: all warnings being treated as errors
[387/539] Building CXX object projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.recv.dir/recv.cpp.o
[388/539] Building CXX object projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.recvfrom.dir/recvfrom.cpp.o
FAILED: projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.recvfrom.dir/recvfrom.cpp.o
/usr/bin/g++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/src/sys/socket/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/linux -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -isystem/usr/lib/gcc/x86_64-linux-gnu/12//include -nostdinc -idirafter/usr/include -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -DLIBC_COPT_PUBLIC_PACKAGING -std=c++17 -MD -MT projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.recvfrom.dir/recvfrom.cpp.o -MF projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.recvfrom.dir/recvfrom.cpp.o.d -o projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.recvfrom.dir/recvfrom.cpp.o -c /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/linux/recvfrom.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/hdr/types/struct_sockaddr.h:13,
from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/recvfrom.h:14,
from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/sys/socket/linux/recvfrom.cpp:9:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/include/llvm-libc-types/struct_sockaddr.h:18:8: error: ISO C++ forbids flexible array member ‘sa_data’ [-Werror=pedantic]
18 | char sa_data[];
| ^~~~~~~
cc1plus: all warnings being treated as errors
[389/539] Building CXX object projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.recvmsg.dir/recvmsg.cpp.o
[390/539] Building CXX object projects/libc/src/sys/sendfile/linux/CMakeFiles/libc.src.sys.sendfile.linux.sendfile.dir/sendfile.cpp.o
[391/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.fchmodat.dir/fchmodat.cpp.o
[392/539] Building CXX object projects/libc/src/string/CMakeFiles/libc.src.string.strxfrm.dir/strxfrm.cpp.o
[393/539] Building CXX object projects/libc/src/sys/socket/linux/CMakeFiles/libc.src.sys.socket.linux.sendmsg.dir/sendmsg.cpp.o
[394/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.chmod.dir/chmod.cpp.o
[395/539] Building CXX object projects/libc/src/termios/linux/CMakeFiles/libc.src.termios.linux.cfgetispeed.dir/cfgetispeed.cpp.o
[396/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.fchmod.dir/fchmod.cpp.o
[397/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.mkdirat.dir/mkdirat.cpp.o
[398/539] Building CXX object projects/libc/src/termios/linux/CMakeFiles/libc.src.termios.linux.cfgetospeed.dir/cfgetospeed.cpp.o
[399/539] Building CXX object projects/libc/src/termios/linux/CMakeFiles/libc.src.termios.linux.cfsetispeed.dir/cfsetispeed.cpp.o
[400/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.mkdir.dir/mkdir.cpp.o
[401/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.fstat.dir/fstat.cpp.o
[402/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.stat.dir/stat.cpp.o
[403/539] Building CXX object projects/libc/src/sys/prctl/linux/CMakeFiles/libc.src.sys.prctl.linux.prctl.dir/prctl.cpp.o
[404/539] Building CXX object projects/libc/src/sys/utsname/linux/CMakeFiles/libc.src.sys.utsname.linux.uname.dir/uname.cpp.o
[405/539] Building CXX object projects/libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.lstat.dir/lstat.cpp.o
[406/539] Building CXX object projects/libc/src/string/CMakeFiles/libc.src.string.memset_explicit.dir/memset_explicit.cpp.o
[407/539] Building CXX object projects/libc/src/sys/wait/linux/CMakeFiles/libc.src.sys.wait.linux.wait4.dir/wait4.cpp.o
```
</details>
https://github.com/llvm/llvm-project/pull/106467
More information about the libc-commits
mailing list