The OASIS Coupler Forum

  HOME

Error when compiling tutorial on IBM Flex P460 with AIX (mpxlf90_r )

Up to Starting with OASIS3-MCT (first steps, tutorial, ...)

Posted by Anonymous at March 11 2016

Hi all,

I compiled OASIS-MCT sucessfully on an IBM Flex P460 with AIX, but the tutorial model can't be compiled right.

mpxlf90_r -qsuffix=cpp=F90 -q64 -qextname=flush -O3 -qtune=pwr7 -qarch=pwr7 -I/cma/u/sunmh/oasis3-mct/AIX7/buil/lib/psmile.MPI1 -I/cma/u/sunmh/oasis3-mct/AIX7/build/lib/scrip -I/cma/u/sunmh/oasis3-mct/AIX7/build/lib/mct -WF,-Duse_comm_MPI1 -WF,-D__VERBOSE -WF,-DTREAT_OVERLAY -I/cma/u/app/netcdf-3.6.3/include -DDECOMP_APPLE -DUSE_DOUBLE_PRECISION -c decomp_def.F90

I have the following error:

/usr/bin/xlf90_r: 1501-214 (W) command option E reserved for future use - ignored

/usr/bin/xlf90_r: 1501-214 (W) command option M reserved for future use - ignored

/usr/bin/xlf90_r: 1501-210 (S) command option P contains an incorrect subargument

make: The error code from the last command is 40.

Do you know what is going wrong ?

Thanks, Best regards, Minghua

Posted by Anonymous at March 14 2016

Hi,

At the Met Office we used to compile on IBM Power6/7 machines so have a bit of experience of getting things working using AIX. The main thing we had to worry about was the syntax for the CPP key options. 

Under AIX, this really just means ensuring you use "-WF," in front of the -D options. From the above it looks like you are missing this from your last two CPP keys: 
-DDECOMP_APPLE and -DUSE_DOUBLE_PRECISION

Richard

Posted by Anonymous at March 15 2016

In fact the tutorial toy uses in its Makefile options already used for compiling OASIS3-MCT but it uses also local options only defined for it. 

So the options -DDECOMP_APPLE -DUSE_DOUBLE_PRECISION are not correct and must be modified as : -WF,-DDECOMP_APPLE WF,-DUSE_DOUBLE_PRECISION as mentionned by Richard.

Best regards, Laure
Reply to this