[libc-commits] [libc] [libc] Mark internal __llvm_libc_errno as noexcept (PR #98760)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Sat Jul 13 11:31: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` at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Performing Test HAVE_PTHREAD_AFFINITY -- success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build
@@@BUILD_STEP build libc@@@
Running: ninja libc
[1/185] Building CXX object projects/libc/src/errno/CMakeFiles/libc.src.errno.errno.dir/libc_errno.cpp.o
FAILED: projects/libc/src/errno/CMakeFiles/libc.src.errno.errno.dir/libc_errno.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/errno -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/errno -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 -fpie -ffreestanding -DLIBC_FULL_BUILD -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/errno/CMakeFiles/libc.src.errno.errno.dir/libc_errno.cpp.o -MF projects/libc/src/errno/CMakeFiles/libc.src.errno.errno.dir/libc_errno.cpp.o.d -o projects/libc/src/errno/CMakeFiles/libc.src.errno.errno.dir/libc_errno.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/errno/libc_errno.cpp
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/errno/libc_errno.cpp:60:17: error: declaration of ‘int* __llvm_libc_19_0_0_git::__llvm_libc_errno()’ has a different exception specifier [-Werror=pedantic]
   60 | extern "C" int *__llvm_libc_errno() { return &thread_errno; }
      |                 ^~~~~~~~~~~~~~~~~
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/src/errno/libc_errno.cpp:9:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/errno/libc_errno.h:36:17: note: from previous declaration ‘int* __llvm_libc_19_0_0_git::__llvm_libc_errno() noexcept’
   36 | extern "C" int *__llvm_libc_errno() noexcept;
      |                 ^~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
[2/185] Building CXX object projects/libc/src/stdio/linux/CMakeFiles/libc.src.stdio.linux.rename.dir/rename.cpp.o
[3/185] Building CXX object projects/libc/src/stdio/linux/CMakeFiles/libc.src.stdio.linux.remove.dir/remove.cpp.o
[4/185] Building CXX object projects/libc/src/__support/OSUtil/linux/CMakeFiles/libc.src.__support.OSUtil.linux.linux_util.dir/fcntl.cpp.o
[5/185] Building CXX object projects/libc/src/inttypes/CMakeFiles/libc.src.inttypes.strtoimax.dir/strtoimax.cpp.o
[6/185] Building CXX object projects/libc/src/inttypes/CMakeFiles/libc.src.inttypes.strtoumax.dir/strtoumax.cpp.o
[7/185] Building CXX object projects/libc/src/stdio/linux/CMakeFiles/libc.src.stdio.linux.fdopen.dir/fdopen.cpp.o
[8/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.ftello.dir/ftello.cpp.o
[9/185] Building CXX object projects/libc/src/stdio/CMakeFiles/libc.src.stdio.setvbuf.dir/setvbuf.cpp.o
[10/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fseek.dir/fseek.cpp.o
[11/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fread_unlocked.dir/fread_unlocked.cpp.o
[12/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fseeko.dir/fseeko.cpp.o
[13/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fopen.dir/fopen.cpp.o
[14/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fwrite_unlocked.dir/fwrite_unlocked.cpp.o
[15/185] Building CXX object projects/libc/src/stdio/CMakeFiles/libc.src.stdio.setbuf.dir/setbuf.cpp.o
[16/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.getc_unlocked.dir/getc_unlocked.cpp.o
[17/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.ftell.dir/ftell.cpp.o
[18/185] Building CXX object projects/libc/src/stdio/CMakeFiles/libc.src.stdio.fopencookie.dir/fopencookie.cpp.o
[19/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fputs.dir/fputs.cpp.o
[20/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fgetc_unlocked.dir/fgetc_unlocked.cpp.o
[21/185] Building CXX object projects/libc/src/__support/File/linux/CMakeFiles/libc.src.__support.File.linux.file.dir/file.cpp.o
[22/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fflush.dir/fflush.cpp.o
[23/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.putc.dir/putc.cpp.o
[24/185] Building CXX object projects/libc/src/__support/File/CMakeFiles/libc.src.__support.File.dir.dir/dir.cpp.o
[25/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.getc.dir/getc.cpp.o
[26/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fclose.dir/fclose.cpp.o
[27/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fread.dir/fread.cpp.o
[28/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fputc.dir/fputc.cpp.o
[29/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.putchar.dir/putchar.cpp.o
[30/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.puts.dir/puts.cpp.o
Step 6 (build libc) failure: build libc (failure)
@@@BUILD_STEP build libc@@@
Running: ninja libc
[1/185] Building CXX object projects/libc/src/errno/CMakeFiles/libc.src.errno.errno.dir/libc_errno.cpp.o
FAILED: projects/libc/src/errno/CMakeFiles/libc.src.errno.errno.dir/libc_errno.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/errno -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/errno -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 -fpie -ffreestanding -DLIBC_FULL_BUILD -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/errno/CMakeFiles/libc.src.errno.errno.dir/libc_errno.cpp.o -MF projects/libc/src/errno/CMakeFiles/libc.src.errno.errno.dir/libc_errno.cpp.o.d -o projects/libc/src/errno/CMakeFiles/libc.src.errno.errno.dir/libc_errno.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/errno/libc_errno.cpp
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/errno/libc_errno.cpp:60:17: error: declaration of ‘int* __llvm_libc_19_0_0_git::__llvm_libc_errno()’ has a different exception specifier [-Werror=pedantic]
   60 | extern "C" int *__llvm_libc_errno() { return &thread_errno; }
      |                 ^~~~~~~~~~~~~~~~~
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/src/errno/libc_errno.cpp:9:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/errno/libc_errno.h:36:17: note: from previous declaration ‘int* __llvm_libc_19_0_0_git::__llvm_libc_errno() noexcept’
   36 | extern "C" int *__llvm_libc_errno() noexcept;
      |                 ^~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
[2/185] Building CXX object projects/libc/src/stdio/linux/CMakeFiles/libc.src.stdio.linux.rename.dir/rename.cpp.o
[3/185] Building CXX object projects/libc/src/stdio/linux/CMakeFiles/libc.src.stdio.linux.remove.dir/remove.cpp.o
[4/185] Building CXX object projects/libc/src/__support/OSUtil/linux/CMakeFiles/libc.src.__support.OSUtil.linux.linux_util.dir/fcntl.cpp.o
[5/185] Building CXX object projects/libc/src/inttypes/CMakeFiles/libc.src.inttypes.strtoimax.dir/strtoimax.cpp.o
[6/185] Building CXX object projects/libc/src/inttypes/CMakeFiles/libc.src.inttypes.strtoumax.dir/strtoumax.cpp.o
[7/185] Building CXX object projects/libc/src/stdio/linux/CMakeFiles/libc.src.stdio.linux.fdopen.dir/fdopen.cpp.o
[8/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.ftello.dir/ftello.cpp.o
[9/185] Building CXX object projects/libc/src/stdio/CMakeFiles/libc.src.stdio.setvbuf.dir/setvbuf.cpp.o
[10/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fseek.dir/fseek.cpp.o
[11/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fread_unlocked.dir/fread_unlocked.cpp.o
[12/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fseeko.dir/fseeko.cpp.o
[13/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fopen.dir/fopen.cpp.o
[14/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fwrite_unlocked.dir/fwrite_unlocked.cpp.o
[15/185] Building CXX object projects/libc/src/stdio/CMakeFiles/libc.src.stdio.setbuf.dir/setbuf.cpp.o
[16/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.getc_unlocked.dir/getc_unlocked.cpp.o
[17/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.ftell.dir/ftell.cpp.o
[18/185] Building CXX object projects/libc/src/stdio/CMakeFiles/libc.src.stdio.fopencookie.dir/fopencookie.cpp.o
[19/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fputs.dir/fputs.cpp.o
[20/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fgetc_unlocked.dir/fgetc_unlocked.cpp.o
[21/185] Building CXX object projects/libc/src/__support/File/linux/CMakeFiles/libc.src.__support.File.linux.file.dir/file.cpp.o
[22/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fflush.dir/fflush.cpp.o
[23/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.putc.dir/putc.cpp.o
[24/185] Building CXX object projects/libc/src/__support/File/CMakeFiles/libc.src.__support.File.dir.dir/dir.cpp.o
[25/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.getc.dir/getc.cpp.o
[26/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fclose.dir/fclose.cpp.o
[27/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fread.dir/fread.cpp.o
[28/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fputc.dir/fputc.cpp.o
[29/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.putchar.dir/putchar.cpp.o
[30/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.puts.dir/puts.cpp.o
[31/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fwrite.dir/fwrite.cpp.o
[32/185] Building CXX object projects/libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fgetc.dir/fgetc.cpp.o
[33/185] Building CXX object projects/libc/src/__support/File/CMakeFiles/libc.src.__support.File.file.dir/file.cpp.o
[34/185] Building CXX object projects/libc/src/__support/threads/linux/CMakeFiles/libc.src.__support.threads.linux.thread.dir/thread.cpp.o
ninja: build stopped: subcommand failed.
['ninja', 'libc'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):

```

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


More information about the libc-commits mailing list