[libc-commits] [libc] [libc] Add unistd overlay (PR #118882)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Mon Dec 9 16:11:11 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `libc-riscv32-qemu-yocto-fullbuild-dbg` running on `rv32gc-qemu-system` while building `libc` at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/196/builds/2140

<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)
...
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Performing Test HAVE_PTHREAD_AFFINITY -- success
-- Configuring done (5.8s)
-- Generating done (10.3s)
-- Build files have been written to: /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build
@@@BUILD_STEP build libc@@@
Running: ninja libc
[1/29] Building CXX object projects/libc/src/unistd/CMakeFiles/libc.src.unistd.swab.dir/swab.cpp.o
[2/29] Building CXX object projects/libc/src/unistd/linux/CMakeFiles/libc.src.unistd.linux.sysconf.dir/sysconf.cpp.o
[3/29] Building CXX object projects/libc/src/unistd/linux/CMakeFiles/libc.src.unistd.linux.write.dir/write.cpp.o
FAILED: projects/libc/src/unistd/linux/CMakeFiles/libc.src.unistd.linux.write.dir/write.cpp.o 
/usr/local/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/src/unistd/linux -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/unistd/linux -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc -isystem /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/projects/libc/include -mabi=ilp32d -march=rv32imafdc --target=riscv32-unknown-linux-gnu --sysroot=/opt/riscv/sysroot --gcc-toolchain=/opt/riscv -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -std=c++17 --target=riscv32-unknown-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter=/usr/include -ffixed-point -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 -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT projects/libc/src/unistd/linux/CMakeFiles/libc.src.unistd.linux.write.dir/write.cpp.o -MF projects/libc/src/unistd/linux/CMakeFiles/libc.src.unistd.linux.write.dir/write.cpp.o.d -o projects/libc/src/unistd/linux/CMakeFiles/libc.src.unistd.linux.write.dir/write.cpp.o -c /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/unistd/linux/write.cpp
In file included from /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/unistd/linux/write.cpp:9:
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/unistd/write.h:17:1: error: unknown type name 'ssize_t'
   17 | ssize_t write(int fd, const void *buf, size_t count);
      | ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/unistd/write.h:17:40: error: unknown type name 'size_t'
   17 | ssize_t write(int fd, const void *buf, size_t count);
      |                                        ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/unistd/linux/write.cpp:20:1: error: definition 'write' cannot also be an alias
   20 | LLVM_LIBC_FUNCTION(ssize_t, write, (int fd, const void *buf, size_t count)) {
      | ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/__support/common.h:54:3: note: expanded from macro 'LLVM_LIBC_FUNCTION'
   54 |   LLVM_LIBC_FUNCTION_IMPL(type, name, arglist)
      |   ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/__support/common.h:46:41: note: expanded from macro 'LLVM_LIBC_FUNCTION_IMPL'
   46 |   decltype(LIBC_NAMESPACE::name) name [[gnu::alias(#name)]];                   \
      |                                         ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/unistd/linux/write.cpp:20:20: error: unknown type name 'ssize_t'; did you mean 'size_t'?
   20 | LLVM_LIBC_FUNCTION(ssize_t, write, (int fd, const void *buf, size_t count)) {
      |                    ^~~~~~~
      |                    size_t
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/__support/common.h:54:27: note: expanded from macro 'LLVM_LIBC_FUNCTION'
   54 |   LLVM_LIBC_FUNCTION_IMPL(type, name, arglist)
      |                           ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/__support/common.h:47:3: note: expanded from macro 'LLVM_LIBC_FUNCTION_IMPL'
   47 |   type __##name##_impl__ arglist
      |   ^
/usr/local/lib/clang/20/include/__stddef_size_t.h:18:23: note: 'size_t' declared here
   18 | typedef __SIZE_TYPE__ size_t;
      |                       ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/unistd/linux/write.cpp:20:1: error: redefinition of '__write_impl__' as different kind of symbol
   20 | LLVM_LIBC_FUNCTION(ssize_t, write, (int fd, const void *buf, size_t count)) {
      | ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/__support/common.h:54:3: note: expanded from macro 'LLVM_LIBC_FUNCTION'
   54 |   LLVM_LIBC_FUNCTION_IMPL(type, name, arglist)
      |   ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/src/__support/common.h:47:8: note: expanded from macro 'LLVM_LIBC_FUNCTION_IMPL'
   47 |   type __##name##_impl__ arglist

```

</details>

https://github.com/llvm/llvm-project/pull/118882


More information about the libc-commits mailing list