[libc-commits] [libc] [llvm] Reland: [libc] Move off_t and stdio macros to proxy hdrs (PR #98384)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Thu Jul 11 11:49:34 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,utils` at step 6 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 6 (build-unified-tree) failure: build (failure)
...
4.933 [860/58/478] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.atanhf.dir/atanhf.cpp.o
4.934 [859/58/479] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.f16fma.dir/f16fma.cpp.o
4.935 [858/58/480] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.f16sqrtl.dir/f16sqrtl.cpp.o
4.936 [857/58/481] Building CXX object libc/src/stdfix/CMakeFiles/libc.src.stdfix.exphk.dir/exphk.cpp.o
4.943 [856/58/482] Building CXX object libc/src/stdfix/CMakeFiles/libc.src.stdfix.expk.dir/expk.cpp.o
4.964 [855/58/483] Building CXX object libc/src/stdio/CMakeFiles/libc.src.stdio.sscanf.dir/sscanf.cpp.o
4.972 [854/58/484] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.explogxf.dir/explogxf.cpp.o
4.973 [853/58/485] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.f16fmal.dir/f16fmal.cpp.o
4.981 [852/58/486] Building CXX object libc/src/stdio/CMakeFiles/libc.src.stdio.scanf.dir/scanf.cpp.o
4.989 [851/58/487] Building CXX object libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fileno.dir/fileno.cpp.o
FAILED: libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fileno.dir/fileno.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 -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 -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY=1 -std=gnu++17 -MD -MT libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fileno.dir/fileno.cpp.o -MF libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fileno.dir/fileno.cpp.o.d -o libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fileno.dir/fileno.cpp.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/libc/src/stdio/generic/fileno.cpp
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libc/src/stdio/generic/fileno.cpp:13:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libc/src/__support/File/file.h:12:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libc/hdr/stdio_macros.h:19:
In file included from /usr/include/stdio.h:42:
/usr/include/x86_64-linux-gnu/bits/types/FILE.h:7:25: error: typedef redefinition with different types ('struct _IO_FILE' vs 'struct FILE')
    7 | typedef struct _IO_FILE FILE;
      |                         ^
/build/buildbot/premerge-monolithic-linux/llvm-project/libc/include/llvm-libc-types/FILE.h:12:21: note: previous definition is here
   12 | typedef struct FILE FILE;
      |                     ^
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libc/src/stdio/generic/fileno.cpp:13:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libc/src/__support/File/file.h:12:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libc/hdr/stdio_macros.h:19:
In file included from /usr/include/stdio.h:891:
/usr/include/x86_64-linux-gnu/bits/stdio.h:58:10: error: member access into incomplete type 'FILE'
   58 |   return __getc_unlocked_body (__fp);
      |          ^
/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h:103:27: note: expanded from macro '__getc_unlocked_body'
  103 |   (__glibc_unlikely ((_fp)->_IO_read_ptr >= (_fp)->_IO_read_end)        \
      |                           ^
/build/buildbot/premerge-monolithic-linux/llvm-project/libc/include/llvm-libc-types/FILE.h:12:16: note: forward declaration of 'FILE'
   12 | typedef struct FILE FILE;
      |                ^
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libc/src/stdio/generic/fileno.cpp:13:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libc/src/__support/File/file.h:12:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libc/hdr/stdio_macros.h:19:
In file included from /usr/include/stdio.h:891:
/usr/include/x86_64-linux-gnu/bits/stdio.h:58:10: error: member access into incomplete type 'FILE'
   58 |   return __getc_unlocked_body (__fp);
      |          ^
/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h:103:50: note: expanded from macro '__getc_unlocked_body'
  103 |   (__glibc_unlikely ((_fp)->_IO_read_ptr >= (_fp)->_IO_read_end)        \
      |                                                  ^
/build/buildbot/premerge-monolithic-linux/llvm-project/libc/include/llvm-libc-types/FILE.h:12:16: note: forward declaration of 'FILE'
   12 | typedef struct FILE FILE;
      |                ^
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libc/src/stdio/generic/fileno.cpp:13:

```

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


More information about the libc-commits mailing list