Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc] final edits to newheadergen yaml files #98983

Merged
merged 4 commits into from
Jul 17, 2024

Conversation

RoseZhang03
Copy link
Contributor

@RoseZhang03 RoseZhang03 commented Jul 16, 2024

  • final run of integration tests to deal with incorrect YAML input (finished sys headers, will finish the rest today)
  • add any new functions made in recent PRs

@llvmbot llvmbot added the libc label Jul 16, 2024
@llvmbot
Copy link
Collaborator

llvmbot commented Jul 16, 2024

@llvm/pr-subscribers-libc

Author: None (RoseZhang03)

Changes
  • [libc] newheadergen: configured cmake
  • added sys path for prctl
  • added newline for CMakeLists.txt
  • spacing and nits
  • added switch for using old versus new headergen in CMakeLists
  • added option and changed name to start with LIBC_
  • [libc] final edits to newheadergen yaml files

Patch is 49.55 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/98983.diff

4 Files Affected:

  • (modified) libc/CMakeLists.txt (+1)
  • (modified) libc/cmake/modules/LLVMLibCHeaderRules.cmake (+111-12)
  • (modified) libc/include/CMakeLists.txt (+1238-564)
  • (modified) libc/newhdrgen/yaml/sys/sys_time.yaml (+1-2)
diff --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt
index 6ba54475d0fd1..c89897f2900fe 100644
--- a/libc/CMakeLists.txt
+++ b/libc/CMakeLists.txt
@@ -72,6 +72,7 @@ option(LIBC_BUILD_GPU_LOADER "Always build the GPU loader utilities" OFF)
 if(LIBC_BUILD_GPU_LOADER OR (LLVM_LIBC_GPU_BUILD AND NOT LLVM_RUNTIMES_BUILD))
   add_subdirectory(utils/gpu)
 endif()
+option(LIBC_USE_NEW_HEADER_GEN "Generate header files using new headergen instead of the old one" ON)
 
 set(NEED_LIBC_HDRGEN FALSE)
 if(NOT LLVM_RUNTIMES_BUILD)
diff --git a/libc/cmake/modules/LLVMLibCHeaderRules.cmake b/libc/cmake/modules/LLVMLibCHeaderRules.cmake
index 7fc6860f23eb2..b87137c5f1a0d 100644
--- a/libc/cmake/modules/LLVMLibCHeaderRules.cmake
+++ b/libc/cmake/modules/LLVMLibCHeaderRules.cmake
@@ -66,7 +66,106 @@ function(add_header target_name)
   )
 endfunction(add_header)
 
-# A rule for generated header file targets.
+function(add_gen_header2 target_name)
+  cmake_parse_arguments(
+    "ADD_GEN_HDR2"
+    "PUBLIC" # No optional arguments
+    "YAML_FILE;DEF_FILE;GEN_HDR" # Single value arguments
+    "DEPENDS"     # Multi value arguments
+    ${ARGN}
+  )
+  get_fq_target_name(${target_name} fq_target_name)
+  if(NOT LLVM_LIBC_FULL_BUILD)
+    add_library(${fq_target_name} INTERFACE)
+    return()
+  endif()
+  if(NOT ADD_GEN_HDR2_DEF_FILE)
+    mesage(FATAL_ERROR "`add_gen_hdr2` rule requires DEF_FILE to be specified.")
+  endif()
+  if(NOT ADD_GEN_HDR2_GEN_HDR)
+    message(FATAL_ERROR "`add_gen_hdr2` rule requires GEN_HDR to be specified.")
+  endif()
+  if(NOT ADD_GEN_HDR2_YAML_FILE)
+    message(FATAL_ERROR "`add_gen_hdr2` rule requires YAML_FILE to be specified.")
+  endif()
+
+  set(absolute_path ${CMAKE_CURRENT_SOURCE_DIR}/${ADD_GEN_HDR2_GEN_HDR})
+  file(RELATIVE_PATH relative_path ${LIBC_INCLUDE_SOURCE_DIR} ${absolute_path})
+  set(out_file ${LIBC_INCLUDE_DIR}/${relative_path})
+  set(yaml_file ${CMAKE_SOURCE_DIR}/${ADD_GEN_HDR2_YAML_FILE})
+  set(def_file ${CMAKE_CURRENT_SOURCE_DIR}/${ADD_GEN_HDR2_DEF_FILE})
+
+  set(fq_data_files "")
+  if(ADD_GEN_HDR2_DATA_FILES)
+    foreach(data_file IN 2LISTS ADD_GEN_HDR2_DATA_FILES)
+      list(APPEND fq_data_files "${CMAKE_CURRENT_SOURCE_DIR}/${data_file}")
+    endforeach(data_file)
+  endif()
+
+  set(entry_points "${TARGET_ENTRYPOINT_NAME_LIST}")
+  list(TRANSFORM entry_points PREPEND "--e=")
+
+  add_custom_command(
+    OUTPUT ${out_file}
+    COMMAND ${Python3_EXECUTABLE} ${LIBC_SOURCE_DIR}/newhdrgen/yaml_to_classes.py
+            ${yaml_file}
+            --h_def_file ${def_file}
+            ${entry_points}
+            --output_dir ${out_file}
+    DEPENDS ${yaml_file} ${def_file} ${fq_data_files}
+    COMMENT "Generating header ${ADD_GEN_HDR2_GE2N_HDR} from ${yaml_file} and ${def_file}"
+  )
+  if(LIBC_TARGET_OS_IS_GPU)
+    file(MAKE_DIRECTORY ${LIBC_INCLUDE_DIR}/llvm-libc-decls)
+    file(MAKE_DIRECTORY ${LIBC_INCLUDE_DIR}/llvm-libc-decls/gpu)
+    set(decl_out_file ${LIBC_INCLUDE_DIR}/llvm-libc-decls/${relative_path})
+    add_custom_command(
+      OUTPUT ${decl_out_file}
+      COMMAND ${Python3_EXECUTABLE} ${LIBC_SOURCE_DIR}/newhdrgen/yaml_to_classes.py
+              ${yaml_file}
+              --export-decls
+              ${entry_points}
+              --output_dir ${decl_out_file}
+      WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+      DEPENDS ${yaml_file} ${fq_data_files}
+    )
+  endif()
+  
+  if(ADD_GEN_HDR2_DEPENDS)
+    get_fq_deps_list(f2q_deps_list ${ADD_GEN_HDR2_DEPENDS})
+    # Dependencies of a add_header target can only be another add_gen_header target
+    # or an add_header target.
+    foreach(dep IN LISTS fq_deps_list)
+      get_target_property(header_file ${dep} HEADER_FILE_PATH)
+      if(NOT header_file)
+        message(FATAL_ERROR "Invalid dependency '${dep}' for '${fq_target_name}'.")
+      endif()
+    endforeach()
+  endif()
+  set(generated_hdr_target ${fq_target_name}.__generated_hdr__)
+  add_custom_target(
+    ${generated_hdr_target}
+    DEPENDS ${out_file} ${fq_deps_list} ${decl_out_file}
+  )
+
+  add_header_library(
+    ${target_name}
+    HDRS
+      ${out_file}
+  )
+
+  add_dependencies(${fq_target_name} ${generated_hdr_target})
+
+  set_target_properties(
+    ${fq_target_name}
+    PROPERTIES
+      HEADER_FILE_PATH ${out_file}
+      DEPS "${fq_deps_list}"
+  )
+
+
+endfunction(add_gen_header2)
+
 # Usage:
 #     add_gen_header(
 #       <target name>
@@ -144,18 +243,18 @@ function(add_gen_header target_name)
     file(MAKE_DIRECTORY ${LIBC_INCLUDE_DIR}/llvm-libc-decls/gpu)
     set(decl_out_file ${LIBC_INCLUDE_DIR}/llvm-libc-decls/${relative_path})
     add_custom_command(
-      OUTPUT ${decl_out_file}
-      COMMAND ${hdrgen_exe} -o ${decl_out_file}
-              --header ${ADD_GEN_HDR_GEN_HDR} --def ${in_file} --export-decls
-              ${replacement_params} -I ${LIBC_SOURCE_DIR} ${ENTRYPOINT_NAME_LIST_ARG}
-              ${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/api.td
+    OUTPUT ${decl_out_file}
+    COMMAND ${hdrgen_exe} -o ${decl_out_file}
+            --header ${ADD_GEN_HDR_GEN_HDR} --def ${in_file} --export-decls
+            ${replacement_params} -I ${LIBC_SOURCE_DIR} ${ENTRYPOINT_NAME_LIST_ARG}
+            ${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/api.td
 
-      WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
-      DEPENDS ${in_file} ${fq_data_files} ${td_includes}
-              ${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/api.td
-              ${hdrgen_deps}
-    )
-  endif()
+    WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+    DEPENDS ${in_file} ${fq_data_files} ${td_includes}
+            ${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/api.td
+            ${hdrgen_deps}
+  )
+endif()
 
   if(ADD_GEN_HDR_DEPENDS)
     get_fq_deps_list(fq_deps_list ${ADD_GEN_HDR_DEPENDS})
diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt
index 2cf7206f3a625..91fd8ce1a1f79 100644
--- a/libc/include/CMakeLists.txt
+++ b/libc/include/CMakeLists.txt
@@ -17,627 +17,1301 @@ add_header(
     __llvm-libc-common.h
 )
 
-add_gen_header(
-  ctype
-  DEF_FILE ctype.h.def
-  GEN_HDR ctype.h
-  DEPENDS
-    .llvm_libc_common_h
-)
+if (LIBC_USE_NEW_HEADER_GEN)
+  add_gen_header2(
+    ctype
+    YAML_FILE ../libc/newhdrgen/yaml/ctype.yaml
+    DEF_FILE ctype.h.def
+    GEN_HDR ctype.h
+    DEPENDS
+      .llvm_libc_common_h
+  )
 
-add_gen_header(
-  dirent
-  DEF_FILE dirent.h.def
-  GEN_HDR dirent.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-types.ino_t
-    .llvm-libc-types.DIR
-    .llvm-libc-types.struct_dirent
-)
+  add_gen_header2(
+    dirent
+    YAML_FILE ../libc/newhdrgen/yaml/dirent.yaml
+    DEF_FILE dirent.h.def
+    GEN_HDR dirent.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-types.ino_t
+      .llvm-libc-types.DIR
+      .llvm-libc-types.struct_dirent
+  )
 
-add_gen_header(
-  fcntl
-  DEF_FILE fcntl.h.def
-  GEN_HDR fcntl.h
-  DEPENDS
-    .llvm-libc-macros.fcntl_macros
-    .llvm-libc-types.mode_t
-    .llvm-libc-types.struct_flock
-    .llvm-libc-types.struct_flock64
-    .llvm-libc-types.off64_t
-    .llvm-libc-types.pid_t
-    .llvm-libc-types.off_t
-    .llvm_libc_common_h
-)
+  add_gen_header2(
+    fcntl
+    YAML_FILE ../libc/newhdrgen/yaml/fcntl.yaml
+    DEF_FILE fcntl.h.def
+    GEN_HDR fcntl.h
+    DEPENDS
+      .llvm-libc-macros.fcntl_macros
+      .llvm-libc-types.mode_t
+      .llvm-libc-types.struct_flock
+      .llvm-libc-types.struct_flock64
+      .llvm-libc-types.off64_t
+      .llvm-libc-types.pid_t
+      .llvm-libc-types.off_t
+      .llvm_libc_common_h
+  )
 
-add_gen_header(
-  dlfcn
-  DEF_FILE dlfcn.h.def
-  GEN_HDR dlfcn.h
-  DEPENDS
-    .llvm-libc-macros.dlfcn_macros
-    .llvm_libc_common_h
-)
+  add_gen_header2(
+    dlfcn
+    YAML_FILE ../libc/newhdrgen/yaml/dlfcn.yaml
+    DEF_FILE dlfcn.h.def
+    GEN_HDR dlfcn.h
+    DEPENDS
+      .llvm-libc-macros.dlfcn_macros
+      .llvm_libc_common_h
+  )
 
-add_gen_header(
-  features
-  DEF_FILE features.h.def
-  GEN_HDR features.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-macros.features_macros
-)
+  add_gen_header2(
+    features
+    YAML_FILE ../libc/newhdrgen/yaml/features.yaml
+    DEF_FILE features.h.def
+    GEN_HDR features.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-macros.features_macros
+  )
 
-add_gen_header(
-  fenv
-  DEF_FILE fenv.h.def
-  GEN_HDR fenv.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-macros.fenv_macros
-    .llvm-libc-types.fenv_t
-    .llvm-libc-types.fexcept_t
-)
+  add_gen_header2(
+    fenv
+    YAML_FILE ../libc/newhdrgen/yaml/fenv.yaml
+    DEF_FILE fenv.h.def
+    GEN_HDR fenv.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-macros.fenv_macros
+      .llvm-libc-types.fenv_t
+      .llvm-libc-types.fexcept_t
+  )
 
-add_gen_header(
-  inttypes
-  DEF_FILE inttypes.h.def
-  GEN_HDR inttypes.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-types.imaxdiv_t
-    .llvm-libc-macros.inttypes_macros
-)
+  add_gen_header2(
+    inttypes
+    YAML_FILE ../libc/newhdrgen/yaml/inttypes.yaml
+    DEF_FILE inttypes.h.def
+    GEN_HDR inttypes.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-types.imaxdiv_t
+      .llvm-libc-macros.inttypes_macros
+  )
 
-add_gen_header(
-  float
-  DEF_FILE float.h.def
-  GEN_HDR float.h
-  DEPENDS
-    .llvm-libc-macros.float_macros
-)
+  add_gen_header2(
+    float
+    YAML_FILE ../libc/newhdrgen/yaml/float.yaml
+    DEF_FILE float.h.def
+    GEN_HDR float.h
+    DEPENDS
+      .llvm-libc-macros.float_macros
+  )
 
-add_gen_header(
-  stdint
-  DEF_FILE stdint.h.def
-  GEN_HDR stdint.h
-  DEPENDS
-    .llvm-libc-macros.stdint_macros
-)
+  add_gen_header2(
+    stdint
+    YAML_FILE ../libc/newhdrgen/yaml/stdint.yaml
+    DEF_FILE stdint.h.def
+    GEN_HDR stdint.h
+    DEPENDS
+      .llvm-libc-macros.stdint_macros
+  )
 
-add_gen_header(
-  limits
-  DEF_FILE limits.h.def
-  GEN_HDR limits.h
-  DEPENDS
-    .llvm-libc-macros.limits_macros
-)
+  add_gen_header2(
+    limits
+    YAML_FILE ../libc/newhdrgen/yaml/limits.yaml
+    DEF_FILE limits.h.def
+    GEN_HDR limits.h
+    DEPENDS
+      .llvm-libc-macros.limits_macros
+  )
 
-add_gen_header(
-  math
-  DEF_FILE math.h.def
-  GEN_HDR math.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-macros.float16_macros
-    .llvm-libc-macros.math_macros
-    .llvm-libc-macros.math_function_macros
-    .llvm-libc-types.double_t
-    .llvm-libc-types.float_t
-    .llvm-libc-types.float128
-)
+  add_gen_header2(
+    math
+    YAML_FILE ../libc/newhdrgen/yaml/math.yaml
+    DEF_FILE math.h.def
+    GEN_HDR math.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-macros.float16_macros
+      .llvm-libc-macros.math_macros
+      .llvm-libc-types.double_t
+      .llvm-libc-types.float_t
+      .llvm-libc-types.float128
+  )
 
-add_gen_header(
-  stdfix
-  DEF_FILE stdfix.h.def
-  GEN_HDR stdfix.h
-  DEPENDS
-    .llvm-libc-macros.stdfix_macros
-)
+  add_gen_header2(
+    stdfix
+    YAML_FILE ../libc/newhdrgen/yaml/stdfix.yaml
+    DEF_FILE stdfix.h.def
+    GEN_HDR stdfix.h
+    DEPENDS
+      .llvm-libc-macros.stdfix_macros
+  )
 
-# TODO: This should be conditional on POSIX networking being included.
-file(MAKE_DIRECTORY ${LIBC_INCLUDE_DIR}/arpa)
+  # TODO: This should be conditional on POSIX networking being included.
+  file(MAKE_DIRECTORY ${LIBC_INCLUDE_DIR}/arpa)
 
-add_gen_header(
-  arpa_inet
-  DEF_FILE arpa/inet.h.def
-  GEN_HDR arpa/inet.h
-  DEPENDS
-    .llvm_libc_common_h
-)
+  add_gen_header2(
+    arpa_inet
+    YAML_FILE ../libc/newhdrgen/yaml/arpa_inet.yaml
+    DEF_FILE arpa/inet.h.def
+    GEN_HDR arpa/inet.h
+    DEPENDS
+      .llvm_libc_common_h
+  )
 
-add_gen_header(
-  assert
-  DEF_FILE assert.h.def
-  GEN_HDR assert.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-macros.assert_macros
-)
+  add_gen_header2(
+    assert
+    DEF_FILE assert.h.def
+    GEN_HDR assert.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-macros.assert_macros
+  )
 
-add_gen_header(
-  setjmp
-  DEF_FILE setjmp.h.def
-  GEN_HDR setjmp.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-types.jmp_buf
-)
+  add_gen_header2(
+    setjmp
+    YAML_FILE ../libc/newhdrgen/yaml/setjmp.yaml
+    DEF_FILE setjmp.h.def
+    GEN_HDR setjmp.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-types.jmp_buf
+  )
 
-add_gen_header(
-  string
-  DEF_FILE string.h.def
-  GEN_HDR string.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-macros.null_macro
-    .llvm-libc-types.size_t
-)
+  add_gen_header2(
+    string
+    YAML_FILE ../libc/newhdrgen/yaml/string.yaml
+    DEF_FILE string.h.def
+    GEN_HDR string.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-macros.null_macro
+      .llvm-libc-types.size_t
+  )
 
-add_gen_header(
-  strings
-  DEF_FILE strings.h.def
-  GEN_HDR strings.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-types.size_t
-)
+  add_gen_header2(
+    strings
+    YAML_FILE ../libc/newhdrgen/yaml/strings.yaml
+    DEF_FILE strings.h.def
+    GEN_HDR strings.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-types.size_t
+  )
 
-add_gen_header(
-  search
-  DEF_FILE search.h.def
-  GEN_HDR search.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-types.ACTION
-    .llvm-libc-types.ENTRY
-    .llvm-libc-types.struct_hsearch_data
-    .llvm-libc-types.size_t
-)
+  add_gen_header2(
+    search
+    YAML_FILE ../libc/newhdrgen/yaml/search.yaml
+    DEF_FILE search.h.def
+    GEN_HDR search.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-types.ACTION
+      .llvm-libc-types.ENTRY
+      .llvm-libc-types.struct_hsearch_data
+      .llvm-libc-types.size_t
+  )
 
-add_gen_header(
-  time
-  DEF_FILE time.h.def
-  GEN_HDR time.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-macros.time_macros
-    .llvm-libc-types.clock_t
-    .llvm-libc-types.time_t
-    .llvm-libc-types.struct_tm
-    .llvm-libc-types.struct_timespec
-    .llvm-libc-types.struct_timeval
-    .llvm-libc-types.clockid_t
-)
+  add_gen_header2(
+    time
+    YAML_FILE ../libc/newhdrgen/yaml/time.yaml
+    DEF_FILE time.h.def
+    GEN_HDR time.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-macros.time_macros
+      .llvm-libc-types.clock_t
+      .llvm-libc-types.time_t
+      .llvm-libc-types.struct_tm
+      .llvm-libc-types.struct_timespec
+      .llvm-libc-types.struct_timeval
+      .llvm-libc-types.clockid_t
+  )
 
-add_gen_header(
-  threads
-  DEF_FILE threads.h.def
-  GEN_HDR threads.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-types.__call_once_func_t
-    .llvm-libc-types.once_flag
-    .llvm-libc-types.cnd_t
-    .llvm-libc-types.mtx_t
-    .llvm-libc-types.thrd_t
-    .llvm-libc-types.thrd_start_t
-    .llvm-libc-types.tss_t
-    .llvm-libc-types.tss_dtor_t
-)
+  add_gen_header2(
+    threads
+    YAML_FILE ../libc/newhdrgen/yaml/threads.yaml
+    DEF_FILE threads.h.def
+    GEN_HDR threads.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-types.__call_once_func_t
+      .llvm-libc-types.once_flag
+      .llvm-libc-types.cnd_t
+      .llvm-libc-types.mtx_t
+      .llvm-libc-types.thrd_t
+      .llvm-libc-types.thrd_start_t
+      .llvm-libc-types.tss_t
+      .llvm-libc-types.tss_dtor_t
+  )
 
-add_gen_header(
-  errno
-  DEF_FILE errno.h.def
-  GEN_HDR errno.h
-  DEPENDS
-    .llvm-libc-macros.generic_error_number_macros
-    .llvm-libc-macros.error_number_macros
-)
+  add_gen_header2(
+    errno
+    YAML_FILE ../libc/newhdrgen/yaml/errno.yaml
+    DEF_FILE errno.h.def
+    GEN_HDR errno.h
+    DEPENDS
+      .llvm-libc-macros.generic_error_number_macros
+      .llvm-libc-macros.error_number_macros
+  )
 
-add_gen_header(
-  signal
-  DEF_FILE signal.h.def
-  GEN_HDR signal.h
-  DEPENDS
-    .llvm-libc-macros.signal_macros
-    .llvm-libc-types.sig_atomic_t
-    .llvm-libc-types.sigset_t
-    .llvm-libc-types.struct_sigaction
-    .llvm-libc-types.union_sigval
-    .llvm-libc-types.siginfo_t
-    .llvm-libc-types.stack_t
-    .llvm-libc-types.pid_t
-)
+  add_gen_header2(
+    signal
+    YAML_FILE ../libc/newhdrgen/yaml/signal.yaml
+    DEF_FILE signal.h.def
+    GEN_HDR signal.h
+    DEPENDS
+      .llvm-libc-macros.signal_macros
+      .llvm-libc-types.sig_atomic_t
+      .llvm-libc-types.sigset_t
+      .llvm-libc-types.struct_sigaction
+      .llvm-libc-types.union_sigval
+      .llvm-libc-types.siginfo_t
+      .llvm-libc-types.stack_t
+      .llvm-libc-types.pid_t
+  )
 
-add_gen_header(
-  stdbit
-  DEF_FILE stdbit.h.def
-  GEN_HDR stdbit.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-macros.stdbit_macros
-)
+  add_gen_header2(
+    stdbit
+    YAML_FILE ../libc/newhdrgen/yaml/stdbit.yaml
+    DEF_FILE stdbit.h.def
+    GEN_HDR stdbit.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-macros.stdbit_macros
+  )
 
-add_gen_header(
-  stdckdint
-  DEF_FILE stdckdint.h.def
-  GEN_HDR stdckdint.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-macros.stdckdint_macros
-)
+  add_gen_header2(
+    stdckdint
+    YAML_FILE ../libc/newhdrgen/yaml/stdckdint.yaml
+    DEF_FILE stdckdint.h.def
+    GEN_HDR stdckdint.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-macros.stdckdint_macros
+  )
 
-add_gen_header(
-  stdio
-  DEF_FILE stdio.h.def
-  GEN_HDR stdio.h
-  DEPENDS
-    .llvm-libc-macros.file_seek_macros
-    .llvm-libc-macros.stdio_macros
-    .llvm-libc-types.FILE
-    .llvm-libc-types.cookie_io_functions_t
-    .llvm-libc-types.off_t
-    .llvm-libc-types.size_t
-    .llvm-libc-types.ssize_t
-    .llvm_libc_common_h
-)
+  add_gen_header2(
+    stdio
+    YAML_FILE ../libc/newhdrgen/yaml/stdio.yaml
+    DEF_FILE stdio.h.def
+    GEN_HDR stdio.h
+    DEPENDS
+      .llvm-libc-macros.file_seek_macros
+      .llvm-libc-macros.stdio_macros
+      .llvm-libc-types.FILE
+      .llvm-libc-types.cookie_io_functions_t
+      .llvm-libc-types.off_t
+      .llvm-libc-types.size_t
+      .llvm-libc-types.ssize_t
+      .llvm_libc_common_h
+  )
 
-add_gen_header(
-  stdlib
-  DEF_FILE stdlib.h.def
-  GEN_HDR stdlib.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-macros.stdlib_macros
-    .llvm-libc-types.div_t
-    .llvm-libc-types.ldiv_t
-    .llvm-libc-types.lldiv_t
-    .llvm-libc-types.size_t
-    .llvm-libc-types.__bsearchcompare_t
-    .llvm-libc-types.__qsortcompare_t
-    .llvm-libc-types.__qsortrcompare_t
-    .llvm-libc-types.__atexithandler_t
-)
+  add_gen_header2(
+    stdlib
+    YAML_FILE ../libc/newhdrgen/yaml/stdlib.yaml
+    DEF_FILE stdlib.h.def
+    GEN_HDR stdlib.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-macros.stdlib_macros
+      .llvm-libc-types.div_t
+      .llvm-libc-types.ldiv_t
+      .llvm-libc-types.lldiv_t
+      .llvm-libc-types.size_t
+      .llvm-libc-types.__bsearchcompare_t
+      .llvm-libc-types.__qsortcompare_t
+      .llvm-libc-types.__qsortrcompare_t
+      .llvm-libc-types.__atexithandler_t
+  )
 
-add_gen_header(
-  unistd
-  DEF_FILE unistd.h.def
-  GEN_HDR unistd.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-macros.file_seek_macros
-    .llvm-libc-macros.unistd_macros
-    .llvm-libc-types.__exec_argv_t
-    .llvm-libc-types.__exec_envp_t
-    .llvm-libc-types.off_t
-    .llvm-libc-types.pid_t
-    .llvm-libc-types.size_t
-    .llvm-libc-types.ssize_t
-    .llvm-libc-types.uid_t
-    .llvm-libc-types.__getoptargv_t
-)
+  add_gen_header2(
+    unistd
+    YAML_FILE ../libc/newhdrgen/yaml/unistd.yaml
+    DEF_FILE unistd.h.def
+    GEN_HDR unistd.h
+    DEPENDS
+      .llvm_libc_common_h
+      .llvm-libc-macros.file_seek_macros
+      .llvm-libc-macros.unistd_macros
+      .llvm-libc-types.__exec_argv_t
+      .llvm-libc-types.__exec_envp_t
+      .llvm-libc-types.off_t
+      .llvm-libc-types.pid_t
+      .llvm-libc-types.size_t
+      .llvm-libc-types.ssize_t
+      .llvm-libc-types.uid_t
+      .llvm-libc-types.__getoptargv_t
+  )
 
-add_gen_header(
-  pthread
-  DEF_FILE pthread.h.def
-  GEN_HDR pthread.h
-  DEPENDS
-    .llvm_libc_common_h
-    .llvm-libc-types.__atfork_callback_t
-    .llvm-libc-types.__pthread_once_func_t
-    .llvm-libc-types.__pthread_start_t
-    .llvm-libc-types.__pthread_tss_dtor_t
-    .llvm-libc-types.pthread_attr_t
-    .llvm-libc-types.pthread_condattr_t
-    .llvm-libc-types.pthread_key_t
-    .llvm-libc-types.pthread_mutex_t
-    .llvm-libc-types.pthread_mutexattr_t
-    .llvm-libc-types.pthread_once_t
-    .llvm-libc-types.pthread_rwlock_t
-    .llvm-libc-types.pthread_rwlockattr_t
- ...
[truncated]

@RoseZhang03 RoseZhang03 changed the title rosezhang13 [libc] final edits to newheadergen yaml files Jul 16, 2024
libc/newhdrgen/yaml/sys/sys_time.yaml Show resolved Hide resolved
@@ -72,6 +72,7 @@ option(LIBC_BUILD_GPU_LOADER "Always build the GPU loader utilities" OFF)
if(LIBC_BUILD_GPU_LOADER OR (LLVM_LIBC_GPU_BUILD AND NOT LLVM_RUNTIMES_BUILD))
add_subdirectory(utils/gpu)
endif()
option(LIBC_USE_NEW_HEADER_GEN "Generate header files using new headergen instead of the old one" ON)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for now let's make the default OFF so that we can land this, then test it on the appropriate systems, then finally change the default.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood, I will change this on Aaryan's branch

Copy link
Contributor

@michaelrj-google michaelrj-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RoseZhang03 RoseZhang03 merged commit 9ce5b38 into llvm:main Jul 17, 2024
3 of 4 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 17, 2024

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/2372

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/1] Generating sys/statvfs.h
FAILED: projects/libc/include/sys/statvfs.h /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/include/sys/statvfs.h 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/include && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/bin/libc-hdrgen -o /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/include/sys/statvfs.h --header sys/statvfs.h --def /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/include/sys/statvfs.h.def -I /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc --e=isalnum --e=isalpha --e=isascii --e=isblank --e=iscntrl --e=isdigit --e=isgraph --e=islower --e=isprint --e=ispunct --e=isspace --e=isupper --e=isxdigit --e=toascii --e=tolower --e=toupper --e=dlclose --e=dlerror --e=dlopen --e=dlsym --e=errno --e=creat --e=fcntl --e=open --e=openat --e=sched_get_priority_max --e=sched_get_priority_min --e=sched_getaffinity --e=sched_getparam --e=sched_getscheduler --e=sched_rr_get_interval --e=sched_setaffinity --e=sched_setparam --e=sched_setscheduler --e=sched_yield --e=bcmp --e=bcopy --e=bzero --e=index --e=memccpy --e=memchr --e=memcmp --e=memcpy --e=memmem --e=memmove --e=mempcpy --e=memrchr --e=memset --e=memset_explicit --e=rindex --e=stpcpy --e=stpncpy --e=strcasecmp --e=strcasestr --e=strcat --e=strchr --e=strchrnul --e=strcmp --e=strcoll --e=strcpy --e=strcspn --e=strdup --e=strerror --e=strerror_r --e=strlcat --e=strlcpy --e=strlen --e=strncasecmp --e=strncat --e=strncmp --e=strncpy --e=strndup --e=strnlen --e=strpbrk --e=strrchr --e=strsep --e=strsignal --e=strspn --e=strstr --e=strtok --e=strtok_r --e=strxfrm --e=imaxabs --e=imaxdiv --e=strtoimax --e=strtoumax --e=stdc_bit_ceil_uc --e=stdc_bit_ceil_ui --e=stdc_bit_ceil_ul --e=stdc_bit_ceil_ull --e=stdc_bit_ceil_us --e=stdc_bit_floor_uc --e=stdc_bit_floor_ui --e=stdc_bit_floor_ul --e=stdc_bit_floor_ull --e=stdc_bit_floor_us --e=stdc_bit_width_uc --e=stdc_bit_width_ui --e=stdc_bit_width_ul --e=stdc_bit_width_ull --e=stdc_bit_width_us --e=stdc_count_ones_uc --e=stdc_count_ones_ui --e=stdc_count_ones_ul --e=stdc_count_ones_ull --e=stdc_count_ones_us --e=stdc_count_zeros_uc --e=stdc_count_zeros_ui --e=stdc_count_zeros_ul --e=stdc_count_zeros_ull --e=stdc_count_zeros_us --e=stdc_first_leading_one_uc --e=stdc_first_leading_one_ui --e=stdc_first_leading_one_ul --e=stdc_first_leading_one_ull --e=stdc_first_leading_one_us --e=stdc_first_leading_zero_uc --e=stdc_first_leading_zero_ui --e=stdc_first_leading_zero_ul --e=stdc_first_leading_zero_ull --e=stdc_first_leading_zero_us --e=stdc_first_trailing_one_uc --e=stdc_first_trailing_one_ui --e=stdc_first_trailing_one_ul --e=stdc_first_trailing_one_ull --e=stdc_first_trailing_one_us --e=stdc_first_trailing_zero_uc --e=stdc_first_trailing_zero_ui --e=stdc_first_trailing_zero_ul --e=stdc_first_trailing_zero_ull --e=stdc_first_trailing_zero_us --e=stdc_has_single_bit_uc --e=stdc_has_single_bit_ui --e=stdc_has_single_bit_ul --e=stdc_has_single_bit_ull --e=stdc_has_single_bit_us --e=stdc_leading_ones_uc --e=stdc_leading_ones_ui --e=stdc_leading_ones_ul --e=stdc_leading_ones_ull --e=stdc_leading_ones_us --e=stdc_leading_zeros_uc --e=stdc_leading_zeros_ui --e=stdc_leading_zeros_ul --e=stdc_leading_zeros_ull --e=stdc_leading_zeros_us --e=stdc_trailing_ones_uc --e=stdc_trailing_ones_ui --e=stdc_trailing_ones_ul --e=stdc_trailing_ones_ull --e=stdc_trailing_ones_us --e=stdc_trailing_zeros_uc --e=stdc_trailing_zeros_ui --e=stdc_trailing_zeros_ul --e=stdc_trailing_zeros_ull --e=stdc_trailing_zeros_us --e=abs --e=atof --e=atoi --e=atol --e=atoll --e=bsearch --e=div --e=labs --e=ldiv --e=llabs --e=lldiv --e=qsort --e=qsort_r --e=rand --e=srand --e=strfromd --e=str
ove --e=rename --e=scanf --e=snprintf --e=sprintf --e=sscanf --e=vfprintf --e=vprintf --e=vsnprintf --e=vsprintf --e=epoll_create --e=epoll_create1 --e=epoll_ctl --e=epoll_pwait --e=epoll_wait --e=madvise --e=mincore --e=mlock --e=mlock2 --e=mlockall --e=mmap --e=mprotect --e=msync --e=munlock --e=munlockall --e=munmap --e=posix_madvise --e=shm_open --e=shm_unlink --e=getrandom --e=getrlimit --e=setrlimit --e=sendfile --e=chmod --e=fchmod --e=fchmodat --e=fstat --e=lstat --e=mkdir --e=mkdirat --e=stat --e=fstatvfs --e=statvfs --e=uname --e=wait --e=wait4 --e=waitpid --e=prctl --e=getauxval --e=cfgetispeed --e=cfgetospeed --e=cfsetispeed --e=cfsetospeed --e=tcdrain --e=tcflow --e=tcflush --e=tcgetattr --e=tcgetsid --e=tcsendbreak --e=tcsetattr --e=access --e=chdir --e=close --e=dup --e=dup2 --e=dup3 --e=execve --e=fchdir --e=fpathconf --e=fsync --e=ftruncate --e=getcwd --e=geteuid --e=getpid --e=getppid --e=getuid --e=isatty --e=link --e=linkat --e=lseek --e=pathconf --e=pipe --e=pread --e=pwrite --e=read --e=readlink --e=readlinkat --e=rmdir --e=symlink --e=symlinkat --e=sysconf --e=truncate --e=unlink --e=unlinkat --e=write --e=wctob --e=__assert_fail --e=__stack_chk_fail --e=closedir --e=dirfd --e=opendir --e=readdir --e=htonl --e=htons --e=ntohl --e=ntohs --e=pthread_atfork --e=pthread_attr_destroy --e=pthread_attr_getdetachstate --e=pthread_attr_getguardsize --e=pthread_attr_getstack --e=pthread_attr_getstacksize --e=pthread_attr_init --e=pthread_attr_setdetachstate --e=pthread_attr_setguardsize --e=pthread_attr_setstack --e=pthread_attr_setstacksize --e=pthread_condattr_destroy --e=pthread_condattr_getclock --e=pthread_condattr_getpshared --e=pthread_condattr_init --e=pthread_condattr_setclock --e=pthread_condattr_setpshared --e=pthread_create --e=pthread_detach --e=pthread_equal --e=pthread_exit --e=pthread_getname_np --e=pthread_getspecific --e=pthread_join --e=pthread_key_create --e=pthread_key_delete --e=pthread_mutex_destroy --e=pthread_mutex_init --e=pthread_mutex_lock --e=pthread_mutex_unlock --e=pthread_mutexattr_destroy --e=pthread_mutexattr_getpshared --e=pthread_mutexattr_getrobust --e=pthread_mutexattr_gettype --e=pthread_mutexattr_init --e=pthread_mutexattr_setpshared --e=pthread_mutexattr_setrobust --e=pthread_mutexattr_settype --e=pthread_once --e=pthread_rwlock_destroy --e=pthread_rwlock_init --e=pthread_rwlock_rdlock --e=pthread_rwlock_timedrdlock --e=pthread_rwlock_timedwrlock --e=pthread_rwlock_tryrdlock --e=pthread_rwlock_trywrlock --e=pthread_rwlock_unlock --e=pthread_rwlock_wrlock --e=pthread_rwlockattr_destroy --e=pthread_rwlockattr_getkind_np --e=pthread_rwlockattr_getpshared --e=pthread_rwlockattr_init --e=pthread_rwlockattr_setkind_np --e=pthread_rwlockattr_setpshared --e=pthread_self --e=pthread_setname_np --e=pthread_setspecific --e=__sched_getcpucount --e=longjmp --e=setjmp --e=clearerr --e=clearerr_unlocked --e=fclose --e=feof --e=feof_unlocked --e=ferror --e=ferror_unlocked --e=fflush --e=fgetc --e=fgetc_unlocked --e=fgets --e=flockfile --e=fopen --e=fopencookie --e=fputc --e=fputs --e=fread --e=fread_unlocked --e=fseek --e=fseeko --e=ftell --e=ftello --e=funlockfile --e=fwrite --e=fwrite_unlocked --e=getc --e=getc_unlocked --e=getchar --e=getchar_unlocked --e=putc --e=putchar --e=puts --e=setbuf --e=setvbuf --e=stderr --e=stdin --e=stdout --e=ungetc --e=_Exit --e=abort --e=at_quick_exit --e=atexit --e=exit --e=getenv --e=quick_exit --e=kill --e=raise --e=sigaction --e=sigaddset --e=sigaltstack --e=sigdelset --e=sigemptyset --e=sigfillset --e=signal --e=sigprocmask --e=posix_spawn --e=posix_spawn_file_actions_addclose --e=posix_spawn_file_actions_adddup2 --e=posix_spawn_file_actions_addopen --e=posix_spawn_file_actions_destroy --e=posix_spawn_file_actions_init --e=hcreate --e=hcreate_r --e=hdestroy --e=hdestroy_r --e=hsearch --e=hsearch_r --e=insque --e=remque --e=call_once --e=cnd_broadcast --e=cnd_destroy --e=cnd_init --e=cnd_signal --e=cnd_wait --e=mtx_destroy --e=mtx_init --e=mtx_lock --e=mtx_unlock --e=thrd_create --e=thrd_current --e=thrd_detach --e=thrd_equal --e=thrd_exit --e=
hrd_join --e=tss_create --e=tss_delete --e=tss_get --e=tss_set --e=asctime --e=asctime_r --e=clock --e=clock_gettime --e=difftime --e=gettimeofday --e=gmtime --e=gmtime_r --e=mktime --e=nanosleep --e=time --e=__llvm_libc_syscall --e=_exit --e=environ --e=execv --e=fork --e=getopt --e=optarg --e=opterr --e=optind --e=optopt --e=swab --e=select --e=bind --e=socket --e=feclearexcept --e=fedisableexcept --e=feenableexcept --e=fegetenv --e=fegetexcept --e=fegetexceptflag --e=fegetround --e=feholdexcept --e=feraiseexcept --e=fesetenv --e=fesetexcept --e=fesetexceptflag --e=fesetround --e=fetestexcept --e=fetestexceptflag --e=feupdateenv --e=acosf --e=acoshf --e=asinf --e=asinhf --e=atan2f --e=atanf --e=atanhf --e=canonicalize --e=canonicalizef --e=canonicalizel --e=cbrt --e=cbrtf --e=ceil --e=ceilf --e=ceill --e=copysign --e=copysignf --e=copysignl --e=cos --e=cosf --e=coshf --e=cospif --e=erff --e=exp --e=exp10 --e=exp10f --e=exp2 --e=exp2f --e=exp2m1f --e=expf --e=expm1 --e=expm1f --e=fabs --e=fabsf --e=fabsl --e=fdim --e=fdimf --e=fdiml --e=floor --e=floorf --e=floorl --e=fma --e=fmaf --e=fmax --e=fmaxf --e=fmaximum --e=fmaximum_mag --e=fmaximum_mag_num --e=fmaximum_mag_numf --e=fmaximum_mag_numl --e=fmaximum_magf --e=fmaximum_magl --e=fmaximum_num --e=fmaximum_numf --e=fmaximum_numl --e=fmaximumf --e=fmaximuml --e=fmaxl --e=fmin --e=fminf --e=fminimum --e=fminimum_mag --e=fminimum_mag_num --e=fminimum_mag_numf --e=fminimum_mag_numl --e=fminimum_magf --e=fminimum_magl --e=fminimum_num --e=fminimum_numf --e=fminimum_numl --e=fminimumf --e=fminimuml --e=fminl --e=fmod --e=fmodf --e=fmodl --e=fmul --e=frexp --e=frexpf --e=frexpl --e=fromfp --e=fromfpf --e=fromfpl --e=fromfpx --e=fromfpxf --e=fromfpxl --e=hypot --e=hypotf --e=ilogb --e=ilogbf --e=ilogbl --e=isnan --e=isnanf --e=isnanl --e=ldexp --e=ldexpf --e=ldexpl --e=llogb --e=llogbf --e=llogbl --e=llrint --e=llrintf --e=llrintl --e=llround --e=llroundf --e=llroundl --e=log --e=log10 --e=log10f --e=log1p --e=log1pf --e=log2 --e=log2f --e=logb --e=logbf --e=logbl --e=logf --e=lrint --e=lrintf --e=lrintl --e=lround --e=lroundf --e=lroundl --e=modf --e=modff --e=modfl --e=nan --e=nanf --e=nanl --e=nearbyint --e=nearbyintf --e=nearbyintl --e=nextafter --e=nextafterf --e=nextafterl --e=nextdown --e=nextdownf --e=nextdownl --e=nexttoward --e=nexttowardf --e=nexttowardl --e=nextup --e=nextupf --e=nextupl --e=powf --e=remainder --e=remainderf --e=remainderl --e=remquo --e=remquof --e=remquol --e=rint --e=rintf --e=rintl --e=round --e=roundeven --e=roundevenf --e=roundevenl --e=roundf --e=roundl --e=scalbn --e=scalbnf --e=scalbnl --e=sin --e=sincos --e=sincosf --e=sinf --e=sinhf --e=sinpif --e=sqrt --e=sqrtf --e=sqrtl --e=tan --e=tanf --e=tanhf --e=trunc --e=truncf --e=truncl --e=ufromfp --e=ufromfpf --e=ufromfpl --e=ufromfpx --e=ufromfpxf --e=ufromfpxl --e=canonicalizef128 --e=ceilf128 --e=copysignf128 --e=fabsf128 --e=fdimf128 --e=floorf128 --e=fmaxf128 --e=fmaximum_mag_numf128 --e=fmaximum_magf128 --e=fmaximum_numf128 --e=fmaximumf128 --e=fminf128 --e=fminimum_mag_numf128 --e=fminimum_magf128 --e=fminimum_numf128 --e=fminimumf128 --e=fmodf128 --e=frexpf128 --e=fromfpf128 --e=fromfpxf128 --e=ilogbf128 --e=ldexpf128 --e=llogbf128 --e=llrintf128 --e=llroundf128 --e=logbf128 --e=lrintf128 --e=lroundf128 --e=modff128 --e=nanf128 --e=nearbyintf128 --e=nextafterf128 --e=nextdownf128 --e=nextupf128 --e=remquof128 --e=rintf128 --e=roundevenf128 --e=roundf128 --e=scalbnf128 --e=sqrtf128 --e=truncf128 --e=ufromfpf128 --e=ufromfpxf128 /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/config/linux/api.td
error: fsfilcnt_t not found in any standard spec.

ninja: build stopped: subcommand failed.
['ninja', 'libc'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 164, in step
    yield
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 121, in main
    run_command(['ninja', 'libc'])
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 179, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', 'libc']' returned non-zero exit status 1.
@@@STEP_FAILURE@@@
@@@BUILD_STEP build libc-startup@@@
Running: ninja libc-startup
ninja: no work to do.
@@@BUILD_STEP libc-unit-tests@@@
Running: ninja libc-unit-tests
[1/848] Running unit test libc.test.include.stdbit_c_test.__unit__
[2/848] Running unit test libc.test.include.signbit_c_test.__unit__
[3/848] Running unit test libc.test.include.isnan_c_test.__unit__
[4/848] Running unit test libc.test.include.isinf_c_test.__unit__
[5/848] Running unit test libc.test.include.isfinite_c_test.__unit__
[6/848] Running unit test libc.test.include.assert_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcAssertTest.VersionMacro
[       OK ] LlvmLibcAssertTest.VersionMacro (4 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[7/848] Running unit test libc.test.include.sys_queue_test.__unit__
[==========] Running 2 tests from 1 test suite.
Step 6 (build libc) failure: build libc (failure)
@@@BUILD_STEP build libc@@@
Running: ninja libc
[1/1] Generating sys/statvfs.h
FAILED: projects/libc/include/sys/statvfs.h /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/include/sys/statvfs.h 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/include && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/bin/libc-hdrgen -o /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/include/sys/statvfs.h --header sys/statvfs.h --def /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/include/sys/statvfs.h.def -I /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc --e=isalnum --e=isalpha --e=isascii --e=isblank --e=iscntrl --e=isdigit --e=isgraph --e=islower --e=isprint --e=ispunct --e=isspace --e=isupper --e=isxdigit --e=toascii --e=tolower --e=toupper --e=dlclose --e=dlerror --e=dlopen --e=dlsym --e=errno --e=creat --e=fcntl --e=open --e=openat --e=sched_get_priority_max --e=sched_get_priority_min --e=sched_getaffinity --e=sched_getparam --e=sched_getscheduler --e=sched_rr_get_interval --e=sched_setaffinity --e=sched_setparam --e=sched_setscheduler --e=sched_yield --e=bcmp --e=bcopy --e=bzero --e=index --e=memccpy --e=memchr --e=memcmp --e=memcpy --e=memmem --e=memmove --e=mempcpy --e=memrchr --e=memset --e=memset_explicit --e=rindex --e=stpcpy --e=stpncpy --e=strcasecmp --e=strcasestr --e=strcat --e=strchr --e=strchrnul --e=strcmp --e=strcoll --e=strcpy --e=strcspn --e=strdup --e=strerror --e=strerror_r --e=strlcat --e=strlcpy --e=strlen --e=strncasecmp --e=strncat --e=strncmp --e=strncpy --e=strndup --e=strnlen --e=strpbrk --e=strrchr --e=strsep --e=strsignal --e=strspn --e=strstr --e=strtok --e=strtok_r --e=strxfrm --e=imaxabs --e=imaxdiv --e=strtoimax --e=strtoumax --e=stdc_bit_ceil_uc --e=stdc_bit_ceil_ui --e=stdc_bit_ceil_ul --e=stdc_bit_ceil_ull --e=stdc_bit_ceil_us --e=stdc_bit_floor_uc --e=stdc_bit_floor_ui --e=stdc_bit_floor_ul --e=stdc_bit_floor_ull --e=stdc_bit_floor_us --e=stdc_bit_width_uc --e=stdc_bit_width_ui --e=stdc_bit_width_ul --e=stdc_bit_width_ull --e=stdc_bit_width_us --e=stdc_count_ones_uc --e=stdc_count_ones_ui --e=stdc_count_ones_ul --e=stdc_count_ones_ull --e=stdc_count_ones_us --e=stdc_count_zeros_uc --e=stdc_count_zeros_ui --e=stdc_count_zeros_ul --e=stdc_count_zeros_ull --e=stdc_count_zeros_us --e=stdc_first_leading_one_uc --e=stdc_first_leading_one_ui --e=stdc_first_leading_one_ul --e=stdc_first_leading_one_ull --e=stdc_first_leading_one_us --e=stdc_first_leading_zero_uc --e=stdc_first_leading_zero_ui --e=stdc_first_leading_zero_ul --e=stdc_first_leading_zero_ull --e=stdc_first_leading_zero_us --e=stdc_first_trailing_one_uc --e=stdc_first_trailing_one_ui --e=stdc_first_trailing_one_ul --e=stdc_first_trailing_one_ull --e=stdc_first_trailing_one_us --e=stdc_first_trailing_zero_uc --e=stdc_first_trailing_zero_ui --e=stdc_first_trailing_zero_ul --e=stdc_first_trailing_zero_ull --e=stdc_first_trailing_zero_us --e=stdc_has_single_bit_uc --e=stdc_has_single_bit_ui --e=stdc_has_single_bit_ul --e=stdc_has_single_bit_ull --e=stdc_has_single_bit_us --e=stdc_leading_ones_uc --e=stdc_leading_ones_ui --e=stdc_leading_ones_ul --e=stdc_leading_ones_ull --e=stdc_leading_ones_us --e=stdc_leading_zeros_uc --e=stdc_leading_zeros_ui --e=stdc_leading_zeros_ul --e=stdc_leading_zeros_ull --e=stdc_leading_zeros_us --e=stdc_trailing_ones_uc --e=stdc_trailing_ones_ui --e=stdc_trailing_ones_ul --e=stdc_trailing_ones_ull --e=stdc_trailing_ones_us --e=stdc_trailing_zeros_uc --e=stdc_trailing_zeros_ui --e=stdc_trailing_zeros_ul --e=stdc_trailing_zeros_ull --e=stdc_trailing_zeros_us --e=abs --e=atof --e=atoi --e=atol --e=atoll --e=bsearch --e=div --e=labs --e=ldiv --e=llabs --e=lldiv --e=qsort --e=qsort_r --e=rand --e=srand --e=strfromd --e=str
ove --e=rename --e=scanf --e=snprintf --e=sprintf --e=sscanf --e=vfprintf --e=vprintf --e=vsnprintf --e=vsprintf --e=epoll_create --e=epoll_create1 --e=epoll_ctl --e=epoll_pwait --e=epoll_wait --e=madvise --e=mincore --e=mlock --e=mlock2 --e=mlockall --e=mmap --e=mprotect --e=msync --e=munlock --e=munlockall --e=munmap --e=posix_madvise --e=shm_open --e=shm_unlink --e=getrandom --e=getrlimit --e=setrlimit --e=sendfile --e=chmod --e=fchmod --e=fchmodat --e=fstat --e=lstat --e=mkdir --e=mkdirat --e=stat --e=fstatvfs --e=statvfs --e=uname --e=wait --e=wait4 --e=waitpid --e=prctl --e=getauxval --e=cfgetispeed --e=cfgetospeed --e=cfsetispeed --e=cfsetospeed --e=tcdrain --e=tcflow --e=tcflush --e=tcgetattr --e=tcgetsid --e=tcsendbreak --e=tcsetattr --e=access --e=chdir --e=close --e=dup --e=dup2 --e=dup3 --e=execve --e=fchdir --e=fpathconf --e=fsync --e=ftruncate --e=getcwd --e=geteuid --e=getpid --e=getppid --e=getuid --e=isatty --e=link --e=linkat --e=lseek --e=pathconf --e=pipe --e=pread --e=pwrite --e=read --e=readlink --e=readlinkat --e=rmdir --e=symlink --e=symlinkat --e=sysconf --e=truncate --e=unlink --e=unlinkat --e=write --e=wctob --e=__assert_fail --e=__stack_chk_fail --e=closedir --e=dirfd --e=opendir --e=readdir --e=htonl --e=htons --e=ntohl --e=ntohs --e=pthread_atfork --e=pthread_attr_destroy --e=pthread_attr_getdetachstate --e=pthread_attr_getguardsize --e=pthread_attr_getstack --e=pthread_attr_getstacksize --e=pthread_attr_init --e=pthread_attr_setdetachstate --e=pthread_attr_setguardsize --e=pthread_attr_setstack --e=pthread_attr_setstacksize --e=pthread_condattr_destroy --e=pthread_condattr_getclock --e=pthread_condattr_getpshared --e=pthread_condattr_init --e=pthread_condattr_setclock --e=pthread_condattr_setpshared --e=pthread_create --e=pthread_detach --e=pthread_equal --e=pthread_exit --e=pthread_getname_np --e=pthread_getspecific --e=pthread_join --e=pthread_key_create --e=pthread_key_delete --e=pthread_mutex_destroy --e=pthread_mutex_init --e=pthread_mutex_lock --e=pthread_mutex_unlock --e=pthread_mutexattr_destroy --e=pthread_mutexattr_getpshared --e=pthread_mutexattr_getrobust --e=pthread_mutexattr_gettype --e=pthread_mutexattr_init --e=pthread_mutexattr_setpshared --e=pthread_mutexattr_setrobust --e=pthread_mutexattr_settype --e=pthread_once --e=pthread_rwlock_destroy --e=pthread_rwlock_init --e=pthread_rwlock_rdlock --e=pthread_rwlock_timedrdlock --e=pthread_rwlock_timedwrlock --e=pthread_rwlock_tryrdlock --e=pthread_rwlock_trywrlock --e=pthread_rwlock_unlock --e=pthread_rwlock_wrlock --e=pthread_rwlockattr_destroy --e=pthread_rwlockattr_getkind_np --e=pthread_rwlockattr_getpshared --e=pthread_rwlockattr_init --e=pthread_rwlockattr_setkind_np --e=pthread_rwlockattr_setpshared --e=pthread_self --e=pthread_setname_np --e=pthread_setspecific --e=__sched_getcpucount --e=longjmp --e=setjmp --e=clearerr --e=clearerr_unlocked --e=fclose --e=feof --e=feof_unlocked --e=ferror --e=ferror_unlocked --e=fflush --e=fgetc --e=fgetc_unlocked --e=fgets --e=flockfile --e=fopen --e=fopencookie --e=fputc --e=fputs --e=fread --e=fread_unlocked --e=fseek --e=fseeko --e=ftell --e=ftello --e=funlockfile --e=fwrite --e=fwrite_unlocked --e=getc --e=getc_unlocked --e=getchar --e=getchar_unlocked --e=putc --e=putchar --e=puts --e=setbuf --e=setvbuf --e=stderr --e=stdin --e=stdout --e=ungetc --e=_Exit --e=abort --e=at_quick_exit --e=atexit --e=exit --e=getenv --e=quick_exit --e=kill --e=raise --e=sigaction --e=sigaddset --e=sigaltstack --e=sigdelset --e=sigemptyset --e=sigfillset --e=signal --e=sigprocmask --e=posix_spawn --e=posix_spawn_file_actions_addclose --e=posix_spawn_file_actions_adddup2 --e=posix_spawn_file_actions_addopen --e=posix_spawn_file_actions_destroy --e=posix_spawn_file_actions_init --e=hcreate --e=hcreate_r --e=hdestroy --e=hdestroy_r --e=hsearch --e=hsearch_r --e=insque --e=remque --e=call_once --e=cnd_broadcast --e=cnd_destroy --e=cnd_init --e=cnd_signal --e=cnd_wait --e=mtx_destroy --e=mtx_init --e=mtx_lock --e=mtx_unlock --e=thrd_create --e=thrd_current --e=thrd_detach --e=thrd_equal --e=thrd_exit --e=
hrd_join --e=tss_create --e=tss_delete --e=tss_get --e=tss_set --e=asctime --e=asctime_r --e=clock --e=clock_gettime --e=difftime --e=gettimeofday --e=gmtime --e=gmtime_r --e=mktime --e=nanosleep --e=time --e=__llvm_libc_syscall --e=_exit --e=environ --e=execv --e=fork --e=getopt --e=optarg --e=opterr --e=optind --e=optopt --e=swab --e=select --e=bind --e=socket --e=feclearexcept --e=fedisableexcept --e=feenableexcept --e=fegetenv --e=fegetexcept --e=fegetexceptflag --e=fegetround --e=feholdexcept --e=feraiseexcept --e=fesetenv --e=fesetexcept --e=fesetexceptflag --e=fesetround --e=fetestexcept --e=fetestexceptflag --e=feupdateenv --e=acosf --e=acoshf --e=asinf --e=asinhf --e=atan2f --e=atanf --e=atanhf --e=canonicalize --e=canonicalizef --e=canonicalizel --e=cbrt --e=cbrtf --e=ceil --e=ceilf --e=ceill --e=copysign --e=copysignf --e=copysignl --e=cos --e=cosf --e=coshf --e=cospif --e=erff --e=exp --e=exp10 --e=exp10f --e=exp2 --e=exp2f --e=exp2m1f --e=expf --e=expm1 --e=expm1f --e=fabs --e=fabsf --e=fabsl --e=fdim --e=fdimf --e=fdiml --e=floor --e=floorf --e=floorl --e=fma --e=fmaf --e=fmax --e=fmaxf --e=fmaximum --e=fmaximum_mag --e=fmaximum_mag_num --e=fmaximum_mag_numf --e=fmaximum_mag_numl --e=fmaximum_magf --e=fmaximum_magl --e=fmaximum_num --e=fmaximum_numf --e=fmaximum_numl --e=fmaximumf --e=fmaximuml --e=fmaxl --e=fmin --e=fminf --e=fminimum --e=fminimum_mag --e=fminimum_mag_num --e=fminimum_mag_numf --e=fminimum_mag_numl --e=fminimum_magf --e=fminimum_magl --e=fminimum_num --e=fminimum_numf --e=fminimum_numl --e=fminimumf --e=fminimuml --e=fminl --e=fmod --e=fmodf --e=fmodl --e=fmul --e=frexp --e=frexpf --e=frexpl --e=fromfp --e=fromfpf --e=fromfpl --e=fromfpx --e=fromfpxf --e=fromfpxl --e=hypot --e=hypotf --e=ilogb --e=ilogbf --e=ilogbl --e=isnan --e=isnanf --e=isnanl --e=ldexp --e=ldexpf --e=ldexpl --e=llogb --e=llogbf --e=llogbl --e=llrint --e=llrintf --e=llrintl --e=llround --e=llroundf --e=llroundl --e=log --e=log10 --e=log10f --e=log1p --e=log1pf --e=log2 --e=log2f --e=logb --e=logbf --e=logbl --e=logf --e=lrint --e=lrintf --e=lrintl --e=lround --e=lroundf --e=lroundl --e=modf --e=modff --e=modfl --e=nan --e=nanf --e=nanl --e=nearbyint --e=nearbyintf --e=nearbyintl --e=nextafter --e=nextafterf --e=nextafterl --e=nextdown --e=nextdownf --e=nextdownl --e=nexttoward --e=nexttowardf --e=nexttowardl --e=nextup --e=nextupf --e=nextupl --e=powf --e=remainder --e=remainderf --e=remainderl --e=remquo --e=remquof --e=remquol --e=rint --e=rintf --e=rintl --e=round --e=roundeven --e=roundevenf --e=roundevenl --e=roundf --e=roundl --e=scalbn --e=scalbnf --e=scalbnl --e=sin --e=sincos --e=sincosf --e=sinf --e=sinhf --e=sinpif --e=sqrt --e=sqrtf --e=sqrtl --e=tan --e=tanf --e=tanhf --e=trunc --e=truncf --e=truncl --e=ufromfp --e=ufromfpf --e=ufromfpl --e=ufromfpx --e=ufromfpxf --e=ufromfpxl --e=canonicalizef128 --e=ceilf128 --e=copysignf128 --e=fabsf128 --e=fdimf128 --e=floorf128 --e=fmaxf128 --e=fmaximum_mag_numf128 --e=fmaximum_magf128 --e=fmaximum_numf128 --e=fmaximumf128 --e=fminf128 --e=fminimum_mag_numf128 --e=fminimum_magf128 --e=fminimum_numf128 --e=fminimumf128 --e=fmodf128 --e=frexpf128 --e=fromfpf128 --e=fromfpxf128 --e=ilogbf128 --e=ldexpf128 --e=llogbf128 --e=llrintf128 --e=llroundf128 --e=logbf128 --e=lrintf128 --e=lroundf128 --e=modff128 --e=nanf128 --e=nearbyintf128 --e=nextafterf128 --e=nextdownf128 --e=nextupf128 --e=remquof128 --e=rintf128 --e=roundevenf128 --e=roundf128 --e=scalbnf128 --e=sqrtf128 --e=truncf128 --e=ufromfpf128 --e=ufromfpxf128 /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/config/linux/api.td
error: fsfilcnt_t not found in any standard spec.

ninja: build stopped: subcommand failed.
['ninja', 'libc'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 164, in step
    yield
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 121, in main
    run_command(['ninja', 'libc'])
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 179, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', 'libc']' returned non-zero exit status 1.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 17, 2024

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian-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/179/builds/2365

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-fullbuild-dbg/build
@@@BUILD_STEP build libc@@@
Running: ninja libc
[1/1] Generating sys/statvfs.h
FAILED: projects/libc/include/sys/statvfs.h /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/include/sys/statvfs.h 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/include && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/bin/libc-hdrgen -o /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/include/sys/statvfs.h --header sys/statvfs.h --def /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/include/sys/statvfs.h.def -I /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc --e=isalnum --e=isalpha --e=isascii --e=isblank --e=iscntrl --e=isdigit --e=isgraph --e=islower --e=isprint --e=ispunct --e=isspace --e=isupper --e=isxdigit --e=toascii --e=tolower --e=toupper --e=dlclose --e=dlerror --e=dlopen --e=dlsym --e=errno --e=creat --e=fcntl --e=open --e=openat --e=sched_get_priority_max --e=sched_get_priority_min --e=sched_getaffinity --e=sched_getparam --e=sched_getscheduler --e=sched_rr_get_interval --e=sched_setaffinity --e=sched_setparam --e=sched_setscheduler --e=sched_yield --e=bcmp --e=bcopy --e=bzero --e=index --e=memccpy --e=memchr --e=memcmp --e=memcpy --e=memmem --e=memmove --e=mempcpy --e=memrchr --e=memset --e=memset_explicit --e=rindex --e=stpcpy --e=stpncpy --e=strcasecmp --e=strcasestr --e=strcat --e=strchr --e=strchrnul --e=strcmp --e=strcoll --e=strcpy --e=strcspn --e=strdup --e=strerror --e=strerror_r --e=strlcat --e=strlcpy --e=strlen --e=strncasecmp --e=strncat --e=strncmp --e=strncpy --e=strndup --e=strnlen --e=strpbrk --e=strrchr --e=strsep --e=strsignal --e=strspn --e=strstr --e=strtok --e=strtok_r --e=strxfrm --e=imaxabs --e=imaxdiv --e=strtoimax --e=strtoumax --e=stdc_bit_ceil_uc --e=stdc_bit_ceil_ui --e=stdc_bit_ceil_ul --e=stdc_bit_ceil_ull --e=stdc_bit_ceil_us --e=stdc_bit_floor_uc --e=stdc_bit_floor_ui --e=stdc_bit_floor_ul --e=stdc_bit_floor_ull --e=stdc_bit_floor_us --e=stdc_bit_width_uc --e=stdc_bit_width_ui --e=stdc_bit_width_ul --e=stdc_bit_width_ull --e=stdc_bit_width_us --e=stdc_count_ones_uc --e=stdc_count_ones_ui --e=stdc_count_ones_ul --e=stdc_count_ones_ull --e=stdc_count_ones_us --e=stdc_count_zeros_uc --e=stdc_count_zeros_ui --e=stdc_count_zeros_ul --e=stdc_count_zeros_ull --e=stdc_count_zeros_us --e=stdc_first_leading_one_uc --e=stdc_first_leading_one_ui --e=stdc_first_leading_one_ul --e=stdc_first_leading_one_ull --e=stdc_first_leading_one_us --e=stdc_first_leading_zero_uc --e=stdc_first_leading_zero_ui --e=stdc_first_leading_zero_ul --e=stdc_first_leading_zero_ull --e=stdc_first_leading_zero_us --e=stdc_first_trailing_one_uc --e=stdc_first_trailing_one_ui --e=stdc_first_trailing_one_ul --e=stdc_first_trailing_one_ull --e=stdc_first_trailing_one_us --e=stdc_first_trailing_zero_uc --e=stdc_first_trailing_zero_ui --e=stdc_first_trailing_zero_ul --e=stdc_first_trailing_zero_ull --e=stdc_first_trailing_zero_us --e=stdc_has_single_bit_uc --e=stdc_has_single_bit_ui --e=stdc_has_single_bit_ul --e=stdc_has_single_bit_ull --e=stdc_has_single_bit_us --e=stdc_leading_ones_uc --e=stdc_leading_ones_ui --e=stdc_leading_ones_ul --e=stdc_leading_ones_ull --e=stdc_leading_ones_us --e=stdc_leading_zeros_uc --e=stdc_leading_zeros_ui --e=stdc_leading_zeros_ul --e=stdc_leading_zeros_ull --e=stdc_leading_zeros_us --e=stdc_trailing_ones_uc --e=stdc_trailing_ones_ui --e=stdc_trailing_ones_ul --e=stdc_trailing_ones_ull --e=stdc_trailing_ones_us --e=stdc_trailing_zeros_uc --e=stdc_trailing_zeros_ui --e=stdc_trailing_zeros_ul --e=stdc_trailing_zeros_ull --e=stdc_trailing_zeros_us --e=abs --e=atof --e=atoi --e=atol --e=atoll --e=bsearch --e=div --e=labs --e=ldiv --e=llabs --e=lldiv --e=qsort --e=qsort_r --e=rand --e=srand --e=strfromd --e=strfromf --e=strfroml --e=s
canf --e=snprintf --e=sprintf --e=sscanf --e=vfprintf --e=vprintf --e=vsnprintf --e=vsprintf --e=epoll_create --e=epoll_create1 --e=epoll_ctl --e=epoll_pwait --e=epoll_wait --e=madvise --e=mincore --e=mlock --e=mlock2 --e=mlockall --e=mmap --e=mprotect --e=msync --e=munlock --e=munlockall --e=munmap --e=posix_madvise --e=shm_open --e=shm_unlink --e=getrandom --e=getrlimit --e=setrlimit --e=sendfile --e=chmod --e=fchmod --e=fchmodat --e=fstat --e=lstat --e=mkdir --e=mkdirat --e=stat --e=fstatvfs --e=statvfs --e=uname --e=wait --e=wait4 --e=waitpid --e=prctl --e=getauxval --e=cfgetispeed --e=cfgetospeed --e=cfsetispeed --e=cfsetospeed --e=tcdrain --e=tcflow --e=tcflush --e=tcgetattr --e=tcgetsid --e=tcsendbreak --e=tcsetattr --e=access --e=chdir --e=close --e=dup --e=dup2 --e=dup3 --e=execve --e=fchdir --e=fpathconf --e=fsync --e=ftruncate --e=getcwd --e=geteuid --e=getpid --e=getppid --e=getuid --e=isatty --e=link --e=linkat --e=lseek --e=pathconf --e=pipe --e=pread --e=pwrite --e=read --e=readlink --e=readlinkat --e=rmdir --e=symlink --e=symlinkat --e=sysconf --e=truncate --e=unlink --e=unlinkat --e=write --e=wctob --e=__assert_fail --e=__stack_chk_fail --e=closedir --e=dirfd --e=opendir --e=readdir --e=htonl --e=htons --e=ntohl --e=ntohs --e=pthread_atfork --e=pthread_attr_destroy --e=pthread_attr_getdetachstate --e=pthread_attr_getguardsize --e=pthread_attr_getstack --e=pthread_attr_getstacksize --e=pthread_attr_init --e=pthread_attr_setdetachstate --e=pthread_attr_setguardsize --e=pthread_attr_setstack --e=pthread_attr_setstacksize --e=pthread_condattr_destroy --e=pthread_condattr_getclock --e=pthread_condattr_getpshared --e=pthread_condattr_init --e=pthread_condattr_setclock --e=pthread_condattr_setpshared --e=pthread_create --e=pthread_detach --e=pthread_equal --e=pthread_exit --e=pthread_getname_np --e=pthread_getspecific --e=pthread_join --e=pthread_key_create --e=pthread_key_delete --e=pthread_mutex_destroy --e=pthread_mutex_init --e=pthread_mutex_lock --e=pthread_mutex_unlock --e=pthread_mutexattr_destroy --e=pthread_mutexattr_getpshared --e=pthread_mutexattr_getrobust --e=pthread_mutexattr_gettype --e=pthread_mutexattr_init --e=pthread_mutexattr_setpshared --e=pthread_mutexattr_setrobust --e=pthread_mutexattr_settype --e=pthread_once --e=pthread_rwlock_destroy --e=pthread_rwlock_init --e=pthread_rwlock_rdlock --e=pthread_rwlock_timedrdlock --e=pthread_rwlock_timedwrlock --e=pthread_rwlock_tryrdlock --e=pthread_rwlock_trywrlock --e=pthread_rwlock_unlock --e=pthread_rwlock_wrlock --e=pthread_rwlockattr_destroy --e=pthread_rwlockattr_getkind_np --e=pthread_rwlockattr_getpshared --e=pthread_rwlockattr_init --e=pthread_rwlockattr_setkind_np --e=pthread_rwlockattr_setpshared --e=pthread_self --e=pthread_setname_np --e=pthread_setspecific --e=__sched_getcpucount --e=longjmp --e=setjmp --e=clearerr --e=clearerr_unlocked --e=fclose --e=feof --e=feof_unlocked --e=ferror --e=ferror_unlocked --e=fflush --e=fgetc --e=fgetc_unlocked --e=fgets --e=flockfile --e=fopen --e=fopencookie --e=fputc --e=fputs --e=fread --e=fread_unlocked --e=fseek --e=fseeko --e=ftell --e=ftello --e=funlockfile --e=fwrite --e=fwrite_unlocked --e=getc --e=getc_unlocked --e=getchar --e=getchar_unlocked --e=putc --e=putchar --e=puts --e=setbuf --e=setvbuf --e=stderr --e=stdin --e=stdout --e=ungetc --e=_Exit --e=abort --e=at_quick_exit --e=atexit --e=exit --e=getenv --e=quick_exit --e=kill --e=raise --e=sigaction --e=sigaddset --e=sigaltstack --e=sigdelset --e=sigemptyset --e=sigfillset --e=signal --e=sigprocmask --e=posix_spawn --e=posix_spawn_file_actions_addclose --e=posix_spawn_file_actions_adddup2 --e=posix_spawn_file_actions_addopen --e=posix_spawn_file_actions_destroy --e=posix_spawn_file_actions_init --e=hcreate --e=hcreate_r --e=hdestroy --e=hdestroy_r --e=hsearch --e=hsearch_r --e=insque --e=remque --e=call_once --e=cnd_broadcast --e=cnd_destroy --e=cnd_init --e=cnd_signal --e=cnd_wait --e=mtx_destroy --e=mtx_init --e=mtx_lock --e=mtx_unlock --e=thrd_create --e=thrd_current --e=thrd_detach --e=thrd_equal --e=thrd_exit --e=thrd_join --e=tss_cr
ate --e=tss_delete --e=tss_get --e=tss_set --e=asctime --e=asctime_r --e=clock --e=clock_gettime --e=difftime --e=gettimeofday --e=gmtime --e=gmtime_r --e=mktime --e=nanosleep --e=time --e=__llvm_libc_syscall --e=_exit --e=environ --e=execv --e=fork --e=getopt --e=optarg --e=opterr --e=optind --e=optopt --e=swab --e=select --e=bind --e=socket --e=feclearexcept --e=fedisableexcept --e=feenableexcept --e=fegetenv --e=fegetexcept --e=fegetexceptflag --e=fegetround --e=feholdexcept --e=feraiseexcept --e=fesetenv --e=fesetexcept --e=fesetexceptflag --e=fesetround --e=fetestexcept --e=fetestexceptflag --e=feupdateenv --e=acosf --e=acoshf --e=asinf --e=asinhf --e=atan2f --e=atanf --e=atanhf --e=canonicalize --e=canonicalizef --e=canonicalizel --e=cbrt --e=cbrtf --e=ceil --e=ceilf --e=ceill --e=copysign --e=copysignf --e=copysignl --e=cos --e=cosf --e=coshf --e=cospif --e=erff --e=exp --e=exp10 --e=exp10f --e=exp2 --e=exp2f --e=exp2m1f --e=expf --e=expm1 --e=expm1f --e=fabs --e=fabsf --e=fabsl --e=fdim --e=fdimf --e=fdiml --e=floor --e=floorf --e=floorl --e=fma --e=fmaf --e=fmax --e=fmaxf --e=fmaximum --e=fmaximum_mag --e=fmaximum_mag_num --e=fmaximum_mag_numf --e=fmaximum_mag_numl --e=fmaximum_magf --e=fmaximum_magl --e=fmaximum_num --e=fmaximum_numf --e=fmaximum_numl --e=fmaximumf --e=fmaximuml --e=fmaxl --e=fmin --e=fminf --e=fminimum --e=fminimum_mag --e=fminimum_mag_num --e=fminimum_mag_numf --e=fminimum_mag_numl --e=fminimum_magf --e=fminimum_magl --e=fminimum_num --e=fminimum_numf --e=fminimum_numl --e=fminimumf --e=fminimuml --e=fminl --e=fmod --e=fmodf --e=fmodl --e=fmul --e=frexp --e=frexpf --e=frexpl --e=fromfp --e=fromfpf --e=fromfpl --e=fromfpx --e=fromfpxf --e=fromfpxl --e=hypot --e=hypotf --e=ilogb --e=ilogbf --e=ilogbl --e=isnan --e=isnanf --e=isnanl --e=ldexp --e=ldexpf --e=ldexpl --e=llogb --e=llogbf --e=llogbl --e=llrint --e=llrintf --e=llrintl --e=llround --e=llroundf --e=llroundl --e=log --e=log10 --e=log10f --e=log1p --e=log1pf --e=log2 --e=log2f --e=logb --e=logbf --e=logbl --e=logf --e=lrint --e=lrintf --e=lrintl --e=lround --e=lroundf --e=lroundl --e=modf --e=modff --e=modfl --e=nan --e=nanf --e=nanl --e=nearbyint --e=nearbyintf --e=nearbyintl --e=nextafter --e=nextafterf --e=nextafterl --e=nextdown --e=nextdownf --e=nextdownl --e=nexttoward --e=nexttowardf --e=nexttowardl --e=nextup --e=nextupf --e=nextupl --e=powf --e=remainder --e=remainderf --e=remainderl --e=remquo --e=remquof --e=remquol --e=rint --e=rintf --e=rintl --e=round --e=roundeven --e=roundevenf --e=roundevenl --e=roundf --e=roundl --e=scalbn --e=scalbnf --e=scalbnl --e=sin --e=sincos --e=sincosf --e=sinf --e=sinhf --e=sinpif --e=sqrt --e=sqrtf --e=sqrtl --e=tan --e=tanf --e=tanhf --e=trunc --e=truncf --e=truncl --e=ufromfp --e=ufromfpf --e=ufromfpl --e=ufromfpx --e=ufromfpxf --e=ufromfpxl --e=canonicalizef128 --e=ceilf128 --e=copysignf128 --e=fabsf128 --e=fdimf128 --e=floorf128 --e=fmaxf128 --e=fmaximum_mag_numf128 --e=fmaximum_magf128 --e=fmaximum_numf128 --e=fmaximumf128 --e=fminf128 --e=fminimum_mag_numf128 --e=fminimum_magf128 --e=fminimum_numf128 --e=fminimumf128 --e=fmodf128 --e=frexpf128 --e=fromfpf128 --e=fromfpxf128 --e=ilogbf128 --e=ldexpf128 --e=llogbf128 --e=llrintf128 --e=llroundf128 --e=logbf128 --e=lrintf128 --e=lroundf128 --e=modff128 --e=nanf128 --e=nearbyintf128 --e=nextafterf128 --e=nextdownf128 --e=nextupf128 --e=remquof128 --e=rintf128 --e=roundevenf128 --e=roundf128 --e=scalbnf128 --e=sqrtf128 --e=truncf128 --e=ufromfpf128 --e=ufromfpxf128 /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/config/linux/api.td
error: fsfilcnt_t not found in any standard spec.

ninja: build stopped: subcommand failed.
['ninja', 'libc'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 164, in step
    yield
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 121, in main
    run_command(['ninja', 'libc'])
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 179, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', 'libc']' returned non-zero exit status 1.
@@@STEP_FAILURE@@@
@@@BUILD_STEP build libc-startup@@@
Running: ninja libc-startup
ninja: no work to do.
@@@BUILD_STEP libc-unit-tests@@@
Running: ninja libc-unit-tests
[1/848] Running unit test libc.test.include.stdbit_c_test.__unit__
[2/848] Running unit test libc.test.include.signbit_c_test.__unit__
[3/848] Running unit test libc.test.include.isnan_c_test.__unit__
[4/848] Running unit test libc.test.include.isinf_c_test.__unit__
[5/848] Running unit test libc.test.include.isfinite_c_test.__unit__
[6/848] Running unit test libc.test.include.assert_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcAssertTest.VersionMacro
[       OK ] LlvmLibcAssertTest.VersionMacro (4 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[7/848] Running unit test libc.test.include.sys_queue_test.__unit__
[==========] Running 2 tests from 1 test suite.
Step 6 (build libc) failure: build libc (failure)
@@@BUILD_STEP build libc@@@
Running: ninja libc
[1/1] Generating sys/statvfs.h
FAILED: projects/libc/include/sys/statvfs.h /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/include/sys/statvfs.h 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/include && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/bin/libc-hdrgen -o /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/include/sys/statvfs.h --header sys/statvfs.h --def /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/include/sys/statvfs.h.def -I /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc --e=isalnum --e=isalpha --e=isascii --e=isblank --e=iscntrl --e=isdigit --e=isgraph --e=islower --e=isprint --e=ispunct --e=isspace --e=isupper --e=isxdigit --e=toascii --e=tolower --e=toupper --e=dlclose --e=dlerror --e=dlopen --e=dlsym --e=errno --e=creat --e=fcntl --e=open --e=openat --e=sched_get_priority_max --e=sched_get_priority_min --e=sched_getaffinity --e=sched_getparam --e=sched_getscheduler --e=sched_rr_get_interval --e=sched_setaffinity --e=sched_setparam --e=sched_setscheduler --e=sched_yield --e=bcmp --e=bcopy --e=bzero --e=index --e=memccpy --e=memchr --e=memcmp --e=memcpy --e=memmem --e=memmove --e=mempcpy --e=memrchr --e=memset --e=memset_explicit --e=rindex --e=stpcpy --e=stpncpy --e=strcasecmp --e=strcasestr --e=strcat --e=strchr --e=strchrnul --e=strcmp --e=strcoll --e=strcpy --e=strcspn --e=strdup --e=strerror --e=strerror_r --e=strlcat --e=strlcpy --e=strlen --e=strncasecmp --e=strncat --e=strncmp --e=strncpy --e=strndup --e=strnlen --e=strpbrk --e=strrchr --e=strsep --e=strsignal --e=strspn --e=strstr --e=strtok --e=strtok_r --e=strxfrm --e=imaxabs --e=imaxdiv --e=strtoimax --e=strtoumax --e=stdc_bit_ceil_uc --e=stdc_bit_ceil_ui --e=stdc_bit_ceil_ul --e=stdc_bit_ceil_ull --e=stdc_bit_ceil_us --e=stdc_bit_floor_uc --e=stdc_bit_floor_ui --e=stdc_bit_floor_ul --e=stdc_bit_floor_ull --e=stdc_bit_floor_us --e=stdc_bit_width_uc --e=stdc_bit_width_ui --e=stdc_bit_width_ul --e=stdc_bit_width_ull --e=stdc_bit_width_us --e=stdc_count_ones_uc --e=stdc_count_ones_ui --e=stdc_count_ones_ul --e=stdc_count_ones_ull --e=stdc_count_ones_us --e=stdc_count_zeros_uc --e=stdc_count_zeros_ui --e=stdc_count_zeros_ul --e=stdc_count_zeros_ull --e=stdc_count_zeros_us --e=stdc_first_leading_one_uc --e=stdc_first_leading_one_ui --e=stdc_first_leading_one_ul --e=stdc_first_leading_one_ull --e=stdc_first_leading_one_us --e=stdc_first_leading_zero_uc --e=stdc_first_leading_zero_ui --e=stdc_first_leading_zero_ul --e=stdc_first_leading_zero_ull --e=stdc_first_leading_zero_us --e=stdc_first_trailing_one_uc --e=stdc_first_trailing_one_ui --e=stdc_first_trailing_one_ul --e=stdc_first_trailing_one_ull --e=stdc_first_trailing_one_us --e=stdc_first_trailing_zero_uc --e=stdc_first_trailing_zero_ui --e=stdc_first_trailing_zero_ul --e=stdc_first_trailing_zero_ull --e=stdc_first_trailing_zero_us --e=stdc_has_single_bit_uc --e=stdc_has_single_bit_ui --e=stdc_has_single_bit_ul --e=stdc_has_single_bit_ull --e=stdc_has_single_bit_us --e=stdc_leading_ones_uc --e=stdc_leading_ones_ui --e=stdc_leading_ones_ul --e=stdc_leading_ones_ull --e=stdc_leading_ones_us --e=stdc_leading_zeros_uc --e=stdc_leading_zeros_ui --e=stdc_leading_zeros_ul --e=stdc_leading_zeros_ull --e=stdc_leading_zeros_us --e=stdc_trailing_ones_uc --e=stdc_trailing_ones_ui --e=stdc_trailing_ones_ul --e=stdc_trailing_ones_ull --e=stdc_trailing_ones_us --e=stdc_trailing_zeros_uc --e=stdc_trailing_zeros_ui --e=stdc_trailing_zeros_ul --e=stdc_trailing_zeros_ull --e=stdc_trailing_zeros_us --e=abs --e=atof --e=atoi --e=atol --e=atoll --e=bsearch --e=div --e=labs --e=ldiv --e=llabs --e=lldiv --e=qsort --e=qsort_r --e=rand --e=srand --e=strfromd --e=strfromf --e=strfroml --e=s
canf --e=snprintf --e=sprintf --e=sscanf --e=vfprintf --e=vprintf --e=vsnprintf --e=vsprintf --e=epoll_create --e=epoll_create1 --e=epoll_ctl --e=epoll_pwait --e=epoll_wait --e=madvise --e=mincore --e=mlock --e=mlock2 --e=mlockall --e=mmap --e=mprotect --e=msync --e=munlock --e=munlockall --e=munmap --e=posix_madvise --e=shm_open --e=shm_unlink --e=getrandom --e=getrlimit --e=setrlimit --e=sendfile --e=chmod --e=fchmod --e=fchmodat --e=fstat --e=lstat --e=mkdir --e=mkdirat --e=stat --e=fstatvfs --e=statvfs --e=uname --e=wait --e=wait4 --e=waitpid --e=prctl --e=getauxval --e=cfgetispeed --e=cfgetospeed --e=cfsetispeed --e=cfsetospeed --e=tcdrain --e=tcflow --e=tcflush --e=tcgetattr --e=tcgetsid --e=tcsendbreak --e=tcsetattr --e=access --e=chdir --e=close --e=dup --e=dup2 --e=dup3 --e=execve --e=fchdir --e=fpathconf --e=fsync --e=ftruncate --e=getcwd --e=geteuid --e=getpid --e=getppid --e=getuid --e=isatty --e=link --e=linkat --e=lseek --e=pathconf --e=pipe --e=pread --e=pwrite --e=read --e=readlink --e=readlinkat --e=rmdir --e=symlink --e=symlinkat --e=sysconf --e=truncate --e=unlink --e=unlinkat --e=write --e=wctob --e=__assert_fail --e=__stack_chk_fail --e=closedir --e=dirfd --e=opendir --e=readdir --e=htonl --e=htons --e=ntohl --e=ntohs --e=pthread_atfork --e=pthread_attr_destroy --e=pthread_attr_getdetachstate --e=pthread_attr_getguardsize --e=pthread_attr_getstack --e=pthread_attr_getstacksize --e=pthread_attr_init --e=pthread_attr_setdetachstate --e=pthread_attr_setguardsize --e=pthread_attr_setstack --e=pthread_attr_setstacksize --e=pthread_condattr_destroy --e=pthread_condattr_getclock --e=pthread_condattr_getpshared --e=pthread_condattr_init --e=pthread_condattr_setclock --e=pthread_condattr_setpshared --e=pthread_create --e=pthread_detach --e=pthread_equal --e=pthread_exit --e=pthread_getname_np --e=pthread_getspecific --e=pthread_join --e=pthread_key_create --e=pthread_key_delete --e=pthread_mutex_destroy --e=pthread_mutex_init --e=pthread_mutex_lock --e=pthread_mutex_unlock --e=pthread_mutexattr_destroy --e=pthread_mutexattr_getpshared --e=pthread_mutexattr_getrobust --e=pthread_mutexattr_gettype --e=pthread_mutexattr_init --e=pthread_mutexattr_setpshared --e=pthread_mutexattr_setrobust --e=pthread_mutexattr_settype --e=pthread_once --e=pthread_rwlock_destroy --e=pthread_rwlock_init --e=pthread_rwlock_rdlock --e=pthread_rwlock_timedrdlock --e=pthread_rwlock_timedwrlock --e=pthread_rwlock_tryrdlock --e=pthread_rwlock_trywrlock --e=pthread_rwlock_unlock --e=pthread_rwlock_wrlock --e=pthread_rwlockattr_destroy --e=pthread_rwlockattr_getkind_np --e=pthread_rwlockattr_getpshared --e=pthread_rwlockattr_init --e=pthread_rwlockattr_setkind_np --e=pthread_rwlockattr_setpshared --e=pthread_self --e=pthread_setname_np --e=pthread_setspecific --e=__sched_getcpucount --e=longjmp --e=setjmp --e=clearerr --e=clearerr_unlocked --e=fclose --e=feof --e=feof_unlocked --e=ferror --e=ferror_unlocked --e=fflush --e=fgetc --e=fgetc_unlocked --e=fgets --e=flockfile --e=fopen --e=fopencookie --e=fputc --e=fputs --e=fread --e=fread_unlocked --e=fseek --e=fseeko --e=ftell --e=ftello --e=funlockfile --e=fwrite --e=fwrite_unlocked --e=getc --e=getc_unlocked --e=getchar --e=getchar_unlocked --e=putc --e=putchar --e=puts --e=setbuf --e=setvbuf --e=stderr --e=stdin --e=stdout --e=ungetc --e=_Exit --e=abort --e=at_quick_exit --e=atexit --e=exit --e=getenv --e=quick_exit --e=kill --e=raise --e=sigaction --e=sigaddset --e=sigaltstack --e=sigdelset --e=sigemptyset --e=sigfillset --e=signal --e=sigprocmask --e=posix_spawn --e=posix_spawn_file_actions_addclose --e=posix_spawn_file_actions_adddup2 --e=posix_spawn_file_actions_addopen --e=posix_spawn_file_actions_destroy --e=posix_spawn_file_actions_init --e=hcreate --e=hcreate_r --e=hdestroy --e=hdestroy_r --e=hsearch --e=hsearch_r --e=insque --e=remque --e=call_once --e=cnd_broadcast --e=cnd_destroy --e=cnd_init --e=cnd_signal --e=cnd_wait --e=mtx_destroy --e=mtx_init --e=mtx_lock --e=mtx_unlock --e=thrd_create --e=thrd_current --e=thrd_detach --e=thrd_equal --e=thrd_exit --e=thrd_join --e=tss_cr
ate --e=tss_delete --e=tss_get --e=tss_set --e=asctime --e=asctime_r --e=clock --e=clock_gettime --e=difftime --e=gettimeofday --e=gmtime --e=gmtime_r --e=mktime --e=nanosleep --e=time --e=__llvm_libc_syscall --e=_exit --e=environ --e=execv --e=fork --e=getopt --e=optarg --e=opterr --e=optind --e=optopt --e=swab --e=select --e=bind --e=socket --e=feclearexcept --e=fedisableexcept --e=feenableexcept --e=fegetenv --e=fegetexcept --e=fegetexceptflag --e=fegetround --e=feholdexcept --e=feraiseexcept --e=fesetenv --e=fesetexcept --e=fesetexceptflag --e=fesetround --e=fetestexcept --e=fetestexceptflag --e=feupdateenv --e=acosf --e=acoshf --e=asinf --e=asinhf --e=atan2f --e=atanf --e=atanhf --e=canonicalize --e=canonicalizef --e=canonicalizel --e=cbrt --e=cbrtf --e=ceil --e=ceilf --e=ceill --e=copysign --e=copysignf --e=copysignl --e=cos --e=cosf --e=coshf --e=cospif --e=erff --e=exp --e=exp10 --e=exp10f --e=exp2 --e=exp2f --e=exp2m1f --e=expf --e=expm1 --e=expm1f --e=fabs --e=fabsf --e=fabsl --e=fdim --e=fdimf --e=fdiml --e=floor --e=floorf --e=floorl --e=fma --e=fmaf --e=fmax --e=fmaxf --e=fmaximum --e=fmaximum_mag --e=fmaximum_mag_num --e=fmaximum_mag_numf --e=fmaximum_mag_numl --e=fmaximum_magf --e=fmaximum_magl --e=fmaximum_num --e=fmaximum_numf --e=fmaximum_numl --e=fmaximumf --e=fmaximuml --e=fmaxl --e=fmin --e=fminf --e=fminimum --e=fminimum_mag --e=fminimum_mag_num --e=fminimum_mag_numf --e=fminimum_mag_numl --e=fminimum_magf --e=fminimum_magl --e=fminimum_num --e=fminimum_numf --e=fminimum_numl --e=fminimumf --e=fminimuml --e=fminl --e=fmod --e=fmodf --e=fmodl --e=fmul --e=frexp --e=frexpf --e=frexpl --e=fromfp --e=fromfpf --e=fromfpl --e=fromfpx --e=fromfpxf --e=fromfpxl --e=hypot --e=hypotf --e=ilogb --e=ilogbf --e=ilogbl --e=isnan --e=isnanf --e=isnanl --e=ldexp --e=ldexpf --e=ldexpl --e=llogb --e=llogbf --e=llogbl --e=llrint --e=llrintf --e=llrintl --e=llround --e=llroundf --e=llroundl --e=log --e=log10 --e=log10f --e=log1p --e=log1pf --e=log2 --e=log2f --e=logb --e=logbf --e=logbl --e=logf --e=lrint --e=lrintf --e=lrintl --e=lround --e=lroundf --e=lroundl --e=modf --e=modff --e=modfl --e=nan --e=nanf --e=nanl --e=nearbyint --e=nearbyintf --e=nearbyintl --e=nextafter --e=nextafterf --e=nextafterl --e=nextdown --e=nextdownf --e=nextdownl --e=nexttoward --e=nexttowardf --e=nexttowardl --e=nextup --e=nextupf --e=nextupl --e=powf --e=remainder --e=remainderf --e=remainderl --e=remquo --e=remquof --e=remquol --e=rint --e=rintf --e=rintl --e=round --e=roundeven --e=roundevenf --e=roundevenl --e=roundf --e=roundl --e=scalbn --e=scalbnf --e=scalbnl --e=sin --e=sincos --e=sincosf --e=sinf --e=sinhf --e=sinpif --e=sqrt --e=sqrtf --e=sqrtl --e=tan --e=tanf --e=tanhf --e=trunc --e=truncf --e=truncl --e=ufromfp --e=ufromfpf --e=ufromfpl --e=ufromfpx --e=ufromfpxf --e=ufromfpxl --e=canonicalizef128 --e=ceilf128 --e=copysignf128 --e=fabsf128 --e=fdimf128 --e=floorf128 --e=fmaxf128 --e=fmaximum_mag_numf128 --e=fmaximum_magf128 --e=fmaximum_numf128 --e=fmaximumf128 --e=fminf128 --e=fminimum_mag_numf128 --e=fminimum_magf128 --e=fminimum_numf128 --e=fminimumf128 --e=fmodf128 --e=frexpf128 --e=fromfpf128 --e=fromfpxf128 --e=ilogbf128 --e=ldexpf128 --e=llogbf128 --e=llrintf128 --e=llroundf128 --e=logbf128 --e=lrintf128 --e=lroundf128 --e=modff128 --e=nanf128 --e=nearbyintf128 --e=nextafterf128 --e=nextdownf128 --e=nextupf128 --e=remquof128 --e=rintf128 --e=roundevenf128 --e=roundf128 --e=scalbnf128 --e=sqrtf128 --e=truncf128 --e=ufromfpf128 --e=ufromfpxf128 /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/config/linux/api.td
error: fsfilcnt_t not found in any standard spec.

ninja: build stopped: subcommand failed.
['ninja', 'libc'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 164, in step
    yield
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 121, in main
    run_command(['ninja', 'libc'])
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 179, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', 'libc']' returned non-zero exit status 1.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 17, 2024

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian-fullbuild-dbg-asan 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/171/builds/2335

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-fullbuild-dbg-asan/build
@@@BUILD_STEP build libc@@@
Running: ninja libc
[1/1] Generating sys/statvfs.h
FAILED: projects/libc/include/sys/statvfs.h /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/projects/libc/include/sys/statvfs.h 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/include && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/bin/libc-hdrgen -o /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/projects/libc/include/sys/statvfs.h --header sys/statvfs.h --def /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/include/sys/statvfs.h.def -I /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc --e=isalnum --e=isalpha --e=isascii --e=isblank --e=iscntrl --e=isdigit --e=isgraph --e=islower --e=isprint --e=ispunct --e=isspace --e=isupper --e=isxdigit --e=toascii --e=tolower --e=toupper --e=dlclose --e=dlerror --e=dlopen --e=dlsym --e=errno --e=creat --e=fcntl --e=open --e=openat --e=sched_get_priority_max --e=sched_get_priority_min --e=sched_getaffinity --e=sched_getparam --e=sched_getscheduler --e=sched_rr_get_interval --e=sched_setaffinity --e=sched_setparam --e=sched_setscheduler --e=sched_yield --e=bcmp --e=bcopy --e=bzero --e=index --e=memccpy --e=memchr --e=memcmp --e=memcpy --e=memmem --e=memmove --e=mempcpy --e=memrchr --e=memset --e=memset_explicit --e=rindex --e=stpcpy --e=stpncpy --e=strcasecmp --e=strcasestr --e=strcat --e=strchr --e=strchrnul --e=strcmp --e=strcoll --e=strcpy --e=strcspn --e=strdup --e=strerror --e=strerror_r --e=strlcat --e=strlcpy --e=strlen --e=strncasecmp --e=strncat --e=strncmp --e=strncpy --e=strndup --e=strnlen --e=strpbrk --e=strrchr --e=strsep --e=strsignal --e=strspn --e=strstr --e=strtok --e=strtok_r --e=strxfrm --e=imaxabs --e=imaxdiv --e=strtoimax --e=strtoumax --e=stdc_bit_ceil_uc --e=stdc_bit_ceil_ui --e=stdc_bit_ceil_ul --e=stdc_bit_ceil_ull --e=stdc_bit_ceil_us --e=stdc_bit_floor_uc --e=stdc_bit_floor_ui --e=stdc_bit_floor_ul --e=stdc_bit_floor_ull --e=stdc_bit_floor_us --e=stdc_bit_width_uc --e=stdc_bit_width_ui --e=stdc_bit_width_ul --e=stdc_bit_width_ull --e=stdc_bit_width_us --e=stdc_count_ones_uc --e=stdc_count_ones_ui --e=stdc_count_ones_ul --e=stdc_count_ones_ull --e=stdc_count_ones_us --e=stdc_count_zeros_uc --e=stdc_count_zeros_ui --e=stdc_count_zeros_ul --e=stdc_count_zeros_ull --e=stdc_count_zeros_us --e=stdc_first_leading_one_uc --e=stdc_first_leading_one_ui --e=stdc_first_leading_one_ul --e=stdc_first_leading_one_ull --e=stdc_first_leading_one_us --e=stdc_first_leading_zero_uc --e=stdc_first_leading_zero_ui --e=stdc_first_leading_zero_ul --e=stdc_first_leading_zero_ull --e=stdc_first_leading_zero_us --e=stdc_first_trailing_one_uc --e=stdc_first_trailing_one_ui --e=stdc_first_trailing_one_ul --e=stdc_first_trailing_one_ull --e=stdc_first_trailing_one_us --e=stdc_first_trailing_zero_uc --e=stdc_first_trailing_zero_ui --e=stdc_first_trailing_zero_ul --e=stdc_first_trailing_zero_ull --e=stdc_first_trailing_zero_us --e=stdc_has_single_bit_uc --e=stdc_has_single_bit_ui --e=stdc_has_single_bit_ul --e=stdc_has_single_bit_ull --e=stdc_has_single_bit_us --e=stdc_leading_ones_uc --e=stdc_leading_ones_ui --e=stdc_leading_ones_ul --e=stdc_leading_ones_ull --e=stdc_leading_ones_us --e=stdc_leading_zeros_uc --e=stdc_leading_zeros_ui --e=stdc_leading_zeros_ul --e=stdc_leading_zeros_ull --e=stdc_leading_zeros_us --e=stdc_trailing_ones_uc --e=stdc_trailing_ones_ui --e=stdc_trailing_ones_ul --e=stdc_trailing_ones_ull --e=stdc_trailing_ones_us --e=stdc_trailing_zeros_uc --e=stdc_trailing_zeros_ui --e=stdc_trailing_zeros_ul --e=stdc_trailing_zeros_ull --e=stdc_trailing_zeros_us --e=abs --e=atof --e=atoi --e=atol --e=atoll --e=bsearch --e=div --e=labs --e=ldiv --e=llabs --e=lldiv --e=qsort --e=qsort_r --e=rand --e=srand --e=strfromd -
e=remove --e=rename --e=scanf --e=snprintf --e=sprintf --e=sscanf --e=vfprintf --e=vprintf --e=vsnprintf --e=vsprintf --e=epoll_create --e=epoll_create1 --e=epoll_ctl --e=epoll_pwait --e=epoll_wait --e=madvise --e=mincore --e=mlock --e=mlock2 --e=mlockall --e=mmap --e=mprotect --e=msync --e=munlock --e=munlockall --e=munmap --e=posix_madvise --e=shm_open --e=shm_unlink --e=getrandom --e=getrlimit --e=setrlimit --e=sendfile --e=chmod --e=fchmod --e=fchmodat --e=fstat --e=lstat --e=mkdir --e=mkdirat --e=stat --e=fstatvfs --e=statvfs --e=uname --e=wait --e=wait4 --e=waitpid --e=prctl --e=getauxval --e=cfgetispeed --e=cfgetospeed --e=cfsetispeed --e=cfsetospeed --e=tcdrain --e=tcflow --e=tcflush --e=tcgetattr --e=tcgetsid --e=tcsendbreak --e=tcsetattr --e=access --e=chdir --e=close --e=dup --e=dup2 --e=dup3 --e=execve --e=fchdir --e=fpathconf --e=fsync --e=ftruncate --e=getcwd --e=geteuid --e=getpid --e=getppid --e=getuid --e=isatty --e=link --e=linkat --e=lseek --e=pathconf --e=pipe --e=pread --e=pwrite --e=read --e=readlink --e=readlinkat --e=rmdir --e=symlink --e=symlinkat --e=sysconf --e=truncate --e=unlink --e=unlinkat --e=write --e=wctob --e=__assert_fail --e=__stack_chk_fail --e=closedir --e=dirfd --e=opendir --e=readdir --e=htonl --e=htons --e=ntohl --e=ntohs --e=pthread_atfork --e=pthread_attr_destroy --e=pthread_attr_getdetachstate --e=pthread_attr_getguardsize --e=pthread_attr_getstack --e=pthread_attr_getstacksize --e=pthread_attr_init --e=pthread_attr_setdetachstate --e=pthread_attr_setguardsize --e=pthread_attr_setstack --e=pthread_attr_setstacksize --e=pthread_condattr_destroy --e=pthread_condattr_getclock --e=pthread_condattr_getpshared --e=pthread_condattr_init --e=pthread_condattr_setclock --e=pthread_condattr_setpshared --e=pthread_create --e=pthread_detach --e=pthread_equal --e=pthread_exit --e=pthread_getname_np --e=pthread_getspecific --e=pthread_join --e=pthread_key_create --e=pthread_key_delete --e=pthread_mutex_destroy --e=pthread_mutex_init --e=pthread_mutex_lock --e=pthread_mutex_unlock --e=pthread_mutexattr_destroy --e=pthread_mutexattr_getpshared --e=pthread_mutexattr_getrobust --e=pthread_mutexattr_gettype --e=pthread_mutexattr_init --e=pthread_mutexattr_setpshared --e=pthread_mutexattr_setrobust --e=pthread_mutexattr_settype --e=pthread_once --e=pthread_rwlock_destroy --e=pthread_rwlock_init --e=pthread_rwlock_rdlock --e=pthread_rwlock_timedrdlock --e=pthread_rwlock_timedwrlock --e=pthread_rwlock_tryrdlock --e=pthread_rwlock_trywrlock --e=pthread_rwlock_unlock --e=pthread_rwlock_wrlock --e=pthread_rwlockattr_destroy --e=pthread_rwlockattr_getkind_np --e=pthread_rwlockattr_getpshared --e=pthread_rwlockattr_init --e=pthread_rwlockattr_setkind_np --e=pthread_rwlockattr_setpshared --e=pthread_self --e=pthread_setname_np --e=pthread_setspecific --e=__sched_getcpucount --e=longjmp --e=setjmp --e=clearerr --e=clearerr_unlocked --e=fclose --e=feof --e=feof_unlocked --e=ferror --e=ferror_unlocked --e=fflush --e=fgetc --e=fgetc_unlocked --e=fgets --e=flockfile --e=fopen --e=fopencookie --e=fputc --e=fputs --e=fread --e=fread_unlocked --e=fseek --e=fseeko --e=ftell --e=ftello --e=funlockfile --e=fwrite --e=fwrite_unlocked --e=getc --e=getc_unlocked --e=getchar --e=getchar_unlocked --e=putc --e=putchar --e=puts --e=setbuf --e=setvbuf --e=stderr --e=stdin --e=stdout --e=ungetc --e=_Exit --e=abort --e=at_quick_exit --e=atexit --e=exit --e=getenv --e=quick_exit --e=kill --e=raise --e=sigaction --e=sigaddset --e=sigaltstack --e=sigdelset --e=sigemptyset --e=sigfillset --e=signal --e=sigprocmask --e=posix_spawn --e=posix_spawn_file_actions_addclose --e=posix_spawn_file_actions_adddup2 --e=posix_spawn_file_actions_addopen --e=posix_spawn_file_actions_destroy --e=posix_spawn_file_actions_init --e=hcreate --e=hcreate_r --e=hdestroy --e=hdestroy_r --e=hsearch --e=hsearch_r --e=insque --e=remque --e=call_once --e=cnd_broadcast --e=cnd_destroy --e=cnd_init --e=cnd_signal --e=cnd_wait --e=mtx_destroy --e=mtx_init --e=mtx_lock --e=mtx_unlock --e=thrd_create --e=thrd_current --e=thrd_detach --e=thrd_equal --e=thrd_exit
--e=thrd_join --e=tss_create --e=tss_delete --e=tss_get --e=tss_set --e=asctime --e=asctime_r --e=clock --e=clock_gettime --e=difftime --e=gettimeofday --e=gmtime --e=gmtime_r --e=mktime --e=nanosleep --e=time --e=__llvm_libc_syscall --e=_exit --e=environ --e=execv --e=fork --e=getopt --e=optarg --e=opterr --e=optind --e=optopt --e=swab --e=select --e=bind --e=socket --e=feclearexcept --e=fedisableexcept --e=feenableexcept --e=fegetenv --e=fegetexcept --e=fegetexceptflag --e=fegetround --e=feholdexcept --e=feraiseexcept --e=fesetenv --e=fesetexcept --e=fesetexceptflag --e=fesetround --e=fetestexcept --e=fetestexceptflag --e=feupdateenv --e=acosf --e=acoshf --e=asinf --e=asinhf --e=atan2f --e=atanf --e=atanhf --e=canonicalize --e=canonicalizef --e=canonicalizel --e=cbrt --e=cbrtf --e=ceil --e=ceilf --e=ceill --e=copysign --e=copysignf --e=copysignl --e=cos --e=cosf --e=coshf --e=cospif --e=erff --e=exp --e=exp10 --e=exp10f --e=exp2 --e=exp2f --e=exp2m1f --e=expf --e=expm1 --e=expm1f --e=fabs --e=fabsf --e=fabsl --e=fdim --e=fdimf --e=fdiml --e=floor --e=floorf --e=floorl --e=fma --e=fmaf --e=fmax --e=fmaxf --e=fmaximum --e=fmaximum_mag --e=fmaximum_mag_num --e=fmaximum_mag_numf --e=fmaximum_mag_numl --e=fmaximum_magf --e=fmaximum_magl --e=fmaximum_num --e=fmaximum_numf --e=fmaximum_numl --e=fmaximumf --e=fmaximuml --e=fmaxl --e=fmin --e=fminf --e=fminimum --e=fminimum_mag --e=fminimum_mag_num --e=fminimum_mag_numf --e=fminimum_mag_numl --e=fminimum_magf --e=fminimum_magl --e=fminimum_num --e=fminimum_numf --e=fminimum_numl --e=fminimumf --e=fminimuml --e=fminl --e=fmod --e=fmodf --e=fmodl --e=fmul --e=frexp --e=frexpf --e=frexpl --e=fromfp --e=fromfpf --e=fromfpl --e=fromfpx --e=fromfpxf --e=fromfpxl --e=hypot --e=hypotf --e=ilogb --e=ilogbf --e=ilogbl --e=isnan --e=isnanf --e=isnanl --e=ldexp --e=ldexpf --e=ldexpl --e=llogb --e=llogbf --e=llogbl --e=llrint --e=llrintf --e=llrintl --e=llround --e=llroundf --e=llroundl --e=log --e=log10 --e=log10f --e=log1p --e=log1pf --e=log2 --e=log2f --e=logb --e=logbf --e=logbl --e=logf --e=lrint --e=lrintf --e=lrintl --e=lround --e=lroundf --e=lroundl --e=modf --e=modff --e=modfl --e=nan --e=nanf --e=nanl --e=nearbyint --e=nearbyintf --e=nearbyintl --e=nextafter --e=nextafterf --e=nextafterl --e=nextdown --e=nextdownf --e=nextdownl --e=nexttoward --e=nexttowardf --e=nexttowardl --e=nextup --e=nextupf --e=nextupl --e=powf --e=remainder --e=remainderf --e=remainderl --e=remquo --e=remquof --e=remquol --e=rint --e=rintf --e=rintl --e=round --e=roundeven --e=roundevenf --e=roundevenl --e=roundf --e=roundl --e=scalbn --e=scalbnf --e=scalbnl --e=sin --e=sincos --e=sincosf --e=sinf --e=sinhf --e=sinpif --e=sqrt --e=sqrtf --e=sqrtl --e=tan --e=tanf --e=tanhf --e=trunc --e=truncf --e=truncl --e=ufromfp --e=ufromfpf --e=ufromfpl --e=ufromfpx --e=ufromfpxf --e=ufromfpxl --e=canonicalizef128 --e=ceilf128 --e=copysignf128 --e=fabsf128 --e=fdimf128 --e=floorf128 --e=fmaxf128 --e=fmaximum_mag_numf128 --e=fmaximum_magf128 --e=fmaximum_numf128 --e=fmaximumf128 --e=fminf128 --e=fminimum_mag_numf128 --e=fminimum_magf128 --e=fminimum_numf128 --e=fminimumf128 --e=fmodf128 --e=frexpf128 --e=fromfpf128 --e=fromfpxf128 --e=ilogbf128 --e=ldexpf128 --e=llogbf128 --e=llrintf128 --e=llroundf128 --e=logbf128 --e=lrintf128 --e=lroundf128 --e=modff128 --e=nanf128 --e=nearbyintf128 --e=nextafterf128 --e=nextdownf128 --e=nextupf128 --e=remquof128 --e=rintf128 --e=roundevenf128 --e=roundf128 --e=scalbnf128 --e=sqrtf128 --e=truncf128 --e=ufromfpf128 --e=ufromfpxf128 /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/config/linux/api.td
error: fsfilcnt_t not found in any standard spec.

ninja: build stopped: subcommand failed.
['ninja', 'libc'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 164, in step
    yield
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 121, in main
    run_command(['ninja', 'libc'])
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 179, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', 'libc']' returned non-zero exit status 1.
@@@STEP_FAILURE@@@
@@@BUILD_STEP build libc-startup@@@
Running: ninja libc-startup
ninja: no work to do.
@@@BUILD_STEP libc-unit-tests@@@
Running: ninja libc-unit-tests

michaelrj-google added a commit to michaelrj-google/llvm-project that referenced this pull request Jul 17, 2024
The statfvs header was not generating for a while. Patch llvm#98983 added it
to the list of headers, but it's apparently broken right now so this
patch comments it out until it can be fixed.
michaelrj-google added a commit that referenced this pull request Jul 17, 2024
The statfvs header was not generating for a while. Patch #98983 added it
to the list of headers, but it's apparently broken right now so this
patch comments it out until it can be fixed.
Harini0924 pushed a commit to Harini0924/llvm-project that referenced this pull request Jul 22, 2024
- final run of integration tests to deal with incorrect YAML input
(finished sys headers, will finish the rest today)
- add any new functions made in recent PRs
Harini0924 pushed a commit to Harini0924/llvm-project that referenced this pull request Jul 22, 2024
The statfvs header was not generating for a while. Patch llvm#98983 added it
to the list of headers, but it's apparently broken right now so this
patch comments it out until it can be fixed.
JoshuaMBa pushed a commit to JoshuaMBa/llvm-project that referenced this pull request Jul 23, 2024
- final run of integration tests to deal with incorrect YAML input
(finished sys headers, will finish the rest today)
- add any new functions made in recent PRs
sgundapa pushed a commit to sgundapa/upstream_effort that referenced this pull request Jul 23, 2024
- final run of integration tests to deal with incorrect YAML input
(finished sys headers, will finish the rest today)
- add any new functions made in recent PRs
sgundapa pushed a commit to sgundapa/upstream_effort that referenced this pull request Jul 23, 2024
The statfvs header was not generating for a while. Patch llvm#98983 added it
to the list of headers, but it's apparently broken right now so this
patch comments it out until it can be fixed.
yuxuanchen1997 pushed a commit that referenced this pull request Jul 25, 2024
Summary:
- final run of integration tests to deal with incorrect YAML input
(finished sys headers, will finish the rest today)
- add any new functions made in recent PRs

Test Plan: 

Reviewers: 

Subscribers: 

Tasks: 

Tags: 


Differential Revision: https://phabricator.intern.facebook.com/D60250848
yuxuanchen1997 pushed a commit that referenced this pull request Jul 25, 2024
Summary:
The statfvs header was not generating for a while. Patch #98983 added it
to the list of headers, but it's apparently broken right now so this
patch comments it out until it can be fixed.

Test Plan: 

Reviewers: 

Subscribers: 

Tasks: 

Tags: 


Differential Revision: https://phabricator.intern.facebook.com/D60250898
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants