[gmx-users] re: ensuring that compilation used gcc 3.x
David Chan
dichan at ucalgary.ca
Mon Aug 11 23:11:28 CEST 2008
Hey Chris
When I downgraded to gcc 3.X I specified which compiler to use with CC=
and CXX= then my log was 4.X-free.
Have you tried that?
David
Message: 3
Date: Mon, 11 Aug 2008 16:48:32 -0400
From: Chris Neale <chris.neale at utoronto.ca>
Subject: [gmx-users] ensuring that compilation used gcc 3.x
To: gmx-users at gromacs.org
Message-ID: <48A0A5A0.2060805 at utoronto.ca>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello,
I am attempting to compile gromacs using gcc 3.x and I would like to
confirm that I have actually obtained what I intended. In order to do
this, I have set my path with the desired version of gcc first:
export PATH=/tools/gcc/3.4.6/bin:$PATH
However, I am not convinced that I am actually getting a gcc 3.x
compiled version because it still finds the default /usr/bin/cc, which
is gcc 4.1.2.
Here is some output from the config.log file.
cneale at cn-r1-3:/hpf/data/pomes/cneale/exe/gromacs-3.3.3_newccb_gcc3.4.6>
grep gcc reg.config.log |grep -v _gcc
PATH: /tools/gcc/3.4.6/bin
gcc version 4.1.2 20070115 (SUSE Linux)
configure:4025: result: gcc3
configure:4414: result: gcc3
configure:10109: found /tools/gcc/3.4.6/bin/g++
Reading specs from
/hpf/tools/gcc/3.4.6/bin/../lib/gcc/x86_64-unknown-linux-gnu/3.4.6/specs
Configured with: ./configure --prefix=/tools/gcc/3.4.6
--with-local-prefix=/tools/gcc/3.4.6 --enable-__cxa_atexit --disable-nls
--enable-threads=posix --enable-languages=c,c++,fortran,java,objc
--disable-multilib : (reconfigured) ./configure
--prefix=/tools/gcc/3.4.6 --with-local-prefix=/tools/gcc/3.4.6
--enable-__cxa_atexit --disable-nls --enable-threads=posix
--enable-languages=c,c++,f77,java,objc --disable-multilib
gcc version 3.4.6
configure:10524: result: gcc3
am_cv_CCAS_dependencies_compiler_type=gcc3
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
CCASDEPMODE='depmode=gcc3'
CCDEPMODE='depmode=gcc3'
CXXDEPMODE='depmode=gcc3'
###
where the initial gcc version is returned like this:
configure:3201: checking for cc
configure:3217: found /usr/bin/cc
configure:3228: result: cc
configure:3264: checking for C compiler version
configure:3271: cc --version >&5
cc (GCC) 4.1.2 20070115 (SUSE Linux)
Copyright (C) 2006 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.
configure:3274: $? = 0
configure:3281: cc -v >&5
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.2
--enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib64
--with-system-zlib --enable-shared --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --program-suffix=
--enable-version-specific-runtime-libs --without-system-libunwind
--with-cpu=generic --host=x86_64-suse-linux
Thread model: posix
gcc version 4.1.2 20070115 (SUSE Linux)
configure:3284: $? = 0
configure:3291: cc -V >&5
cc: '-V' option must have argument
###
Thanks,
Chris.
More information about the gromacs.org_gmx-users
mailing list