Skip to content

Commit 70de20b

Browse files
authored
[AIX] Not enabling ABSL_ENABLE_INSTALL for AIX to fix the build failure (microsoft#24910)
### Description Recent changes in abseil-cpp.cmake is enabling ABSL_ENABLE_INSTALL which is causing compilation error for AIX. But the same was working before, so blocking this enablement. ``` [ 83%] Linking CXX executable onnxruntime_perf_test ld: 0706-006 Cannot find or open library file: -l absl_failure_signal_handler ld:open(): A file or directory in the path name does not exist. ld: 0706-006 Cannot find or open library file: -l absl_examine_stack ld:open(): A file or directory in the path name does not exist. ld: 0706-006 Cannot find or open library file: -l absl_flags_parse ld:open(): A file or directory in the path name does not exist. ld: 0706-006 Cannot find or open library file: -l absl_flags_usage ld:open(): A file or directory in the path name does not exist. ld: 0706-006 Cannot find or open library file: -l absl_flags_usage_internal ld:open(): A file or directory in the path name does not exist. .ibm-clang: error: linker command failed with exit code 255 (use -v to see invocation) ``` ### Motivation and Context To fix the compilation error, blocking the enablement of ABSL_ENABLE_INSTALL under AIX.
1 parent 5e36544 commit 70de20b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/external/abseil-cpp.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ set(ABSL_USE_EXTERNAL_GOOGLETEST ON)
1515
if (onnxruntime_USE_XNNPACK)
1616
set(ABSL_ENABLE_INSTALL OFF)
1717
else()
18-
set(ABSL_ENABLE_INSTALL ON)
18+
if (NOT CMAKE_SYSTEM_NAME MATCHES "AIX")
19+
set(ABSL_ENABLE_INSTALL ON)
20+
endif()
1921
endif()
2022

2123
if(Patch_FOUND AND WIN32)

0 commit comments

Comments
 (0)