Shouldn't you be using shmemcc, not mpicc?
> On Sep 11, 2015, at 7:01 PM, Ralph Castain <r...@open-mpi.org> wrote: > > On current master: > > 03:57:56 (topic/pmix) /home/common/openmpi/foobar/examples$ make > ring_oshmem_c > mpicc -g ring_oshmem_c.c -o ring_oshmem_c > /tmp/ccfqcVje.o: In function `main': > /home/common/openmpi/foobar/examples/ring_oshmem_c.c:20: undefined reference > to `start_pes' > /home/common/openmpi/foobar/examples/ring_oshmem_c.c:21: undefined reference > to `_my_pe' > /home/common/openmpi/foobar/examples/ring_oshmem_c.c:22: undefined reference > to `_num_pes' > /home/common/openmpi/foobar/examples/ring_oshmem_c.c:32: undefined reference > to `shmem_int_put' > /home/common/openmpi/foobar/examples/ring_oshmem_c.c:44: undefined reference > to `shmem_int_wait_until' > /home/common/openmpi/foobar/examples/ring_oshmem_c.c:49: undefined reference > to `shmem_int_put' > collect2: error: ld returned 1 exit status > make: *** [ring_oshmem_c] Error 1 > 03:58:51 (topic/pmix) /home/common/openmpi/foobar/examples$ mpicc --showme > gcc -I/home/common/openmpi/build/foobar/include/openmpi > -I/home/common/openmpi/build/foobar/include/openmpi/opal/mca/hwloc/hwloc1110/hwloc/include > > -I/home/common/openmpi/build/foobar/include/openmpi/opal/mca/event/libevent2022/libevent > > -I/home/common/openmpi/build/foobar/include/openmpi/opal/mca/event/libevent2022/libevent/include > -I/home/common/openmpi/build/foobar/include -pthread -Wl,-rpath > -Wl,/home/common/openmpi/build/foobar/lib -Wl,--enable-new-dtags > -L/home/common/openmpi/build/foobar/lib -lmpi > 03:59:12 (topic/pmix) /home/common/openmpi/foobar/examples$ > > None of the oshmem examples can be built - all fail with the same error. My > configure: > > enable_orterun_prefix_by_default=yes > enable_mpi_thread_multiple=no > enable_mem_debug=no > enable_mem_profile=no > enable_debug_symbols=yes > enable_binaries=yes > enable_heterogeneous=no > enable_picky=yes > enable_debug=yes > enable_shared=yes > enable_static=no > enable_memchecker=no > enable_ipv6=no > enable_mpi_fortran=yes > enable_mpi_cxx=no > enable_mpi_cxx_seek=no > enable_cxx_exceptions=no > enable_mpi_java=no > enable_io_romio=no > enable_contrib_no_build=libnbc > with_memory_manager=no > with_tm=no > with_devel_headers=yes > with_portals=no > with_valgrind=no > if [ -n "$SLURMHOME" ] ; then > with_slurm=$SLURMHOME > with_pmi=$SLURMHOME > else > with_slurm=no > fi > > > Ralph > > _______________________________________________ > devel mailing list > de...@open-mpi.org > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel > Link to this post: > http://www.open-mpi.org/community/lists/devel/2015/09/18010.php -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/