command line - CMake fails to generate Makefiles with Sun Studio 12.5 -


i'm working on solaris 11.3 sun studio 12.5. when attempt configure cmake out-of-tree, cmake finishes configuration errors , not produce makefiles. in-tree may broken, too. our procedures build out-of-tree, that;' do.

i have no cmake experience. others contributed the cmake files, , struggle tasks related them. i'm not sure if doing wrong, if our cmake files broken, or if cmake not tested under solaris.

what going on cmake, , how fix it?


here links cmake files. can copy/paste them, takes bunch of space. files hosted on github should available.

here solaris' cmake version, prior me installing 3.6.2:

$ cmake --version cmake version 2.8.6 

below solaris cmake version 2.8.6.

cryptopp-build$ export cxx=/opt/developerstudio12.5/bin/cc cryptopp-build$ export cxxflags="-dndebug -g2 -o2 -d__sse2__ -d__sse3__ -d__ssse3__ -d__sse4_1__ -d__sse4_2__ -d__aes__ -d__pclmul__ -d__rdrnd__ -d__rdseed__ -d__avx__ -d__avx2__ -d__bmi__ -d__bmi2__ -d__adx__ -xarch=avx2_i"  cryptopp-build$ cmake ../cryptopp -- cxx compiler identification unknown -- check working cxx compiler: /bin/c++ -- check working cxx compiler: /bin/c++ -- broken cmake error @ /usr/share/cmake-2.8/modules/cmaketestcxxcompiler.cmake:45 (message):   c++ compiler "/bin/c++" not able compile simple test program.    fails following output:     change dir: /export/home/test/cryptopp-build/cmakefiles/cmaketmp      run build command:/bin/gmake "cmtrycompileexec/fast"    /bin/gmake -f cmakefiles/cmtrycompileexec.dir/build.make   cmakefiles/cmtrycompileexec.dir/build    gmake[1]: entering directory   `/export/home/test/cryptopp-build/cmakefiles/cmaketmp'    /usr/bin/cmake -e cmake_progress_report   /export/home/test/cryptopp-build/cmakefiles/cmaketmp/cmakefiles 1    building cxx object cmakefiles/cmtrycompileexec.dir/testcxxcompiler.cxx.o    /bin/c++ -dndebug -g2 -o2 -d__sse2__ -d__sse3__ -d__ssse3__ -d__sse4_1__   -d__sse4_2__ -d__aes__ -d__pclmul__ -d__rdrnd__ -d__rdseed__ -d__avx__   -d__avx2__ -d__bmi__ -d__bmi2__ -d__adx__ -xarch=avx2_i -o   cmakefiles/cmtrycompileexec.dir/testcxxcompiler.cxx.o -c   /export/home/test/cryptopp-build/cmakefiles/cmaketmp/testcxxcompiler.cxx    c++: error: language arch=avx2_i not recognized    c++: error: language arch=avx2_i not recognized    gmake[1]: leaving directory   `/export/home/test/cryptopp-build/cmakefiles/cmaketmp'    gmake[1]: *** [cmakefiles/cmtrycompileexec.dir/testcxxcompiler.cxx.o] error   1    gmake: *** [cmtrycompileexec/fast] error 2    cmake not able correctly generate project. call stack (most recent call first):   cmakelists.txt:9 (project)  -- configuring incomplete, errors occurred! 

and:

$ /opt/developerstudio12.5/bin/cc -v cc: studio 12.5 sun c++ 5.14 sunos_i386 2016/05/31 

i built cmake 3.6.2 sources , installed in /usr/local attack cxx compiler identification unknown issue, appears having troubles. said earlier, i'm not cmake expert (and i'm not sure how 1 can mess make && sudo make install).

cryptopp-build$ cmake ../cryptopp cmake error: not find cmake_root !!! cmake has not been installed correctly. modules directory not found in /usr/local/bin cmake error: error executing cmake::loadcache(). aborting. 

clearing cache suggested @andrewhenle results in:

# project gnumakefile clears cmake artifacts because cmake cannot seem on own $ cd cryptopp $ git status -s $  $ cd .. $ rm -rf cryptopp-build $ mkdir cryptopp-build $ cd cryptopp-build  # using 3.6.2 $ cmake ../cryptopp cmake error: not find cmake_root !!! cmake has not been installed correctly. modules directory not found in /usr/local/bin cmake error: error executing cmake::loadcache(). aborting. 

so there appeared 2 problems. first down level sun supplied cmake. there's nothing genius diagnosing "too old".

the second issue more interesting. appears cmake error: not find cmake_root !!! cause sudo make install once switched sudo gmake install issue went away.

here bug reports on issue:


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -