Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ownership issue extracting the openmp tar building the lightgbm docker image #126

Open
gandola opened this issue Jun 6, 2022 · 0 comments

Comments

@gandola
Copy link

gandola commented Jun 6, 2022

Simply running the command

mvn clean install -DskipTests

I get the following errors

The command '/bin/sh -c curl -sL https://releases.llvm.org/$CLANG_VER/clang%2bllvm-$CLANG_VER-x86_64-linux-gnu-ubuntu-14.04.tar.tar: openmp-9.0.0.src/libomptarget/deviceRTLs/nvptx/test: Cannot change ownership to uid 107418, gid 89939: Invalid argxz -o clang.tar.xz  && tar -C /usr/local -xf clang.tar.xz --strip 1  && curl -sL https://releases.llvm.org/$CLANG_VER/openmp-$CLument
tar: openmp-9.0.0.src/libomptarget/deviceRTLs/nvptx/docs/ReductionDesign.txt: Cannot change ownership to uid 107418, giANG_VER.src.tar.xz -o openmp.tar.xz  && tar -xf openmp.tar.xz  && cd openmp-$CLANG_VER.src  && mkdir build  && cd build  && cmakd 89939: Invalid argument
e -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang ..  && make  && make install  && echo /usr/local/lib > /etc/ld.so.conf.dtar: openmp-9.0.0.src/libomptarget/deviceRTLs/nvptx/docs: Cannot change ownership to uid 107418, gid 89939: Invalid argument
/openmp.conf  && ldconfig  && cd ../..  && rm clang.tar.xz  && rm openmp.tar.xz  && rm -rf openmp-$CLANG_VER.src' returned a nontar: openmp-9.0.0.src/libomptarget/deviceRTLs/nvptx/CMakeLists.txt: Cannot change ownership to uid 107418, gid 89939: I-zero code: 2
nvalid argument

I worked around the issue by simply adding the --no-same-owner to the tar command in the docker file projects-open-source/feedzai-openml-java/openml-lightgbm/lightgbm-builder/make-lightgbm/docker/lightgbm-ci-build-env/Dockerfile

like this: tar -xf openmp.tar.xz --no-same-owner

Environment:

Docker version 20.10.14, build a224086
Host OS: Ubuntu 20.04.4 LTS (64-bit)
Host Kernel: 5.13.0-44-generic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant