[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:05:13 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `libc-aarch64-ubuntu-fullbuild-dbg` running on `libc-aarch64-ubuntu` while building `libc` at step 4 "annotate".

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

<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_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Performing Test HAVE_PTHREAD_AFFINITY -- failed to compile
-- Configuring done
-- Generating done
-- Build files have been written to: /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-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.getppid.dir/getppid.cpp.o
FAILED: projects/libc/src/unistd/linux/CMakeFiles/libc.src.unistd.linux.getppid.dir/getppid.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -Iprojects/libc/src/unistd/linux -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/unistd/linux -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -isystem projects/libc/include -fPIC -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 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -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 -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 -std=c++17 -MD -MT projects/libc/src/unistd/linux/CMakeFiles/libc.src.unistd.linux.getppid.dir/getppid.cpp.o -MF projects/libc/src/unistd/linux/CMakeFiles/libc.src.unistd.linux.getppid.dir/getppid.cpp.o.d -o projects/libc/src/unistd/linux/CMakeFiles/libc.src.unistd.linux.getppid.dir/getppid.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/unistd/linux/getppid.cpp
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/unistd/linux/getppid.cpp:9:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/unistd/getppid.h:17:1: error: unknown type name 'pid_t'
pid_t getppid();
^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/unistd/linux/getppid.cpp:19:1: error: definition 'getppid' cannot also be an alias
LLVM_LIBC_FUNCTION(pid_t, getppid, ()) {
^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/common.h:54:3: note: expanded from macro 'LLVM_LIBC_FUNCTION'
  LLVM_LIBC_FUNCTION_IMPL(type, name, arglist)
  ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/common.h:46:41: note: expanded from macro 'LLVM_LIBC_FUNCTION_IMPL'
  decltype(LIBC_NAMESPACE::name) name [[gnu::alias(#name)]];                   \
                                        ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/unistd/linux/getppid.cpp:19:20: error: unknown type name 'pid_t'
LLVM_LIBC_FUNCTION(pid_t, getppid, ()) {
                   ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/unistd/linux/getppid.cpp:20:39: error: use of undeclared identifier 'pid_t'
  return LIBC_NAMESPACE::syscall_impl<pid_t>(SYS_getppid);
                                      ^
4 errors generated.
[3/29] Building CXX object projects/libc/src/unistd/linux/CMakeFiles/libc.src.unistd.linux.geteuid.dir/geteuid.cpp.o
FAILED: projects/libc/src/unistd/linux/CMakeFiles/libc.src.unistd.linux.geteuid.dir/geteuid.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -Iprojects/libc/src/unistd/linux -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/unistd/linux -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -isystem projects/libc/include -fPIC -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 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -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 -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 -std=c++17 -MD -MT projects/libc/src/unistd/linux/CMakeFiles/libc.src.unistd.linux.geteuid.dir/geteuid.cpp.o -MF projects/libc/src/unistd/linux/CMakeFiles/libc.src.unistd.linux.geteuid.dir/geteuid.cpp.o.d -o projects/libc/src/unistd/linux/CMakeFiles/libc.src.unistd.linux.geteuid.dir/geteuid.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/unistd/linux/geteuid.cpp
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/unistd/linux/geteuid.cpp:9:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/unistd/geteuid.h:17:1: error: unknown type name 'uid_t'
uid_t geteuid();
^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/unistd/linux/geteuid.cpp:19:1: error: definition 'geteuid' cannot also be an alias
LLVM_LIBC_FUNCTION(uid_t, geteuid, ()) {
^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/common.h:54:3: note: expanded from macro 'LLVM_LIBC_FUNCTION'
  LLVM_LIBC_FUNCTION_IMPL(type, name, arglist)
  ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/common.h:46:41: note: expanded from macro 'LLVM_LIBC_FUNCTION_IMPL'
  decltype(LIBC_NAMESPACE::name) name [[gnu::alias(#name)]];                   \
                                        ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/unistd/linux/geteuid.cpp:19:20: error: unknown type name 'uid_t'

```

</details>

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


More information about the libc-commits mailing list