Alibaba-Gemini-Lab / OpenPEGASUS

104 stars 22 forks source link

Can not do the cmake build #6

Closed Alujixixi closed 2 years ago

Alujixixi commented 2 years ago

I was trying to build pagasus, but it get stuck doing the step follows for several hours

-- Setting up Eigen ...
Cloning into 'src'...

I have network connection and can access to the eigen repo https://github.com/eigenteam/eigen-git-mirror.git 20.04.1-Ubuntu cmake version 3.23.1 seal version 3.7

the complete error :

aluji@ubuntu:~/OpenPEGASUS$ sudo cmake  -DSEAL_USE_ZLIB=OFF -DSEAL_USE_MSGSL=OFF -DCMAKE_BUILD_TYPE=Release
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.

-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type (CMAKE_BUILD_TYPE): Release
-- Microsoft SEAL debug mode: OFF
CMake Warning (dev) at thirdparty/Gemini-SEAL/CMakeLists.txt:438 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'GEMINI_SEAL'.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for C++ include x86intrin.h
-- Looking for C++ include x86intrin.h - found
-- Performing Test USE_MEMSET_S
-- Performing Test USE_MEMSET_S - Failed
-- Looking for explicit_bzero
-- Looking for explicit_bzero - found
-- Looking for explicit_memset
-- Looking for explicit_memset - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Check size of size_t
-- Check size of size_t - done
-- Setting up Eigen ...
Cloning into 'src'...
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Cloning into 'src'...

It usually just end up Cloneing into 'src' and stuck for hours.

fionser commented 2 years ago

You can download the eigen3 from any source and install to your environment. Then set this line off

https://github.com/Alibaba-Gemini-Lab/OpenPEGASUS/blob/master/CMakeLists.txt#L21

so that the cmake will skip to clone the eigen3 from github.

Alujixixi commented 2 years ago

Thanks, my problem is solved, and I can run your lut now.