Closed zwimer closed 1 year ago
I've noticed that if I make -j binder when cmake was run with tests enabled, it might sometimes fail with
make -j
cmake
#22 7.131 make[2]: Leaving directory '/build' #22 7.138 [ 18%] Built target binder #22 7.140 make[1]: Leaving directory '/build' #22 7.141 make: *** [Makefile:144: all] Error 2 #22 ERROR: executor failed running [/bin/sh -c make "-j$(nproc)"]: exit code: 2
I ran it with binder checked out from the current master branch, specifically this commit: https://github.com/RosettaCommons/binder/commit/7ac60d98ac95ab2d2b47bb46212f54d55f8face0 I have not debugged this or checked other commits. I would recommend using git bisect to isolate where the issue came from.
binder
git bisect
Here is the dockerfile I used:
FROM ubuntu:20.04 as base # Config ARG BRANCH="master" ARG CLANG_VERSION=14 # General dependencies ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install -yq wget gnupg \ && rm -rf /var/lib/apt/lists/* # Add llvm repo RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - RUN echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-${CLANG_VERSION} main" >> /etc/apt/sources.list # Run dependencies RUN apt-get update \ && apt-get install -yq "clang-${CLANG_VERSION}" \ && rm -rf /var/lib/apt/lists/* FROM base as build # Build dependencies RUN apt-get update RUN apt-get install -yq \ "libclang-${CLANG_VERSION}-dev" \ cmake \ git # pybind11 RUN git clone https://github.com/pybind/pybind11 /pybind11 RUN apt-get install -yq python3-pip python3-dev RUN pip3 install pytest WORKDIR "/py-build" RUN cmake \ -DCMAKE_CXX_COMPILER="$(which clang++-"${CLANG_VERSION}")" \ /pybind11 RUN make "-j$(nproc)" RUN make install # Clone binder source ARG REPO="https://github.com/RosettaCommons/binder.git" COPY ./binder /binder # Binder WORKDIR "/build" RUN cmake \ -DCMAKE_CXX_COMPILER="$(which clang++-"${CLANG_VERSION}")" \ -DBINDER_ENABLE_TEST=ON \ /binder RUN make "-j$(nproc)"
tagging @andriish
Hi @zwimer ,
I've tried to reproduce it with singularity and the #245 fixed the issue. Please try it with docker.
singularity
docker
Best regards,
Andrii
I've noticed that if I
make -j
binder whencmake
was run with tests enabled, it might sometimes fail withI ran it with
binder
checked out from the current master branch, specifically this commit: https://github.com/RosettaCommons/binder/commit/7ac60d98ac95ab2d2b47bb46212f54d55f8face0 I have not debugged this or checked other commits. I would recommend usinggit bisect
to isolate where the issue came from.Here is the dockerfile I used: