LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Tim Prince (tprince_at_[hidden])
Date: 2004-12-05 01:40:43


At 09:14 AM 12/4/2004, Alan Wilter Sousa da Silva wrote:

># to make INTEL compilers work
>if [ -z "${PATH}" ]
>then
> PATH="/usr/local/intel/bin"; export PATH
>else
> PATH="/usr/local/intel/bin:$PATH"; export PATH
>fi
>
>if [ -z "${LD_LIBRARY_PATH}" ]
>then
> LD_LIBRARY_PATH="/usr/local/intel/lib"; export LD_LIBRARY_PATH
>else
> LD_LIBRARY_PATH="/usr/local/intel/lib:$LD_LIBRARY_PATH"; export
>LD_LIBRARY_PATH
>fi
>
>dir=/home/alan
>lam=lam-7.1.1.tar.bz2
>ilam=lam-7.1.1
>
>export CC=icc
>export CXX=icpc
>export F77=ifort
>export CFLAGS="-O3 -static -static-libcxa"
>export CXXFLAGS="-O3 -static -static-libcxa"
>export FFLAGS="-O3 -static -static-libcxa"
>export CPPFLAGS=-I/$dir/include
>export LDFLAGS=-L/$dir/lib
>
>cd $dir/AMD
>tar xvfj $lam
>cd $ilam
>make distclean
>../configure --prefix=$dir --with-rpi=sysv
>##########################################
>
>But I got that:
>
>##########################################
>checking for map... no
>configure: WARNING: *** Your C++ compiler does not seem to support the
>STL.
>configure: WARNING: *** STL support is necessary to compile LAM/MPI
>configure: error: cannot continue
>###########################################
>
>I've already tried -lunwind, -LANG:std option. Same problem.
>Setting CXX=g++ works fine only for ./configure (make didn't work).
>
>GNU compiler works fine.

config.log should contain relevant information about the STL failure. If
you want icc 8.1 to configure automatically to use libstdc++, you must have
a working installation of g++-3.2.x through g++-3.4.x active for root when
you install icc. Otherwise, it should default to the Dinkumware STL. That
will go away in future icc versions.
In principle, if you have one of the qualifying versions of g++, you should
be able to build with g++, icc, and ifort. We usually build with gcc, g++,
and ifort, for applications which don't use much C++ and don't need icc for
performance.
I don't know whether installing Intel compilers in a non-standard location
would cause confusion. I've never set -O3 for building lam; that seems
aggressive.

Tim Prince