Andy,<div>Removing static worked!  there is one another error, probably the last before "make" generates lib.a.</div><div><div>$(CXX) -c $(CXXFLAGS) -O3 ItfAlgoSet.cpp</div><div>"ItfAlgoSet.cpp", line 683.27: 1540-1187 (S) "GenerateAlgo" must not have default arguments.</div>
<div>Once I get it to compile (or otherwise) I will send you the changes that I have made.</div><div><br></div><div>Jeff,</div><div>Is the GCC C++ compiler on BG/P a cross-compiler? I am not too sure from ALCF documentation.</div>
<div><br></div><div>Thank you for your help.</div><div>Amit</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote">On Wed, Feb 13, 2013 at 9:59 AM, Jeff Hammond <span dir="ltr"><<a href="mailto:jhammond@alcf.anl.gov" target="_blank">jhammond@alcf.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andy,<br>
<br>
If you want machine access to port Molpro to BGP, POWER7 and/or BGQ,<br>
let me know and I will arrange it for you.<br>
<br>
Hi Amit,<br>
<br>
Just use GCC C++ compiler (mpicxx on BG).  The XLC++ compiler on BGP<br>
is really bad and even if I filed a bug report today, IBM might not<br>
fix it before the machine is unplugged at Argonne (in a year or so).<br>
You'll not see an performance benefit from XLC anyways since it<br>
auto-vectorizes about as often as large asteroids strike the earth.<br>
<br>
In general, I always recommend porting a code to BG for the first time<br>
with GCC.  If that works but the subsequent attempt with the IBM<br>
compilers fails, we know it's a compiler problem.  On the other hand,<br>
if the GCC port fails, it's a system software issue, not a compiler<br>
issue.  Occasionally, GCC has problems but those can always be<br>
verified on another system, which makes debugging much simpler.<br>
<br>
If GCC 4.1.2 doesn't work due to lack of either C++ or Fortran 95<br>
support, we also have GCC 4.3.2 (you'll need the softenv key for this,<br>
but type "softenv" and it will show you the list of options<br>
available).  Users have built GCC 4.6 on BGP in the event that Molpro<br>
needs some very exotic C++ features added recently (I doubt this).<br>
<br>
Best,<br>
<br>
Jeff<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Feb 13, 2013 at 5:49 AM, Andy May <<a href="mailto:MayAJ1@cardiff.ac.uk">MayAJ1@cardiff.ac.uk</a>> wrote:<br>
> Amit,<br>
><br>
> We don't have access to the IBM XL compilers or any systems with them<br>
> installed, so the settings for those compilers are quite old and not tested<br>
> recently.<br>
><br>
> If you can send me the changes you needed to make to CONFIG, <a href="http://subdirs.mk" target="_blank">subdirs.mk</a> etc.<br>
> then I'll patch them in.<br>
><br>
> I tried searching for the error and came across this:<br>
><br>
> <a href="http://stackoverflow.com/questions/1094066/static-declarations-are-not-considered-for-a-function-call-if-the-function-is-no" target="_blank">http://stackoverflow.com/questions/1094066/static-declarations-are-not-considered-for-a-function-call-if-the-function-is-no</a><br>

><br>
> which seems to suggest that simply removing the 'static' declarations (eg.<br>
> line 2188) should be able to fix the problem, perhaps you can try this?<br>
><br>
> Best wishes,<br>
><br>
> Andy<br>
><br>
><br>
> On 07/02/13 22:15, amit sharma wrote:<br>
>><br>
>> Hi,<br>
>> I am trying to compile Molpro 2012 with IBM compiler on BG/P. There were<br>
>> issues with the fortran part of the code which I was able to resolve. I<br>
>> had to declare separate flags for .F and .F90 and make changes in<br>
>> <a href="http://subdirs.mk" target="_blank">subdirs.mk</a> <<a href="http://subdirs.mk" target="_blank">http://subdirs.mk</a>>. The fortran part has been compiled. I am<br>
>><br>
>> getting errors when compiling the c++ part of the package, mostly in<br>
>> src/cic subdirectory. Similar errors have been reported on IBM forums at<br>
>> some point of time and seems to have been resolved. Maybe I am missing a<br>
>> flag that someone can point me to or I might be using wrong -D flag.<br>
>> Here are the errors<br>
>> $(CXX) -c $(CXXFLAGS) -O3 ItfTensor.cpp<br>
>><br>
>> where CXXFLAGS is =<br>
>><br>
>> -qarch=450d -qtune=450 -DMOLPRO -D_I8_ -DBLAS_INT=8 -DLAPACK_INT=8<br>
>> -DMOLPRO_FORCE_VECTOR -DMOLPRO_HPDIR -DMOLPRO_NEXTSCALAR<br>
>> -DMOLPRO_NO_RECURRENCE -DMOLPRO_NOVECTOR -DMOLPRO_SCALAR<br>
>> -DMOLPRO_SHORTLOOP -D_MOLCAS_MPP_ -I. -I.. -I../Molcas/Include<br>
>> -I../boost -qidirfirst<br>
>><br>
>> "ItfTensor.cpp", line 2274.17: 1540-0274 (S) The name lookup for<br>
>> "CanonicalizeIndexPair2" did not find a declaration.<br>
>> "ItfTensor.cpp", line 2274.17: 1540-1292 (I) Static declarations are not<br>
>> considered for a function call if the function is not qualified.<br>
>> "ItfTensor.cpp", line 2248.6: 1540-0700 (I) The previous message was<br>
>> produced while processing<br>
>> "FIndexCanonicalizer::Canonicalize<TArrayFix<signed char,6,unsigned int><br>
>>  >(TArrayFix<signed char,6,unsigned int> &, FSlotOrder &, const<br>
>> TArrayFix<signed char,6,unsigned int> &) const".<br>
>> "ItfTensor.cpp", line 2279.17: 1540-0274 (S) The name lookup for<br>
>> "CanonicalizeIndexPairGen" did not find a declaration.<br>
>> "ItfTensor.cpp", line 2279.17: 1540-1292 (I) Static declarations are not<br>
>> considered for a function call if the function is not qualified.<br>
>> "ItfTensor.cpp", line 2274.17: 1540-0274 (S) The name lookup for<br>
>> "CanonicalizeIndexPair2" did not find a declaration.<br>
>> "ItfTensor.cpp", line 2274.17: 1540-1292 (I) Static declarations are not<br>
>> considered for a function call if the function is not qualified.<br>
>> "ItfTensor.cpp", line 2248.6: 1540-0700 (I) The previous message was<br>
>> produced while processing<br>
>> "FIndexCanonicalizer::Canonicalize<TArrayFix<unsigned long<br>
>> long,6,unsigned int> >(TArrayFix<unsigned long long,6,unsigned int> &,<br>
>> FSlotOrder &, const TArrayFix<unsigned long long,6,unsigned int> &)<br>
>> const".<br>
>> "ItfTensor.cpp", line 574.41: 1540-0700 (I) The previous message was<br>
>> produced while processing "FTensorShapeCut::MakeBlockEntries(FBlockEntry<br>
>> *&, FBlockCount &, FMemoryStack &, const FBlockRange &, const<br>
>> FSlotAccessModes &, uint) const".<br>
>> "ItfTensor.cpp", line 2279.17: 1540-0274 (S) The name lookup for<br>
>> "CanonicalizeIndexPairGen" did not find a declaration.<br>
>> "ItfTensor.cpp", line 2279.17: 1540-1292 (I) Static declarations are not<br>
>> considered for a function call if the function is not qualified.<br>
>> "ItfTensor.cpp", line 2274.17: 1540-0274 (S) The name lookup for<br>
>> "CanonicalizeIndexPair2" did not find a declaration.<br>
>> "ItfTensor.cpp", line 2274.17: 1540-1292 (I) Static declarations are not<br>
>> considered for a function call if the function is not qualified.<br>
>> "ItfTensor.cpp", line 2248.6: 1540-0700 (I) The previous message was<br>
>> produced while processing<br>
>> "FIndexCanonicalizer::Canonicalize<FBlockRange>(FBlockRange &,<br>
>> FSlotOrder &, const FBlockRange &) const".<br>
>> "ItfTensor.cpp", line 2279.17: 1540-0274 (S) The name lookup for<br>
>> "CanonicalizeIndexPairGen" did not find a declaration.<br>
>> "ItfTensor.cpp", line 2279.17: 1540-1292 (I) Static declarations are not<br>
>> considered for a function call if the function is not qualified.<br>
>> make[2]: *** [ItfTensor.o] Error 1<br>
>><br>
>><br>
>>  >mpixlcxx -qarch=450d -qtune=450 -DMOLPRO -D_I8_ -DBLAS_INT=8<br>
>> -DLAPACK_INT=8 -DMOLPRO_FORCE_VECTOR -DMOLPRO_HPDIR -DMOLPRO_NEXTSCALAR<br>
>> -DMOLPRO_NO_RECURRENCE -DMOLPRO_NOVECTOR -DMOLPRO_SCALAR<br>
>> -DMOLPRO_SHORTLOOP -D_MOLCAS_MPP_ -I. -I.. -I../Molcas/Include<br>
>> -I../boost -qidirfirst -c ItfAlgoSet.cpp<br>
>> "ItfAlgoSet.cpp", line 683.27: 1540-1187 (S) "GenerateAlgo" must not<br>
>> have default arguments.<br>
>><br>
>> Thx<br>
>> Amit<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Molpro-user mailing list<br>
>> <a href="mailto:Molpro-user@molpro.net">Molpro-user@molpro.net</a><br>
>> <a href="http://www.molpro.net/mailman/listinfo/molpro-user" target="_blank">http://www.molpro.net/mailman/listinfo/molpro-user</a><br>
>><br>
> _______________________________________________<br>
> Molpro-user mailing list<br>
> <a href="mailto:Molpro-user@molpro.net">Molpro-user@molpro.net</a><br>
> <a href="http://www.molpro.net/mailman/listinfo/molpro-user" target="_blank">http://www.molpro.net/mailman/listinfo/molpro-user</a><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Jeff Hammond<br>
Argonne Leadership Computing Facility<br>
University of Chicago Computation Institute<br>
<a href="mailto:jhammond@alcf.anl.gov">jhammond@alcf.anl.gov</a> / <a href="tel:%28630%29%20252-5381" value="+16302525381">(630) 252-5381</a><br>
<a href="http://www.linkedin.com/in/jeffhammond" target="_blank">http://www.linkedin.com/in/jeffhammond</a><br>
<a href="https://wiki.alcf.anl.gov/parts/index.php/User:Jhammond" target="_blank">https://wiki.alcf.anl.gov/parts/index.php/User:Jhammond</a><br>
</font></span></blockquote></div><br></div>