-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDFLAGS in core/unit_test/Makefile: potential "undefined reference" to pthread lib #148
Labels
Bug
Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)
Milestone
Comments
Hi I am looking through old issues which kind of fell over board in the end year hectic. Is this working now for you? Or is it still broken? |
ndellingwood
added
the
Question
For Kokkos internal and external contributors and users
label
Mar 16, 2016
I'm having this same issue. Will try to open a PR in a bit. |
ibaned
added
the
Bug
Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)
label
Apr 20, 2017
ibaned
added a commit
to ibaned/kokkos
that referenced
this issue
Apr 20, 2017
started PR #740 with fixes for this |
ibaned
added a commit
to ibaned/kokkos
that referenced
this issue
Apr 20, 2017
configuration to reproduce on Ubuntu machine: #!/bin/bash -ex
$HOME/src/kokkos/generate_makefile.bash \
--kokkos-path=$HOME/src/kokkos \
--prefix=$HOME/install/gcc/kokkos \
--with-serial \
--arch=BDW \
--make-j=16 \
2>&1 | tee config_log then |
Merged
ibaned
added a commit
to ibaned/kokkos
that referenced
this issue
Apr 20, 2017
crtrott
removed
the
Question
For Kokkos internal and external contributors and users
label
Apr 22, 2017
ibaned
added a commit
to ibaned/kokkos
that referenced
this issue
Apr 24, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I just wanted to mention that LDFLAGS should be at the end of build command line.
I noticed that when building the simple "serial" version; the build produces linker error with some pthread routines not found.
g++ -L/home/pkestene/install/kokkos/github/kokkos_develop/build_serial/core/unit_test -lpthread TestSynchronic.o UnitTestMain.o gtest-all.o -lkokkos -o KokkosCore_UnitTest_Synchronic
gtest-all.o: dans la fonction « testing::internal::UnitTestImpl::~UnitTestImpl() »:
gtest-all.cc:(.text+0xcf00): référence indéfinie vers « pthread_getspecific »
gtest-all.cc:(.text+0xcf19): référence indéfinie vers « pthread_key_delete »
...
best regards,
Pierre Kestener.
The text was updated successfully, but these errors were encountered: