Open geissonator opened 4 years ago
https://lists.boost.org/boost-users/2019/12/90188.php discusses this same issue
Ahh, and https://github.com/boostorg/coroutine/pull/45 is the issue and there is a patch against 1.72.0 in the release note we can pick up: https://www.boost.org/patches/1_72_0/0001-revert-cease-dependence-on-range.patch
Here's a quick fix that uses latest boost release and applies the patch they released in the release note:
openbmc-build-scripts $git diff build-unit-test-docker.sh
diff --git a/build-unit-test-docker.sh b/build-unit-test-docker.sh
index 65708f4..0ec008f 100755
--- a/build-unit-test-docker.sh
+++ b/build-unit-test-docker.sh
@@ -332,8 +332,9 @@ make -j$(nproc) defconfig && \
make INSTALL_HDR_PATH=/usr/local headers_install
FROM openbmc-base as openbmc-boost
-RUN curl -L https://dl.bintray.com/boostorg/release/${PKG_REV['boost']}/source/boost_$(echo "${PKG_REV['boost']}" | tr '.' '_').tar.bz2 | tar -xj && \
+RUN curl -L https://sourceforge.net/projects/boost/files/boost/1.72.0/boost_1_72_0.tar.bz2 | tar -xj && \
cd boost_*/ && \
+curl -L https://www.boost.org/patches/1_72_0/0001-revert-cease-dependence-on-range.patch | patch -p1 && \
./bootstrap.sh --prefix=${PREFIX} --with-libraries=context,coroutine && \
./b2 && ./b2 install --prefix=${PREFIX}
also see https://github.com/boostorg/coroutine/issues/46 that includes the revert commit.
A drive-by comment: why not use GitHub to download the boost library? I assume GitHub should be stable for most times.
E.g. https://github.com/boostorg/boost/archive/boost-1.72.0.tar.gz
A drive-by comment: why not use GitHub to download the boost library? I assume GitHub should be stable for most times. E.g.
https://github.com/boostorg/boost/archive/boost-1.72.0.tar.gz
I liked this idea but unfortunately the github release doesn't package in the needed tools/build/ scripts. Looks like they are git sub modules and not a part of the package :(
Was trying an upgrade to boost 1.72.0 so we could use sourceforge to download and avoid the issue documented in https://github.com/boostorg/boost/issues/299 but something with the new boost library causes objmgr to fail to compile.