i getting these linker errors
my args.gn is as follows:
*declare_args() { v8_enable_tests = false # Set default value if
needed v8_compress_pointers = true # Set to true to enable pointer
compression use_absl = true}is_component_build = trueis_debug =
falsetarget_cpu = "x64"v8_enable_sandbox = falsev8_enable_backtrace =
truev8_enable_disassembler = falsev8_enable_object_print =
truev8_enable_verify_heap = truedcheck_always_on =
falseuse_custom_libcxx=falsev8_enable_i18n_support =
falsev8_enable_object_print = truev8_use_external_startup_data =
truetreat_warnings_as_errors = falseis_clang = truev8_enable_fast_torque =
false *
[3/1788] LINK(DLL) third_party_abseil-cpp_absl.dll
third_party_abseil-cpp_absl.dll.lib third_party_abseil-cpp_absl.dll.pdb
FAILED: third_party_abseil-cpp_absl.dll third_party_abseil-cpp_absl.dll.lib
third_party_abseil-cpp_absl.dll.pdb
..\..\third_party\llvm-build\Release+Asserts\bin\lld-link.exe
"/OUT:./third_party_abseil-cpp_absl.dll" /nologo
-libpath:..\..\third_party\llvm-build\Release+Asserts\lib\clang\20\lib\windows
"-libpath:../../../../../../Program Files/Microsoft Visual
Studio/2022/Professional/VC/Tools/MSVC/14.41.34120/ATLMFC/lib/x64"
"-libpath:../../../../../../Program Files/Microsoft Visual
Studio/2022/Professional/VC/Tools/MSVC/14.41.34120/lib/x64"
"-libpath:../../../../../../Program Files (x86)/Windows
Kits/NETFXSDK/4.8/lib/um/x64" "-libpath:../../../../../../Program Files
(x86)/Windows Kits/10/lib/10.0.22621.0/ucrt/x64"
"-libpath:../../../../../../Program Files (x86)/Windows
Kits/10/lib/10.0.22621.0/um/x64" /MACHINE:X64
"/IMPLIB:./third_party_abseil-cpp_absl.dll.lib" /DLL
"/PDB:./third_party_abseil-cpp_absl.dll.pdb"
"@./third_party_abseil-cpp_absl.dll.rsp"
lld-link: error: <root>: undefined symbol: public: __cdecl
absl::Cord::Cord<class std::__Cr::basic_string<char, struct
std::__Cr::char_traits<char>, class std::__Cr::allocator<char>>, 0>(class
std::__Cr::basic_string<char, struct std::__Cr::char_traits<char>, class
std::__Cr::allocator<char>> &&)
lld-link: error: <root>: undefined symbol: public: void __cdecl
absl::base_internal::AtomicHook<void (__cdecl *)(enum absl::LogSeverity,
char const *, int, class std::__Cr::basic_string<char, struct
std::__Cr::char_traits<char>, class std::__Cr::allocator<char>> const
&)>::operator()<enum absl::LogSeverity, char const *const &, int, char
const (&)[34]>(enum absl::LogSeverity &&, char const *const &, int &&, char
const (&)[34]) const
lld-link: error: <root>: undefined symbol: public: void __cdecl
absl::base_internal::AtomicHook<void (__cdecl *)(enum absl::LogSeverity,
char const *, int, class std::__Cr::basic_string<char, struct
std::__Cr::char_traits<char>, class std::__Cr::allocator<char>> const
&)>::operator()<enum absl::LogSeverity, char const *const &, int, char
const (&)[38]>(enum absl::LogSeverity &&, char const *const &, int &&, char
const (&)[38]) const
lld-link: error: <root>: undefined symbol: public: void __cdecl
absl::base_internal::AtomicHook<void (__cdecl *)(enum absl::LogSeverity,
char const *, int, class std::__Cr::basic_string<char, struct
std::__Cr::char_traits<char>, class std::__Cr::allocator<char>> const
&)>::operator()<enum absl::LogSeverity, char const *const &, int, char
const (&)[39]>(enum absl::LogSeverity &&, char const *const &, int &&, char
const (&)[39]) const
lld-link: error: <root>: undefined symbol: private: class
std::__Cr::basic_string_view<char, struct std::__Cr::char_traits<char>>
__cdecl absl::cord_internal::CordRepBtree::AddData<1>(class
std::__Cr::basic_string_view<char, struct std::__Cr::char_traits<char>>,
unsigned __int64)
lld-link: error: <root>: undefined symbol: private: static class
absl::cord_internal::CordRepBtree * __cdecl
absl::cord_internal::CordRepBtree::AddData<1>(class
absl::cord_internal::CordRepBtree *, class
std::__Cr::basic_string_view<char, struct std::__Cr::char_traits<char>>,
unsigned __int64)
lld-link: error: <root>: undefined symbol: private: class
std::__Cr::basic_string_view<char, struct std::__Cr::char_traits<char>>
__cdecl absl::cord_internal::CordRepBtree::AddData<0>(class
std::__Cr::basic_string_view<char, struct std::__Cr::char_traits<char>>,
unsigned __int64)
lld-link: error: <root>: undefined symbol: private: static class
absl::cord_internal::CordRepBtree * __cdecl
absl::cord_internal::CordRepBtree::AddData<0>(class
absl::cord_internal::CordRepBtree *, class
std::__Cr::basic_string_view<char, struct std::__Cr::char_traits<char>>,
unsigned __int64)
lld-link: error: <root>: undefined symbol: public: void __cdecl
absl::Cord::Append<class std::__Cr::basic_string<char, struct
std::__Cr::char_traits<char>, class std::__Cr::allocator<char>>, 0>(class
std::__Cr::basic_string<char, struct std::__Cr::char_traits<char>, class
std::__Cr::allocator<char>> &&)
lld-link: error: <root>: undefined symbol: void __cdecl
absl::strings_internal::Base64EscapeInternal<class
std::__Cr::basic_string<char, struct std::__Cr::char_traits<char>, class
std::__Cr::allocator<char>>>(unsigned char const *, unsigned __int64, class
std::__Cr::basic_string<char, struct std::__Cr::char_traits<char>, class
std::__Cr::allocator<char>> *, bool, char const *)
lld-link: error: <root>: undefined symbol: void __cdecl
absl::base_internal::CallOnceImpl<void (__cdecl &)(void)>(struct
std::__Cr::atomic<unsigned int> *, enum
absl::base_internal::SchedulingMode, void (__cdecl &)(void))
lld-link: error: <root>: undefined symbol: void __cdecl
absl::base_internal::CallOnceImpl<void (__cdecl
absl::flags_internal::FlagImpl::*)(void), class
absl::flags_internal::FlagImpl *>(struct std::__Cr::atomic<unsigned int> *,
enum absl::base_internal::SchedulingMode, void (__cdecl
absl::flags_internal::FlagImpl::*&&)(void), class
absl::flags_internal::FlagImpl *&&)
lld-link: error: <root>: undefined symbol: private: static bool __cdecl
absl::Condition::CastAndCallFunction<struct std::__Cr::atomic<bool>
const>(class absl::Condition const *)
lld-link: error: <root>: undefined symbol: private: void __cdecl
absl::log_internal::LogMessage::CopyToEncodedBuffer<1>(class
std::__Cr::basic_string_view<char, struct std::__Cr::char_traits<char>>)
lld-link: error: <root>: undefined symbol: private: void __cdecl
absl::log_internal::LogMessage::CopyToEncodedBuffer<0>(class
std::__Cr::basic_string_view<char, struct std::__Cr::char_traits<char>>)
lld-link: error: <root>: undefined symbol: private: static bool __cdecl
absl::str_format_internal::FormatArgImpl::Dispatch<class
std::__Cr::basic_string<char, struct std::__Cr::char_traits<char>, class
std::__Cr::allocator<char>>>(union
absl::str_format_internal::FormatArgImpl::Data, class
absl::str_format_internal::FormatConversionSpecImpl, void *)
lld-link: error: <root>: undefined symbol: private: static bool __cdecl
absl::str_format_internal::FormatArgImpl::Dispatch<class
std::__Cr::basic_string<wchar_t, struct std::__Cr::char_traits<wchar_t>,
class std::__Cr::allocator<wchar_t>>>(union
absl::str_format_internal::FormatArgImpl::Data, class
absl::str_format_internal::FormatConversionSpecImpl, void *)
lld-link: error: <root>: undefined symbol: private: static bool __cdecl
absl::str_format_internal::FormatArgImpl::Dispatch<class
std::__Cr::basic_string_view<char, struct
std::__Cr::char_traits<char>>>(union
absl::str_format_internal::FormatArgImpl::Data, class
absl::str_format_internal::FormatConversionSpecImpl, void *)
lld-link: error: <root>: undefined symbol: private: static bool __cdecl
absl::str_format_internal::FormatArgImpl::Dispatch<class
std::__Cr::basic_string_view<wchar_t, struct
std::__Cr::char_traits<wchar_t>>>(union
absl::str_format_internal::FormatArgImpl::Data, class
absl::str_format_internal::FormatConversionSpecImpl, void *)
lld-link: error: <root>: undefined symbol: private: class absl::LogSink *&
__cdecl absl::inlined_vector_internal::Storage<class absl::LogSink *, 16,
class std::__Cr::allocator<class absl::LogSink *>>::EmplaceBackSlow<class
absl::LogSink *const &>(class absl::LogSink *const &)
lld-link: error: too many errors emitted, stopping now (use /errorlimit:0
to see all errors)
On Friday, October 18, 2024 at 1:40:19 PM UTC+5:30 Ben Noordhuis wrote:
> On Fri, Oct 18, 2024 at 5:20 AM Pradish <[email protected]> wrote:
> >
> > Thanks for the inputs, appreciate it immensely.
> >
> > i tried to build the V8 using Clang but as a shared dll, though the
> build was successful without any issues. but when i tried to link the dll
> and headers it generated few compiler errors
> >
> > Based on the suggestions, we started using clang to build V8 on windows,
> but there is a problem, the V8 uses the Chromium's implementation of the
> STL, so when importing the header files in windows, we get the linker
> errors , because windows uses its own version of STL.
> >
> > class std::__Cr::unique_ptr<class v8::Platform,struct
> std::__Cr::default_delete<class v8::Platform> > __cdecl
> v8::platform::NewDefaultPlatform(int,enum
> v8::platform::IdleTaskSupport,enum
> v8::platform::InProcessStackDumping,class std::__Cr::unique_ptr<class
> v8::TracingController,struct std::__Cr::default_delete<class
> v8::TracingController> >,enum v8::platform::PriorityMode)
> >
> > how do we fix this.
>
> Pass use_custom_libcxx=false to tools/mb/mb.py (assuming that is what
> you're using to create the build config) and rebuild.
>
--
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/v8-users/04280804-bec6-4ece-97f0-f208c62c6d10n%40googlegroups.com.