I encountered a build failure when compiling dev-db/mariadb-12.0.2-r2 on Gentoo when dev-libs/boost-1.90.0 is installed. The build succeeds if Boost is downgraded to 1.88.0.
Environment
Gentoo Linux (amd64)
MariaDB:
Code: Select all
dev-db/mariadb-12.0.2-r21.90.0 → build fails
1.88.0 → build succeeds
Problem
During the MariaDB build process, the CMake build system attempts to download Boost 1.88.0 from:
https://archives.boost.io/release/1.88. ... 8_0.tar.gz
The relevant error in the build log is:
Code: Select all
CMake Error at external_boost-stamp/download-external_boost.cmake:163 (message):
Each download failed!
error: downloading 'https://archives.boost.io/release/1.88.0/source/boost_1_88_0.tar.gz' failed
status_code: 6
status_string: "Could not resolve hostname"
Observations
With Boost 1.90.0 installed, the MariaDB build attempts to fetch Boost 1.88.0 using CMake’s ExternalProject.
With Boost 1.88.0 installed, the build proceeds normally and completes successfully.
The system already had Boost 1.90.0 installed from a world update.
Portage also reports preserved Boost 1.88.0 libraries used by existing binaries.
Example preserved libraries message:
existing preserved libs:
Code: Select all
>>> package: dev-libs/boost-1.90.0
- /usr/lib64/libboost_*.so.1.88.0Downgrading Boost resolves the issue:
Code: Select all
emerge -1 =dev-libs/boost-1.88*
emerge -1 dev-db/mariadbCode: Select all
emerge @preserved-rebuild
