Skip to content
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

Closed
pkestene opened this issue Nov 26, 2015 · 4 comments
Assignees
Labels
Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)
Milestone

Comments

@pkestene
Copy link
Contributor

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.

@crtrott
Copy link
Member

crtrott commented Jan 25, 2016

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 ndellingwood added the Question For Kokkos internal and external contributors and users label Mar 16, 2016
@ibaned
Copy link
Contributor

ibaned commented Apr 20, 2017

I'm having this same issue. Will try to open a PR in a bit.

@ibaned ibaned reopened this Apr 20, 2017
@ibaned ibaned self-assigned this Apr 20, 2017
@ibaned 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
@ibaned
Copy link
Contributor

ibaned commented Apr 20, 2017

started PR #740 with fixes for this

ibaned added a commit to ibaned/kokkos that referenced this issue Apr 20, 2017
@ibaned
Copy link
Contributor

ibaned commented 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 make build-test

@ibaned ibaned mentioned this issue Apr 20, 2017
ibaned added a commit to ibaned/kokkos that referenced this issue Apr 20, 2017
@crtrott 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
@hcedwar hcedwar added this to the 2017-June-end milestone Apr 26, 2017
crtrott added a commit that referenced this issue Apr 27, 2017
@crtrott crtrott closed this as completed May 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)
Projects
None yet
Development

No branches or pull requests

5 participants