problem installing Vc
Walter Dehnen
[please enable javascript to see the address]
Fri Sep 26 20:30:31 CEST 2014
Hi,
I tried to install Vc from the tar ball downloaded today
(vc-vc-6b7a8b2c188323133ce314cefd2236f9f25be762.tar.gz).
However, one of your Cmake files seems faulty, here is the output:
> cmake -DCMAKE_INSTALL_PREFIX=~/Vc -DBUILD_TESTING=OFF ../
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.8.1
-- 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
-- Check for working CXX compiler: /cm/shared/apps/gcc/4.8.1/bin/c++
-- Check for working CXX compiler: /cm/shared/apps/gcc/4.8.1/bin/c++ --
works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detected Compiler: GCC 4.4.7
-- C/C++ Compiler can NOT offload to MIC.
CMake Warning at cmake/FindMIC.cmake:167 (message):
MIC SDK was not found!
Call Stack (most recent call first):
CMakeLists.txt:20 (find_package)
CMake Error at CMakeLists.txt:43 (message):
Vc 1.x requires C++11 support. This requires at least GCC 4.7.
-- Configuring incomplete, errors occurred!
cmake finds the C-compiler in usr/bin/cc (rather than
/cm/shared/apps/gcc/4.8.1/bin/gcc), but then finds the C++ compiler
/cm/shared/apps/gcc/4.8.1/bin/c++ which clearly has version >= 4.7. I
presume that you implicitly assume in the Cmakefile that these two
compilers have the same version ...
After looking a bit into this, I tried to fix this by changing
in file cmake/VcMacros.cmake, line 71 from
exec_program(${CMAKE_CXX_COMPILER} ARGS -dumpversion
OUTPUT_VARIABLE Vc_GCC_VERSION)
to
exec_program(${CMAKE_C_COMPILER} ARGS -dumpversion
OUTPUT_VARIABLE Vc_GCC_VERSION)
this let cmake to apparently succeed, though I noticed some nonsense
messages such as testing the C compiler for -ftemplate_depth.
However, the subsequent make failed. It obviously tried to use AVX2
instructions which are not available on my hardware.
Please advise me how to proceed,
thanks,
Walter.
PS. I attach the output form cmake and make -j16.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cmake.output
URL: <http://compeng.uni-frankfurt.de/pipermail/vc-devel/attachments/20140926/24e15c87/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: make.output
URL: <http://compeng.uni-frankfurt.de/pipermail/vc-devel/attachments/20140926/24e15c87/attachment-0001.ksh>
More information about the Vc-devel
mailing list