[libc] [llvm] [libc] Disable old headergen checks unless enabled (PR #104522)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 16 10:26:09 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-a-1` while building `libc,llvm` at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
[1238/1690] Copying CXX module std/typeinfo.inc
[1239/1690] Copying CXX module std/unordered_map.inc
[1240/1690] Copying CXX module std/unordered_set.inc
[1241/1690] Copying CXX module std/utility.inc
[1242/1690] Copying CXX module std/variant.inc
[1243/1690] Copying CXX module std/vector.inc
[1244/1690] Copying CXX module std/valarray.inc
[1245/1690] Copying CXX module std/version.inc
[1246/1690] Generate the mapping file for include-what-you-use
[1247/1690] Building CXX object libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.obj
FAILED: libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.obj 
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/clang++ --target=armv6m-none-eabi -DGTEST_HAS_RTTI=0 -I/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc --target=armv6m-none-eabi -mthumb -Wno-atomic-alignment "-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)" "-Dfprintf(stream, format, ...)=printf(format)" "-Dtimeval=struct timeval{int tv_sec; int tv_usec;}" "-Dgettimeofday(tv, tz)" -D_LIBCPP_PRINT=1 -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=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/runtimes/runtimes-armv6m-none-eabi-bins=../../../../llvm-project -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/= -no-canonical-prefixes -Os -DNDEBUG -std=gnu++17  -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -MD -MT libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.obj -MF libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.obj.d -o libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.obj -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/utils/HdrGen/IncludeFileCommand.cpp
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/utils/HdrGen/IncludeFileCommand.cpp:9:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/utils/HdrGen/IncludeFileCommand.h:12:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/utils/HdrGen/Command.h:12:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/ADT/SmallVector.h:18:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Support/type_traits.h:18:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/utility:284:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/compare:174:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/cmath:328:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/math.h:380:
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/stdlib.h:143:30: error: unknown type name 'ldiv_t'
  143 | inline _LIBCPP_HIDE_FROM_ABI ldiv_t div(long __x, long __y) _NOEXCEPT { return ::ldiv(__x, __y); }
      |                              ^
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/stdlib.h:143:82: error: no member named 'ldiv' in the global namespace
  143 | inline _LIBCPP_HIDE_FROM_ABI ldiv_t div(long __x, long __y) _NOEXCEPT { return ::ldiv(__x, __y); }
      |                                                                                ~~^
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/stdlib.h:145:30: error: unknown type name 'lldiv_t'
  145 | inline _LIBCPP_HIDE_FROM_ABI lldiv_t div(long long __x, long long __y) _NOEXCEPT { return ::lldiv(__x, __y); }
      |                              ^
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/stdlib.h:145:93: error: no member named 'lldiv' in the global namespace
  145 | inline _LIBCPP_HIDE_FROM_ABI lldiv_t div(long long __x, long long __y) _NOEXCEPT { return ::lldiv(__x, __y); }
      |                                                                                           ~~^
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/utils/HdrGen/IncludeFileCommand.cpp:9:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/utils/HdrGen/IncludeFileCommand.h:12:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/utils/HdrGen/Command.h:12:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/ADT/SmallVector.h:18:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Support/type_traits.h:18:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/utility:284:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/compare:174:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/cmath:328:
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/math.h:392:31: error: use of undeclared identifier 'FP_NAN'
  392 |   return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, __x);
      |                               ^
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/math.h:392:39: error: use of undeclared identifier 'FP_INFINITE'
  392 |   return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, __x);
      |                                       ^
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/math.h:392:52: error: use of undeclared identifier 'FP_NORMAL'
  392 |   return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, __x);
Step 6 (build) failure: build (failure)
...
[1238/1690] Copying CXX module std/typeinfo.inc
[1239/1690] Copying CXX module std/unordered_map.inc
[1240/1690] Copying CXX module std/unordered_set.inc
[1241/1690] Copying CXX module std/utility.inc
[1242/1690] Copying CXX module std/variant.inc
[1243/1690] Copying CXX module std/vector.inc
[1244/1690] Copying CXX module std/valarray.inc
[1245/1690] Copying CXX module std/version.inc
[1246/1690] Generate the mapping file for include-what-you-use
[1247/1690] Building CXX object libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.obj
FAILED: libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.obj 
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/clang++ --target=armv6m-none-eabi -DGTEST_HAS_RTTI=0 -I/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc --target=armv6m-none-eabi -mthumb -Wno-atomic-alignment "-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)" "-Dfprintf(stream, format, ...)=printf(format)" "-Dtimeval=struct timeval{int tv_sec; int tv_usec;}" "-Dgettimeofday(tv, tz)" -D_LIBCPP_PRINT=1 -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=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/runtimes/runtimes-armv6m-none-eabi-bins=../../../../llvm-project -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/= -no-canonical-prefixes -Os -DNDEBUG -std=gnu++17  -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -MD -MT libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.obj -MF libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.obj.d -o libc/utils/HdrGen/CMakeFiles/libc-hdrgen.dir/IncludeFileCommand.cpp.obj -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/utils/HdrGen/IncludeFileCommand.cpp
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/utils/HdrGen/IncludeFileCommand.cpp:9:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/utils/HdrGen/IncludeFileCommand.h:12:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/utils/HdrGen/Command.h:12:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/ADT/SmallVector.h:18:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Support/type_traits.h:18:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/utility:284:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/compare:174:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/cmath:328:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/math.h:380:
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/stdlib.h:143:30: error: unknown type name 'ldiv_t'
  143 | inline _LIBCPP_HIDE_FROM_ABI ldiv_t div(long __x, long __y) _NOEXCEPT { return ::ldiv(__x, __y); }
      |                              ^
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/stdlib.h:143:82: error: no member named 'ldiv' in the global namespace
  143 | inline _LIBCPP_HIDE_FROM_ABI ldiv_t div(long __x, long __y) _NOEXCEPT { return ::ldiv(__x, __y); }
      |                                                                                ~~^
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/stdlib.h:145:30: error: unknown type name 'lldiv_t'
  145 | inline _LIBCPP_HIDE_FROM_ABI lldiv_t div(long long __x, long long __y) _NOEXCEPT { return ::lldiv(__x, __y); }
      |                              ^
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/stdlib.h:145:93: error: no member named 'lldiv' in the global namespace
  145 | inline _LIBCPP_HIDE_FROM_ABI lldiv_t div(long long __x, long long __y) _NOEXCEPT { return ::lldiv(__x, __y); }
      |                                                                                           ~~^
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/utils/HdrGen/IncludeFileCommand.cpp:9:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/utils/HdrGen/IncludeFileCommand.h:12:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/utils/HdrGen/Command.h:12:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/ADT/SmallVector.h:18:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Support/type_traits.h:18:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/utility:284:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/compare:174:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/cmath:328:
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/math.h:392:31: error: use of undeclared identifier 'FP_NAN'
  392 |   return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, __x);
      |                               ^
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/math.h:392:39: error: use of undeclared identifier 'FP_INFINITE'
  392 |   return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, __x);
      |                                       ^
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-lklagxht/bin/../include/c++/v1/math.h:392:52: error: use of undeclared identifier 'FP_NORMAL'
  392 |   return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, __x);

```

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


More information about the llvm-commits mailing list