It seems intel c++ compiler caused the problem and gcc+ifort & gcc+gfortran work fine.<div><br><div>Thanks all.</div><div><br></div><div>Best wishes,</div><div><br></div><div>Yang</div><div><br><div class="gmail_quote">
2010/10/11 Andy May <span dir="ltr"><<a href="mailto:MayAJ1@cardiff.ac.uk" target="_blank">MayAJ1@cardiff.ac.uk</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Zeng,<br>
<br>
This is because icc 11.1 is not compatible with openSUSE 11.3, more<br>
specifically the include file iomanip of GCC 4.5. This thread has the<br>
details:<br>
<br>
<a href="http://software.intel.com/en-us/forums/showthread.php?t=74691" target="_blank">http://software.intel.com/en-us/forums/showthread.php?t=74691</a><br>
<br>
and apparently this will not be fixed until version 12.0 of the Intel<br>
compilers.<br>
<br>
You have 2 options to get running:<br>
<br>
1. Use gcc to compile C/C++ files (use -gcc instead of -icc)<br>
<br>
2. Put a copy of the iomanip file from an older version of openSUSE in<br>
src/cuda directory of Molpro source code, which will then be used in<br>
preference to the system include file.<br>
<br>
Best wishes,<br>
<br>
Andy<br>
<div><br>
On 28/09/10 02:55, zeng yangyang wrote:<br>
> At first, I thought this would be the problem and remove the whole dir,<br>
> then start compiling from scratch and giving "-nocuda" option. Still I<br>
> got the same error!<br>
><br>
> 2010/9/27 Reuti <<a href="mailto:reuti@staff.uni-marburg.de" target="_blank">reuti@staff.uni-marburg.de</a><br>
</div>> <mailto:<a href="mailto:reuti@staff.uni-marburg.de" target="_blank">reuti@staff.uni-marburg.de</a>>><br>
<div>><br>
>     Hi,<br>
><br>
>     Am 26.09.2010 um 10:33 schrieb zeng yangyang:<br>
><br>
>     > I compiled molpro2010.1 on openSUSE 11.3 (64) using intel compiler<br>
>     (version 11.1-073), Then my configuration commands are like:<br>
>     ><br>
>     > ./configure -batch -icc -ifort -nocuda<br>
>     ><br>
>     > When entering cuda directory, compiling failed. Errors as follow:<br>
>     ><br>
>     ><br>
>     > compiling base_dfti_worker.cpp<br>
>     > failed<br>
>     > /usr/include/c++/4.5/iomanip(64): error: expected an expression<br>
>     >     { return { __mask }; }<br>
>     >              ^<br>
>     > ......<br>
>     ><br>
>     > It seems that cuda code should not be compiled since I added<br>
>     "-nocuda" options. Anyone konws how to solve this?<br>
><br>
>     did you start first without giving "-nocuda"? For me it worked to<br>
>     start from scratch and a clean un-tared Molpro distribution and<br>
>     giving "-nocuda" directly.<br>
><br>
>     -- Reuti<br>
><br>
><br>
>     > Thanks in advance.<br>
>     ><br>
>     > Regards,<br>
>     ><br>
>     > Yang<br>
>     ><br>
>     > _______________________________________________<br>
>     > Molpro-user mailing list<br>
</div>>     > <a href="mailto:Molpro-user@molpro.net" target="_blank">Molpro-user@molpro.net</a> <mailto:<a href="mailto:Molpro-user@molpro.net" target="_blank">Molpro-user@molpro.net</a>><br>
<div><div></div><div>>     > <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>
><br>
> _______________________________________________<br>
> Molpro-user mailing list<br>
> <a href="mailto:Molpro-user@molpro.net" target="_blank">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>
</div></div></blockquote></div><br></div>
</div>