@kholland-intel reported that following the tests-sos build instructions (in the README) are unsuccessful using Sandia OpenSHMEM (on Ubuntu 20.04) because of this error:
/usr/bin/ld: mt_a2a-mt_a2a.o: undefined reference to symbol 'pthread_join@@GLIBC_2.2.5'
/usr/bin/ld: /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
But SOS is configured for multi-threading - so this should work without having to add -pthread to LDFLAGS.
Furthermore, if disabling the multithreaded tests (--disable-threads) there are more errors due to missing the math library:
/usr/bin/ld: shmem_team_split_2D.o: in function `find_xyz_dims':
/home/dave/Repos/tests-sos/build/test/spec-example/../../../test/spec-example/shmem_team_split_2D.c:24: undefined reference to `cbrt'
/usr/bin/ld: shmem_team_split_2D.o: in function `find_xy_dims':
/home/dave/Repos/tests-sos/build/test/spec-example/../../../test/spec-example/shmem_team_split_2D.c:12: undefined reference to `sqrt'
/usr/bin/ld: /home/dave/Repos/tests-sos/build/test/spec-example/../../../test/spec-example/shmem_team_split_2D.c:12: undefined reference to `ceil'
@kholland-intel reported that following the
tests-sos
build instructions (in the README) are unsuccessful using Sandia OpenSHMEM (on Ubuntu 20.04) because of this error:But SOS is configured for multi-threading - so this should work without having to add
-pthread
toLDFLAGS
.Furthermore, if disabling the multithreaded tests (
--disable-threads
) there are more errors due to missing the math library: