<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16762" name=GENERATOR>
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="FONT-SIZE: 10pt; MARGIN: 10px; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana color=#000080 size=2>Dear <FONT color=#000000>Axel
Kohlmeyer </FONT></FONT></DIV>
<DIV>Thanks, with xlc and xlf, it works fine now.</DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#c0c0c0 size=2>2009-02-23 </FONT></DIV><FONT
face=Verdana color=#000080 size=2>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN>
<DIV>
<DIV><U><FONT color=#0000ff>Best regards,<BR>Jun Dai</FONT></U></DIV>
<DIV> </DIV>
<DIV><U><FONT color=#0000ff></FONT></U><A
href="mailto:jdai3@mail.ustc.edu.cn"></A> </DIV></DIV></SPAN></FONT></DIV>
<HR color=#b5c4df SIZE=1>
<DIV><FONT face=Verdana size=2><STRONG>发件人:</STRONG> Axel Kohlmeyer
</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>发送时间:</STRONG> 2009-02-22 01:06:00
</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>收件人:</STRONG> Dai </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>抄送:</STRONG> PWSCF Forum </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>主题:</STRONG> Re: [Pw_forum] compile
problem on IBM AIX61 </FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>On Sat, 21 Feb 2009, Dai wrote:</DIV>
<DIV></DIV>
<DIV>JD> Dear all,</DIV>
<DIV></DIV>
<DIV>dear jun dai,</DIV>
<DIV></DIV>
<DIV>JD> I encountered a problem when compile QE4.0.4 with gcc 4.0.0 and xlf V12.1, :</DIV>
<DIV>JD> ( cd clib ; if test "make" = "" ; then make TLDEPS= all ; else make TLDEPS= all ; fi )</DIV>
<DIV>JD> gcc -O3 -D__AIX -D__XLF -D__ESSL -D__MASS -D__MPI -D__PARA -I../include -c cptimer.c</DIV>
<DIV>JD> /usr/include/unistd.h:923: error: parse error before '[' token</DIV>
<DIV>JD> /usr/include/unistd.h:924: error: parse error before 'rid_t'</DIV>
<DIV>JD> make: The error code from the last command is 1.</DIV>
<DIV>JD> </DIV>
<DIV>JD> Any idea on how to fix this problem? Thanks in advance.</DIV>
<DIV></DIV>
<DIV>this is either a bug in the unix headers of AIX or gcc-4.0.0</DIV>
<DIV>and _not_ a Q-E problem.</DIV>
<DIV></DIV>
<DIV>most likely a combination of both. gcc-4.0.0 is a quite broken </DIV>
<DIV>and long obsolete compiler version (it is a double zero release</DIV>
<DIV>and that almost always spells trouble).</DIV>
<DIV>i would recommend to either install a current gcc or use </DIV>
<DIV>the system xlc (cc) instead.</DIV>
<DIV></DIV>
<DIV>sometimes header conflicts on AIX can be resolved by adding</DIV>
<DIV>-D__ALL_SOURCE to DFLAGS in make.sys</DIV>
<DIV></DIV>
<DIV>cheers,</DIV>
<DIV> axel.</DIV>
<DIV></DIV>
<DIV>JD> </DIV>
<DIV>JD> 2009-02-21 </DIV>
<DIV>JD> </DIV>
<DIV>JD> </DIV>
<DIV>JD> </DIV>
<DIV>JD> Best regards,</DIV>
<DIV>JD> Jun Dai</DIV>
<DIV>JD> </DIV>
<DIV>JD> =============================================================</DIV>
<DIV>JD> Jun Dai</DIV>
<DIV>JD> Ph.D. Candidate,</DIV>
<DIV>JD> Hefei National Laboratory For Physical Sciences at the Microscale,</DIV>
<DIV>JD> University of Science and Technology of China,</DIV>
<DIV>JD> Hefei, Anhui, 230026,</DIV>
<DIV>JD> People's Republic of China</DIV>
<DIV>JD> Tel.: 86-551-3606428</DIV>
<DIV>JD> Fax.: 86-551-3602969</DIV>
<DIV>JD> E-mail: jdai3@mail.ustc.edu.cn</DIV>
<DIV>JD> ============================================================= </DIV>
<DIV>JD> </DIV>
<DIV></DIV>
<DIV>-- </DIV>
<DIV>=======================================================================</DIV>
<DIV>Axel Kohlmeyer akohlmey@cmm.chem.upenn.edu http://www.cmm.upenn.edu</DIV>
<DIV> Center for Molecular Modeling -- University of Pennsylvania</DIV>
<DIV>Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323</DIV>
<DIV>tel: 1-215-898-1582, fax: 1-215-573-6233, office-tel: 1-215-898-5425</DIV>
<DIV>=======================================================================</DIV>
<DIV>If you make something idiot-proof, the universe creates a better idiot.</DIV></FONT></DIV></BODY></HTML>