LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't build pulseview using sbopkg (again) (https://www.linuxquestions.org/questions/slackware-14/can%27t-build-pulseview-using-sbopkg-again-4175693466/)

rwcooper 04-10-2021 11:37 AM

Can't build pulseview using sbopkg (again)
 
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

ponce 04-10-2021 12:12 PM

Hi Randy,

I'm sorry but this is probably a consequence of the upgrade of glib2 to a version >= 2.68.x in current and upstream seems not to have catched up yet: you can try filing a bug in their bug tracker and also watch for a specific fix in their git repository

https://sigrok.org/bugzilla/
https://sigrok.org/gitweb/?p=pulseview.git;a=summary

rwcooper 04-10-2021 02:12 PM

Quote:

Originally Posted by ponce (Post 6239565)
Hi Randy,

I'm sorry but this is probably a consequence of the upgrade of glib2 to a version >= 2.68.x in current and upstream seems not to have catched up yet: you can try filing a bug in their bug tracker and also watch for a specific fix in their git repository

https://sigrok.org/bugzilla/
https://sigrok.org/gitweb/?p=pulseview.git;a=summary

Thanks for your reply. OK, I'll do that.

rwcooper 04-12-2021 08:53 AM

I went to the sigrok website. They have prebuilt appimage files for pulseview. I downloaded the one for 64-bit Linux and it worked.

rwcooper 04-17-2021 09:45 AM

Well that was short lived. The pulseview appimage is not working for me anymore.


All times are GMT -5. The time now is 02:51 PM.