[libc-commits] [libc] [libc] Removed __LIBC_CONST_ATTR attribute and updated math.yaml with the new math functions (PR #99571)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Thu Jul 18 17:33:17 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `libc` at step 6 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 6 (build-unified-tree) failure: build (failure)
...
6.206 [780/58/564] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strncat.dir/strncat.cpp.o
6.207 [779/58/565] Building CXX object libc/src/sys/resource/linux/CMakeFiles/libc.src.sys.resource.linux.getrlimit.dir/getrlimit.cpp.o
6.224 [778/58/566] Building CXX object libc/src/string/CMakeFiles/libc.src.string.stpncpy.dir/stpncpy.cpp.o
6.225 [777/58/567] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strrchr.dir/strrchr.cpp.o
6.226 [776/58/568] Building CXX object libc/src/sys/sendfile/linux/CMakeFiles/libc.src.sys.sendfile.linux.sendfile.dir/sendfile.cpp.o
6.230 [775/58/569] Building CXX object libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.fchmod.dir/fchmod.cpp.o
6.230 [774/58/570] Building CXX object libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.stat.dir/stat.cpp.o
6.231 [773/58/571] Building CXX object libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.lstat.dir/lstat.cpp.o
6.231 [772/58/572] Building CXX object libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.fstat.dir/fstat.cpp.o
6.232 [771/58/573] Building CXX object libc/src/sys/statvfs/linux/CMakeFiles/libc.src.sys.statvfs.linux.statvfs.dir/statvfs.cpp.o
FAILED: libc/src/sys/statvfs/linux/CMakeFiles/libc.src.sys.statvfs.linux.statvfs.dir/statvfs.cpp.o 
/build/buildbot/premerge-monolithic-linux/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -I/build/buildbot/premerge-monolithic-linux/llvm-project/libc -isystem /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -std=gnu++17 -MD -MT libc/src/sys/statvfs/linux/CMakeFiles/libc.src.sys.statvfs.linux.statvfs.dir/statvfs.cpp.o -MF libc/src/sys/statvfs/linux/CMakeFiles/libc.src.sys.statvfs.linux.statvfs.dir/statvfs.cpp.o.d -o libc/src/sys/statvfs/linux/CMakeFiles/libc.src.sys.statvfs.linux.statvfs.dir/statvfs.cpp.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/libc/src/sys/statvfs/linux/statvfs.cpp
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libc/src/sys/statvfs/linux/statvfs.cpp:9:
/build/buildbot/premerge-monolithic-linux/llvm-project/libc/src/sys/statvfs/statvfs.h:12:10: fatal error: 'llvm-libc-types/struct_statvfs.h' file not found
   12 | #include "llvm-libc-types/struct_statvfs.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
6.232 [771/57/574] Building CXX object libc/src/sys/utsname/linux/CMakeFiles/libc.src.sys.utsname.linux.uname.dir/uname.cpp.o
6.232 [771/56/575] Building CXX object libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtof.dir/strtof.cpp.o
6.232 [771/55/576] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strcpy.dir/strcpy.cpp.o
6.232 [771/54/577] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strcspn.dir/strcspn.cpp.o
6.233 [771/53/578] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strdup.dir/strdup.cpp.o
6.233 [771/52/579] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strlcat.dir/strlcat.cpp.o
6.233 [771/51/580] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strlcpy.dir/strlcpy.cpp.o
6.233 [771/50/581] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strlen.dir/strlen.cpp.o
6.233 [771/49/582] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strndup.dir/strndup.cpp.o
6.234 [771/48/583] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strnlen.dir/strnlen.cpp.o
6.234 [771/47/584] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strpbrk.dir/strpbrk.cpp.o
6.234 [771/46/585] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strsep.dir/strsep.cpp.o
6.234 [771/45/586] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strstr.dir/strstr.cpp.o
6.234 [771/44/587] Building CXX object libc/src/string/CMakeFiles/libc.src.string.memset.dir/memset.cpp.o
6.234 [771/43/588] Building CXX object libc/src/sys/random/linux/CMakeFiles/libc.src.sys.random.linux.getrandom.dir/getrandom.cpp.o
6.235 [771/42/589] Building CXX object libc/src/sys/resource/linux/CMakeFiles/libc.src.sys.resource.linux.setrlimit.dir/setrlimit.cpp.o
6.235 [771/41/590] Building CXX object libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.chmod.dir/chmod.cpp.o
6.235 [771/40/591] Building CXX object libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.fchmodat.dir/fchmodat.cpp.o
6.235 [771/39/592] Building CXX object libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.mkdir.dir/mkdir.cpp.o
6.235 [771/38/593] Building CXX object libc/src/sys/stat/linux/CMakeFiles/libc.src.sys.stat.linux.mkdirat.dir/mkdirat.cpp.o
6.235 [771/37/594] Building CXX object libc/src/sys/statvfs/linux/CMakeFiles/libc.src.sys.statvfs.linux.fstatvfs.dir/fstatvfs.cpp.o
FAILED: libc/src/sys/statvfs/linux/CMakeFiles/libc.src.sys.statvfs.linux.fstatvfs.dir/fstatvfs.cpp.o 
/build/buildbot/premerge-monolithic-linux/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -I/build/buildbot/premerge-monolithic-linux/llvm-project/libc -isystem /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -std=gnu++17 -MD -MT libc/src/sys/statvfs/linux/CMakeFiles/libc.src.sys.statvfs.linux.fstatvfs.dir/fstatvfs.cpp.o -MF libc/src/sys/statvfs/linux/CMakeFiles/libc.src.sys.statvfs.linux.fstatvfs.dir/fstatvfs.cpp.o.d -o libc/src/sys/statvfs/linux/CMakeFiles/libc.src.sys.statvfs.linux.fstatvfs.dir/fstatvfs.cpp.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/libc/src/sys/statvfs/linux/fstatvfs.cpp
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libc/src/sys/statvfs/linux/fstatvfs.cpp:9:
/build/buildbot/premerge-monolithic-linux/llvm-project/libc/src/sys/statvfs/fstatvfs.h:12:10: fatal error: 'llvm-libc-types/struct_statvfs.h' file not found
   12 | #include "llvm-libc-types/struct_statvfs.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
6.235 [771/36/595] Building CXX object libc/src/stdlib/CMakeFiles/libc.src.stdlib.atof.dir/atof.cpp.o
6.237 [771/35/596] Building CXX object compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.x86_64.dir/sanitizer_errno.cpp.o
6.251 [771/34/597] Building CXX object compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.x86_64.dir/sanitizer_fuchsia.cpp.o
6.253 [771/33/598] Building CXX object compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.x86_64.dir/sanitizer_platform_limits_freebsd.cpp.o

```

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


More information about the libc-commits mailing list