List Info

Thread: LAM: gnu C++ compiler and STL




LAM: gnu C++ compiler and STL
user name
2006-05-09 15:14:03
Hello,

I would appreciate any hint to solve the following problem
which has to do
with some of the STL header files when trying to configure
lam-7.1.2 on x86-64
arch under linux gcc version 3.4.3 20050227 (Red Hat
3.4.3-22.1).

./configure CC=gcc CXX=g++ CFLAGS="-O2 -m64"
CXXFLAGS="-O2 -m64" \
            FC=/opt/g95/64/g95-install/bin/g95 FFLAGS=-O2 \
            --build=x86_64-opteron-linux-gnu \
            --prefix=/opt/lam/g95/64 -with-rsh=/bin/ssh
--with-rpi=sysv

...
*** C++ compiler and preprocessor
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking if want C++ exception handling... no
checking whether g++ has new(std::nothrow)... yes
checking for C++ template repository directory... not used
checking for C++ compiler template parameters... none needed
checking for C++ optimization flags... -O2 -m64
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking map usability... no
checking map presence... no
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
cherguituring:[lam-7.1.1] $ gcc3
-bash: gcc3: command not found

Sincerely,
-- 
*-----------------------------------------------------------
-------------*
 Jalel CHERGUI, LIMSI-CNRS, Bât. 508 - BP 133, 91403 Orsay
cedex, FRANCE
 Tél : (33 1) 69 85 81 27     ; Télécopie : (33 1) 69 85 80
88
 Mél : Jalel.Cherguilimsi.fr ; Référence : http://perso.limsi.fr/c
hergui
*-----------------------------------------------------------
-------------*

_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/
LAM: gnu C++ compiler and STL
user name
2006-05-09 15:53:52
Hi Jalel,

* Jalel Chergui (LIMSI-CNRS) <Jalel.Cherguilimsi.fr> wrote on Tue, May 09, 2006 at 05:14:03PM
CEST:
> 
> I would appreciate any hint to solve the following
problem which has to do
> with some of the STL header files when trying to
configure lam-7.1.2 on x86-64
> arch under linux gcc version 3.4.3 20050227 (Red Hat
3.4.3-22.1).
> 
> ./configure CC=gcc CXX=g++ CFLAGS="-O2
-m64" CXXFLAGS="-O2 -m64" \
>             FC=/opt/g95/64/g95-install/bin/g95
FFLAGS=-O2 \
>             --build=x86_64-opteron-linux-gnu \
>             --prefix=/opt/lam/g95/64 -with-rsh=/bin/ssh
--with-rpi=sysv
> 
> ...
> *** C++ compiler and preprocessor
> checking for g++... g++

> checking for unistd.h... yes
> checking map usability... no
> checking map presence... no
> 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

Please look at config.log, search for "map
usability" and find out why
the tests are failing.  That will help you to proceed.  If
not, post the
excerpt of config.log (pack long attachments).

Cheers,
Rafl
_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/
LAM: gnu C++ compiler and STL
user name
2006-05-10 10:51:59
Hello,

>>>>> "Ralf" == Ralf Wildenhues
<Ralf.Wildenhuesgmx.de> writes:

    Ralf> Please look at config.log, search for
"map usability" and find out
    Ralf> why the tests are failing.  That will help you
to proceed.  If not,
    Ralf> post the excerpt of config.log (pack long
attachments).

Thanks Ralf. A C++ include path was in fact missing. The
compiler cannot find the
<bits/c++config.h> file. That's strange, I did not
faced this problem
with lam-7.1.1 on the same arch/system. As one could expect,
the workaround
was to introduce by hand at configure time a
-I/usr/include/c++/3.4.3/i386-redhat-linux.

Regards,
Jalel
--
*-----------------------------------------------------------
-------------*
 Jalel CHERGUI, LIMSI-CNRS, Bât. 508 - BP 133, 91403 Orsay
cedex, FRANCE
 Tél : (33 1) 69 85 81 27     ; Télécopie : (33 1) 69 85 80
88
 Mél : Jalel.Cherguilimsi.fr ; Référence : http://perso.limsi.fr/c
hergui
*-----------------------------------------------------------
-------------*

_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )