Skip to content

[Build] absl build error #24245

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

Closed
Serenagirl opened this issue Mar 29, 2025 · 1 comment
Closed

[Build] absl build error #24245

Serenagirl opened this issue Mar 29, 2025 · 1 comment
Labels
build build issues; typically submitted using template

Comments

@Serenagirl
Copy link

Describe the issue

In my initial environment, abseil has been compiled and installed. When onnxruntime is compiled and installed, the following error message is displayed: How can I disable abseil of the system and use the built-in onnxruntime?

aarch64 gcc12 cmake3.28

-- Abseil source dir:/home/onnxruntime/build/Linux/RelWithDebInfo/_deps/abseil_cpp-src
CMake Error at /usr/local/lib64/cmake/absl/abslTargets.cmake:42 (message):
Some (but not all) targets in this export set were already defined.

Targets Defined: absl::atomic_hook, absl::errno_saver, absl::log_severity,
absl::no_destructor, absl::nullability, absl::raw_logging_internal,
absl::spinlock_wait, absl::config, absl::dynamic_annotations,
absl::core_headers, absl::malloc_internal, absl::base_internal, absl::base,
absl::throw_delegate, absl::pretty_function, absl::endian,
absl::scoped_set_env, absl::strerror, absl::fast_type_id, absl::prefetch,
absl::poison, absl::algorithm, absl::algorithm_container,
absl::cleanup_internal, absl::cleanup, absl::btree, absl::compressed_tuple,
absl::fixed_array, absl::inlined_vector_internal, absl::inlined_vector,
absl::flat_hash_map, absl::flat_hash_set, absl::node_hash_map,
absl::node_hash_set, absl::hash_container_defaults, absl::container_memory,
absl::hash_function_defaults, absl::hash_policy_traits,
absl::common_policy_traits, absl::hashtablez_sampler,
absl::hashtable_debug, absl::hashtable_debug_hooks, absl::node_slot_policy,
absl::raw_hash_map, absl::container_common, absl::raw_hash_set,
absl::layout, absl::crc_cpu_detect, absl::crc_internal, absl::crc32c,
absl::non_temporal_arm_intrinsics, absl::non_temporal_memcpy,
absl::crc_cord_state, absl::stacktrace, absl::symbolize,
absl::examine_stack, absl::failure_signal_handler,
absl::debugging_internal, absl::demangle_internal,
absl::bounded_utf8_length_sequence, absl::decode_rust_punycode,
absl::demangle_rust, absl::utf8_for_code_point, absl::leak_check,
absl::debugging, absl::flags_path_util, absl::flags_program_name,
absl::flags_config, absl::flags_marshalling,
absl::flags_commandlineflag_internal, absl::flags_commandlineflag,
absl::flags_private_handle_accessor, absl::flags_reflection,
absl::flags_internal, absl::flags, absl::flags_usage_internal,
absl::flags_usage, absl::flags_parse, absl::any_invocable,
absl::bind_front, absl::function_ref, absl::overload, absl::hash,
absl::city, absl::low_level_hash, absl::log_internal_check_impl,
absl::log_internal_check_op, absl::log_internal_conditions,
absl::log_internal_config, absl::log_internal_flags,
absl::log_internal_format, absl::log_internal_globals,
absl::log_internal_log_impl, absl::log_internal_proto,
absl::log_internal_message, absl::log_internal_log_sink_set,
absl::log_internal_nullguard, absl::log_internal_nullstream,
absl::log_internal_strip, absl::log_internal_voidify,
absl::log_internal_append_truncated, absl::absl_check, absl::absl_log,
absl::check, absl::die_if_null, absl::log_flags, absl::log_globals,
absl::log_initialize, absl::log, absl::log_entry, absl::log_sink,
absl::log_sink_registry, absl::log_streamer, absl::log_internal_structured,
absl::log_structured, absl::vlog_config_internal, absl::absl_vlog_is_on,
absl::vlog_is_on, absl::log_internal_fnmatch, absl::memory,
absl::type_traits, absl::meta, absl::bits, absl::int128, absl::numeric,
absl::numeric_representation, absl::sample_recorder,
absl::exponential_biased, absl::periodic_sampler, absl::random_random,
absl::random_bit_gen_ref, absl::random_internal_mock_helpers,
absl::random_distributions, absl::random_seed_gen_exception,
absl::random_seed_sequences, absl::random_internal_traits,
absl::random_internal_distribution_caller,
absl::random_internal_fast_uniform_bits,
absl::random_internal_seed_material, absl::random_internal_salted_seed_seq,
absl::random_internal_iostream_state_saver,
absl::random_internal_generate_real, absl::random_internal_wide_multiply,
absl::random_internal_fastmath, absl::random_internal_nonsecure_base,
absl::random_internal_pcg_engine, absl::random_internal_randen_engine,
absl::random_internal_platform, absl::random_internal_randen,
absl::random_internal_randen_slow, absl::random_internal_randen_hwaes,
absl::random_internal_randen_hwaes_impl,
absl::random_internal_distribution_test_util,
absl::random_internal_uniform_helper, absl::status, absl::statusor,
absl::string_view, absl::strings, absl::charset,
absl::has_ostream_operator, absl::strings_internal, absl::str_format,
absl::str_format_internal, absl::cord_internal, absl::cordz_update_tracker,
absl::cordz_functions, absl::cordz_statistics, absl::cordz_handle,
absl::cordz_info, absl::cordz_sample_token, absl::cordz_update_scope,
absl::cord, absl::graphcycles_internal, absl::kernel_timeout_internal,
absl::synchronization, absl::time, absl::civil_time, absl::time_zone,
absl::any, absl::span, absl::optional, absl::variant, absl::compare,
absl::bad_any_cast, absl::bad_optional_access, absl::bad_variant_access,
absl::utility

Targets not yet defined: absl::tracing_internal,
absl::iterator_traits_internal, absl::iterator_traits_test_helper_internal,
absl::hashtable_control_bytes, absl::log_internal_structured_proto,
absl::random_internal_entropy_pool

Call Stack (most recent call first):
/usr/local/lib64/cmake/absl/abslConfig.cmake:32 (include)
/home/l00850597/anaconda3/envs/python310/lib/python3.10/site-packages/cmake/data/share/cmake-3.28/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
/opt/aarch64/compiler/gcc-12.3.1-2024.09-aarch64-linux/lib64/cmake/re2/re2Config.cmake:40 (find_dependency)
/home/l00850597/anaconda3/envs/python310/lib/python3.10/site-packages/cmake/data/share/cmake-3.28/Modules/FetchContent.cmake:2014 (find_package)
external/helper_functions.cmake:22 (FetchContent_MakeAvailable)
external/onnxruntime_external_deps.cmake:45 (onnxruntime_fetchcontent_makeavailable)
CMakeLists.txt:694 (include)

-- Configuring incomplete, errors occurred!

Urgency

No response

Target platform

aarch64

Build script

cmd:CC=clang CXX=clang++ ./build.sh --config RelWithDebInfo --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --allow_running_as_root --skip_tests --enable_pybind --build_wheel --skip-keras-test --skip_onnx_tests

Error / output

CMake Error at /usr/local/lib64/cmake/absl/abslTargets.cmake:42 (message):
Some (but not all) targets in this export set were already defined.

Visual Studio Version

No response

GCC / Compiler Version

12.3.1

@Serenagirl Serenagirl added the build build issues; typically submitted using template label Mar 29, 2025
@snnn
Copy link
Member

snnn commented Apr 3, 2025

@snnn snnn closed this as completed Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template
Projects
None yet
Development

No branches or pull requests

2 participants