Problems on compiling METIS with pgcc.

Hi,

I am trying to compile METIS ( a c package for Serial Graph Partitioning and Fill-reducing Matrix Ordering) using pgcc version 7.0. I got the following error messages. But I can compile this package with gcc.
Can anybody tell me how to set the compile options to pgcc working correctly on METIS ???
Thanks

pgcc   -I. -c initpart.c
PGC-S-0137-Incompatible prototype declaration for function __log2 (./proto.h: 462)
PGC/x86 Linux 7.0-2: compilation completed with severe errors
make[1]: *** [initpart.o] Error 2
make[1]: Leaving directory `/global/home/xub/metis-4.0/Lib'

Hi cobin,

Add “-c89” to your compile line. METIS has defined it’s own log2 function which is incompatable with the C99 version. Setting “-c89” tells the compiler to use the C89 standard instead.

  • Mat

Thank you very much.

It works!

Hello,

Can anyone please help me with the settings of my profile. I am new to this forum and have been exploring the settings section.


Mike Craig
IT Services