LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-18-2017, 11:08 PM   #31
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled

I get this error


CC=gcc53 CXX=g++53 cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON

CMake Error at cmake/gmxTestCXX11.cmake:113 (message):
This version of GROMACS requires a C++11 compiler. Please use a newer
compiler or use the GROMACS 5.1.x release. See the installation guide for
details.
Call Stack (most recent call first):
CMakeLists.txt:164 (gmx_test_cxx11)


-- Configuring incomplete, errors occurred!
See also "/gromacs-2016.1/CMakeFiles/CMakeOutput.log".
See also "/gromacs-2016.1/CMakeFiles/CMakeError.log"
 
Old 04-19-2017, 03:33 AM   #32
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #31.

Please test the new compilers :
$ rpm -qa gcc53-c++
... The reply should be gcc53-c++-5.3.0-1.el6.x86_64
$ which gcc53
$ which g++53
$ gcc53 -v
$ g++53 -v

And you can go back and read all answers until you get things right.
... Then hopefully you will get "CXX11_SUPPORTED - Success" :

Code:
gromacs-2016.3/build $ CC=gcc53 CXX=g++53 cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON
-- Performing Test CXXFLAG_STD_CXX0X                                
-- Performing Test CXXFLAG_STD_CXX0X - Success                      
-- Performing Test CXX11_SUPPORTED                                  
-- Performing Test CXX11_SUPPORTED - Success                        
-- Performing Test CXX11_STDLIB_PRESENT                             
-- Performing Test CXX11_STDLIB_PRESENT - Success                   
-- Looking for NVIDIA GPUs present in the system                    
-- Number of NVIDIA GPUs detected: 1
 
1 members found this post helpful.
Old 04-19-2017, 06:14 AM   #33
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
[root@mqml build]# CC=gcc53 CXX=g++53 cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON
CMake Error at cmake/gmxTestCXX11.cmake:113 (message):
This version of GROMACS requires a C++11 compiler. Please use a newer
compiler or use the GROMACS 5.1.x release. See the installation guide for
details.
Call Stack (most recent call first):
CMakeLists.txt:164 (gmx_test_cxx11)


Still I get the same error
 
Old 04-19-2017, 10:31 AM   #34
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #33.

REPEAT from #32 :
Please test the new compilers :
$ rpm -qa gcc53-c++
$ which gcc53
$ which g++53
$ gcc53 -v
$ g++53 -v

? What is the outputs from these five commands ?
 
1 members found this post helpful.
Old 04-19-2017, 11:17 AM   #35
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
[root@mqml Desktop]# rpm -qa gcc53-c++
gcc53-c++-5.3.0-1.el6.x86_64
[root@mqml Desktop]# which gcc53
/usr/bin/gcc53
[root@mqml Desktop]# which g++53
/usr/bin/g++53
[root@mqml Desktop]# gcc53 -v
Using built-in specs.
COLLECT_GCC=gcc53
COLLECT_LTO_WRAPPER=/usr/local/gcc53/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-5.3.0/configure --prefix=/usr/local/gcc53 --program-suffix=53 --enable-languages=c,c++ --with-system-zlib --disable-multilib
Thread model: posix
gcc version 5.3.0 (GCC)
[root@mqml Desktop]# g++53 -v
Using built-in specs.
COLLECT_GCC=g++53
COLLECT_LTO_WRAPPER=/usr/local/gcc53/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-5.3.0/configure --prefix=/usr/local/gcc53 --program-suffix=53 --enable-languages=c,c++ --with-system-zlib --disable-multilib
Thread model: posix
gcc version 5.3.0 (GCC)
[root@mqml Desktop]#
 
Old 04-19-2017, 02:08 PM   #36
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #35.

gromacs-2016.x is a little different from other cmake builds.
With some software, you will have to delete CMakeCache.txt before re-configuring.
But ``gromacs´´ saves the test result in some other files, which will not be replaced when re-configuring.

So once run with gcc-4.4.7, g++-4.4.7 : Delete all files in the build/ folder.
Then gcc53, g++53 will be recognized, when using $ CC=gcc53 CXX=g++53 cmake .. [options]



-

Last edited by knudfl; 04-19-2017 at 02:41 PM.
 
1 members found this post helpful.
Old 04-20-2017, 01:41 AM   #37
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
Dear knudfl

That was really a good guidance.
Thank you so much. I have solved the problem. So much thankful to You
 
Old 05-01-2017, 06:57 AM   #38
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
Dear Knudfl

I am struck again with a different problem in the installation of Gromacs.

For make check command, I am getting so many failed test.

What Should be done?
 
  


Reply

Tags
gcc-4.9, gcc-5.3, gromacs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GCC 4.9 vs. GCC 5.1 vs. GCC 6.0 SVN Compiler Benchmarks LXer Syndicated Linux News 0 06-08-2015 01:00 PM
[SOLVED] SEGMENTATION FAULT using gcc 4.4.4 -O2 , works with gcc 4.1.0 -O2 or gcc 4.4.4 -O1 amir1981 Programming 36 07-26-2010 06:07 PM
Installing vmware on Open Suse 11.1 - Requires original gcc 4.32 - gcc now 4.3 cyclops.matrix Linux - Software 2 08-31-2009 02:52 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration