From NWChem
Viewed 96 times, With a total of 2 Posts
|
Gets Around
Threads 26
Posts 85
|
|
2:52:37 AM PDT - Sun, May 17th 2015 |
|
Hi,
I'm trying to compile mov2asc on window.
The procedure is the same which was successful in the compilation of NWChem.
I do the following:
export NWCHEM_TOP=~/nwchem-6.5
export NWCHEM_TARGET=LINUX
export USE_MPI=yes
export MPI_LOC=~/MPICH2
export MPI_INCLUDE=$MPI_LOC/include
export MPI_LIB=$MPI_LOC/lib
export LIBMPI="-lfmpich2g -lmpi"
export NWCHEM_MODULES=all
export DEPEND_CC=gcc
cd $NWCHEM_TOP/contrib/mov2asc/
make FC=gfortran DEPEND_CC=gcc
Output:
$ make FC=gfortran DEPEND_CC=gcc
gfortran -c -fno-second-underscore -I../../src/tools/install/include mov2asc
.F
gfortran -fno-second-underscore -I../../src/tools/install/include -o mov2
asc mov2asc.o -L../../src/tools/install/lib -lga -larmci
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x54f): undef
ined reference to `MPI_Comm_rank'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x5c8): undef
ined reference to `MPI_Type_size'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x6c2): undef
ined reference to `MPI_Allreduce'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x770): undef
ined reference to `MPI_Bcast'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x800): undef
ined reference to `MPI_Type_struct'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x8c8): undef
ined reference to `MPI_Allreduce'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x942): undef
ined reference to `MPI_Allreduce'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x9c3): undef
ined reference to `MPI_Allreduce'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0xa40): undef
ined reference to `MPI_Allreduce'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0xac6): undef
ined reference to `MPI_Allreduce'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0xb89): undef
ined reference to `MPI_Bcast'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0xbf1): undef
ined reference to `MPI_Comm_rank'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0xc73): undef
ined reference to `MPI_Isend'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0xcf2): undef
ined reference to `MPI_Test'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0xd49): undef
ined reference to `MPI_Comm_rank'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0xdcb): undef
ined reference to `MPI_Irecv'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0xe1b): undef
ined reference to `MPI_Test'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0xe76): undef
ined reference to `MPI_Test'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0xec4): undef
ined reference to `MPI_Get_count'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0xf12): undef
ined reference to `MPI_Comm_rank'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0xf95): undef
ined reference to `MPI_Irecv'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0xfd3): undef
ined reference to `MPI_Test'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x1021): unde
fined reference to `MPI_Get_count'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x128c): unde
fined reference to `MPI_Barrier'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x13f2): unde
fined reference to `MPI_Comm_rank'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x145e): unde
fined reference to `MPI_Comm_size'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x1495): unde
fined reference to `MPI_Abort'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x14a8): unde
fined reference to `MPI_Initialized'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x14c1): unde
fined reference to `MPI_Init'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x14d4): unde
fined reference to `MPI_Initialized'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x14fc): unde
fined reference to `MPI_Finalize'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x1509): unde
fined reference to `MPI_Wtime'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x177e): unde
fined reference to `MPI_Barrier'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x17b8): unde
fined reference to `MPI_Bcast'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x17d1): unde
fined reference to `MPI_Comm_group'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x1810): unde
fined reference to `MPI_Comm_group'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x185d): unde
fined reference to `MPI_Group_translate_ranks'
../../src/tools/install/lib/libarmci.a(message.o):message.c:(.text+0x189d): unde
fined reference to `MPI_Bcast'
e:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: ../../src/
tools/install/lib/libarmci.a(message.o): bad reloc address 0x20 in section `.eh_
frame'
e:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link
failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
make: *** [mov2asc] Error 1
Could you be so kind as to help with this?
|
|
|
-
Edoapra Forum:Admin, Forum:Mod, bureaucrat, sysop
|
|
Forum Vet
Threads 3
Posts 855
|
|
11:24:06 AM PDT - Mon, May 18th 2015 |
|
Please try
make FC=mpif90 DEPEND_CC=gcc
|
|
|
|
Gets Around
Threads 26
Posts 85
|
|
3:26:28 AM PDT - Tue, May 19th 2015 |
|
Vladimir
I am assuming that
1) you have a working MPI installation
and
2) mpif90 is in your path
$ make FC=mpif90 DEPEND_CC=gcc
mpif90 -fno-second-underscore -I../../src/tools/install/include -o mov2
asc mov2asc.o -L../../src/tools/install/lib -lga -larmci
make: mpif90: Command not found
PS Sorry for highjacking the post ... it was not intended
|
Edited On 10:21:56 AM PDT - Tue, May 19th 2015 by Edoapra
|
|
|
AWC's:
2.5.10 MediaWiki - Stand Alone Forum Extension
Forum theme style by: AWC