shaka-project / shaka-player-embedded

Shaka Player in a C++ Framework
Apache License 2.0
239 stars 62 forks source link

error in cross compiling for arm64 board #235

Closed naval77 closed 2 years ago

naval77 commented 2 years ago

2066/3550] CXX obj/v8/v8_base_without_compiler/builtins.o FAILED: obj/v8/v8_base_without_compiler/builtins.o ../../../compiler/bin/aarch64-linux-gnu-g++ -MMD -MF obj/v8/v8_base_without_compiler/builtins.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_MINOR_MC -DV8_INTL_SUPPORT -DENABLE_HANDLE_ZAPPING -DV8_USE_EXTERNAL_STARTUP_DATA -DV8_CONCURRENT_MARKING -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_EMBEDDED_BUILTINS -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_TARGET_ARCH_ARM64 -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DDISABLE_UNTRUSTED_CODE_MITIGATIONS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DHAVE_UNISTD_H -DHAVE_STDARG_H -I.. -Igen -I../v8 -Igen/v8 -I../third_party/icu/source/common -I../third_party/icu/source/i18n -I../v8/include -I../third_party/zlib/src -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -Wno-builtin-macro-redefined -DDATE= -DTIME= -DTIMESTAMP= -Wall -Werror -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wno-strict-overflow -Wno-return-type -O3 -fno-ident -fdata-sections -ffunction-sections -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../v8/src/builtins/builtins.cc -o obj/v8/v8_base_without_compiler/builtins.o ../v8/src/builtins/builtins.cc: In constructor 'v8::internal::{anonymous}::OffHeapTrampolineGenerator::OffHeapTrampolineGenerator(v8::internal::Isolate)': ../v8/src/builtins/builtins.cc:313:60: error: use of deleted function 'v8::internal::MacroAssembler::MacroAssembler(v8::internal::Isolate, v8::internal::CodeObjectRequired, std::uniqueptr)' ExternalAssemblerBuffer(buffer, kBufferSize)) {} ^ In file included from ../v8/src/codegen/macro-assembler.h:39:0, from ../v8/src/builtins/builtins.cc:11: ../v8/src/codegen/arm64/macro-assembler-arm64.h:1373:25: note: 'v8::internal::MacroAssembler::MacroAssembler(v8::internal::Isolate*, v8::internal::CodeObjectRequired, std::unique_ptr)' is implicitly deleted because the default definition would be ill-formed: using TurboAssembler::TurboAssembler;

muse117 commented 2 years ago

I have the same problem, how can I solve it?

naval77 commented 2 years ago

i did workaround providing CPUReg() constructor in register_arm64.h.Will understand implication later

muse117 commented 2 years ago

i did workaround providing CPUReg() constructor in register_arm64.h.Will understand implication later

Where did you find the solution?

naval77 commented 2 years ago

its workarnd to proceed compilation atleast .Still looking for solution

muse117 commented 2 years ago

its workarnd to proceed compilation atleast .Still looking for solution

The solution I found from this issue was also to modify the register_arm64.h file, but add the CPURegList() constructor instead of the CPUReg() constructor.

https://github.com/meta-qt5/meta-qt5/issues/341

naval77 commented 2 years ago

sorry i did the same CPURegList(){}

muse117 commented 2 years ago

sorry i did the same CPURegList(){}

Please close the issue