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

ThreadElfCore.h: fails to build with error: static assertion failed due to requirement #117327

Open
sylvestre opened this issue Nov 22, 2024 · 2 comments

Comments

@sylvestre
Copy link
Collaborator

sylvestre commented Nov 22, 2024

on linux i386:

FAILED: tools/lldb/source/Plugins/Process/elf-core/CMakeFiles/lldbPluginProcessElfCore.dir/ThreadElfCore.cpp.o 
/opt/sccache//sccache /build/source/build-llvm/./bin/clang++ -DHAVE_ROUND -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/source/Plugins/Process/elf-core -I/build/source/lldb/source/Plugins/Process/elf-core -I/build/source/lldb/include -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/include -I/build/source/build-llvm/tools/clang/stage2-bins/include -I/build/source/llvm/include -I/usr/include/python3.11 -I/build/source/clang/include -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/../clang/include -I/build/source/lldb/source -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/source -isystem /usr/include/libxml2 -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -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 -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -ffile-prefix-map=/build/source/build-llvm/tools/clang/stage2-bins=../../../../ -ffile-prefix-map=/build/source/= -no-canonical-prefixes -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-vla-extension -O2 -DNDEBUG -g1  -fno-exceptions -funwind-tables -std=c++17 -MD -MT tools/lldb/source/Plugins/Process/elf-core/CMakeFiles/lldbPluginProcessElfCore.dir/ThreadElfCore.cpp.o -MF tools/lldb/source/Plugins/Process/elf-core/CMakeFiles/lldbPluginProcessElfCore.dir/ThreadElfCore.cpp.o.d -o tools/lldb/source/Plugins/Process/elf-core/CMakeFiles/lldbPluginProcessElfCore.dir/ThreadElfCore.cpp.o -c /build/source/lldb/source/Plugins/Process/elf-core/ThreadElfCore.cpp
In file included from /build/source/lldb/source/Plugins/Process/elf-core/ThreadElfCore.cpp:44:
/build/source/lldb/source/Plugins/Process/elf-core/ThreadElfCore.h:120:15: error: static assertion failed due to requirement 'sizeof(ELFLinuxSigInfo) == 56': sizeof ELFLinuxSigInfo is not correct!
  120 | static_assert(sizeof(ELFLinuxSigInfo) == 56,
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/source/lldb/source/Plugins/Process/elf-core/ThreadElfCore.h:120:39: note: expression evaluates to '44 == 56'
  120 | static_assert(sizeof(ELFLinuxSigInfo) == 56,
      |               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
1 error generated.
@llvmbot
Copy link
Member

llvmbot commented Nov 22, 2024

@llvm/issue-subscribers-lldb

Author: Sylvestre Ledru (sylvestre)

on linux i386: ``` FAILED: tools/lldb/source/Plugins/Process/elf-core/CMakeFiles/lldbPluginProcessElfCore.dir/ThreadElfCore.cpp.o /opt/sccache//sccache /build/source/build-llvm/./bin/clang++ -DHAVE_ROUND -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/source/Plugins/Process/elf-core -I/build/source/lldb/source/Plugins/Process/elf-core -I/build/source/lldb/include -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/include -I/build/source/build-llvm/tools/clang/stage2-bins/include -I/build/source/llvm/include -I/usr/include/python3.11 -I/build/source/clang/include -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/../clang/include -I/build/source/lldb/source -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/source -isystem /usr/include/libxml2 -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -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 -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -ffile-prefix-map=/build/source/build-llvm/tools/clang/stage2-bins=../../../../ -ffile-prefix-map=/build/source/= -no-canonical-prefixes -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-vla-extension -O2 -DNDEBUG -g1 -fno-exceptions -funwind-tables -std=c++17 -MD -MT tools/lldb/source/Plugins/Process/elf-core/CMakeFiles/lldbPluginProcessElfCore.dir/ThreadElfCore.cpp.o -MF tools/lldb/source/Plugins/Process/elf-core/CMakeFiles/lldbPluginProcessElfCore.dir/ThreadElfCore.cpp.o.d -o tools/lldb/source/Plugins/Process/elf-core/CMakeFiles/lldbPluginProcessElfCore.dir/ThreadElfCore.cpp.o -c /build/source/lldb/source/Plugins/Process/elf-core/ThreadElfCore.cpp In file included from /build/source/lldb/source/Plugins/Process/elf-core/ThreadElfCore.cpp:44: /build/source/lldb/source/Plugins/Process/elf-core/ThreadElfCore.h:120:15: error: static assertion failed due to requirement 'sizeof(ELFLinuxSigInfo) == 56': sizeof ELFLinuxSigInfo is not correct! 120 | static_assert(sizeof(ELFLinuxSigInfo) == 56, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /build/source/lldb/source/Plugins/Process/elf-core/ThreadElfCore.h:120:39: note: expression evaluates to '44 == 56' 120 | static_assert(sizeof(ELFLinuxSigInfo) == 56, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ 1 error generated. ```

@sylvestre
Copy link
Collaborator Author

Regression range: 68ce528..dde9477

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

2 participants