You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am using the following machine:
Arch: PPC64LE
OS: Ubuntu Linux 14.04
Output of uname -a:
Linux fs3 3.19.0-42-generic #48~14.04.1-Ubuntu SMP Fri Dec 18 10:24:40 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
After applying the #3586, the tests pass successfully for 4 gpu's. But, when I did "make clean" and tried to rebuild again, I got an unexpected error as shown below:
CXX src/gtest/gtest-all.cpp
In file included from /usr/include/powerpc64le-linux-gnu/c++/4.8/bits/gthr-default.h:35:0,
from /usr/include/powerpc64le-linux-gnu/c++/4.8/bits/gthr.h:148,
from /usr/include/c++/4.8/ext/atomicity.h:35,
from /usr/include/c++/4.8/bits/ios_base.h:39,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from ./src/gtest/gtest.h:291,
from src/gtest/gtest-all.cpp:39:
./src/gtest/gtest.h:2306:46: error: ‘PTHREAD_SPINS’ was not declared in this scope
::testing::internal::MutexBase mutex = { PTHREAD_MUTEX_INITIALIZER, 0 }
^
src/gtest/gtest-all.cpp:1666:1: note: in expansion of macro ‘GTEST_DEFINE_STATIC_MUTEX’
GTEST_DEFINE_STATIC_MUTEX(g_linked_ptr_mutex);
^
Hi,
I am using the following machine:
Arch: PPC64LE
OS: Ubuntu Linux 14.04
Output of uname -a:
Linux fs3 3.19.0-42-generic #48~14.04.1-Ubuntu SMP Fri Dec 18 10:24:40 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
After applying the #3586, the tests pass successfully for 4 gpu's. But, when I did "make clean" and tried to rebuild again, I got an unexpected error as shown below:
CXX src/gtest/gtest-all.cpp
In file included from /usr/include/powerpc64le-linux-gnu/c++/4.8/bits/gthr-default.h:35:0,
from /usr/include/powerpc64le-linux-gnu/c++/4.8/bits/gthr.h:148,
from /usr/include/c++/4.8/ext/atomicity.h:35,
from /usr/include/c++/4.8/bits/ios_base.h:39,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from ./src/gtest/gtest.h:291,
from src/gtest/gtest-all.cpp:39:
./src/gtest/gtest.h:2306:46: error: ‘PTHREAD_SPINS’ was not declared in this scope
::testing::internal::MutexBase mutex = { PTHREAD_MUTEX_INITIALIZER, 0 }
^
src/gtest/gtest-all.cpp:1666:1: note: in expansion of macro ‘GTEST_DEFINE_STATIC_MUTEX’
GTEST_DEFINE_STATIC_MUTEX(g_linked_ptr_mutex);
^
make: *** [.build_release/src/gtest/gtest-all.o] Error 1
I did a google search and found that __PTHREAD_SPINS is part of glibc and is present in pthreadtypes.h file.
Any idea folks?
Thanks in advance,
Anup Halarnkar
The text was updated successfully, but these errors were encountered: