I am building a static monolith of v8 14.6 with the following config:
gn_args = {
is_debug: false,
is_component_build: false,
v8_use_external_startup_data: false,
v8_enable_fuzztest: false,
v8_enable_i18n_support: false,
clang_use_chrome_plugins: false,
treat_warnings_as_errors: false,
use_custom_libcxx: false,
enable_rust: false,
use_sysroot: false,
v8_enable_temporal_support: false,
v8_monolithic: true,
v8_static_library: true,
v8_enable_partition_alloc: false,
}
The build succeeds but in the end there are some worrysome linker warnings. Are these ignorable? In some cases they seem to be completely different sources, e.g. time.o ?
libtool: warning duplicate member name 'allocation.o' from 'obj/cppgc_base/allocation.o(allocation.o)' and 'obj/v8_base_without_compiler/allocation.o(allocation.o)'
libtool: warning duplicate member name 'assembler.o' from 'obj/v8_compiler/assembler.o(assembler.o)' and 'obj/v8_base_without_compiler/assembler.o(assembler.o)'
libtool: warning duplicate member name 'crc32.o' from 'obj/third_party/zlib/zlib/crc32.o(crc32.o)' and 'obj/src/inspector/inspector/crc32.o(crc32.o)'
libtool: warning duplicate member name 'escaping.o' from 'obj/third_party/abseil-cpp/absl/strings/internal/escaping.o(escaping.o)' and 'obj/third_party/abseil-cpp/absl/strings/strings/escaping.o(escaping.o)'
libtool: warning duplicate member name 'factory.o' from 'obj/v8_base_without_compiler/factory.o(factory.o)' and 'obj/torque_generated_definitions/factory.o(factory.o)'
libtool: warning duplicate member name 'free-list.o' from 'obj/v8_base_without_compiler/free-list.o(free-list.o)' and 'obj/cppgc_base/free-list.o(free-list.o)'
libtool: warning duplicate member name 'globals.o' from 'obj/third_party/abseil-cpp/absl/log/globals/globals.o(globals.o)' and 'obj/third_party/abseil-cpp/absl/log/internal/globals/globals.o(globals.o)'
libtool: warning duplicate member name 'heap.o' from 'obj/cppgc_base/heap.o(heap.o)' and 'obj/v8_base_without_compiler/heap.o(heap.o)'
libtool: warning duplicate member name 'ieee754.o' from 'obj/v8_base_without_compiler/ieee754.o(ieee754.o)' and 'obj/v8_libbase/ieee754.o(ieee754.o)'
libtool: warning duplicate member name 'logging.o' from 'obj/cppgc_base/logging.o(logging.o)' and 'obj/v8_libbase/logging.o(logging.o)'
libtool: warning duplicate member name 'mutex.o' from 'obj/third_party/abseil-cpp/absl/synchronization/synchronization/mutex.o(mutex.o)' and 'obj/v8_libbase/mutex.o(mutex.o)'
libtool: warning duplicate member name 'objects-printer.o' from 'obj/torque_generated_definitions/objects-printer.o(objects-printer.o)' and 'obj/v8_base_without_compiler/objects-printer.o(objects-printer.o)'
libtool: warning duplicate member name 'parser.o' from 'obj/third_party/abseil-cpp/absl/strings/str_format_internal/parser.o(parser.o)' and 'obj/v8_base_without_compiler/parser.o(parser.o)'
libtool: warning duplicate member name 'platform.o' from 'obj/v8_libbase/platform.o(platform.o)' and 'obj/cppgc_base/platform.o(platform.o)'
libtool: warning duplicate member name 'snapshot.o' from 'obj/v8_snapshot/snapshot.o(snapshot.o)' and 'obj/v8_base_without_compiler/snapshot.o(snapshot.o)'
libtool: warning duplicate member name 'status.o' from 'obj/third_party/abseil-cpp/absl/status/status/status.o(status.o)' and 'obj/third_party/inspector_protocol/crdtp/status.o(status.o)'
libtool: warning duplicate member name 'sweeper.o' from 'obj/cppgc_base/sweeper.o(sweeper.o)' and 'obj/v8_base_without_compiler/sweeper.o(sweeper.o)'
libtool: warning duplicate member name 'testing.o' from 'obj/v8_base_without_compiler/testing.o(testing.o)' and 'obj/cppgc_base/testing.o(testing.o)'
libtool: warning duplicate member name 'time.o' from 'obj/v8_libbase/time.o(time.o)' and 'obj/third_party/abseil-cpp/absl/time/time/time.o(time.o)'
libtool: warning duplicate member name 'utils.o' from 'obj/v8_base_without_compiler/utils.o(utils.o)' and 'obj/v8_compiler/utils.o(utils.o)'