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

compiler-rt on mips64el fails to build with `static assertion failed due to requirement 'struct_kernel_stat_sz == sizeof(stat)': #57521

Closed
sylvestre opened this issue Sep 2, 2022 · 4 comments

Comments

@sylvestre
Copy link
Collaborator

sylvestre commented Sep 2, 2022

With 15 rc3:

"/home/sylvestre/llvm-toolchain-15-15.0.0~+rc3/build-llvm/./bin/clang++" --target=mipsel-unknown-linux-gnu -DHAVE_RPC_XDR_H=0 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I"/home/sylvestre/llvm-toolchain-15-15.0.0~+rc3/compiler-rt/lib/sanitizer_common/.." -I"/home/sylvestre/llvm-toolchain-15-15.0.0~+rc3/build-llvm/include" -fstack-protector-strong -Wformat -Werror=format-security -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 -Wno-comment -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/home/sylvestre/llvm-toolchain-15-15.0.0~+rc3/build-llvm/runtimes/runtimes-bins=build-llvm/runtimes/runtimes-bins -ffile-prefix-map=/home/sylvestre/llvm-toolchain-15-15.0.0~+rc3/= -no-canonical-prefixes -Wall -std=c++14 -Wno-unused-parameter -O3 -DNDEBUG -mips32r2 -mabi=32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -nostdinc++ -Wno-format -fno-rtti -Wglobal-constructors -MD -MT compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.mipsel.dir/sanitizer_platform_limits_linux.cpp.o -MF compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.mipsel.dir/sanitizer_platform_limits_linux.cpp.o.d -o compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.mipsel.dir/sanitizer_platform_limits_linux.cpp.o -c '/home/sylvestre/llvm-toolchain-15-15.0.0~+rc3/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cpp'
/home/sylvestre/llvm-toolchain-15-15.0.0~+rc3/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cpp:67:1: error: static assertion failed due to requirement 'struct_kernel_stat_sz == sizeof(stat)': 
COMPILER_CHECK(struct_kernel_stat_sz == sizeof(struct stat));
^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sylvestre/llvm-toolchain-15-15.0.0~+rc3/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h:352:30: note: expanded from macro 'COMPILER_CHECK'
#define COMPILER_CHECK(pred) static_assert(pred, "")
                             ^             ~~~~
1 error generated.

it was working with -14:
https://buildd.debian.org/status/package.php?p=llvm-toolchain-14&suite=sid

@llvmbot
Copy link
Collaborator

llvmbot commented Sep 2, 2022

@llvm/issue-subscribers-backend-mips

@sylvestre
Copy link
Collaborator Author

@llvm/issue-subscribers-backend-mips any idea what is going on here? thanks

@sylvestre
Copy link
Collaborator Author

@AdrianBunk
Copy link

This issue is a duplicate of #55499

@EugeneZelenko EugeneZelenko closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2022
@EugeneZelenko EugeneZelenko added the duplicate Resolved as duplicate label Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants