Clang build fails in cmake
When changing locally the compiler to clang-8 or clang-12 I am getting the following error in the cmake step:
boost/1.76.0: WARN: Boost component 'stacktrace_addr2line' is missing libraries. Try building boost with '-o boost:without_stacktrace_addr2line'. (Option is not guaranteed to exist)
ERROR: boost/1.76.0: Error in package_info() method, line 1597
raise ConanException("These libraries were expected to be built, but were not built: {}".format(non_built))
ConanException: These libraries were expected to be built, but were not built: {'boost_stacktrace_addr2line'}
If I try to tweak in the CMakeLists.txt file, the building option from missing
to all
then I am getting another error:
bzip2/1.0.8: WARN: Build folder .../.conan/data/bzip2/1.0.8/_/_/build/95fae3fea96bca823cfefd4c887b5b869415bb9f
ERROR: bzip2/1.0.8: Error in build() method, line 67
cmake = self._configure_cmake()
while calling '_configure_cmake', line 61
self._cmake.configure()
ConanException: Error 1 while executing cd '/home/nikos/.conan/data/bzip2/1.0.8/_/_/build/95fae3fea96bca823cfefd4c887b5b869415bb9f' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="clang" -DCONAN_COMPILER_VERSION="8" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="/home/nikos/.conan/data/bzip2/1.0.8/_/_/package/95fae3fea96bca823cfefd4c887b5b869415bb9f" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCONAN_CMAKE_POSITION_INDEPENDENT_CODE="ON" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DBZ2_VERSION_STRING="1.0.8" -DBZ2_VERSION_MAJOR="1" -DBZ2_BUILD_EXE="True" -Wno-dev '/home/nikos/.conan/data/bzip2/1.0.8/_/_/build/95fae3fea96bca823cfefd4c887b5b869415bb9f'
Is anyone using successfully clang?