[libc-commits] [libc] [libc] Remove src/errno/errno.h (PR #98759)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Sat Jul 13 11:26:32 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `libc` at step 5 "compile-openmp".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (compile-openmp) failure: build (failure)
...
0.115 [1243/34/106] Building CXX object libc/src/inttypes/CMakeFiles/libc.src.inttypes.imaxabs.dir/imaxabs.cpp.o
0.125 [1242/34/107] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.common_constants.dir/common_constants.cpp.o
0.176 [1241/34/108] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strsep.dir/strsep.cpp.o
0.185 [1240/34/109] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strstr.dir/strstr.cpp.o
0.201 [1239/34/110] Building CXX object libc/src/__support/RPC/CMakeFiles/libc.src.__support.RPC.rpc_client.dir/rpc_client.cpp.o
0.220 [1238/34/111] Building CXX object libc/src/inttypes/CMakeFiles/libc.src.inttypes.strtoumax.dir/strtoumax.cpp.o
0.236 [1237/34/112] Building CXX object libc/src/inttypes/CMakeFiles/libc.src.inttypes.strtoimax.dir/strtoimax.cpp.o
0.268 [1236/34/113] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strtok.dir/strtok.cpp.o
0.287 [1235/34/114] Building CXX object libc/src/__support/OSUtil/gpu/CMakeFiles/libc.src.__support.OSUtil.gpu.gpu_util.dir/exit.cpp.o
0.297 [1234/34/115] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.exp10f.dir/exp10f.cpp.o
FAILED: libc/src/math/generic/CMakeFiles/libc.src.math.generic.exp10f.dir/exp10f.cpp.o 
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./bin/clang++ --target=amdgcn-amd-amdhsa -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -I/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc -isystem /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc/include -O3 -DNDEBUG --target=amdgcn-amd-amdhsa -fpie -DLIBC_FULL_BUILD -nostdlibinc -fno-builtin-bcmp -fno-builtin-strlen -fno-builtin-memmem -fno-builtin-bzero -fno-builtin-memcmp -fno-builtin-memcpy -fno-builtin-memmove -fno-builtin-memset -fno-builtin-strcmp -fno-builtin-strstr -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 -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors "-DLIBC_MATH=(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT)" -nogpulib -fvisibility=hidden -fconvergent-functions -flto -Wno-multi-gpu -Xclang -mcode-object-version=none -O3 -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -MD -MT libc/src/math/generic/CMakeFiles/libc.src.math.generic.exp10f.dir/exp10f.cpp.o -MF libc/src/math/generic/CMakeFiles/libc.src.math.generic.exp10f.dir/exp10f.cpp.o.d -o libc/src/math/generic/CMakeFiles/libc.src.math.generic.exp10f.dir/exp10f.cpp.o -c /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/src/math/generic/exp10f.cpp
In file included from /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/src/math/generic/exp10f.cpp:12:
In file included from /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/src/math/generic/exp10f_impl.h:12:
In file included from /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/src/math/generic/explogxf.h:23:
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc/include/errno.h:30:6: error: exception specification in declaration does not match previous declaration
   30 | int *__llvm_libc_errno(void) __NOEXCEPT;
      |      ^
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/src/errno/libc_errno.h:36:17: note: previous declaration is here
   36 | extern "C" int *__llvm_libc_errno();
      |                 ^
1 error generated.
0.300 [1234/33/116] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.expf.dir/expf.cpp.o
FAILED: libc/src/math/generic/CMakeFiles/libc.src.math.generic.expf.dir/expf.cpp.o 
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./bin/clang++ --target=amdgcn-amd-amdhsa -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -I/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc -isystem /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc/include -O3 -DNDEBUG --target=amdgcn-amd-amdhsa -fpie -DLIBC_FULL_BUILD -nostdlibinc -fno-builtin-bcmp -fno-builtin-strlen -fno-builtin-memmem -fno-builtin-bzero -fno-builtin-memcmp -fno-builtin-memcpy -fno-builtin-memmove -fno-builtin-memset -fno-builtin-strcmp -fno-builtin-strstr -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 -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors "-DLIBC_MATH=(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT)" -nogpulib -fvisibility=hidden -fconvergent-functions -flto -Wno-multi-gpu -Xclang -mcode-object-version=none -O3 -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -MD -MT libc/src/math/generic/CMakeFiles/libc.src.math.generic.expf.dir/expf.cpp.o -MF libc/src/math/generic/CMakeFiles/libc.src.math.generic.expf.dir/expf.cpp.o.d -o libc/src/math/generic/CMakeFiles/libc.src.math.generic.expf.dir/expf.cpp.o -c /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/src/math/generic/expf.cpp
In file included from /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/src/math/generic/expf.cpp:22:
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc/include/errno.h:30:6: error: exception specification in declaration does not match previous declaration
   30 | int *__llvm_libc_errno(void) __NOEXCEPT;
      |      ^
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/src/errno/libc_errno.h:36:17: note: previous declaration is here
   36 | extern "C" int *__llvm_libc_errno();
      |                 ^
1 error generated.
0.300 [1234/32/117] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.tanf.dir/tanf.cpp.o
FAILED: libc/src/math/generic/CMakeFiles/libc.src.math.generic.tanf.dir/tanf.cpp.o 
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./bin/clang++ --target=amdgcn-amd-amdhsa -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -I/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc -isystem /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc/include -O3 -DNDEBUG --target=amdgcn-amd-amdhsa -fpie -DLIBC_FULL_BUILD -nostdlibinc -fno-builtin-bcmp -fno-builtin-strlen -fno-builtin-memmem -fno-builtin-bzero -fno-builtin-memcmp -fno-builtin-memcpy -fno-builtin-memmove -fno-builtin-memset -fno-builtin-strcmp -fno-builtin-strstr -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 -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors "-DLIBC_MATH=(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT)" -nogpulib -fvisibility=hidden -fconvergent-functions -flto -Wno-multi-gpu -Xclang -mcode-object-version=none -O3 -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -MD -MT libc/src/math/generic/CMakeFiles/libc.src.math.generic.tanf.dir/tanf.cpp.o -MF libc/src/math/generic/CMakeFiles/libc.src.math.generic.tanf.dir/tanf.cpp.o.d -o libc/src/math/generic/CMakeFiles/libc.src.math.generic.tanf.dir/tanf.cpp.o -c /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/src/math/generic/tanf.cpp
In file included from /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/src/math/generic/tanf.cpp:22:
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc/include/errno.h:30:6: error: exception specification in declaration does not match previous declaration
   30 | int *__llvm_libc_errno(void) __NOEXCEPT;
      |      ^
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/src/errno/libc_errno.h:36:17: note: previous declaration is here
   36 | extern "C" int *__llvm_libc_errno();
      |                 ^
1 error generated.
0.304 [1234/31/118] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.sincosf.dir/sincosf.cpp.o
FAILED: libc/src/math/generic/CMakeFiles/libc.src.math.generic.sincosf.dir/sincosf.cpp.o 
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./bin/clang++ --target=amdgcn-amd-amdhsa -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -I/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc -isystem /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc/include -O3 -DNDEBUG --target=amdgcn-amd-amdhsa -fpie -DLIBC_FULL_BUILD -nostdlibinc -fno-builtin-bcmp -fno-builtin-strlen -fno-builtin-memmem -fno-builtin-bzero -fno-builtin-memcmp -fno-builtin-memcpy -fno-builtin-memmove -fno-builtin-memset -fno-builtin-strcmp -fno-builtin-strstr -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 -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors "-DLIBC_MATH=(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT)" -nogpulib -fvisibility=hidden -fconvergent-functions -flto -Wno-multi-gpu -Xclang -mcode-object-version=none -O3 -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -MD -MT libc/src/math/generic/CMakeFiles/libc.src.math.generic.sincosf.dir/sincosf.cpp.o -MF libc/src/math/generic/CMakeFiles/libc.src.math.generic.sincosf.dir/sincosf.cpp.o.d -o libc/src/math/generic/CMakeFiles/libc.src.math.generic.sincosf.dir/sincosf.cpp.o -c /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/src/math/generic/sincosf.cpp
In file included from /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/src/math/generic/sincosf.cpp:20:
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc/include/errno.h:30:6: error: exception specification in declaration does not match previous declaration

```

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


More information about the libc-commits mailing list