failed to build the example

5 views
Skip to first unread message

chenyaq...@gmail.com

unread,
Nov 21, 2018, 8:16:38 AM11/21/18
to i3rc-monte-carlo-model

Hi! I am currently studying the effect of multiple scattering cloudy atmosphere. I want to consider the three demensional cloud and calculate the attenuation of the shortwave radiation. Recently, I have been trying to use the I3RC-Monte-Carlo model in ubuntu-18.04.1. I tried to make a build of the example in it, but during the make process, I encountered the error:

 

Fatal Error: While reading module 'netcdf' found module version 0, expected 9.

Makefile:12:recipe for target '/home/chenyaqian/i3rc/Code/scatteringPhaseFunctions.o' failed.

 

At first, I thought it could be caused by the version of netcdf. I have tried netcdf-3.6.3netcdf-4.1.3netcdf-4.6.1+netcdf-fortran-4.4.4 but they all caused the same error. Finally, when I compiled it with gfortran instead of g95, the error can be solved. However, when using gfortran, I encountered a new error:

 

/tmp/ccOaaRv3.o: In function `main':

i3rcStepCloud.f95:(.text.startup+0x0): multiple definition of `main'

i3rcStepCloud.o:i3rcStepCloud.f95:(.text.startup+0x0): first defined here

collect2: error: ld returned 1 exit status

make1.common:150: recipe for target 'i3rcStepCloud' failed

make: *** [i3rcStepCloud] Error 1

rm i3rcStepCloud.o

 

Morever, when the compiler is ifort, I encountered this error:

 

ifort -O3 -heap-arrays -diag-disable vec -ipo -I/usr/local/netcdf/include   -c -free -Tf /home/chenyaqian/I3RC/I3RC-Examples/characterUtils.f95

make: ifort: Command not found

Makefile:9: recipe for target '/home/chenyaqian/I3RC/I3RC-Examples/characterUtils.o' failed

 

The relevant documents of the I3RC model is really scarce and I don't know how to use it(the version of netcdf and fortran compiler, the operation steps of the build of the example,etc). I need help to run the i3rc code. Could you tell me how to solve these errors or how to get start with the model?

Thanks

Chen

Reply all
Reply to author
Forward
0 new messages