From f5cf7ebf7bee2a93be27514120a625e8998f13f0 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Fri, 18 Jul 2025 18:20:37 +0200 Subject: [PATCH] fix boost compilation on aarch64-openeuler __float128 related issues, specific to aarch64-openeuler, don't happen on amd64-openeuler or aarch64-rhel first, there's only dynamic libquadmath.so, and config/has_float128.cpp for charconv doesn't specify shared; so charconv doesn't detect __float128. But even if this is fixed (patched) it still doesn't find __float128 later (may be missing includes?) and it's using __float128 also when BOOST_CHARCONV_HAS_QUADMATH is not defined. Considering that we don't actually need charconv, let's not patch boost to fix it and simply disable it instead. Also, let's disable mpi that we don't need and it also produces (likely non-fatal) errors during compilation. And don't redirect logs, let's have everything in CI stdout, --- cmake/boost.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/boost.cmake b/cmake/boost.cmake index 3e5d68eb8..f9b052f18 100644 --- a/cmake/boost.cmake +++ b/cmake/boost.cmake @@ -23,7 +23,7 @@ link_directories("${Boost_LIBRARY_DIRS}") set(_cxxargs "-fPIC -DBOOST_NO_AUTO_PTR -fvisibility=default") set(_b2args cxxflags=${_cxxargs};cflags=-fPIC;threading=multi;${_extra};toolset=${_toolset} - --without-python;--prefix=${INSTALL_LOCATION} + --without-mpi;--without-charconv;--without-python;--prefix=${INSTALL_LOCATION} ) set(byproducts) @@ -48,8 +48,8 @@ ExternalProject_Add( BUILD_COMMAND ./b2 -q ${_b2args} BUILD_IN_SOURCE TRUE INSTALL_COMMAND ./b2 -q install ${_b2args} - LOG_BUILD TRUE - LOG_INSTALL TRUE + #LOG_BUILD TRUE + #LOG_INSTALL TRUE EXCLUDE_FROM_ALL TRUE ${byproducts} )