[libc-commits] [libc] Reland "[libc] build fix for sigsetjmp (#137047)" (PR #137214)

via libc-commits libc-commits at lists.llvm.org
Thu Apr 24 13:05:26 PDT 2025


gulfemsavrun wrote:

> @gulfemsavrun could you check if this fix addresses the build issue? thank you!

No, unfortunately it still has an issue. The issue seems to be different though.
```
[781/2496](33) Building CXX object libc/src/setjmp/arm/CMakeFiles/libc.src.setjmp.arm.setjmp.dir/setjmp.cpp.obj
FAILED: libc/src/setjmp/arm/CMakeFiles/libc.src.setjmp.arm.setjmp.dir/setjmp.cpp.obj 
/b/s/w/ir/x/w/llvm_build/./bin/clang++ --target=armv6m-none-eabi -DLIBC_NAMESPACE=__llvm_libc_21_0_0_git -I/b/s/w/ir/x/w/github-llvm-llvm-project/libc -isystem /b/s/w/ir/x/w/llvm_build/include/armv6m-unknown-none-eabi --target=armv6m-none-eabi -Wno-atomic-alignment "-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)" "-Dfprintf(stream, format, ...)=printf(format)" -D_LIBCPP_PRINT=1 -mthumb -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -ffunction-sections -fdata-sections -ffile-prefix-map=/b/s/w/ir/x/w/llvm_build/runtimes/runtimes-armv6m-none-eabi-bins=../../../github-llvm-llvm-project -ffile-prefix-map=/b/s/w/ir/x/w/github-llvm-llvm-project/= -no-canonical-prefixes -Os -DNDEBUG -std=gnu++17 --target=armv6m-none-eabi -DLIBC_QSORT_IMPL=LIBC_QSORT_HEAP_SORT -DLIBC_TYPES_TIME_T_IS_32_BIT -DLIBC_ADD_NULL_CHECKS "-DLIBC_MATH=(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES)" -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -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 -Wdeprecated -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 -UNDEBUG -MD -MT libc/src/setjmp/arm/CMakeFiles/libc.src.setjmp.arm.setjmp.dir/setjmp.cpp.obj -MF libc/src/setjmp/arm/CMakeFiles/libc.src.setjmp.arm.setjmp.dir/setjmp.cpp.obj.d -o libc/src/setjmp/arm/CMakeFiles/libc.src.setjmp.arm.setjmp.dir/setjmp.cpp.obj -c /b/s/w/ir/x/w/github-llvm-llvm-project/libc/src/setjmp/arm/setjmp.cpp
In file included from /b/s/w/ir/x/w/github-llvm-llvm-project/libc/src/setjmp/arm/setjmp.cpp:11:
In file included from /b/s/w/ir/x/w/github-llvm-llvm-project/libc/src/setjmp/setjmp_impl.h:14:
In file included from /b/s/w/ir/x/w/github-llvm-llvm-project/libc/hdr/types/jmp_buf.h:14:
In file included from /b/s/w/ir/x/w/github-llvm-llvm-project/libc/include/llvm-libc-types/jmp_buf.h:12:
/b/s/w/ir/x/w/github-llvm-llvm-project/libc/include/llvm-libc-types/sigset_t.h:17:27: error: use of undeclared identifier '__NSIGSET_WORDS'
   17 |   unsigned long __signals[__NSIGSET_WORDS];
      |                           ^~~~~~~~~~~~~~~
1 error generated.
```

https://logs.chromium.org/logs/fuchsia/buildbucket/cr-buildbucket/8716684692628018529/+/u/clang/build/stdout

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


More information about the libc-commits mailing list