Error while installing PAPI on intel compilers

Open discussion of PAPI.

Error while installing PAPI on intel compilers

Postby nitbhat » Mon Mar 16, 2015 8:31 am

I was intending to use HPCtoolkit. I wanted to install PAPI for that. I am using the intel 15 compilers (icc, icpc, ifort)

After the ./configure command, i get an error in the make process that ends this way.

papi_fwrappers.c(270): warning #77: this declaration has no storage class or type specifier
*data_end = ( long ) e.exe_info->address_info.data_end;
^

papi_fwrappers.c(271): warning #77: this declaration has no storage class or type specifier
*bss_start = ( long ) e.exe_info->address_info.bss_start;
^

papi_fwrappers.c(272): warning #77: this declaration has no storage class or type specifier
*bss_end = ( long ) e.exe_info->address_info.bss_end;
^

papi_fwrappers.c(273): error: expected a declaration
}
^

papi_fwrappers.c(336): warning #12: parsing restarts here after previous syntax error
strncpy( vendor_str, hwinfo->vendor_string, ( size_t ) vendor_len );
^

papi_fwrappers.c(337): error: expected a declaration
for ( i = ( int ) strlen( hwinfo->vendor_string ); i < vendor_len;
^

papi_fwrappers.c(339): error: expected a ")"
strncpy( model_str, hwinfo->model_string, ( size_t ) model_len );
^

papi_fwrappers.c(339): warning #77: this declaration has no storage class or type specifier
strncpy( model_str, hwinfo->model_string, ( size_t ) model_len );
^

papi_fwrappers.c(339): warning #92: identifier-list parameters may only be used in a function definition
strncpy( model_str, hwinfo->model_string, ( size_t ) model_len );
^

papi_fwrappers.c(340): error: expected a declaration
for ( i = ( int ) strlen( hwinfo->model_string ); i < model_len;
^

papi_fwrappers.c(349): error: expected a declaration
}
^

papi_fwrappers.c(351): error: expected a declaration
}
^

papi_fwrappers.c(739): warning #12: parsing restarts here after previous syntax error
note_len=strlen(info.note);
^

papi_fwrappers.c(741): error: expected a declaration
for ( i = note_len; i < event_note_len;
^

papi_fwrappers.c(743): error: expected a declaration
}
^

papi_fwrappers.c(1468): warning #12: parsing restarts here after previous syntax error

compilation aborted for papi_fwrappers__.c (code 2)
In file included from papi_fwrappers.c(22):
/usr/include/stdio.h(30): error: expected an identifier
extern "C" {
^

In file included from papi_fwrappers.c(22):
/usr/include/stdio.h(30): error: expected a ";"
extern "C" {
^

In file included from /usr/include/stdio.h(75),
from papi_fwrappers.c(22):
/usr/include/libio.h(413): error: expected an identifier
extern "C" {
^

In file included from /usr/include/stdio.h(75),
from papi_fwrappers.c(22):
/usr/include/libio.h(413): error: expected a ";"
extern "C" {
^

In file included from /usr/include/stdio.h(75),
from papi_fwrappers.c(22):
/usr/include/libio.h(461): error: identifier "_IO_FILE" is undefined
extern int _IO_putc (int __c, _IO_FILE *__fp);
^

In file included from /usr/include/stdio.h(75),
from papi_fwrappers.c(22):
/usr/include/libio.h(462): error: identifier "_IO_FILE" is undefined
extern int _IO_feof (_IO_FILE *__fp) throw ();
^

In file included from /usr/include/stdio.h(75),
from papi_fwrappers.c(22):
/usr/include/libio.h(462): error: expected a "{"
extern int _IO_feof (_IO_FILE *__fp) throw ();
^

In file included from papi_fwrappers.c(22):
/usr/include/stdio.h(177): error: expected a "{"
extern int remove (__const char *__filename) throw ();
^

In file included from /usr/include/stdio.h(928),
from papi_fwrappers.c(22):
/usr/include/bits/stdio.h(39): error: identifier "__fmt" is undefined
return vfprintf (stdout, __fmt, __arg);
^

In file included from /usr/include/stdio.h(928),
from papi_fwrappers.c(22):
/usr/include/bits/stdio.h(39): error: identifier "__arg" is undefined
return vfprintf (stdout, __fmt, __arg);
^

In file included from /usr/include/stdio.h(928),
from papi_fwrappers.c(22):
/usr/include/bits/stdio.h(126): error: expected a "{"
feof_unlocked (FILE *__stream) throw ()
^

In file included from /usr/include/stdio.h(928),
from papi_fwrappers.c(22):
/usr/include/bits/stdio.h(133): error: expected a "{"
ferror_unlocked (FILE *__stream) throw ()
^

In file included from papi_fwrappers.c(22):
/usr/include/stdio.h(938): error: expected a declaration
}
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(50): error: expected a "{"
throw () __attribute__ ((__nonnull__ (1, 2)));
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(76): error: expected a "{"
throw () __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(88): error: function "memchr" has already been defined
memchr (__const void *__s, int __c, size_t __n) throw ()
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(88): error: expected a "{"
memchr (__const void *__s, int __c, size_t __n) throw ()
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(104): error: expected an identifier
extern "C++" void *rawmemchr (void *__s, int __c)
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(105): error: expected a "{"
throw () __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
^

In file included from /usr/include/string.h(162),
from papi_fwrappers.c(24):
/usr/include/xlocale.h(43): error: variable "__locale_t" is not a type name
typedef __locale_t locale_t;
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(165): error: variable "__locale_t" is not a type name
extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l)
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(166): error: expected a "{"
throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(216): error: expected a "{"
throw () __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(228): error: function "strchr" has already been defined
strchr (__const char *__s, int __c) throw ()
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(228): error: expected a "{"
strchr (__const char *__s, int __c) throw ()
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(240): error: expected an identifier
extern "C++"
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(241): error: expected a ";"
{
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(273): error: expected an identifier
extern "C++" __const char *strchrnul (__const char *__s, int __c)
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(274): error: expected a "{"
throw () __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(295): error: expected a "{"
throw () __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(307): error: function "strpbrk" has already been defined
strpbrk (__const char *__s, __const char *__accept) throw ()
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(307): error: expected a "{"
strpbrk (__const char *__s, __const char *__accept) throw ()
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(319): error: expected an identifier
extern "C++"
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(320): error: expected a ";"
{
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(357): error: expected a "{"
throw () __attribute__ ((__nonnull__ (2, 3)));
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(470): error: expected a "{"
throw () __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(482): error: function "index" has already been defined
index (__const char *__s, int __c) throw ()
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(482): error: expected a "{"
index (__const char *__s, int __c) throw ()
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(495): error: expected an identifier
extern "C++"
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(496): error: expected a ";"
{
^

In file included from papi_fwrappers.c(24):
/usr/include/string.h(528): error: expected a "{"
extern int ffsl (long int __l) throw () __attribute__ ((__const__));
^

In file included from papi_fwrappers.c(25):
papi.h(231): error: expected an identifier
extern "C"
^

In file included from papi_fwrappers.c(25):
papi.h(232): error: expected a ";"
{
^

In file included from /usr/include/sys/types.h(220),
from papi.h(237),
from papi_fwrappers.c(25):
/usr/include/sys/select.h(99): error: expected an identifier
extern "C" {
^

In file included from /usr/include/sys/types.h(220),
from papi.h(237),
from papi_fwrappers.c(25):
/usr/include/sys/select.h(99): error: expected a ";"
extern "C" {
^

In file included from /usr/include/sys/types.h(220),
from papi.h(237),
from papi_fwrappers.c(25):
/usr/include/sys/select.h(128): error: expected a declaration
}
^

In file included from /usr/include/sys/types.h(223),
from papi.h(237),
from papi_fwrappers.c(25):
/usr/include/sys/sysmacros.h(35): error: expected a "{"
throw ();
^

In file included from /usr/include/sys/types.h(223),
from papi.h(237),
from papi_fwrappers.c(25):
/usr/include/sys/sysmacros.h(49): error: function "gnu_dev_minor" has already been defined
gnu_dev_minor (unsigned long long int __dev) throw ()
^

In file included from /usr/include/sys/types.h(223),
from papi.h(237),
from papi_fwrappers.c(25):
/usr/include/sys/sysmacros.h(49): error: expected a "{"
gnu_dev_minor (unsigned long long int __dev) throw ()
^

In file included from /usr/include/sys/types.h(223),
from papi.h(237),
from papi_fwrappers.c(25):
/usr/include/sys/sysmacros.h(55): error: expected a "{"
gnu_dev_makedev (unsigned int __major, unsigned int __minor) throw ()
^

In file included from papi.h(237),
from papi_fwrappers.c(25):
/usr/include/sys/types.h(274): error: expected a declaration
}
^

In file included from papi.h(239),
from papi_fwrappers.c(25):
papiStdEventDefs.h(168): warning #12: parsing restarts here after previous syntax error
};
^

In file included from papi.h(540),
from papi_fwrappers.c(25):
/usr/include/signal.h(31): error: expected an identifier
extern "C" {
^

In file included from papi.h(540),
from papi_fwrappers.c(25):
/usr/include/signal.h(31): error: expected a ";"
extern "C" {
^

In file included from papi.h(540),
from papi_fwrappers.c(25):
/usr/include/signal.h(90): error: expected a "{"
throw ();
^

In file included from papi.h(540),
from papi_fwrappers.c(25):
/usr/include/signal.h(256): error: expected a "{"
sigset_t *__restrict __oset) throw ();
^

In file included from papi.h(540),
from papi_fwrappers.c(25):
/usr/include/signal.h(335): error: expected a "{"
struct sigvec *__ovec) throw ();
^

In file included from papi.h(540),
from papi_fwrappers.c(25):
/usr/include/signal.h(342): error: expected a "{"
extern int sigreturn (struct sigcontext *__scp) throw ();
^

In file included from papi.h(540),
from papi_fwrappers.c(25):
/usr/include/signal.h(366): error: expected a "{"
throw () __attribute__ ((__deprecated__));
^

In file included from papi_fwrappers.c(25):
papi.h(1132): error: expected a declaration
}
^

papi_fwrappers.c(268): warning #12: parsing restarts here after previous syntax error
*text_end = ( long ) e.exe_info->address_info.text_end;
^

papi_fwrappers.c(269): warning #77: this declaration has no storage class or type specifier
*data_start = ( long ) e.exe_info->address_info.data_start;
^

papi_fwrappers.c(269): error: identifier "e" is undefined
*data_start = ( long ) e.exe_info->address_info.data_start;
^

papi_fwrappers.c(270): warning #77: this declaration has no storage class or type specifier
*data_end = ( long ) e.exe_info->address_info.data_end;
^

papi_fwrappers.c(271): warning #77: this declaration has no storage class or type specifier
*bss_start = ( long ) e.exe_info->address_info.bss_start;
^

papi_fwrappers.c(272): warning #77: this declaration has no storage class or type specifier
*bss_end = ( long ) e.exe_info->address_info.bss_end;
^

papi_fwrappers.c(273): error: expected a declaration
}
^

papi_fwrappers.c(336): warning #12: parsing restarts here after previous syntax error
strncpy( vendor_str, hwinfo->vendor_string, ( size_t ) vendor_len );
^

papi_fwrappers.c(337): error: expected a declaration
for ( i = ( int ) strlen( hwinfo->vendor_string ); i < vendor_len;
^

papi_fwrappers.c(339): error: expected a ")"
strncpy( model_str, hwinfo->model_string, ( size_t ) model_len );
^

papi_fwrappers.c(339): warning #77: this declaration has no storage class or type specifier
strncpy( model_str, hwinfo->model_string, ( size_t ) model_len );
^

papi_fwrappers.c(339): warning #92: identifier-list parameters may only be used in a function definition
strncpy( model_str, hwinfo->model_string, ( size_t ) model_len );
^

papi_fwrappers.c(340): error: expected a declaration
for ( i = ( int ) strlen( hwinfo->model_string ); i < model_len;
^

papi_fwrappers.c(349): error: expected a declaration
}
^

papi_fwrappers.c(351): error: expected a declaration
}
^

papi_fwrappers.c(739): warning #12: parsing restarts here after previous syntax error
note_len=strlen(info.note);
^

papi_fwrappers.c(741): error: expected a declaration
for ( i = note_len; i < event_note_len;
^

papi_fwrappers.c(743): error: expected a declaration
}
^

papi_fwrappers.c(1468): warning #12: parsing restarts here after previous syntax error

compilation aborted for upper_PAPI_FWRAPPERS.c (code 2)
make: *** [libpapi.so.5.4.1.0] Error 2
_____________________________________________________________________________________________________

After reading about the libpfm incompatibility with icc, I compiled libpfm (http://perfmon2.sourceforge.net ) (version 4.6.0) with gcc and then tried compiling PAPI with icc pointing to the libpfm path. But, even that is giving the same error. How do i resolve this error?

I am using the latest version of PAPI (5.4.1). Even tried with an earlier version.

Any help in solving this error will be appreciated.

Thanks,
Nitin K Bhat
Middleware and Runtime Systems Lab,
Supercomputer Education and Research Center,
Indian Institute of Science
nitbhat
 
Posts: 1
Joined: Mon Mar 16, 2015 8:05 am

Return to General discussion (read-only)

Who is online

Users browsing this forum: No registered users and 1 guest

cron