Sandia-OpenSHMEM / SOS

Sandia OpenSHMEM is an implementation of the OpenSHMEM specification over multiple Networking APIs, including Portals 4, the Open Fabric Interface (OFI), and UCX. Please click on the Wiki tab for help with building and using SOS.
Other
63 stars 53 forks source link

compiler wrapper needs Pthreads for static linking #83

Open jeffhammond opened 8 years ago

jeffhammond commented 8 years ago

If I try to build a static binary, oshcc fails due to not knowing where Pthreads is...

/opt/shmem/sandia/intel/bin/oshcc -static -I/opt/shmem/sandia/intel/include  -o p2p -L/opt/shmem/sandia/intel/lib  -O3 -DSHMEM p2p.o wtime.o SHMEM_bail_out.o  -lshmem
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_ep_getinfo':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:456: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/shmem/sandia/intel/lib/libsma.a(simple_pmi.o): In function `PMII_Connect_to_pm':
/home/jrhammon/Work/PGAS/SHMEM/sandia-shmem/shmem_pmi/simple_pmi.c:885: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/libfabric//lib/libfabric.a(src_libfabric_la-fabric.o): In function `fi_ini':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../src/fabric.c:369: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../src/fabric.c:348: undefined reference to `pthread_mutex_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../src/fabric.c:404: undefined reference to `pthread_mutex_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_dom_add_to_list':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:79: undefined reference to `pthread_spin_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_dom_check_list':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:101: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:103: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:103: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_dom_remove_from_list':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:109: undefined reference to `pthread_spin_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_dom_list_head':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:119: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:126: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_fab_add_to_list':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:132: undefined reference to `pthread_spin_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_fabric':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:341: undefined reference to `pthread_spin_init'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_fab_check_list':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:154: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:156: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:156: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_fab_remove_from_list':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:162: undefined reference to `pthread_spin_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_fabric_close':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:296: undefined reference to `pthread_spin_destroy'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_fab_list_head':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:172: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:179: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_fabric_check_service':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:377: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:379: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:379: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_fabric_add_service':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:392: undefined reference to `pthread_spin_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_fabric_remove_service':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:400: undefined reference to `pthread_spin_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `fi_sockets_ini':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:624: undefined reference to `pthread_spin_init'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `fi_sockets_fini':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:588: undefined reference to `pthread_spin_destroy'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_dom_add_to_list':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:81: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_dom_remove_from_list':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:113: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_fab_add_to_list':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:134: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_fab_remove_from_list':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:166: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o): In function `sock_fabric_add_service':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:394: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_fabric.o):/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_fabric.c:406: more undefined references to `pthread_spin_unlock' follow
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ep.o): In function `sock_rx_ctx_cancel':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:440: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:474: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ep.o): In function `sock_ep_close':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:607: undefined reference to `pthread_mutex_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:619: undefined reference to `pthread_mutex_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:632: undefined reference to `pthread_spin_destroy'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:657: undefined reference to `pthread_spin_destroy'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:626: undefined reference to `pthread_join'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:615: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:617: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:609: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:611: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:597: undefined reference to `pthread_join'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ep.o): In function `sock_tx_size_left':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:552: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:554: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ep.o): In function `sock_ctx_bind_cq':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:172: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:174: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:159: undefined reference to `pthread_spin_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ep.o): In function `sock_ctx_bind_cntr':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:240: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:242: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:224: undefined reference to `pthread_spin_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ep.o): In function `sock_ep_bind':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:740: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:743: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:810: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:813: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:865: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:867: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:856: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:858: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ep.o): In function `sock_alloc_endpoint':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:1498: undefined reference to `pthread_spin_init'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:1548: undefined reference to `pthread_spin_init'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ep.o): In function `sock_ep_get_conn':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:1609: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:1615: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep.c:1615: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ctx.o): In function `sock_rx_ctx_alloc':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ctx.c:61: undefined reference to `pthread_spin_init'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ctx.o): In function `sock_tx_context_alloc':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ctx.c:99: undefined reference to `pthread_spin_init'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ctx.c:100: undefined reference to `pthread_spin_init'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ctx.c:101: undefined reference to `pthread_spin_init'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ctx.o): In function `sock_rx_ctx_free':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ctx.c:72: undefined reference to `pthread_spin_destroy'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ctx.o): In function `sock_tx_ctx_free':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ctx.c:146: undefined reference to `pthread_spin_destroy'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ctx.c:147: undefined reference to `pthread_spin_destroy'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ctx.c:148: undefined reference to `pthread_spin_destroy'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ctx.o): In function `sock_tx_ctx_start':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ctx.c:156: undefined reference to `pthread_spin_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ctx.o): In function `sock_tx_ctx_commit':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ctx.c:168: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ctx.o): In function `sock_tx_ctx_abort':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ctx.c:174: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_progress_rx_ep':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2431: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2448: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_process_rx_conn_msg':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:1619: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:1623: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_process_rx_send':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:1543: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:1554: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:1465: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:1494: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:1577: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:1580: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:1478: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_rx_peek_recv':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:1244: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:1273: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_rx_claim_recv':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:1288: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:1338: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_signal':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2362: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2369: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_poll_add':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2374: undefined reference to `pthread_spin_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_add_tx_ctx':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2382: undefined reference to `pthread_mutex_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_add_rx_ctx':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2391: undefined reference to `pthread_mutex_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_remove_tx_ctx':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2400: undefined reference to `pthread_mutex_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_remove_rx_ctx':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2407: undefined reference to `pthread_mutex_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_progress_rx_ctx':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2459: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2461: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2463: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2493: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_progress_tx_ctx':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2529: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2531: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2536: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2561: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2536: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2536: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_thread_set_affinity':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2631: undefined reference to `pthread_self'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2659: undefined reference to `pthread_setaffinity_np'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_progress_thread':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2691: undefined reference to `pthread_mutex_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2714: undefined reference to `pthread_mutex_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2719: undefined reference to `pthread_mutex_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_poll':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2579: undefined reference to `pthread_mutex_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2600: undefined reference to `pthread_mutex_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2605: undefined reference to `pthread_mutex_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2611: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2618: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_init':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2757: undefined reference to `pthread_spin_init'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2758: undefined reference to `pthread_spin_init'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2759: undefined reference to `pthread_mutex_init'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2775: undefined reference to `pthread_create'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2790: undefined reference to `pthread_spin_destroy'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_finalize':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2810: undefined reference to `pthread_spin_destroy'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2811: undefined reference to `pthread_spin_destroy'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2812: undefined reference to `pthread_mutex_destroy'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2801: undefined reference to `pthread_join'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_poll_add':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2377: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2377: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_add_tx_ctx':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2385: undefined reference to `pthread_mutex_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_add_rx_ctx':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2394: undefined reference to `pthread_mutex_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_remove_tx_ctx':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2402: undefined reference to `pthread_mutex_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_progress.o): In function `sock_pe_remove_rx_ctx':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_progress.c:2409: undefined reference to `pthread_mutex_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_conn.o): In function `sock_conn_map_init':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_conn.c:104: undefined reference to `pthread_spin_init'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_conn.o): In function `sock_conn_map_insert':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_conn.c:160: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_conn.c:162: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_conn.o): In function `_sock_conn_listen':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_conn.c:261: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_conn.c:263: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_conn.o): In function `sock_conn_listen':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_conn.c:360: undefined reference to `pthread_create'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_conn.o): In function `sock_ep_connect':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_conn.c:392: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_conn.c:394: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_conn.c:478: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_conn.c:486: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_conn.o): In function `sock_conn_map_destroy':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_conn.c:137: undefined reference to `pthread_spin_destroy'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_msg.o): In function `sock_ep_recvmsg':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_msg.c:113: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_msg.c:115: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_msg.c:137: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_msg.c:139: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_msg.o): In function `sock_ep_trecvmsg':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_msg.c:446: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_msg.c:448: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_msg.c:470: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_msg.c:473: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_trigger.o): In function `sock_queue_rma_op':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_trigger.c:82: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_trigger.c:84: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_trigger.o): In function `sock_queue_msg_op':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_trigger.c:121: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_trigger.c:123: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_trigger.o): In function `sock_queue_tmsg_op':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_trigger.c:160: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_trigger.c:162: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_trigger.o): In function `sock_queue_atomic_op':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_trigger.c:214: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_trigger.c:216: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-common.o): In function `fi_wait_cond':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../src/common.c:59: undefined reference to `clock_gettime'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../src/common.c:62: undefined reference to `pthread_cond_timedwait'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../src/common.c:57: undefined reference to `pthread_cond_wait'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_av.o): In function `sock_av_close':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_av.c:411: undefined reference to `shm_unlink'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_av.o): In function `sock_av_open':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_av.c:514: undefined reference to `shm_open'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_av.c:542: undefined reference to `shm_unlink'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_dom.o): In function `sock_mr_close':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_dom.c:197: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_dom.c:202: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_dom.o): In function `sock_dom_close':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_dom.c:169: undefined reference to `pthread_spin_destroy'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_dom.o): In function `sock_regattr':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_dom.c:330: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_dom.c:341: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_dom.c:359: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_dom.o): In function `sock_domain':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_dom.c:491: undefined reference to `pthread_spin_init'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_dom.c:491: undefined reference to `pthread_spin_init'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_eq.o): In function `sock_eq_fi_close':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_eq.c:275: undefined reference to `pthread_spin_destroy'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_eq.o): In function `sock_eq_sread':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_eq.c:95: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_eq.c:114: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_eq.c:114: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_eq.o): In function `sock_eq_readerr':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_eq.c:136: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_eq.c:162: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_eq.c:162: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_eq.o): In function `sock_eq_report_event':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_eq.c:180: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_eq.c:184: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_eq.o): In function `sock_eq_report_error':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_eq.c:225: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_eq.c:230: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_eq.o): In function `sock_eq_open':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_eq.c:388: undefined reference to `pthread_spin_init'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cq.o): In function `sock_cq_progress':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:61: undefined reference to `pthread_spin_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cq.o): In function `sock_cq_close':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:375: undefined reference to `pthread_spin_destroy'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:376: undefined reference to `pthread_spin_destroy'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cq.o): In function `sock_cq_sreadfrom':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:292: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:286: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:292: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:292: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:301: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:308: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cq.o): In function `sock_cq_readerr':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:341: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:348: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cq.o): In function `_sock_cq_write':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:114: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:146: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cq.o): In function `sock_cq_open':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:542: undefined reference to `pthread_spin_init'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:583: undefined reference to `pthread_spin_init'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cq.o): In function `sock_cq_report_error':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:604: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:630: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cq.o): In function `sock_cq_check_size_ok':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:637: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:641: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cq.o): In function `sock_cq_progress':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cq.c:73: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cntr.o): In function `sock_cntr_close':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:330: undefined reference to `pthread_mutex_destroy'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:331: undefined reference to `pthread_spin_destroy'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:332: undefined reference to `pthread_spin_destroy'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:334: undefined reference to `pthread_cond_destroy'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cntr.o): In function `sock_cntr_progress':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:63: undefined reference to `pthread_spin_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cntr.o): In function `sock_cntr_check_trigger_list':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:86: undefined reference to `pthread_spin_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cntr.o): In function `sock_cntr_wait':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:225: undefined reference to `pthread_mutex_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:271: undefined reference to `pthread_mutex_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:266: undefined reference to `pthread_mutex_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:246: undefined reference to `pthread_mutex_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:259: undefined reference to `pthread_mutex_lock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cntr.o): In function `sock_cntr_set':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:208: undefined reference to `pthread_mutex_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:211: undefined reference to `pthread_cond_signal'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:212: undefined reference to `pthread_mutex_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cntr.o): In function `sock_cntr_add':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:194: undefined reference to `pthread_mutex_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:197: undefined reference to `pthread_cond_signal'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:198: undefined reference to `pthread_mutex_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cntr.o): In function `sock_cntr_inc':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:169: undefined reference to `pthread_mutex_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:172: undefined reference to `pthread_cond_signal'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:173: undefined reference to `pthread_mutex_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cntr.o): In function `sock_cntr_err_inc':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:180: undefined reference to `pthread_mutex_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:184: undefined reference to `pthread_cond_signal'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:185: undefined reference to `pthread_mutex_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cntr.o): In function `sock_cntr_open':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:410: undefined reference to `pthread_cond_init'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:458: undefined reference to `pthread_mutex_init'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:459: undefined reference to `pthread_spin_init'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:471: undefined reference to `pthread_spin_init'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cntr.o): In function `sock_cntr_progress':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:75: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_cntr.o): In function `sock_cntr_check_trigger_list':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_cntr.c:156: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_poll.o): In function `sock_poll_poll':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_poll.c:101: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_poll.c:130: undefined reference to `pthread_spin_unlock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_poll.c:124: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_poll.c:113: undefined reference to `pthread_mutex_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_poll.c:119: undefined reference to `pthread_mutex_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_wait.o): In function `sock_wait_init':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_wait.c:96: undefined reference to `pthread_mutex_init'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_wait.c:97: undefined reference to `pthread_cond_init'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_wait.o): In function `sock_wait_signal':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_wait.c:199: undefined reference to `pthread_cond_signal'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ep_msg.o): In function `sock_ep_cm_enqueue_msg':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep_msg.c:414: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep_msg.c:416: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ep_msg.o): In function `sock_ep_cm_flush_msg':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep_msg.c:475: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep_msg.c:501: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ep_msg.o): In function `sock_pep_fi_close':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep_msg.c:975: undefined reference to `pthread_join'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep_msg.c:981: undefined reference to `pthread_spin_destroy'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ep_msg.o): In function `sock_pep_start_listener_thread':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep_msg.c:1143: undefined reference to `pthread_create'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ep_msg.o): In function `sock_ep_cm_handle_ack':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep_msg.c:531: undefined reference to `pthread_spin_lock'
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep_msg.c:574: undefined reference to `pthread_spin_unlock'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ep_msg.o): In function `sock_msg_ep':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep_msg.c:933: undefined reference to `pthread_create'
/opt/libfabric//lib/libfabric.a(src_libfabric_la-sock_ep_msg.o): In function `sock_msg_passive_ep':
/home/jrhammon/Work/INTEL/SFI/libfabric/build/../prov/sockets/src/sock_ep_msg.c:1294: undefined reference to `pthread_spin_init'
/opt/gcc/5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0//libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__gthread_mutex_lock':
/tmp/gcc-5.3.0/x86_64-unknown-linux-gnu/libgcc/./gthr-default.h:748: undefined reference to `pthread_mutex_lock'
/tmp/gcc-5.3.0/x86_64-unknown-linux-gnu/libgcc/./gthr-default.h:748: undefined reference to `pthread_mutex_lock'
/tmp/gcc-5.3.0/x86_64-unknown-linux-gnu/libgcc/./gthr-default.h:748: undefined reference to `pthread_mutex_lock'
/tmp/gcc-5.3.0/x86_64-unknown-linux-gnu/libgcc/./gthr-default.h:748: undefined reference to `pthread_mutex_lock'
/opt/gcc/5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0//libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__gthread_mutex_unlock':
/tmp/gcc-5.3.0/x86_64-unknown-linux-gnu/libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock'
/opt/gcc/5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0//libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__gthread_mutex_lock':
/tmp/gcc-5.3.0/x86_64-unknown-linux-gnu/libgcc/./gthr-default.h:748: undefined reference to `pthread_mutex_lock'
/opt/gcc/5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0//libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__gthread_mutex_unlock':
/tmp/gcc-5.3.0/x86_64-unknown-linux-gnu/libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock'
/tmp/gcc-5.3.0/x86_64-unknown-linux-gnu/libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock'
/tmp/gcc-5.3.0/x86_64-unknown-linux-gnu/libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock'
/tmp/gcc-5.3.0/x86_64-unknown-linux-gnu/libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock'
/tmp/gcc-5.3.0/x86_64-unknown-linux-gnu/libgcc/./gthr-default.h:778: undefined reference to `pthread_mutex_unlock'
make[1]: *** [p2p] Error 1
make[1]: Leaving directory `/home/jrhammon/Work/INTEL/PCL/ESG/PRK/github-official/SHMEM/Synch_p2p'
make: *** [allshmem] Error 2
jdinan commented 8 years ago

Can you give us more information about your system (OS, compiler, ...) so that we can reproduce this error?

jeffhammond commented 8 years ago

It's my CentOS 6.5 Linux workstation. I can give you an account if you want to verify, although I have already fixed my issues by hand-modifying the compiler wrappers and adding symbolic links from libshmem_pmi to libshmem.

jeffhammond commented 8 years ago

...although libshmem isn't used by the wrapper. Because LD_LIBRARY_PATH doesn't include the SHMEM library paths, I do a static link.

jdinan commented 8 years ago

If you don't install within the system search paths for dynamic libraries then you have to add the install path to LD_LIBRARY_PATH. This is true for any library. It's fine if you prefer static linking to dynamic linking. I think you've just wandered into an area we have not tested in a while. We'll add it to our to-do list.

The reason that libshmem works for you is because PRK is adding "-lshmem" to the linker command. You should really remove "-lshmem" from LDLIBS in the SHMEM/Makefile and ask users to provide the build magic for their SHMEM library under common/Make.defs.

jeffhammond commented 8 years ago

If you don't install within the system search paths for dynamic libraries then you have to add the install path to LD_LIBRARY_PATH. This is true for any library. It's fine if you prefer static linking to dynamic linking. I think you've just wandered into an area we have not tested in a while. We'll add it to our to-do list.

I don't see any reason to not create rpath binaries. MPICH supports this, at least as an option.

I'll add rpath feature and file PR later. You need not address it.

The reason that libshmem works for you is because PRK is adding "-lshmem" to the linker command.

It actually doesn't help. Symbolic links just cause it to fail another way. You should really remove "-lshmem"

Agreed. from LDLIBS in the SHMEM/Makefile and ask users to provide the build magic for their SHMEM library under common/Make.defs.

Yeah we don't have enough magic yet ;-)