On Mon, Dec 19, 2022 at 1:43 PM Immanuel Haffner <haffner.imman...@gmail.com> wrote: > > I am currently facing issues building V8 at version 11.0.226 for embedding in > my application. Compilation of several source files fails with the following > error: > > ../../../../../../third-party/v8/v8/src/execution/isolate-data.h:279:3: > error: static_assert failed due to requirement > 'std::is_standard_layout<v8::internal::ThreadLocalTop>::value' > static_assert(std::is_standard_layout<ThreadLocalTop>::value); > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ../../../../../../third-party/v8/v8/src/execution/isolate-data.h:281:3: > error: static_assert failed due to requirement > 'std::is_standard_layout<v8::internal::IsolateData>::value' > static_assert(std::is_standard_layout<IsolateData>::value); > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 1 warning and 2 errors generated. > > I compile V8 with flags > > is_clang=true clang_base_path=\"/usr\" use_lld=false use_gold=true > v8_enable_pointer_compression=true treat_warnings_as_errors=false > v8_use_external_startup_data=false use_sysroot=false use_custom_libcxx=false > clang_use_chrome_plugins=false target_cpu=\"x64\"" > > I have tried both my system Clang and Google's toolchain. The compilation > error is the same. My system clang is on 14.0.6. > > Git blame tells me @Clemens Backes is the author of the respective lines of > code. > I hope you or someone else can help me out.
IsolateData embeds ThreadLocalTop embeds Stack embeds std::unique_ptr and std::vector. Those last two are likely not standard layout types on your system. -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/CAHQurc_vTA009ypjv8umvpCXj7JZEbOMKmR9rWy8mBvTx_ONhw%40mail.gmail.com.