Sumeet Kapur wrote:
>Hi All-
>
>I am able to compile the lam with new compilers.
>This is what I did::
>
>
>>sh-2.05b$ CC=/opt/intel_cc_80/bin/icc
>>sh-2.05b$ CXX=/opt/intel_cc_80/bin/icpc
>>sh-2.05b$ FC=/opt/intel_cc_80/bin/ifc
>>sh-2.05b$ export CC CXX FC
>>sh-2.05b$ ./configure
>>
>>
>CFLAGS='-i-static -static-libcxa -cxxlib-icc'
>CXXLAGS='-i-static -static-libcxa -cxxlib-icc'
>FFLAGS='-static-libcxa"
>Using -static option as suggested below for CFLAGS and CXXFLAGS didn't work.
>
>Also ealier I was not able to run my fortran (single processor) code, now
>when I use -i-static option, i am able to run the fortran code, but now I am
>having some problem with my C-parallel code.
>
>thanks in advance-
>-sumeet-
>
>When I try to compile the parallel code using mpicc:
>This is what i get as an output::
>---------->make prmpi.x
>mpicc -c main.C
>mpicc -c initpos.C
>initpos.C(579): warning #268: the format string ends before this argument
> fprintf( flowrite[2],"nleft\n",(nhtot-nv) ) ;
> ^
>mpicc -c iodata.C
>mpicc -c commun.C
>mpicc -c eigen.C
>mpicc -c eval.C
>mpicc -c ters_eval.C
>mpicc -c var_init.C
>mpicc -c cellsetup.C
>mpicc -c nlist.C
>mpicc -c integrate.C
>integrate.C(228): warning #181: argument is incompatible with corresponding
>format string conversion
> fscanf(fpinPR,"%d %s",&pot,&iensemble);
> ^
>mpicc -O3 main.o initpos.o iodata.o commun.o eigen.o eval.o ters_eval.o
>var_init.o cellsetup.o nlist.o integrate.o -o prmpi.x
>main.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
>initpos.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
>iodata.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
>commun.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
>eigen.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
>eval.o(.eh_frame+0x12): more undefined references to `__gxx_personality_v0'
>follow
>make: *** [prmpi.x] Error 1
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>-----Original Message-----
>From: Andrew Sapronov [mailto:sapr_at_[hidden]]
>Sent: Monday, July 04, 2005 8:04 AM
>To: kapurs_at_[hidden]; General LAM/MPI mailing list
>Subject: Re: LAM: Trouble installing LAM 7.1.1 on Red Hat Linux 3 ES
>usingicc, icpc and ifc (intel compilers)
>
>
>On Thu, 2005-06-30 at 13:05 -0400, Sumeet Kapur wrote:
>Try this options:
>"-static -i-static -static-libcxa -cxxlib-icc" for icc & icpc
>"-static -static-libcxa" for ifort
>
>
In case no one explained, -cxxlib-icc invoked the Dinkumware STL, for
those past Intel C++ compilers which provided it. -static-libcxa is
included in -i-static, which in turn is included in -static.
It looks like you're trying to use mpicc to perform a C++ link, with the
result that you're not linking against g++ libraries. Did you build an
mpicxx? Otherwise, you need to specify all C++ libraries explicitly,
not a recommended way to go. If you meant C, get rid of your C++ stuff.
|