Hi There,
I recently migrated a model written in fortran to a new machine, from OSX to CentOS. With this migration came a new version of ifort and icc and also a switch from using mpich2 to openmpi for the parallel compilation. The problem is, with no changes to the code, the model won't compile on the new machine. I have already compiled another model written in fortran in both serial and parallel, so I know the compilers are working properly.
I was hoping someone could help me figure out some possible compiler options, or point out some differences in the ifort versions that could lead to this difference.
Here is the version of Ifort on the Mac that was used previously that works for both serial and parallel (with mpich2)
Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 14.0.3.166 Build 20140415
and the new version on the CentOS server
Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 15.0.3.187 Build 20150407
and the error message from the new machine (this is in parallel with openmpi)
ifort: command line remark #10010: option '-vec-report0' is deprecated and will be removed in a future release. See '-help deprecated'
wqm_inputs.o: In function `inputs_':
wqm_inputs.f90:(.text+0x0): multiple definition of `inputs_'
wqm_inputs.o:wqm_inputs.f90:(.text+0x0): first defined here
wqm_inputs.o: In function `error_check_':
wqm_inputs.f90:(.text+0x2c890): multiple definition of `error_check_'
wqm_inputs.o:wqm_inputs.f90:(.text+0x2c890): first defined here
make: *** [wqm_dom2] Error 1
When I comment out subroutine ERROR_CHECK the error_check error doesn't occur, but I can't figure out the other one.
It also doesn't compile in serial... but the error is different.
Any help would be greatly appreciated, bare in mind I am an oceanographer not an engineer, so my knowledge of coding and compiling is very limited.