PaRSEC is a generic framework for architecture aware scheduling and management of micro-tasks on distributed, GPU accelerated, many-core heterogeneous architectures. PaRSEC assigns computation threads to the cores, GPU accelerators, overlaps communications and computations and uses a dynamic, fully-distributed scheduler based on architectural features such as NUMA nodes and algorithmic features such as data reuse.
Other
47
stars
17
forks
source link
linking to static parsec will have undefined reference to papi functions #202
Compiling PaRSEC with BUILD_SHARED_LIBS=OFF and PARSEC_PROF_TRACE=ON. Building external application will generate undefined reference to papi functions when linking to libparsec.a.
Additionally, compiling pbt2ptt.so will also fail when building static PaRSEC library
#!text
CFLAGS: -O3 -std=c11 -I/home/ypei2/stars-h/debug.install/include -I/home/ypei2/sandbox/master/parsec/debug.install/include -I/sw/hwloc/1.11.5/include -I/sw/openmpi/3.0.0/include -I/home/ypei2/sandbox/master/parsec/ -I/home/ypei2/sandbox/master/parsec/debug.install/dplasma/include -I/home/ypei2/sandbox/master/parsec/debug.install/include -I/sw/hwloc/1.11.5/include -I/sw/openmpi/3.0.0/include -I/sw/plasma/2.8.0g/include -DPLASMA
LDFLAGS: -L/home/ypei2/stars-h/debug.install/lib -lstarsh /usr/lib64/libdl.so /sw/hwloc/1.11.5/lib/libhwloc.so /sw/openmpi/3.0.0/lib/libmpi.so -L/home/ypei2/sandbox/master/parsec/debug.install/lib -L/spack/opt/spack/linux-scientific7-x86_64/gcc-7.1.0/cuda-10.0.130-7xxnf3jrwcybp3uafgqkaomewtuonjhv/lib64 -L/sw/gcc/7.1.0/lib/gcc/x86_64-pc-linux-gnu/7.1.0 -L/sw/gcc/7.1.0/lib64 -L/lib64 -L/opt/intel/compilers_and_libraries_2017/linux/mkl/lib/intel64 -L/opt/intel/compilers_and_libraries_2017/linux/tbb/lib/intel64/gcc4.7 -L/sw/gcc/7.1.0/lib -lparsec -latomic -lpthread -lgfortran -lquadmath -lm -lc -lgcc_s -lgcc -lhwloc -L. -lhicmahcore /usr/lib64/libdl.so /sw/hwloc/1.11.5/lib/libhwloc.so /sw/openmpi/3.0.0/lib/libmpi.so -L/home/ypei2/sandbox/master/parsec/debug.install/dplasma/lib -L/home/ypei2/sandbox/master/parsec/debug.install/lib -L/spack/opt/spack/linux-scientific7-x86_64/gcc-7.1.0/cuda-10.0.130-7xxnf3jrwcybp3uafgqkaomewtuonjhv/lib64 -L/sw/gcc/7.1.0/lib/gcc/x86_64-pc-linux-gnu/7.1.0 -L/sw/gcc/7.1.0/lib64 -L/lib64 -L/opt/intel/compilers_and_libraries_2017/linux/mkl/lib/intel64 -L/opt/intel/compilers_and_libraries_2017/linux/tbb/lib/intel64/gcc4.7 -L/sw/gcc/7.1.0/lib -L/sw/plasma/2.8.0g/lib -ldplasma -lparsec -latomic -lgfortran -lquadmath -lc -lgcc_s -lgcc -lcoreblas -llapacke -lmkl_sequential -lmkl_core -lmkl_gf_lp64 -lpthread -lm -lhwloc -L. -lhicmahcore
mpicc -o testing_dpotrf HiCMA_dpotrf_L.o STARSH_gen.o STARSH_check.o matrix_gather.o band_allocate.o band_free.o dpotrf_wrapper.o common.o testing_dpotrf.o starsh_wrapper.o -L/home/ypei2/stars-h/debug.install/lib -lstarsh /usr/lib64/libdl.so /sw/hwloc/1.11.5/lib/libhwloc.so /sw/openmpi/3.0.0/lib/libmpi.so -L/home/ypei2/sandbox/master/parsec/debug.install/lib -L/spack/opt/spack/linux-scientific7-x86_64/gcc-7.1.0/cuda-10.0.130-7xxnf3jrwcybp3uafgqkaomewtuonjhv/lib64 -L/sw/gcc/7.1.0/lib/gcc/x86_64-pc-linux-gnu/7.1.0 -L/sw/gcc/7.1.0/lib64 -L/lib64 -L/opt/intel/compilers_and_libraries_2017/linux/mkl/lib/intel64 -L/opt/intel/compilers_and_libraries_2017/linux/tbb/lib/intel64/gcc4.7 -L/sw/gcc/7.1.0/lib -lparsec -latomic -lpthread -lgfortran -lquadmath -lm -lc -lgcc_s -lgcc -lhwloc -L. -lhicmahcore /usr/lib64/libdl.so /sw/hwloc/1.11.5/lib/libhwloc.so /sw/openmpi/3.0.0/lib/libmpi.so -L/home/ypei2/sandbox/master/parsec/debug.install/dplasma/lib -L/home/ypei2/sandbox/master/parsec/debug.install/lib -L/spack/opt/spack/linux-scientific7-x86_64/gcc-7.1.0/cuda-10.0.130-7xxnf3jrwcybp3uafgqkaomewtuonjhv/lib64 -L/sw/gcc/7.1.0/lib/gcc/x86_64-pc-linux-gnu/7.1.0 -L/sw/gcc/7.1.0/lib64 -L/lib64 -L/opt/intel/compilers_and_libraries_2017/linux/mkl/lib/intel64 -L/opt/intel/compilers_and_libraries_2017/linux/tbb/lib/intel64/gcc4.7 -L/sw/gcc/7.1.0/lib -L/sw/plasma/2.8.0g/lib -ldplasma -lparsec -latomic -lgfortran -lquadmath -lc -lgcc_s -lgcc -lcoreblas -llapacke -lmkl_sequential -lmkl_core -lmkl_gf_lp64 -lpthread -lm -lhwloc -L. -lhicmahcore
/usr/bin/ld: warning: libgfortran.so.3, needed by /lib64/liblapacke.so, may conflict with libgfortran.so.4
/usr/bin/ld: warning: libgfortran.so.3, needed by /lib64/liblapacke.so, may conflict with libgfortran.so.4
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(papi_sde.c.o): In function `PARSEC_PAPI_SDE_INIT':
/home/ypei2/sandbox/master/parsec/parsec/papi_sde.c:65: undefined reference to `papi_sde_init'
/home/ypei2/sandbox/master/parsec/parsec/papi_sde.c:72: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/parsec/papi_sde.c:75: undefined reference to `papi_sde_register_fp_counter'
/home/ypei2/sandbox/master/parsec/parsec/papi_sde.c:78: undefined reference to `papi_sde_register_fp_counter'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(papi_sde.c.o): In function `PARSEC_PAPI_SDE_FINI':
/home/ypei2/sandbox/master/parsec/parsec/papi_sde.c:91: undefined reference to `papi_sde_unregister_counter'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(papi_sde.c.o): In function `PARSEC_PAPI_SDE_UNREGISTER_COUNTER':
/home/ypei2/sandbox/master/parsec/parsec/papi_sde.c:190: undefined reference to `papi_sde_unregister_counter'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(pins_papi_module.c.o): In function `pins_papi_read_and_trace':
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/papi/pins_papi_module.c:40: undefined reference to `PAPI_read'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/papi/pins_papi_module.c:41: undefined reference to `PAPI_strerror'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(pins_papi_module.c.o): In function `pins_init_papi':
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/papi/pins_papi_module.c:116: undefined reference to `PAPI_get_cmp_opt'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/papi/pins_papi_module.c:118: undefined reference to `PAPI_get_cmp_opt'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/papi/pins_papi_module.c:117: undefined reference to `PAPI_num_components'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(pins_papi_module.c.o): In function `register_event_cb':
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/papi/pins_papi_module.c:156: undefined reference to `PAPI_start'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/papi/pins_papi_module.c:157: undefined reference to `PAPI_strerror'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(pins_papi_module.c.o): In function `pins_thread_init_papi':
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/papi/pins_papi_module.c:266: undefined reference to `PAPI_get_cmp_opt'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/papi/pins_papi_module.c:293: undefined reference to `PAPI_create_eventset'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/papi/pins_papi_module.c:294: undefined reference to `PAPI_strerror'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/papi/pins_papi_module.c:311: undefined reference to `PAPI_add_event'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/papi/pins_papi_module.c:313: undefined reference to `PAPI_strerror'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_ap_component.c.o): In function `sched_ap_component_register':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ap/sched_ap_component.c:80: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ap/sched_ap_component.c:82: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_ap_module.c.o): In function `flow_ap_init':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ap/sched_ap_module.c:78: undefined reference to `papi_sde_register_fp_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ap/sched_ap_module.c:80: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ap/sched_ap_module.c:82: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_gd_component.c.o): In function `sched_gd_component_register':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/gd/sched_gd_component.c:80: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/gd/sched_gd_component.c:82: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_gd_module.c.o): In function `flow_gd_init':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/gd/sched_gd_module.c:113: undefined reference to `papi_sde_register_fp_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/gd/sched_gd_module.c:115: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/gd/sched_gd_module.c:117: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_ip_component.c.o): In function `sched_ip_component_register':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ip/sched_ip_component.c:80: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ip/sched_ip_component.c:82: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_ip_module.c.o): In function `flow_ip_init':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ip/sched_ip_module.c:74: undefined reference to `papi_sde_register_fp_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ip/sched_ip_module.c:76: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ip/sched_ip_module.c:78: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_lfq_component.c.o): In function `sched_lfq_component_register':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lfq/sched_lfq_component.c:80: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lfq/sched_lfq_component.c:82: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_lfq_module.c.o): In function `flow_lfq_init':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lfq/sched_lfq_module.c:147: undefined reference to `papi_sde_register_fp_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lfq/sched_lfq_module.c:149: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lfq/sched_lfq_module.c:151: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lfq/sched_lfq_module.c:157: undefined reference to `papi_sde_register_fp_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lfq/sched_lfq_module.c:160: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lfq/sched_lfq_module.c:162: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_lhq_component.c.o): In function `sched_lhq_component_register':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lhq/sched_lhq_component.c:79: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lhq/sched_lhq_component.c:81: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lhq/sched_lhq_component.c:83: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_lhq_module.c.o): In function `flow_lhq_init':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lhq/sched_lhq_module.c:145: undefined reference to `papi_sde_register_fp_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lhq/sched_lhq_module.c:147: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lhq/sched_lhq_module.c:149: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lhq/sched_lhq_module.c:163: undefined reference to `papi_sde_register_fp_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lhq/sched_lhq_module.c:166: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/lhq/sched_lhq_module.c:168: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_ll_component.c.o): In function `sched_ll_component_register':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ll/sched_ll_component.c:79: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ll/sched_ll_component.c:81: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_ll_module.c.o): In function `flow_ll_init':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ll/sched_ll_module.c:155: undefined reference to `papi_sde_register_fp_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ll/sched_ll_module.c:157: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ll/sched_ll_module.c:159: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_ltq_component.c.o): In function `sched_ltq_component_register':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ltq/sched_ltq_component.c:79: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ltq/sched_ltq_component.c:81: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_ltq_module.c.o): In function `flow_ltq_init':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ltq/sched_ltq_module.c:143: undefined reference to `papi_sde_register_fp_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ltq/sched_ltq_module.c:145: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ltq/sched_ltq_module.c:147: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ltq/sched_ltq_module.c:152: undefined reference to `papi_sde_register_fp_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ltq/sched_ltq_module.c:155: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/ltq/sched_ltq_module.c:157: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_pbq_component.c.o): In function `sched_pbq_component_register':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/pbq/sched_pbq_component.c:79: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/pbq/sched_pbq_component.c:81: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_pbq_module.c.o): In function `flow_pbq_init':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/pbq/sched_pbq_module.c:145: undefined reference to `papi_sde_register_fp_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/pbq/sched_pbq_module.c:147: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/pbq/sched_pbq_module.c:149: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/pbq/sched_pbq_module.c:155: undefined reference to `papi_sde_register_fp_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/pbq/sched_pbq_module.c:158: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/pbq/sched_pbq_module.c:160: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_rnd_component.c.o): In function `sched_rnd_component_register':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/rnd/sched_rnd_component.c:80: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/rnd/sched_rnd_component.c:82: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_rnd_module.c.o): In function `flow_rnd_init':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/rnd/sched_rnd_module.c:74: undefined reference to `papi_sde_register_fp_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/rnd/sched_rnd_module.c:76: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/rnd/sched_rnd_module.c:78: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_spq_component.c.o): In function `sched_spq_component_register':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/spq/sched_spq_component.c:80: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/spq/sched_spq_component.c:82: undefined reference to `papi_sde_describe_counter'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(sched_spq_module.c.o): In function `flow_spq_init':
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/spq/sched_spq_module.c:121: undefined reference to `papi_sde_register_counter'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/spq/sched_spq_module.c:123: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/parsec/mca/sched/spq/sched_spq_module.c:125: undefined reference to `papi_sde_add_counter_to_group'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(pins_papi_utils.c.o): In function `pins_papi_init':
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:140: undefined reference to `PAPI_library_init'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:149: undefined reference to `PAPI_thread_init'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:151: undefined reference to `PAPI_strerror'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(pins_papi_utils.c.o): In function `pins_papi_thread_init':
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:188: undefined reference to `PAPI_register_thread'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:190: undefined reference to `PAPI_strerror'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(pins_papi_utils.c.o): In function `pins_papi_thread_fini':
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:205: undefined reference to `PAPI_unregister_thread'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:207: undefined reference to `PAPI_strerror'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(pins_papi_utils.c.o): In function `parsec_pins_papi_events_new':
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:331: undefined reference to `PAPI_create_eventset'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:332: undefined reference to `PAPI_strerror'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:413: undefined reference to `PAPI_event_name_to_code'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:414: undefined reference to `PAPI_strerror'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:419: undefined reference to `PAPI_add_event'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:425: undefined reference to `PAPI_cleanup_eventset'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:426: undefined reference to `PAPI_add_event'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:428: undefined reference to `PAPI_strerror'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:441: undefined reference to `PAPI_remove_event'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:443: undefined reference to `PAPI_get_event_info'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:444: undefined reference to `PAPI_strerror'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:465: undefined reference to `PAPI_cleanup_eventset'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:466: undefined reference to `PAPI_destroy_eventset'
/home/ypei2/sandbox/master/parsec/debug.install/lib/libparsec.a(pins_papi_utils.c.o): In function `parsec_pins_papi_event_cleanup':
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:501: undefined reference to `PAPI_stop'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:502: undefined reference to `PAPI_strerror'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:505: undefined reference to `PAPI_cleanup_eventset'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:506: undefined reference to `PAPI_strerror'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:509: undefined reference to `PAPI_destroy_eventset'
/home/ypei2/sandbox/master/parsec/parsec/mca/pins/pins_papi_utils.c:510: undefined reference to `PAPI_strerror'
collect2: error: ld returned 1 exit status
make: *** [testing_dpotrf] Error 1
Original report by Yu Pei (Bitbucket: [Yu Pei](https://bitbucket.org/Yu Pei), ).
Compiling PaRSEC with BUILD_SHARED_LIBS=OFF and PARSEC_PROF_TRACE=ON. Building external application will generate undefined reference to papi functions when linking to libparsec.a.
Additionally, compiling pbt2ptt.so will also fail when building static PaRSEC library