[molpro-user] compiling c++ part of code with IBM compiler

Andy May MayAJ1 at cardiff.ac.uk
Wed Feb 13 11:49:47 GMT 2013


Amit,

We don't have access to the IBM XL compilers or any systems with them 
installed, so the settings for those compilers are quite old and not 
tested recently.

If you can send me the changes you needed to make to CONFIG, subdirs.mk 
etc. then I'll patch them in.

I tried searching for the error and came across this:

http://stackoverflow.com/questions/1094066/static-declarations-are-not-considered-for-a-function-call-if-the-function-is-no

which seems to suggest that simply removing the 'static' declarations 
(eg. line 2188) should be able to fix the problem, perhaps you can try this?

Best wishes,

Andy

On 07/02/13 22:15, amit sharma wrote:
> Hi,
> I am trying to compile Molpro 2012 with IBM compiler on BG/P. There were
> issues with the fortran part of the code which I was able to resolve. I
> had to declare separate flags for .F and .F90 and make changes in
> subdirs.mk <http://subdirs.mk>. The fortran part has been compiled. I am
> getting errors when compiling the c++ part of the package, mostly in
> src/cic subdirectory. Similar errors have been reported on IBM forums at
> some point of time and seems to have been resolved. Maybe I am missing a
> flag that someone can point me to or I might be using wrong -D flag.
> Here are the errors
> $(CXX) -c $(CXXFLAGS) -O3 ItfTensor.cpp
>
> where CXXFLAGS is =
>
> -qarch=450d -qtune=450 -DMOLPRO -D_I8_ -DBLAS_INT=8 -DLAPACK_INT=8
> -DMOLPRO_FORCE_VECTOR -DMOLPRO_HPDIR -DMOLPRO_NEXTSCALAR
> -DMOLPRO_NO_RECURRENCE -DMOLPRO_NOVECTOR -DMOLPRO_SCALAR
> -DMOLPRO_SHORTLOOP -D_MOLCAS_MPP_ -I. -I.. -I../Molcas/Include
> -I../boost -qidirfirst
>
> "ItfTensor.cpp", line 2274.17: 1540-0274 (S) The name lookup for
> "CanonicalizeIndexPair2" did not find a declaration.
> "ItfTensor.cpp", line 2274.17: 1540-1292 (I) Static declarations are not
> considered for a function call if the function is not qualified.
> "ItfTensor.cpp", line 2248.6: 1540-0700 (I) The previous message was
> produced while processing
> "FIndexCanonicalizer::Canonicalize<TArrayFix<signed char,6,unsigned int>
>  >(TArrayFix<signed char,6,unsigned int> &, FSlotOrder &, const
> TArrayFix<signed char,6,unsigned int> &) const".
> "ItfTensor.cpp", line 2279.17: 1540-0274 (S) The name lookup for
> "CanonicalizeIndexPairGen" did not find a declaration.
> "ItfTensor.cpp", line 2279.17: 1540-1292 (I) Static declarations are not
> considered for a function call if the function is not qualified.
> "ItfTensor.cpp", line 2274.17: 1540-0274 (S) The name lookup for
> "CanonicalizeIndexPair2" did not find a declaration.
> "ItfTensor.cpp", line 2274.17: 1540-1292 (I) Static declarations are not
> considered for a function call if the function is not qualified.
> "ItfTensor.cpp", line 2248.6: 1540-0700 (I) The previous message was
> produced while processing
> "FIndexCanonicalizer::Canonicalize<TArrayFix<unsigned long
> long,6,unsigned int> >(TArrayFix<unsigned long long,6,unsigned int> &,
> FSlotOrder &, const TArrayFix<unsigned long long,6,unsigned int> &) const".
> "ItfTensor.cpp", line 574.41: 1540-0700 (I) The previous message was
> produced while processing "FTensorShapeCut::MakeBlockEntries(FBlockEntry
> *&, FBlockCount &, FMemoryStack &, const FBlockRange &, const
> FSlotAccessModes &, uint) const".
> "ItfTensor.cpp", line 2279.17: 1540-0274 (S) The name lookup for
> "CanonicalizeIndexPairGen" did not find a declaration.
> "ItfTensor.cpp", line 2279.17: 1540-1292 (I) Static declarations are not
> considered for a function call if the function is not qualified.
> "ItfTensor.cpp", line 2274.17: 1540-0274 (S) The name lookup for
> "CanonicalizeIndexPair2" did not find a declaration.
> "ItfTensor.cpp", line 2274.17: 1540-1292 (I) Static declarations are not
> considered for a function call if the function is not qualified.
> "ItfTensor.cpp", line 2248.6: 1540-0700 (I) The previous message was
> produced while processing
> "FIndexCanonicalizer::Canonicalize<FBlockRange>(FBlockRange &,
> FSlotOrder &, const FBlockRange &) const".
> "ItfTensor.cpp", line 2279.17: 1540-0274 (S) The name lookup for
> "CanonicalizeIndexPairGen" did not find a declaration.
> "ItfTensor.cpp", line 2279.17: 1540-1292 (I) Static declarations are not
> considered for a function call if the function is not qualified.
> make[2]: *** [ItfTensor.o] Error 1
>
>
>  >mpixlcxx -qarch=450d -qtune=450 -DMOLPRO -D_I8_ -DBLAS_INT=8
> -DLAPACK_INT=8 -DMOLPRO_FORCE_VECTOR -DMOLPRO_HPDIR -DMOLPRO_NEXTSCALAR
> -DMOLPRO_NO_RECURRENCE -DMOLPRO_NOVECTOR -DMOLPRO_SCALAR
> -DMOLPRO_SHORTLOOP -D_MOLCAS_MPP_ -I. -I.. -I../Molcas/Include
> -I../boost -qidirfirst -c ItfAlgoSet.cpp
> "ItfAlgoSet.cpp", line 683.27: 1540-1187 (S) "GenerateAlgo" must not
> have default arguments.
>
> Thx
> Amit
>
>
>
>
>
> _______________________________________________
> Molpro-user mailing list
> Molpro-user at molpro.net
> http://www.molpro.net/mailman/listinfo/molpro-user
>



More information about the Molpro-user mailing list