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

Project does not build with recent cmake (3.16.4) #82

Open
Uroc327 opened this issue Feb 12, 2020 · 1 comment
Open

Project does not build with recent cmake (3.16.4) #82

Uroc327 opened this issue Feb 12, 2020 · 1 comment

Comments

@Uroc327
Copy link

Uroc327 commented Feb 12, 2020

When trying to build the project, I get the following error:

-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_FP_MODEL_FAST
-- Performing Test HAVE_FP_MODEL_FAST - Failed
-- Performing Test HAVE_F_FAST_MATH
-- Performing Test HAVE_F_FAST_MATH - Success
-- Performing Test HAVE_FP_MODEL_PRECISE
-- Performing Test HAVE_FP_MODEL_PRECISE - Failed
-- Performing Test HAVE_F_NO_UNSAFE_MATH_OPTIMIZATIONS
-- Performing Test HAVE_F_NO_UNSAFE_MATH_OPTIMIZATIONS - Success
-- Performing Test HAVE_FLAG_STATIC_LIBSTDCPP
-- Performing Test HAVE_FLAG_STATIC_LIBSTDCPP - Success
-- Performing Test HAVE_FLAG_STATIC_LIBGCC
-- Performing Test HAVE_FLAG_STATIC_LIBGCC - Success
-- Performing Test HAVE_FLAG_PTHREAD
-- Performing Test HAVE_FLAG_PTHREAD - Success
-- Looking for stpcpy
-- Looking for stpcpy - found
-- Looking for shm_open in rt
-- Looking for shm_open in rt - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Performing Test HAVE_FLAG_-Wno-psabi
-- Performing Test HAVE_FLAG_-Wno-psabi - Success
-- Performing Test HAVE_FLAG_-std=gnu99
-- Performing Test HAVE_FLAG_-std=gnu99 - Success
-- Performing Test HAVE_FLAG_-xc99
-- Performing Test HAVE_FLAG_-xc99 - Failed
-- Performing Test HAVE_FLAG_-maccumulate-outgoing-args
-- Performing Test HAVE_FLAG_-maccumulate-outgoing-args - Success
-- Found OpenCL: /usr/lib/libOpenCL.so  
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Found OpenGL: /usr/lib/libGL.so   
-- Found Curses: /usr/lib/libcurses.so  
-- Found OpenSSL: /usr/lib64/libcrypto.so (found version "1.1.1d")  
---------------------------------------------
   Building:          milkywayathome_client
   System:            Linux-5.4.13-gentoo
   Build type:        Release
   Arch:              x86_64
   Install path:      /usr/local
   ----
   CMAKE version:     3.16.4
   CMAKE binary:      /usr/bin/cmake
   CTEST binary:      /usr/bin/ctest
   CMAKE generator:   Unix Makefiles
   ----
   Project src dir:  milkywayathome_client
   Project bin dir:   milkywayathome_client/build
   Build tool:        /usr/bin/gmake
   C Compiler:        /usr/bin/cc
   ----
   Double precision:  ON
   Separation:        ON
   N-Body:            ON
   OpenCL separation: ON
   OpenCL nbody:      OFF
   Nbody graphics:    OFF
   Nbody use GL3W:    ON
   BOINC application: ON
   ----
---------------------------------------------
-- Performing Test HAVE_FLAG_M_FPMATH_SSE
-- Performing Test HAVE_FLAG_M_FPMATH_SSE - Success
-- Performing Test HAVE_FLAG_M_SSE
-- Performing Test HAVE_FLAG_M_SSE - Success
-- Performing Test HAVE_FLAG_M_SSE2
-- Performing Test HAVE_FLAG_M_SSE2 - Success
-- Performing Test HAVE_FLAG_M_SSE3
-- Performing Test HAVE_FLAG_M_SSE3 - Success
-- Performing Test HAVE_FLAG_M_SSE4
-- Performing Test HAVE_FLAG_M_SSE4 - Success
-- Performing Test HAVE_FLAG_M_SSE41
-- Performing Test HAVE_FLAG_M_SSE41 - Success
-- Performing Test HAVE_FLAG_M_AVX
-- Performing Test HAVE_FLAG_M_AVX - Success
-- Performing Test HAVE_FLAG_M_SSE4_1
-- Performing Test HAVE_FLAG_M_SSE4_1 - Failed
-- Performing Test HAVE_FLAG_M_FPMATH_387
-- Performing Test HAVE_FLAG_M_FPMATH_387 - Success
-- Performing Test HAVE_FLAG_M_NO_SSE
-- Performing Test HAVE_FLAG_M_NO_SSE - Success
-- Performing Test HAVE_FLAG_M_NO_SSE2
-- Performing Test HAVE_FLAG_M_NO_SSE2 - Success
-- Performing Test HAVE_FLAG_M_NO_SSE3
-- Performing Test HAVE_FLAG_M_NO_SSE3 - Success
-- Performing Test HAVE_FLAG_M_NO_SSE4
-- Performing Test HAVE_FLAG_M_NO_SSE4 - Success
-- Performing Test HAVE_FLAG_M_NO_SSE41
-- Performing Test HAVE_FLAG_M_NO_SSE41 - Success
-- Performing Test HAVE_FLAG_M_NO_SSE4_1
-- Performing Test HAVE_FLAG_M_NO_SSE4_1 - Failed
-- Performing Test HAVE_FLAG_M_NO_AVX
-- Performing Test HAVE_FLAG_M_NO_AVX - Success
-- AVX compiler flags - ' -mfpmath=sse -msse -msse2 -msse3 -msse4 -msse4.1 -mavx'
CMake Error at /usr/share/cmake/Modules/CheckIncludeFiles.cmake:68 (message):
  Unknown arguments:

    CACHE;INTERNAL;Compiler has SSE4.1 headers

Call Stack (most recent call first):
  cmake_modules/CheckSSE2.cmake:212 (check_include_files)
  popt/CMakeLists.txt:22 (include)


-- Configuring incomplete, errors occurred!

Steps to reproduce:

git clone --recursive https://github.com/Milkyway-at-home/milkywayathome_client
cd milkywayathome_client
mkdir -p build
cd build
cmake ..

Versions:

> cmake --version
cmake version 3.16.4

CMake suite maintained and supported by Kitware (kitware.com/cmake).
> gcc --version
gcc (Gentoo 9.2.0-r3 p4) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@geomaster1234
Copy link

I've run into the same problem, but I have been able to compile successfully using an older version of cmake. I downloaded version 3.10.2 from the cmake website and installed it in my home folder. E.G. /home/linuxuser/bin/.

Adjust your $PATH variable to see your home bin folder first export PATH=/home/username/bin:$PATH and then run cmake --version to make sure you're using the correct version. If it shows you 3.10.2 you should be good to configure and compile.

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

2 participants