Can't build pulseview using sbopkg (again)
by rwcooper from LinuxQuestions.org on (#5GDZK)
I've done a clean install using the 2021/04/08 snapshot of current from Alien Pastures. As usual I cannot build pulseview using sbopkg. This time I was able to build all the prerequisites, but not pulseview itself. So once again I am asking for help in getting pulseview built. Here's the error I get.
Code:/tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:20:1: note: extern "C"' linkage started here
20 | extern "C" {
| ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
from /usr/include/glib-2.0/glib/gthread.h:32,
from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
from /usr/include/glib-2.0/glib.h:32,
from /usr/include/libsigrokdecode/libsigrokdecode.h:25,
from /tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:21:
/usr/include/c++/10.2.0/type_traits:2912:3: error: template with C linkage
2912 | template<typename _Fn, typename... _Args>
| ^~~~~~~~
/tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:20:1: note: extern "C"' linkage started here
20 | extern "C" {
| ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
from /usr/include/glib-2.0/glib/gthread.h:32,
from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
from /usr/include/glib-2.0/glib.h:32,
from /usr/include/libsigrokdecode/libsigrokdecode.h:25,
from /tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:21:
/usr/include/c++/10.2.0/type_traits:2918:3: error: template with C linkage
2918 | template<typename _Result, typename _Fn, typename... _Args>
| ^~~~~~~~
/tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:20:1: note: extern "C"' linkage started here
20 | extern "C" {
| ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
from /usr/include/glib-2.0/glib/gthread.h:32,
from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
from /usr/include/glib-2.0/glib.h:32,
from /usr/include/libsigrokdecode/libsigrokdecode.h:25,
from /tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:21:
/usr/include/c++/10.2.0/type_traits:2925:3: error: template with C linkage
2925 | template<typename _Fn, typename... _Args>
| ^~~~~~~~
/tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:20:1: note: extern "C"' linkage started here
20 | extern "C" {
| ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
from /usr/include/glib-2.0/glib/gthread.h:32,
from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
from /usr/include/glib-2.0/glib.h:32,
from /usr/include/libsigrokdecode/libsigrokdecode.h:25,
from /tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:21:
/usr/include/c++/10.2.0/type_traits:2930:3: error: template with C linkage
2930 | template<typename _Fn, typename... _Args>
| ^~~~~~~~
/tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:20:1: note: extern "C"' linkage started here
20 | extern "C" {
| ^~~~~~~~~~
make[2]: *** [CMakeFiles/pulseview.dir/build.make:1533: CMakeFiles/pulseview.dir/pv/data/decode/annotation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:103: CMakeFiles/pulseview.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
pulseview:
Would you like to continue processing the rest of the
queue or would you like to abort?Any help in solving this will be greatly appreciated. Thanks...Randy


Code:/tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:20:1: note: extern "C"' linkage started here
20 | extern "C" {
| ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
from /usr/include/glib-2.0/glib/gthread.h:32,
from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
from /usr/include/glib-2.0/glib.h:32,
from /usr/include/libsigrokdecode/libsigrokdecode.h:25,
from /tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:21:
/usr/include/c++/10.2.0/type_traits:2912:3: error: template with C linkage
2912 | template<typename _Fn, typename... _Args>
| ^~~~~~~~
/tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:20:1: note: extern "C"' linkage started here
20 | extern "C" {
| ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
from /usr/include/glib-2.0/glib/gthread.h:32,
from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
from /usr/include/glib-2.0/glib.h:32,
from /usr/include/libsigrokdecode/libsigrokdecode.h:25,
from /tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:21:
/usr/include/c++/10.2.0/type_traits:2918:3: error: template with C linkage
2918 | template<typename _Result, typename _Fn, typename... _Args>
| ^~~~~~~~
/tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:20:1: note: extern "C"' linkage started here
20 | extern "C" {
| ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
from /usr/include/glib-2.0/glib/gthread.h:32,
from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
from /usr/include/glib-2.0/glib.h:32,
from /usr/include/libsigrokdecode/libsigrokdecode.h:25,
from /tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:21:
/usr/include/c++/10.2.0/type_traits:2925:3: error: template with C linkage
2925 | template<typename _Fn, typename... _Args>
| ^~~~~~~~
/tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:20:1: note: extern "C"' linkage started here
20 | extern "C" {
| ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
from /usr/include/glib-2.0/glib/gthread.h:32,
from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
from /usr/include/glib-2.0/glib.h:32,
from /usr/include/libsigrokdecode/libsigrokdecode.h:25,
from /tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:21:
/usr/include/c++/10.2.0/type_traits:2930:3: error: template with C linkage
2930 | template<typename _Fn, typename... _Args>
| ^~~~~~~~
/tmp/SBo/pulseview-20210103_d023660/pv/data/decode/annotation.cpp:20:1: note: extern "C"' linkage started here
20 | extern "C" {
| ^~~~~~~~~~
make[2]: *** [CMakeFiles/pulseview.dir/build.make:1533: CMakeFiles/pulseview.dir/pv/data/decode/annotation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:103: CMakeFiles/pulseview.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
pulseview:
Would you like to continue processing the rest of the
queue or would you like to abort?Any help in solving this will be greatly appreciated. Thanks...Randy