-
Notifications
You must be signed in to change notification settings - Fork 1k
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
error: no class template named ‘rebind’ in ‘class tbb::detail::d1::tbb_allocator<char>’ #383
Comments
Do you use Red Hat Developer Toolset? Can you please check if the issue persists when |
I have similar problem: [ 16%] Building CXX object test/CMakeFiles/test_malloc_shutdown_hang.dir/tbbmalloc/test_malloc_shutdown_hang.cpp.o After i use the flag DTBB_ALLOCATOR_TRAITS_BROKEN like this: |
It seems libstdc++ coming with GCC 5.4 is also broken. Currently, the macro is defined for GCC 5.3 and older:
However, it is not clear what libstdc++ version is used by @Hugh5632 |
Same problem here |
@Betterxuys , which GCC version do use? Is it 5.4? |
Yes, I am using gcc/g++ 5.4.0 |
I would reopen the issue because it is still not fixed in oneTBB: oneTBB/include/oneapi/tbb/detail/_config.h Line 490 in 7d70bb5
notify @anton-potapov @kboyarinov |
Same problem for me with g++-6.3 (from centos 7, devtoolset-6). |
also meet the same problem, even with -DCMAKE_CXX_FLAGS=-DTBB_ALLOCATOR_TRAITS_BROKEN, my g++ version is 8.3, |
@Hugh5632 We have made a more detailed check and it seems like the error in |
There was a typo in the comment above. Setting |
This workaround does not seem to work for me. This is on ubuntu-trusty with GCC 9 from toolchain ppa. https://github.com/mkoeppe/PySCIPOpt/actions/runs/3506612801/jobs/5873770057 |
@Hugh5632 is this issue still relevant? |
If anyone encounter this issue in the future please open new issue with a link to this one |
In file included from /opt/rh/devtoolset-9/root/usr/include/c++/9/string:55,
from /opt/rh/devtoolset-9/root/usr/include/c++/9/stdexcept:39,
from /opt/rh/devtoolset-9/root/usr/include/c++/9/array:39,
from /opt/rh/devtoolset-9/root/usr/include/c++/9/tuple:39,
from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/unique_ptr.h:37,
from /opt/rh/devtoolset-9/root/usr/include/c++/9/memory:80,
from /opt/rh/devtoolset-9/root/usr/include/c++/9/thread:39,
from /root/tbb/oneTBB-2021.2.0/src/tbb/../../include/tbb/../oneapi/tbb/detail/_machine.h:42,
from /root/tbb/oneTBB-2021.2.0/src/tbb/../../include/tbb/../oneapi/tbb/detail/_utils.h:26,
from /root/tbb/oneTBB-2021.2.0/src/tbb/../../include/tbb/../oneapi/tbb/detail/_range_common.h:21,
from /root/tbb/oneTBB-2021.2.0/src/tbb/../../include/tbb/../oneapi/tbb/detail/_concurrent_skip_list.h:25,
from /root/tbb/oneTBB-2021.2.0/src/tbb/../../include/tbb/../oneapi/tbb/concurrent_set.h:21,
from /root/tbb/oneTBB-2021.2.0/src/tbb/../../include/tbb/concurrent_set.h:17,
from /root/tbb/oneTBB-2021.2.0/test/tbb/test_concurrent_set.cpp:20:
/opt/rh/devtoolset-9/root/usr/include/c++/9/bits/basic_string.h: In instantiation of ‘class std::basic_string<char, std::char_traits, tbb::detail::d1::tbb_allocator >’:
/root/tbb/oneTBB-2021.2.0/test/tbb/test_concurrent_set.cpp:66:67: required from ‘void OrderedSetTypesTester::check(const std::list&) [with bool DefCtorPresent = true; ValueType = std::basic_string<char, std::char_traits, tbb::detail::d1::tbb_allocator >]’
/root/tbb/oneTBB-2021.2.0/test/common/concurrent_associative_common.h:871:5: required from ‘void test_set_specific_types() [with Checker = OrderedSetTypesTester]’
/root/tbb/oneTBB-2021.2.0/test/tbb/test_concurrent_set.cpp:72:52: required from here
/opt/rh/devtoolset-9/root/usr/include/c++/9/bits/basic_string.h:3142:63: error: no class template named ‘rebind’ in ‘class tbb::detail::d1::tbb_allocator’
3142 | typedef typename _Alloc::template rebind<_CharT>::other _CharT_alloc_type;
| ^~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
make[2]: *** [test/CMakeFiles/test_concurrent_set.dir/tbb/test_concurrent_set.cpp.o] 错误 1
make[1]: *** [test/CMakeFiles/test_concurrent_set.dir/all] 错误 2
make: *** [all] 错误 2
The text was updated successfully, but these errors were encountered: