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

gridtools build requires network access #42

Open
nbren12 opened this issue Jan 19, 2022 · 3 comments
Open

gridtools build requires network access #42

nbren12 opened this issue Jan 19, 2022 · 3 comments

Comments

@nbren12
Copy link
Contributor

nbren12 commented Jan 19, 2022

I noticed that the grid-tools builds fail in a sandboxed environment. The cmake builds seem to download some source code from github.com. Should we try to make this build pure @jdahm?

@YakelynRJ
Copy link

nix-shell does not build. Here is my output. Any help?

these 2 derivations will be built:
/nix/store/pdp76cj6ccsx0awc04l20r7zn91j0170-gridtools-1.1.4.drv
/nix/store/nqmmg2sx2vypg53cpllw0mc4k9xkvg6y-python3.8-gt4py-0.1.0-dev.drv
building '/nix/store/pdp76cj6ccsx0awc04l20r7zn91j0170-gridtools-1.1.4.drv'...
unpacking sources
unpacking source archive /nix/store/9pkfbxjy14kac80vv08vv0hxlrrkl02a-source
source root is source
patching sources
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/l8ypn2i7mfz3rag9mfwh6zxywhzpd7lk-gridtools-1.1.4/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/l8ypn2i7mfz3rag9mfwh6zxywhzpd7lk-gridtools-1.1.4/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/l8ypn2i7mfz3rag9mfwh6zxywhzpd7lk-gridtools-1.1.4/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/l8ypn2i7mfz3rag9mfwh6zxywhzpd7lk-gridtools-1.1.4/share/doc/GridTools -DCMAKE_INSTALL_INFODIR=/nix/store/l8ypn2i7mfz3rag9mfwh6zxywhzpd7lk-gridtools-1.1.4/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/l8ypn2i7mfz3rag9mfwh6zxywhzpd7lk-gridtools-1.1.4/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/l8ypn2i7mfz3rag9mfwh6zxywhzpd7lk-gridtools-1.1.4/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/l8ypn2i7mfz3rag9mfwh6zxywhzpd7lk-gridtools-1.1.4/include -DCMAKE_INSTALL_SBINDIR=/nix/store/l8ypn2i7mfz3rag9mfwh6zxywhzpd7lk-gridtools-1.1.4/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/l8ypn2i7mfz3rag9mfwh6zxywhzpd7lk-gridtools-1.1.4/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/l8ypn2i7mfz3rag9mfwh6zxywhzpd7lk-gridtools-1.1.4/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/da9l6ifizmh883j94gzx5n51h8lrrp00-gcc-wrapper-10.3.0/bin/strip -DCMAKE_RANLIB=/nix/store/js66s0xwjnzg0ggi2lq9bcvlk6x2za13-binutils-2.35.2/bin/ranlib -DCMAKE_AR=/nix/store/js66s0xwjnzg0ggi2lq9bcvlk6x2za13-binutils-2.35.2/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/l8ypn2i7mfz3rag9mfwh6zxywhzpd7lk-gridtools-1.1.4 -DGT_INSTALL_EXAMPLES=OFF -DBUILD_TESTING=OFF
-- The CXX compiler identification is GNU 10.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/da9l6ifizmh883j94gzx5n51h8lrrp00-gcc-wrapper-10.3.0/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for a CUDA compiler
-- Looking for a CUDA compiler - NOTFOUND
-- CUDA NOT found
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5") found components: CXX
-- OpenMP found
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)
-- Could NOT find MPI (missing: MPI_CXX_FOUND CXX)
-- MPI NOT found
-- Found Boost: /nix/store/v14bqrnwvgs7r8x5x6l55gajplzlb96p-boost-1.69.0-dev/include (found suitable version "1.69.0", minimum required is "1.58")
-- Compile tests in double precision
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
[ 11%] Creating directories for 'cpp_bindgen-populate'
[ 22%] Performing download step (git clone) for 'cpp_bindgen-populate'
Cloning into 'cpp_bindgen-src'...
fatal: unable to access 'https://github.com/GridTools/cpp_bindgen.git/': Could not resolve host: github.com
Cloning into 'cpp_bindgen-src'...
fatal: unable to access 'https://github.com/GridTools/cpp_bindgen.git/': Could not resolve host: github.com
Cloning into 'cpp_bindgen-src'...
fatal: unable to access 'https://github.com/GridTools/cpp_bindgen.git/': Could not resolve host: github.com
-- Had to git clone more than once:
3 times.
CMake Error at cpp_bindgen-subbuild/cpp_bindgen-populate-prefix/tmp/cpp_bindgen-populate-gitclone.cmake:31 (message):
Failed to clone repository: 'https://github.com/GridTools/cpp_bindgen.git'

make[2]: *** [CMakeFiles/cpp_bindgen-populate.dir/build.make:102: cpp_bindgen-populate-prefix/src/cpp_bindgen-populate-stamp/cpp_bindgen-populate-download] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/cpp_bindgen-populate.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

CMake Error at /nix/store/mnq9fvg9yqan4g1pgis01l0mqfkihpqs-cmake-3.21.2/share/cmake-3.21/Modules/FetchContent.cmake:1017 (message):
Build step for cpp_bindgen failed: 2
Call Stack (most recent call first):
/nix/store/mnq9fvg9yqan4g1pgis01l0mqfkihpqs-cmake-3.21.2/share/cmake-3.21/Modules/FetchContent.cmake:1146:EVAL:2 (__FetchContent_directPopulate)
/nix/store/mnq9fvg9yqan4g1pgis01l0mqfkihpqs-cmake-3.21.2/share/cmake-3.21/Modules/FetchContent.cmake:1146 (cmake_language)
/nix/store/mnq9fvg9yqan4g1pgis01l0mqfkihpqs-cmake-3.21.2/share/cmake-3.21/Modules/FetchContent.cmake:1189 (FetchContent_Populate)
CMakeLists.txt:50 (FetchContent_MakeAvailable)

-- Configuring incomplete, errors occurred!
See also "/build/source/build/CMakeFiles/CMakeOutput.log".
See also "/build/source/build/CMakeFiles/CMakeError.log".
error: builder for '/nix/store/pdp76cj6ccsx0awc04l20r7zn91j0170-gridtools-1.1.4.drv' failed with exit code 1;
last 10 log lines:
> Call Stack (most recent call first):
> /nix/store/mnq9fvg9yqan4g1pgis01l0mqfkihpqs-cmake-3.21.2/share/cmake-3.21/Modules/FetchContent.cmake:1146:EVAL:2 (__FetchContent_directPopulate)
> /nix/store/mnq9fvg9yqan4g1pgis01l0mqfkihpqs-cmake-3.21.2/share/cmake-3.21/Modules/FetchContent.cmake:1146 (cmake_language)
> /nix/store/mnq9fvg9yqan4g1pgis01l0mqfkihpqs-cmake-3.21.2/share/cmake-3.21/Modules/FetchContent.cmake:1189 (FetchContent_Populate)
> CMakeLists.txt:50 (FetchContent_MakeAvailable)
>
>
> -- Configuring incomplete, errors occurred!
> See also "/build/source/build/CMakeFiles/CMakeOutput.log".
> See also "/build/source/build/CMakeFiles/CMakeError.log".
For full logs, run 'nix log /nix/store/pdp76cj6ccsx0awc04l20r7zn91j0170-gridtools-1.1.4.drv'.
error: 1 dependencies of derivation '/nix/store/nqmmg2sx2vypg53cpllw0mc4k9xkvg6y-python3.8-gt4py-0.1.0-dev.drv' failed to build

@nbren12
Copy link
Contributor Author

nbren12 commented Jul 13, 2022

I think this can be worked around by setting this configuration option in nix.conf: https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-sandbox

@jdahm
Copy link
Contributor

jdahm commented Jul 13, 2022

Right, that should solve it. Sorry about that. This is low priority right now.

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

3 participants