[Pw_forum] compile problem on IBM AIX61

Axel Kohlmeyer akohlmey at cmm.chem.upenn.edu
Sat Feb 21 17:59:39 CET 2009


On Sat, 21 Feb 2009, Dai wrote:

JD> Dear all,

dear jun dai,

JD> I encountered a problem when compile QE4.0.4 with gcc 4.0.0 and xlf V12.1, :
JD>         ( cd clib ; if test "make" = "" ; then make  TLDEPS= all ;  else make  TLDEPS= all ; fi )
JD>         gcc -O3 -D__AIX -D__XLF -D__ESSL -D__MASS -D__MPI -D__PARA -I../include   -c cptimer.c
JD> /usr/include/unistd.h:923: error: parse error before '[' token
JD> /usr/include/unistd.h:924: error: parse error before 'rid_t'
JD> make: The error code from the last command is 1.
JD>  
JD> Any idea on how to fix this problem? Thanks in advance.

this is either a bug in the unix headers of AIX or gcc-4.0.0
and _not_ a Q-E problem.

most likely a combination of both. gcc-4.0.0 is a quite broken 
and long obsolete compiler version (it is a double zero release
and that almost always spells trouble).
i would recommend to either install a current gcc or use 
the system xlc (cc) instead.

sometimes header conflicts on AIX can be resolved by adding
-D__ALL_SOURCE to DFLAGS in make.sys

cheers,
   axel.

JD> 
JD> 2009-02-21 
JD> 
JD> 
JD> 
JD> Best regards,
JD> Jun Dai
JD> 
JD> =============================================================
JD>  Jun Dai
JD>  Ph.D. Candidate,
JD>  Hefei National Laboratory For Physical Sciences at the Microscale,
JD>  University of Science and Technology of China,
JD>  Hefei, Anhui, 230026,
JD>  People's Republic of China
JD>  Tel.: 86-551-3606428
JD>  Fax.: 86-551-3602969
JD>  E-mail: jdai3 at mail.ustc.edu.cn
JD> ============================================================= 
JD> 

-- 
=======================================================================
Axel Kohlmeyer   akohlmey at cmm.chem.upenn.edu   http://www.cmm.upenn.edu
   Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.



More information about the users mailing list