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

[Bug] TypedMessageTest.cc build failed in gcc8.3.1 #466

Open
1 of 2 tasks
vbirds opened this issue Dec 16, 2024 · 0 comments
Open
1 of 2 tasks

[Bug] TypedMessageTest.cc build failed in gcc8.3.1 #466

vbirds opened this issue Dec 16, 2024 · 0 comments

Comments

@vbirds
Copy link

vbirds commented Dec 16, 2024

Search before asking

  • I searched in the issues and found nothing similar.

Version

pulsar-client-cpp 3.6.0
gcc 8.3.1
linux: centos7.9

Minimal reproduce step

just build

What did you expect to see?

build success

What did you see instead?

[ 83%] Building CXX object tests/CMakeFiles/pulsar-tests.dir/TypedMessageTest.cc.o
In file included from /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/move.h:55,
                 from /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/stl_pair.h:59,
                 from /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/stl_algobase.h:64,
                 from /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/char_traits.h:39,
                 from /opt/rh/devtoolset-8/root/usr/include/c++/8/string:40,
                 from /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/locale_classes.h:40,
                 from /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/ios_base.h:41,
                 from /opt/rh/devtoolset-8/root/usr/include/c++/8/iomanip:40,
                 from /data/home/jianghz/workspace/pulsar-client-cpp/build/vcpkg_installed/x64-linux/include/gtest/gtest.h:54,
                 from /data/home/jianghz/workspace/pulsar-client-cpp/tests/TypedMessageTest.cc:19:
/opt/rh/devtoolset-8/root/usr/include/c++/8/type_traits: In substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = TypedMessageTest_testReceive_Test::TestBody()::<lambda(pulsar::Result, const pulsar::TypedMessage<int>&)>&; _Args = {pulsar::Result, const pulsar::Message&}]’:
/opt/rh/devtoolset-8/root/usr/include/c++/8/type_traits:2294:55:   required from ‘struct std::__result_of_impl<false, false, TypedMessageTest_testReceive_Test::TestBody()::<lambda(pulsar::Result, const pulsar::TypedMessage<int>&)>&, pulsar::Result, const pulsar::Message&>’
/opt/rh/devtoolset-8/root/usr/include/c++/8/type_traits:2299:12:   required from ‘struct std::__invoke_result<TypedMessageTest_testReceive_Test::TestBody()::<lambda(pulsar::Result, const pulsar::TypedMessage<int>&)>&, pulsar::Result, const pulsar::Message&>’
/opt/rh/devtoolset-8/root/usr/include/c++/8/type_traits:2312:12:   required from ‘class std::result_of<TypedMessageTest_testReceive_Test::TestBody()::<lambda(pulsar::Result, const pulsar::TypedMessage<int>&)>&(pulsar::Result, const pulsar::Message&)>’
/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/std_function.h:445:9:   required by substitution of ‘template<class _Functor, class, class> std::function<void(pulsar::Result, const pulsar::Message&)>::function(_Functor) [with _Functor = TypedMessageTest_testReceive_Test::TestBody()::<lambda(pulsar::Result, const pulsar::TypedMessage<int>&)>; <template-parameter-1-2> = void; <template-parameter-1-3> = <missing>]’
/data/home/jianghz/workspace/pulsar-client-cpp/tests/TypedMessageTest.cc:76:18:   required from here
/opt/rh/devtoolset-8/root/usr/include/c++/8/type_traits:2283:26: internal compiler error: Segmentation fault
       std::declval<_Fn>()(std::declval<_Args>()...)
       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.

Anything else?

no

Are you willing to submit a PR?

  • I'm willing to submit a PR!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant