Skip to content
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

Linux Failed Build - std::piecewise_construct’ causes a section type conflict #23345

Open
danrca opened this issue Jan 13, 2025 · 0 comments
Open
Labels
build build issues; typically submitted using template

Comments

@danrca
Copy link

danrca commented Jan 13, 2025

Describe the issue

Has anyone encountered this build issue? I am trying to build onnxruntime version 1.19.2 on an ARM processor with CUDA 12.6, cudnn 9, and Tensorrt 10.3.

[ 88%] Building CXX object CMakeFiles/onnxruntime_test_all.dir/debout/libonnxruntime-cuda_1.19.2.orig/onnxruntime/test/framework/shape_inference_test.cc.o
In file included from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/string:40,
from /debout/libonnxruntime-cuda_1.19.2.orig/include/onnxruntime/core/framework/data_types.h:8,
from /debout/libonnxruntime-cuda_1.19.2.orig/onnxruntime/test/framework/parallel_executor_test.cc:4:
/debout/libonnxruntime-cuda_1.19.2.orig/build/Linux/Release/_deps/abseil_cpp-src/absl/container/internal/raw_hash_set.h: In function ‘absl::container_internal::raw_hash_set<absl::container_internal::FlatHashMapPolicy<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::pair<char*, unsigned long> >, absl::container_internal::StringHash, absl::container_internal::StringEq, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, std::pair<char*, unsigned long> > > >::resize_impl(absl::container_internal::CommonFields&, unsigned long, absl::container_internal::HashtablezInfoHandle) [clone .isra.0]’:
/usr/include/c++/11/bits/stl_pair.h:83:53: error: ‘std::piecewise_construct’ causes a section type conflict
83 | _GLIBCXX17_INLINE constexpr piecewise_construct_t piecewise_construct =
| ^~~~~~~~~~~~~~~~~~~
gmake[4]: *** [CMakeFiles/onnxruntime_test_all.dir/build.make:1031: CMakeFiles/onnxruntime_test_all.dir/debout/libonnxruntime-cuda_1.19.2.orig/onnxruntime/test/framework/parallel_executor_test.cc.o] Error 1

Urgency

No response

Target platform

ARM64 - Ubuntu 22.04

Build script

./build.sh --parallel --allow_running_as_root --skip_tests --skip_submodule_sync --skip_onnx_tests --use_tensorrt --tensorrt_home /usr/src/tensorrt --cuda_home /usr/lib/aarch64-linux-gnu/ --cudnn_home /usr/lib/aarch64-linux-gnu --use_cuda --config Release --build_shared_lib --cmake_extra_defines CMAKE_CUDA_ARCHITECTURES="50;52;53;60;61;62;70;72;75;80;86;87;89;90" CMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc CMAKE_CXX_STANDARD=17 _GLIBCXX_USE_CXX11_ABI=0

-- ******** Summary ********
-- CMake version : 3.31.4
-- CMake command : /usr/local/lib/python3.10/dist-packages/cmake/data/bin/cmake
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- C++ compiler version : 11.4.0
-- CXX flags : -g -O2 -ffile-prefix-map=/debout/libonnxruntime-cuda_1.19.2.orig=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -ffunction-sections -fdata-sections -Wno-restrict -DCPUINFO_SUPPORTED -Wnon-virtual-dtor
-- Build type : Release
-- Compile definitions : ORT_ENABLE_STREAM;EIGEN_MPL2_ONLY;_GNU_SOURCE;__STDC_FORMAT_MACROS
-- CMAKE_PREFIX_PATH : /debout/libonnxruntime-cuda_1.19.2.orig/build/Linux/Release/installed
-- CMAKE_INSTALL_PREFIX : /usr/local
-- CMAKE_MODULE_PATH : /debout/libonnxruntime-cuda_1.19.2.orig/cmake/external

-- ONNX version : 1.16.1
-- ONNX NAMESPACE : onnx
-- ONNX_USE_LITE_PROTO : ON
-- USE_PROTOBUF_SHARED_LIBS : OFF
-- Protobuf_USE_STATIC_LIBS : ON
-- ONNX_DISABLE_EXCEPTIONS : OFF
-- ONNX_DISABLE_STATIC_REGISTRATION : OFF
-- ONNX_WERROR : OFF
-- ONNX_BUILD_TESTS : OFF
-- ONNX_BUILD_BENCHMARKS : OFF
-- ONNX_BUILD_SHARED_LIBS :
-- BUILD_SHARED_LIBS : OFF

-- Protobuf compiler :
-- Protobuf includes :
-- Protobuf libraries :
-- BUILD_ONNX_PYTHON : OFF

Error / output

[ 88%] Building CXX object CMakeFiles/onnxruntime_test_all.dir/debout/libonnxruntime-cuda_1.19.2.orig/onnxruntime/test/framework/shape_inference_test.cc.o
In file included from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/string:40,
from /debout/libonnxruntime-cuda_1.19.2.orig/include/onnxruntime/core/framework/data_types.h:8,
from /debout/libonnxruntime-cuda_1.19.2.orig/onnxruntime/test/framework/parallel_executor_test.cc:4:
/debout/libonnxruntime-cuda_1.19.2.orig/build/Linux/Release/_deps/abseil_cpp-src/absl/container/internal/raw_hash_set.h: In function ‘absl::container_internal::raw_hash_set<absl::container_internal::FlatHashMapPolicy<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::pair<char*, unsigned long> >, absl::container_internal::StringHash, absl::container_internal::StringEq, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, std::pair<char*, unsigned long> > > >::resize_impl(absl::container_internal::CommonFields&, unsigned long, absl::container_internal::HashtablezInfoHandle) [clone .isra.0]’:
/usr/include/c++/11/bits/stl_pair.h:83:53: error: ‘std::piecewise_construct’ causes a section type conflict
83 | _GLIBCXX17_INLINE constexpr piecewise_construct_t piecewise_construct =
| ^~~~~~~~~~~~~~~~~~~
gmake[4]: *** [CMakeFiles/onnxruntime_test_all.dir/build.make:1031: CMakeFiles/onnxruntime_test_all.dir/debout/libonnxruntime-cuda_1.19.2.orig/onnxruntime/test/framework/parallel_executor_test.cc.o] Error 1

Visual Studio Version

No response

GCC / Compiler Version

11.4

@danrca danrca added the build build issues; typically submitted using template label Jan 13, 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

1 participant