-
Notifications
You must be signed in to change notification settings - Fork 2.9k
CMake errors in building a previous version onnxruntime (version 1.12.1) #16100
-
The following CMake Error occurs when I use the command"sudo ./build.sh --build_wheel --skip_tests --build_shared_lib --parallel"(x86_64 ): CMake Error at /usr/share/cmake-3.22/Modules/FetchContent.cmake:1087 (message): Is there any requirement for CMake version of onnxruntime1.12.1? Is CMake version 3.22.1 OK? And how to fix this error? |
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 3 comments · 3 replies
-
What error? Could you please show me more logs? |
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks for instant reply, logs I can find as follows: [5 bytes data] [1 bytes data] GET /abseil/abseil-cpp/archive/refs/tags/20211102.0.zip HTTP/2 Host: github.com user-agent: curl/7.81.0 accept: / TLSv1.2 (IN), TLS header, Supplemental data (23): [5 bytes data] [1 bytes data] TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): [57 bytes data] TLSv1.2 (IN), TLS header, Supplemental data (23): [5 bytes data] [1 bytes data] TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): [57 bytes data] old SSL session ID is stale, removing TLSv1.2 (IN), TLS header, Supplemental data (23): [5 bytes data] [1 bytes data] TLSv1.2 (OUT), TLS header, Supplemental data (23): [5 bytes data] [1 bytes data] TLSv1.2 (IN), TLS header, Supplemental data (23): [5 bytes data] [1 bytes data] stopped the pause stream! Closing connection 0 TLSv1.2 (IN), TLS header, Supplemental data (23): [5 bytes data] [1 bytes data] TLSv1.3 (IN), TLS alert, close notify (256): [2 bytes data] TLSv1.2 (OUT), TLS header, Supplemental data (23): [5 bytes data] [1 bytes data] TLSv1.3 (OUT), TLS alert, close notify (256): [2 bytes data]
gmake[2]: *** [CMakeFiles/abseil_cpp-populate.dir/build.make:99:/opt/onnxruntime/build/Linux/Debug/abseil-cpp/src/abseil_cpp-populate-stamp/abseil_cpp-populate-download] 错误 1 CMake Error at /usr/share/cmake-3.22/Modules/FetchContent.cmake:1087 (message): -- Configuring incomplete, errors occurred! |
Beta Was this translation helpful? Give feedback.
All reactions
-
The content in "CMakeError.log" as follows: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_58e44/fast && /usr/bin/gmake -f CMakeFiles/cmTC_58e44.dir/build.make CMakeFiles/cmTC_58e44.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_db8bf/fast && /usr/bin/gmake -f CMakeFiles/cmTC_db8bf.dir/build.make CMakeFiles/cmTC_db8bf.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_6918d/fast && /usr/bin/gmake -f CMakeFiles/cmTC_6918d.dir/build.make CMakeFiles/cmTC_6918d.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_bbdbf/fast && /usr/bin/gmake -f CMakeFiles/cmTC_bbdbf.dir/build.make CMakeFiles/cmTC_bbdbf.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_13d65/fast && /usr/bin/gmake -f CMakeFiles/cmTC_13d65.dir/build.make CMakeFiles/cmTC_13d65.dir/build Source file was: |
Beta Was this translation helpful? Give feedback.
All reactions
-
The content in “CMakeOutput.log" as follows: The output was: Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" The C compiler identification is GNU, found in "/opt/onnxruntime/build/Linux/Debug/CMakeFiles/3.22.1/CompilerIdC/a.out" Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. The output was: Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" The CXX compiler identification is GNU, found in "/opt/onnxruntime/build/Linux/Debug/CMakeFiles/3.22.1/CompilerIdCXX/a.out" Checking whether the ASM compiler is GNU using "--version" matched "(GNU assembler)|(GCC)|(Free Software Foundation)": Detecting C compiler ABI info compiled with the following output: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_1521e/fast && /usr/bin/gmake -f CMakeFiles/cmTC_1521e.dir/build.make CMakeFiles/cmTC_1521e.dir/build GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Parsed C implicit include dir info from above output: rv=done Parsed C implicit link information from above output: Detecting CXX compiler ABI info compiled with the following output: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_3c62f/fast && /usr/bin/gmake -f CMakeFiles/cmTC_3c62f.dir/build.make CMakeFiles/cmTC_3c62f.dir/build GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Parsed CXX implicit include dir info from above output: rv=done Parsed CXX implicit link information from above output: Performing C++ SOURCE FILE Test onnxruntime_HAVE_BUILTIN_ATOMICS succeeded with the following output: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_7b87e/fast && /usr/bin/gmake -f CMakeFiles/cmTC_7b87e.dir/build.make CMakeFiles/cmTC_7b87e.dir/build Source file was:
Determining if the include file pthread.h exists passed with the following output: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_523e2/fast && /usr/bin/gmake -f CMakeFiles/cmTC_523e2.dir/build.make CMakeFiles/cmTC_523e2.dir/build Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD succeeded with the following output: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_0ae82/fast && /usr/bin/gmake -f CMakeFiles/cmTC_0ae82.dir/build.make CMakeFiles/cmTC_0ae82.dir/build Source file was: static void* test_func(void* data) int main(void) return 0; Performing C++ SOURCE FILE Test COMPILER_SUPPORT_MF16C succeeded with the following output: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_d7420/fast && /usr/bin/gmake -f CMakeFiles/cmTC_d7420.dir/build.make CMakeFiles/cmTC_d7420.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_08f74/fast && /usr/bin/gmake -f CMakeFiles/cmTC_08f74.dir/build.make CMakeFiles/cmTC_08f74.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_c53dd/fast && /usr/bin/gmake -f CMakeFiles/cmTC_c53dd.dir/build.make CMakeFiles/cmTC_c53dd.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_f106f/fast && /usr/bin/gmake -f CMakeFiles/cmTC_f106f.dir/build.make CMakeFiles/cmTC_f106f.dir/build Source file was:
Performing C++ SOURCE FILE Test HAS_UNUSED_BUT_SET_PARAMETER succeeded with the following output: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_0e022/fast && /usr/bin/gmake -f CMakeFiles/cmTC_0e022.dir/build.make CMakeFiles/cmTC_0e022.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_affdd/fast && /usr/bin/gmake -f CMakeFiles/cmTC_affdd.dir/build.make CMakeFiles/cmTC_affdd.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_0e26b/fast && /usr/bin/gmake -f CMakeFiles/cmTC_0e26b.dir/build.make CMakeFiles/cmTC_0e26b.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_2ff0a/fast && /usr/bin/gmake -f CMakeFiles/cmTC_2ff0a.dir/build.make CMakeFiles/cmTC_2ff0a.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_f53d9/fast && /usr/bin/gmake -f CMakeFiles/cmTC_f53d9.dir/build.make CMakeFiles/cmTC_f53d9.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_81a17/fast && /usr/bin/gmake -f CMakeFiles/cmTC_81a17.dir/build.make CMakeFiles/cmTC_81a17.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_bf498/fast && /usr/bin/gmake -f CMakeFiles/cmTC_bf498.dir/build.make CMakeFiles/cmTC_bf498.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_3531c/fast && /usr/bin/gmake -f CMakeFiles/cmTC_3531c.dir/build.make CMakeFiles/cmTC_3531c.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_e07e8/fast && /usr/bin/gmake -f CMakeFiles/cmTC_e07e8.dir/build.make CMakeFiles/cmTC_e07e8.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_eca24/fast && /usr/bin/gmake -f CMakeFiles/cmTC_eca24.dir/build.make CMakeFiles/cmTC_eca24.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_014e0/fast && /usr/bin/gmake -f CMakeFiles/cmTC_014e0.dir/build.make CMakeFiles/cmTC_014e0.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_ba4de/fast && /usr/bin/gmake -f CMakeFiles/cmTC_ba4de.dir/build.make CMakeFiles/cmTC_ba4de.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_3f8c8/fast && /usr/bin/gmake -f CMakeFiles/cmTC_3f8c8.dir/build.make CMakeFiles/cmTC_3f8c8.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_a7054/fast && /usr/bin/gmake -f CMakeFiles/cmTC_a7054.dir/build.make CMakeFiles/cmTC_a7054.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_1b8ad/fast && /usr/bin/gmake -f CMakeFiles/cmTC_1b8ad.dir/build.make CMakeFiles/cmTC_1b8ad.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_70390/fast && /usr/bin/gmake -f CMakeFiles/cmTC_70390.dir/build.make CMakeFiles/cmTC_70390.dir/build Source file was: Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_287c5/fast && /usr/bin/gmake -f CMakeFiles/cmTC_287c5.dir/build.make CMakeFiles/cmTC_287c5.dir/build File /opt/onnxruntime/build/Linux/Debug/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: int main(int argc, char** argv) Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_f9674/fast && /usr/bin/gmake -f CMakeFiles/cmTC_f9674.dir/build.make CMakeFiles/cmTC_f9674.dir/build File /opt/onnxruntime/build/Linux/Debug/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: int main(int argc, char** argv) |
Beta Was this translation helpful? Give feedback.
All reactions
-
It looks like a network error. Sorry I cannot help. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks for kind reply and useful remind. I built onnxruntime in conda virtual environment, after downloading openssl and git tools, the network problem was solved, thanks. |
Beta Was this translation helpful? Give feedback.
Thanks for kind reply and useful remind. I built onnxruntime in conda virtual environment, after downloading openssl and git tools, the network problem was solved, thanks.