Compiling PAPI on a Niagara 2 with Solaris 10

Open discussion of PAPI.

Compiling PAPI on a Niagara 2 with Solaris 10

Postby loulan » Mon Oct 15, 2012 5:55 am

I have issues compiling PAPI on a Niagara 2 with Solaris 10. According to pkginfo, SUNWcpc and SUNWcpcu are installed on my system. I removed gcc from my $PATH, and added Sun Studio 12's bin/ directory. I ran ./configure with --with-bitmode=64, and it was successful. However, when I try to run gmake, here is what I get :

Code: Select all
Host architecture   : Solaris 10 with libcpc2 and UltraSPARC T2 (Niagara 2)
Host CPU component  : solaris-niagara2.c
Installation DESTDIR:
Installation PREFIX : /u1/xxx/usr/
Installation EPREFIX: /u1/xxx/usr/
Installation INCDIR : /u1/xxx/usr//include
Installation LIBDIR : /u1/xxx/usr//lib
Installation BINDIR : /u1/xxx/usr//bin
Installation MANDIR : /u1/xxx/usr//man
Installation DOCDIR :
Installation DATADIR: /u1/xxx/usr//share/papi

cc -ztext -G -Kpic -I. -xtarget=native -xarch=native -DNO_VARARG_MACRO -D__EXTENSIONS__ -DCOMP_VECTOR=_niagara2_vector -m64  -DOSLOCK=\"solaris-lock.h\" -DOSCONTEXT=\"solaris-context.h\" -fast  papi.c papi_internal.c papi_hl.c extras.c sw_multiplex.c papi_fwrappers.c papi_fwrappers_.c papi_fwrappers__.c upper_PAPI_FWRAPPERS.c threads.c cpus.c solaris-memory.c solaris-common.c solaris-niagara2.c papi_preset.c papi_vector.c papi_memory.c papi_user_events.c   -o libpapi64.so -lcpc 
papi.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-lock.h", line 1: warning: no explicit type given
"solaris-lock.h", line 1: syntax error before or at: lock
"solaris-lock.h", line 1: warning: old-style declaration or incorrect type for: lock
"threads.h", line 67: warning: implicit function declaration: rw_wrlock
"threads.h", line 81: warning: implicit function declaration: rw_unlock
"papi.c", line 6383: warning: implicit function declaration: ffsll
cc: acomp failed for papi.c
papi_internal.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-lock.h", line 1: warning: no explicit type given
"solaris-lock.h", line 1: syntax error before or at: lock
"solaris-lock.h", line 1: warning: old-style declaration or incorrect type for: lock
"threads.h", line 67: warning: implicit function declaration: rw_wrlock
"threads.h", line 81: warning: implicit function declaration: rw_unlock
cc: acomp failed for papi_internal.c
papi_hl.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-lock.h", line 1: warning: no explicit type given
"solaris-lock.h", line 1: syntax error before or at: lock
"solaris-lock.h", line 1: warning: old-style declaration or incorrect type for: lock
"threads.h", line 67: warning: implicit function declaration: rw_wrlock
"threads.h", line 81: warning: implicit function declaration: rw_unlock
cc: acomp failed for papi_hl.c
extras.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-lock.h", line 1: warning: no explicit type given
"solaris-lock.h", line 1: syntax error before or at: lock
"solaris-lock.h", line 1: warning: old-style declaration or incorrect type for: lock
"threads.h", line 67: warning: implicit function declaration: rw_wrlock
"threads.h", line 81: warning: implicit function declaration: rw_unlock
cc: acomp failed for extras.c
sw_multiplex.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-lock.h", line 1: warning: no explicit type given
"solaris-lock.h", line 1: syntax error before or at: lock
"solaris-lock.h", line 1: warning: old-style declaration or incorrect type for: lock
"threads.h", line 67: warning: implicit function declaration: rw_wrlock
"threads.h", line 81: warning: implicit function declaration: rw_unlock
cc: acomp failed for sw_multiplex.c
papi_fwrappers.c:
papi_fwrappers_.c:
papi_fwrappers__.c:
upper_PAPI_FWRAPPERS.c:
threads.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-lock.h", line 1: warning: no explicit type given
"solaris-lock.h", line 1: syntax error before or at: lock
"solaris-lock.h", line 1: warning: old-style declaration or incorrect type for: lock
"threads.h", line 67: warning: implicit function declaration: rw_wrlock
"threads.h", line 81: warning: implicit function declaration: rw_unlock
cc: acomp failed for threads.c
cpus.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-lock.h", line 1: warning: no explicit type given
"solaris-lock.h", line 1: syntax error before or at: lock
"solaris-lock.h", line 1: warning: old-style declaration or incorrect type for: lock
"threads.h", line 67: warning: implicit function declaration: rw_wrlock
"threads.h", line 81: warning: implicit function declaration: rw_unlock
cc: acomp failed for cpus.c
solaris-memory.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-lock.h", line 1: warning: no explicit type given
"solaris-lock.h", line 1: syntax error before or at: lock
"solaris-lock.h", line 1: warning: old-style declaration or incorrect type for: lock
"threads.h", line 67: warning: implicit function declaration: rw_wrlock
"threads.h", line 81: warning: implicit function declaration: rw_unlock
"solaris-memory.c", line 37: warning: implicit function declaration: strstr
"solaris-memory.c", line 121: incomplete struct/union/enum psinfo: psi
"solaris-memory.c", line 124: undefined symbol: errno
"solaris-memory.c", line 133: improper member use: pr_size
cc: acomp failed for solaris-memory.c
solaris-common.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-lock.h", line 1: warning: no explicit type given
"solaris-lock.h", line 1: syntax error before or at: lock
"solaris-lock.h", line 1: warning: old-style declaration or incorrect type for: lock
"threads.h", line 67: warning: implicit function declaration: rw_wrlock
"threads.h", line 81: warning: implicit function declaration: rw_unlock
"/usr/include/synch.h", line 69: identifier redeclared: rwlock_t
        current : struct _rwlock {int readers, unsigned short type, unsigned short magic, struct _lwp_mutex {..} mutex, struct _lwp_cond {..} readercv, struct _lwp_cond {..} writercv}
        previous: int : "solaris-lock.h", line 1
"solaris-common.h", line 21: identifier redeclared: lock
        current : array[11] of struct _rwlock {int readers, unsigned short type, unsigned short magic, struct _lwp_mutex {..} mutex, struct _lwp_cond {..} readercv, struct _lwp_cond {..} writercv}
        previous: array[11] of int : "solaris-lock.h", line 1
"solaris-common.c", line 605: undefined symbol: cpuver
"solaris-common.c", line 637: warning: implicit function declaration: build_tables
"solaris-common.c", line 640: undefined symbol: preset_table
"solaris-common.c", line 640: warning: improper pointer/integer combination: op "="
"solaris-common.c", line 641: undefined symbol: CPC_ULTRA2
"solaris-common.c", line 643: undefined symbol: pcr_shift
"solaris-common.c", line 643: cannot dereference non-pointer type
"solaris-common.c", line 643: undefined symbol: CPC_ULTRA_PCR_PIC0_SHIFT
"solaris-common.c", line 644: cannot dereference non-pointer type
"solaris-common.c", line 644: undefined symbol: CPC_ULTRA_PCR_PIC1_SHIFT
"solaris-common.c", line 645: undefined symbol: LASTULTRA3
"solaris-common.c", line 647: undefined symbol: pcr_shift
"solaris-common.c", line 647: cannot dereference non-pointer type
"solaris-common.c", line 647: undefined symbol: CPC_ULTRA_PCR_PIC0_SHIFT
"solaris-common.c", line 648: cannot dereference non-pointer type
"solaris-common.c", line 648: undefined symbol: CPC_ULTRA_PCR_PIC1_SHIFT
"solaris-common.c", line 649: undefined symbol: _solaris_vector
"solaris-common.c", line 649: warning: left operand of "." must be struct/union object
"solaris-common.c", line 649: cannot access member of non-struct/union object
"solaris-common.c", line 650: warning: left operand of "." must be struct/union object
"solaris-common.c", line 650: cannot access member of non-struct/union object
"solaris-common.c", line 707: warning: implicit function declaration: basename
"solaris-common.c", line 707: warning: improper pointer/integer combination: arg #2
"solaris-common.c", line 713: warning: implicit function declaration: _ultra_hwd_update_shlib_info
"solaris-common.c", line 721: warning: implicit function declaration: scan_prtconf
"solaris-common.c", line 745: undefined symbol: _solaris_vector
"solaris-common.c", line 745: warning: left operand of "." must be struct/union object
"solaris-common.c", line 745: cannot access member of non-struct/union object
"solaris-common.c", line 746: warning: left operand of "." must be struct/union object
"solaris-common.c", line 746: cannot access member of non-struct/union object
"solaris-common.c", line 747: warning: left operand of "." must be struct/union object
"solaris-common.c", line 747: cannot access member of non-struct/union object
"solaris-common.c", line 748: warning: left operand of "." must be struct/union object
"solaris-common.c", line 748: cannot access member of non-struct/union object
"solaris-common.c", line 749: warning: left operand of "." must be struct/union object
"solaris-common.c", line 749: cannot access member of non-struct/union object
"solaris-common.c", line 771: warning: implicit function declaration: _ultra_hwd_get_real_usec
cc: acomp failed for solaris-common.c
solaris-niagara2.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-lock.h", line 1: warning: no explicit type given
"solaris-lock.h", line 1: syntax error before or at: lock
"solaris-lock.h", line 1: warning: old-style declaration or incorrect type for: lock
"threads.h", line 67: warning: implicit function declaration: rw_wrlock
"threads.h", line 81: warning: implicit function declaration: rw_unlock
"/usr/include/synch.h", line 69: identifier redeclared: rwlock_t
        current : struct _rwlock {int readers, unsigned short type, unsigned short magic, struct _lwp_mutex {..} mutex, struct _lwp_cond {..} readercv, struct _lwp_cond {..} writercv}
        previous: int : "solaris-lock.h", line 1
"solaris-niagara2.h", line 53: cannot find include file: "papi_defines.h"
"solaris-niagara2.h", line 137: identifier redeclared: lock
        current : array[11] of struct _rwlock {int readers, unsigned short type, unsigned short magic, struct _lwp_mutex {..} mutex, struct _lwp_cond {..} readercv, struct _lwp_cond {..} writercv}
        previous: array[11] of int : "solaris-lock.h", line 1
"solaris-niagara2.c", line 255: warning: implicit function declaration: __cpc_domain_translator
"solaris-niagara2.c", line 264: warning: implicit function declaration: __cpc_recreate_set
"solaris-niagara2.c", line 316: warning: implicit function declaration: __sol_get_itimer_ns
"solaris-niagara2.c", line 465: warning: implicit function declaration: _niagara2_read
"solaris-niagara2.c", line 542: warning: implicit function declaration: _papi_hwi_dispatch_overflow_signal
"solaris-niagara2.c", line 543: warning: implicit function declaration: _niagara2_get_overflow_address
"solaris-niagara2.c", line 563: identifier redeclared: _niagara2_get_overflow_address
        current : static function(pointer to void) returning pointer to void
        previous: function() returning int : "solaris-niagara2.c", line 543
"solaris-niagara2.c", line 671: undefined symbol: __cpc_error_handler
"solaris-niagara2.c", line 671: warning: improper pointer/integer combination: arg #2
"solaris-niagara2.c", line 687: warning: implicit function declaration: _niagara2_get_system_info
"solaris-niagara2.c", line 693: warning: implicit function declaration: _niagara2_lock_init
"solaris-niagara2.c", line 706: warning: implicit function declaration: __cpc_build_ntv_table
"solaris-niagara2.c", line 712: warning: implicit function declaration: __cpc_build_pst_table
"solaris-niagara2.c", line 730: identifier redeclared: _niagara2_lock_init
        current : static function(void) returning void
        previous: function() returning int : "solaris-niagara2.c", line 693
"solaris-niagara2.c", line 780: warning: implicit function declaration: _niagara2_ntv_code_to_name
"solaris-niagara2.c", line 1037: warning: implicit function declaration: __cpc_enable_sigemt
"solaris-niagara2.c", line 1052: warning: implicit function declaration: _papi_hwi_start_signal
"solaris-niagara2.c", line 1073: warning: implicit function declaration: _papi_hwi_stop_signal
"solaris-niagara2.c", line 1562: undefined symbol: __cpc_walk_events_pic_action_count
"solaris-niagara2.c", line 1562: warning: improper pointer/integer combination: arg #4
"solaris-niagara2.c", line 1618: undefined symbol: __cpc_walk_events_pic_action_store
"solaris-niagara2.c", line 1618: warning: improper pointer/integer combination: arg #4
"solaris-niagara2.c", line 1687: improper member use: data
"solaris-niagara2.c", line 1687: warning: left operand of "." must be struct/union object
"solaris-niagara2.c", line 1687: cannot access member of non-struct/union object
"solaris-niagara2.c", line 1691: improper member use: data
"solaris-niagara2.c", line 1691: non-unique member requires struct/union object: derived
"solaris-niagara2.c", line 1691: warning: left operand of "." must be struct/union object
"solaris-niagara2.c", line 1691: cannot access member of non-struct/union object
"solaris-niagara2.c", line 1692: improper member use: data
"solaris-niagara2.c", line 1692: warning: left operand of "." must be struct/union object
"solaris-niagara2.c", line 1692: cannot access member of non-struct/union object
"solaris-niagara2.c", line 1696: improper member use: data
"solaris-niagara2.c", line 1696: warning: left operand of "." must be struct/union object
"solaris-niagara2.c", line 1696: cannot access member of non-struct/union object
"solaris-niagara2.c", line 1699: improper member use: data
"solaris-niagara2.c", line 1699: warning: left operand of "." must be struct/union object
"solaris-niagara2.c", line 1699: cannot access member of non-struct/union object
"solaris-niagara2.c", line 1707: improper member use: data
"solaris-niagara2.c", line 1707: warning: left operand of "." must be struct/union object
"solaris-niagara2.c", line 1707: cannot access member of non-struct/union object
"solaris-niagara2.c", line 2257: warning: initialization type mismatch
"solaris-niagara2.c", line 2258: warning: initialization type mismatch
"solaris-niagara2.c", line 2259: warning: initialization type mismatch
"solaris-niagara2.c", line 2260: warning: initialization type mismatch
"solaris-niagara2.c", line 2262: warning: initialization type mismatch
"solaris-niagara2.c", line 2264: warning: initialization type mismatch
"solaris-niagara2.c", line 2265: warning: initialization type mismatch
"solaris-niagara2.c", line 2266: warning: initialization type mismatch
"solaris-niagara2.c", line 2267: warning: initialization type mismatch
"solaris-niagara2.c", line 2275: warning: initialization type mismatch
cc: acomp failed for solaris-niagara2.c
papi_preset.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-lock.h", line 1: warning: no explicit type given
"solaris-lock.h", line 1: syntax error before or at: lock
"solaris-lock.h", line 1: warning: old-style declaration or incorrect type for: lock
"threads.h", line 67: warning: implicit function declaration: rw_wrlock
"threads.h", line 81: warning: implicit function declaration: rw_unlock
cc: acomp failed for papi_preset.c
papi_vector.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-lock.h", line 1: warning: no explicit type given
"solaris-lock.h", line 1: syntax error before or at: lock
"solaris-lock.h", line 1: warning: old-style declaration or incorrect type for: lock
"threads.h", line 67: warning: implicit function declaration: rw_wrlock
"threads.h", line 81: warning: implicit function declaration: rw_unlock
cc: acomp failed for papi_vector.c
papi_memory.c:
"solaris-lock.h", line 1: warning: no explicit type given
"solaris-lock.h", line 1: syntax error before or at: lock
"solaris-lock.h", line 1: warning: old-style declaration or incorrect type for: lock
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"threads.h", line 67: warning: implicit function declaration: rw_wrlock
"threads.h", line 81: warning: implicit function declaration: rw_unlock
"papi_memory.c", line 165: warning: statement not reached
cc: acomp failed for papi_memory.c
papi_user_events.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-lock.h", line 1: warning: no explicit type given
"solaris-lock.h", line 1: syntax error before or at: lock
"solaris-lock.h", line 1: warning: old-style declaration or incorrect type for: lock
"threads.h", line 67: warning: implicit function declaration: rw_wrlock
"threads.h", line 81: warning: implicit function declaration: rw_unlock
cc: acomp failed for papi_user_events.c
gmake: *** [libpapi64.so] Error 1


Many of these errors seem to be due to the fact that solaris-lock.h uses rwlock_t without including thread.h... So I added "#include <thread.h>" to solaris-lock.h. This decreases the amount of errors, but there are still a lot of them :

Code: Select all
Host architecture   : Solaris 10 with libcpc2 and UltraSPARC T2 (Niagara 2)
Host CPU component  : solaris-niagara2.c
Installation DESTDIR:
Installation PREFIX : /u/xxx/usr/
Installation EPREFIX: /u/xxx/usr/
Installation INCDIR : /u/xxx/usr//include
Installation LIBDIR : /u/xxx/usr//lib
Installation BINDIR : /u/xxx/usr//bin
Installation MANDIR : /u/xxx/usr//man
Installation DOCDIR :
Installation DATADIR: /u/xxx/usr//share/papi

cc -ztext -G -Kpic -I. -xtarget=native -xarch=native -DNO_VARARG_MACRO -D__EXTENSIONS__ -DCOMP_VECTOR=_niagara2_vector -m64  -DOSLOCK=\"solaris-lock.h\" -DOSCONTEXT=\"solaris-context.h\" -fast  papi.c papi_internal.c papi_hl.c extras.c sw_multiplex.c papi_fwrappers.c papi_fwrappers_.c papi_fwrappers__.c upper_PAPI_FWRAPPERS.c threads.c cpus.c solaris-memory.c solaris-common.c solaris-niagara2.c papi_preset.c papi_vector.c papi_memory.c papi_user_events.c   -o libpapi64.so -lcpc 
papi.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"papi.c", line 6383: warning: implicit function declaration: ffsll
papi_internal.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
papi_hl.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
extras.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
sw_multiplex.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
papi_fwrappers.c:
papi_fwrappers_.c:
papi_fwrappers__.c:
upper_PAPI_FWRAPPERS.c:
threads.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
cpus.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
solaris-memory.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-memory.c", line 39: warning: implicit function declaration: strstr
"solaris-memory.c", line 123: incomplete struct/union/enum psinfo: psi
"solaris-memory.c", line 126: undefined symbol: errno
"solaris-memory.c", line 135: improper member use: pr_size
cc: acomp failed for solaris-memory.c
solaris-common.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-common.c", line 605: undefined symbol: cpuver
"solaris-common.c", line 637: warning: implicit function declaration: build_tables
"solaris-common.c", line 640: undefined symbol: preset_table
"solaris-common.c", line 640: warning: improper pointer/integer combination: op "="
"solaris-common.c", line 641: undefined symbol: CPC_ULTRA2
"solaris-common.c", line 643: undefined symbol: pcr_shift
"solaris-common.c", line 643: cannot dereference non-pointer type
"solaris-common.c", line 643: undefined symbol: CPC_ULTRA_PCR_PIC0_SHIFT
"solaris-common.c", line 644: cannot dereference non-pointer type
"solaris-common.c", line 644: undefined symbol: CPC_ULTRA_PCR_PIC1_SHIFT
"solaris-common.c", line 645: undefined symbol: LASTULTRA3
"solaris-common.c", line 647: undefined symbol: pcr_shift
"solaris-common.c", line 647: cannot dereference non-pointer type
"solaris-common.c", line 647: undefined symbol: CPC_ULTRA_PCR_PIC0_SHIFT
"solaris-common.c", line 648: cannot dereference non-pointer type
"solaris-common.c", line 648: undefined symbol: CPC_ULTRA_PCR_PIC1_SHIFT
"solaris-common.c", line 649: undefined symbol: _solaris_vector
"solaris-common.c", line 649: warning: left operand of "." must be struct/union object
"solaris-common.c", line 649: cannot access member of non-struct/union object
"solaris-common.c", line 650: warning: left operand of "." must be struct/union object
"solaris-common.c", line 650: cannot access member of non-struct/union object
"solaris-common.c", line 707: warning: implicit function declaration: basename
"solaris-common.c", line 707: warning: improper pointer/integer combination: arg #2
"solaris-common.c", line 713: warning: implicit function declaration: _ultra_hwd_update_shlib_info
"solaris-common.c", line 721: warning: implicit function declaration: scan_prtconf
"solaris-common.c", line 745: undefined symbol: _solaris_vector
"solaris-common.c", line 745: warning: left operand of "." must be struct/union object
"solaris-common.c", line 745: cannot access member of non-struct/union object
"solaris-common.c", line 746: warning: left operand of "." must be struct/union object
"solaris-common.c", line 746: cannot access member of non-struct/union object
"solaris-common.c", line 747: warning: left operand of "." must be struct/union object
"solaris-common.c", line 747: cannot access member of non-struct/union object
"solaris-common.c", line 748: warning: left operand of "." must be struct/union object
"solaris-common.c", line 748: cannot access member of non-struct/union object
"solaris-common.c", line 749: warning: left operand of "." must be struct/union object
"solaris-common.c", line 749: cannot access member of non-struct/union object
"solaris-common.c", line 771: warning: implicit function declaration: _ultra_hwd_get_real_usec
cc: acomp failed for solaris-common.c
solaris-niagara2.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"solaris-niagara2.h", line 53: cannot find include file: "papi_defines.h"
"solaris-niagara2.c", line 255: warning: implicit function declaration: __cpc_domain_translator
"solaris-niagara2.c", line 264: warning: implicit function declaration: __cpc_recreate_set
"solaris-niagara2.c", line 316: warning: implicit function declaration: __sol_get_itimer_ns
"solaris-niagara2.c", line 465: warning: implicit function declaration: _niagara2_read
"solaris-niagara2.c", line 542: warning: implicit function declaration: _papi_hwi_dispatch_overflow_signal
"solaris-niagara2.c", line 543: warning: implicit function declaration: _niagara2_get_overflow_address
"solaris-niagara2.c", line 563: identifier redeclared: _niagara2_get_overflow_address
        current : static function(pointer to void) returning pointer to void
        previous: function() returning int : "solaris-niagara2.c", line 543
"solaris-niagara2.c", line 671: undefined symbol: __cpc_error_handler
"solaris-niagara2.c", line 671: warning: improper pointer/integer combination: arg #2
"solaris-niagara2.c", line 687: warning: implicit function declaration: _niagara2_get_system_info
"solaris-niagara2.c", line 693: warning: implicit function declaration: _niagara2_lock_init
"solaris-niagara2.c", line 706: warning: implicit function declaration: __cpc_build_ntv_table
"solaris-niagara2.c", line 712: warning: implicit function declaration: __cpc_build_pst_table
"solaris-niagara2.c", line 730: identifier redeclared: _niagara2_lock_init
        current : static function(void) returning void
        previous: function() returning int : "solaris-niagara2.c", line 693
"solaris-niagara2.c", line 780: warning: implicit function declaration: _niagara2_ntv_code_to_name
"solaris-niagara2.c", line 1037: warning: implicit function declaration: __cpc_enable_sigemt
"solaris-niagara2.c", line 1052: warning: implicit function declaration: _papi_hwi_start_signal
"solaris-niagara2.c", line 1073: warning: implicit function declaration: _papi_hwi_stop_signal
"solaris-niagara2.c", line 1562: undefined symbol: __cpc_walk_events_pic_action_count
"solaris-niagara2.c", line 1562: warning: improper pointer/integer combination: arg #4
"solaris-niagara2.c", line 1618: undefined symbol: __cpc_walk_events_pic_action_store
"solaris-niagara2.c", line 1618: warning: improper pointer/integer combination: arg #4
"solaris-niagara2.c", line 1687: improper member use: data
"solaris-niagara2.c", line 1687: warning: left operand of "." must be struct/union object
"solaris-niagara2.c", line 1687: cannot access member of non-struct/union object
"solaris-niagara2.c", line 1691: improper member use: data
"solaris-niagara2.c", line 1691: non-unique member requires struct/union object: derived
"solaris-niagara2.c", line 1691: warning: left operand of "." must be struct/union object
"solaris-niagara2.c", line 1691: cannot access member of non-struct/union object
"solaris-niagara2.c", line 1692: improper member use: data
"solaris-niagara2.c", line 1692: warning: left operand of "." must be struct/union object
"solaris-niagara2.c", line 1692: cannot access member of non-struct/union object
"solaris-niagara2.c", line 1696: improper member use: data
"solaris-niagara2.c", line 1696: warning: left operand of "." must be struct/union object
"solaris-niagara2.c", line 1696: cannot access member of non-struct/union object
"solaris-niagara2.c", line 1699: improper member use: data
"solaris-niagara2.c", line 1699: warning: left operand of "." must be struct/union object
"solaris-niagara2.c", line 1699: cannot access member of non-struct/union object
"solaris-niagara2.c", line 1707: improper member use: data
"solaris-niagara2.c", line 1707: warning: left operand of "." must be struct/union object
"solaris-niagara2.c", line 1707: cannot access member of non-struct/union object
"solaris-niagara2.c", line 2257: warning: initialization type mismatch
"solaris-niagara2.c", line 2258: warning: initialization type mismatch
"solaris-niagara2.c", line 2259: warning: initialization type mismatch
"solaris-niagara2.c", line 2260: warning: initialization type mismatch
"solaris-niagara2.c", line 2262: warning: initialization type mismatch
"solaris-niagara2.c", line 2264: warning: initialization type mismatch
"solaris-niagara2.c", line 2265: warning: initialization type mismatch
"solaris-niagara2.c", line 2266: warning: initialization type mismatch
"solaris-niagara2.c", line 2267: warning: initialization type mismatch
"solaris-niagara2.c", line 2275: warning: initialization type mismatch
cc: acomp failed for solaris-niagara2.c
papi_preset.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
papi_vector.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
papi_memory.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
"papi_memory.c", line 165: warning: statement not reached
papi_user_events.c:
"solaris-context.h", line 7: warning: macro redefined: hwd_siginfo_t
"solaris-context.h", line 9: warning: macro redefined: hwd_ucontext_t
gmake: *** [libpapi64.so] Error 1


What am I doing wrong? How comes papi_defines.h doesn't exist for instance, I can't find it anywhere and it seems important?
loulan
 
Posts: 1
Joined: Wed Aug 11, 2010 8:23 am

Return to General discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron