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

Linux x86 build error #40003

Open
gbalykov opened this issue Jul 28, 2020 · 1 comment
Open

Linux x86 build error #40003

gbalykov opened this issue Jul 28, 2020 · 1 comment

Comments

@gbalykov
Copy link
Member

Build with:

ROOTFS_DIR=`pwd`/.tools/rootfs/x86 ./build.sh --cross --clang9 --arch x86 --configuration Release --subset clr.runtime+clr.corelib+clr.nativecorelib

Output:

In file included from /home/z/Dev/runtime/src/coreclr/src/md/compiler/verifylayouts.cpp:13:
  In file included from /home/z/Dev/runtime/src/coreclr/src/md/inc/verifylayouts.h:176:
  /home/z/Dev/runtime/src/coreclr/src/md/inc/VerifyLayouts.inc:158:1: error: static_assert failed due to requirement 'offset_of_field_after_CLiteWeightStgdbRW_m_pStgIO == (((__builtin_offsetof(CLiteWeightStgdbRW, m_pStgIO) + sizeof(void *)) + (alignment_of_field_after_CLiteWeightStgdbRW_m_pStgIO) - 1) & ~((alignment_of_field_after_CLiteWeightStgdbRW_m_pStgIO) - 1))' "offset_of_field_after_CLiteWeightStgdbRW_m_pStgIO == ALIGN_UP(offsetof(CLiteWeightStgdbRW, m_pStgIO) + sizeof(void*), alignment_of_field_after_CLiteWeightStgdbRW_m_pStgIO)"
  FIELD(CLiteWeightStgdbRW, m_pStgIO, sizeof(void*))
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /home/z/Dev/runtime/src/coreclr/src/md/inc/verifylayouts.h:115:47: note: expanded from macro 'FIELD'
  #define FIELD(typeName, fieldName, fieldSize) ALIGN_FIELD(typeName, fieldName, fieldSize, fieldSize)
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /home/z/Dev/runtime/src/coreclr/src/md/inc/verifylayouts.h:169:5: note: expanded from macro 'ALIGN_FIELD'
      static_assert_no_msg(offset_of_field_after_##typeName##_##fieldName == \
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /home/z/Dev/runtime/src/coreclr/src/inc/static_assert.h:24:38: note: expanded from macro 'static_assert_no_msg'
  #define static_assert_no_msg( cond ) static_assert( cond, #cond )
                                       ^              ~~~~
  [ 24%] Building CXX object src/pal/src/eventprovider/lttngprovider/CMakeFiles/eventprovider.dir/lttng/eventprovdotnetruntimestress.cpp.o
  In file included from /home/z/Dev/runtime/src/coreclr/src/md/compiler/verifylayouts.cpp:13:
  In file included from /home/z/Dev/runtime/src/coreclr/src/md/inc/verifylayouts.h:176:
  /home/z/Dev/runtime/src/coreclr/src/md/inc/VerifyLayouts.inc:320:1: error: static_assert failed due to requirement 'expected_offset_of_first_field_in_CMiniMdBase == actual_offset_of_first_field_in_CMiniMdBase' "expected_offset_of_first_field_in_CMiniMdBase == actual_offset_of_first_field_in_CMiniMdBase"
  BEGIN_TYPE(CMiniMdBase, 8)                                           //vtable ptr and first field 8-byte alignment
  ^~~~~~~~~~~~~~~~~~~~~~~~~~
  /home/z/Dev/runtime/src/coreclr/src/md/inc/verifylayouts.h:164:5: note: expanded from macro 'BEGIN_TYPE'
      static_assert_no_msg(expected_offset_of_first_field_in_##typeName == actual_offset_of_first_field_in_##typeName);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /home/z/Dev/runtime/src/coreclr/src/inc/static_assert.h:24:38: note: expanded from macro 'static_assert_no_msg'
  #define static_assert_no_msg( cond ) static_assert( cond, #cond )
                                       ^              ~~~~
  2 errors generated.

Related changes: #37702

cc @alpencolt

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-Infrastructure-coreclr untriaged New issue has not been triaged by the area owner labels Jul 28, 2020
@jashook jashook added this to the Future milestone Aug 20, 2020
@jashook jashook removed the untriaged New issue has not been triaged by the area owner label Aug 20, 2020
@am11
Copy link
Member

am11 commented Mar 15, 2022

This was fixed by #50836

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

4 participants