Author Topic: Error building libsigrok-git  (Read 1263 times)

0 Members and 1 Guest are viewing this topic.

Offline jssilva

  • Neuling
  • *
  • Posts: 9
  • I'm new. Be nice!
  • Skill: Novice
Error building libsigrok-git
« on: 01. May 2016, 20:33:42 »
Hello,

I'm trying to build libsigrok-git from AUR, for support to my Hantek 6022BL oscilloscope. I can build libsigrok (not -git) but this doesn't support it.

After trying Pamac, I reverted to yaourt to be able to see the history from the beginning, given the long stream of errors produced. The first two are:

Code: [Select]
  GEN      bindings/ruby/doc.i
  GEN      bindings/ruby/classes_wrap.cpp
  CXX      bindings/ruby/classes_wrap.o
In file included from /usr/include/c++/5.3.0/type_traits:35:0,
                 from /usr/include/sigc++-2.0/sigc++/visit_each.h:22,
                 from /usr/include/sigc++-2.0/sigc++/functors/slot.h:6,
                 from /usr/include/sigc++-2.0/sigc++/signal_base.h:27,
                 from /usr/include/sigc++-2.0/sigc++/signal.h:8,
                 from /usr/include/sigc++-2.0/sigc++/sigc++.h:104,
                 from /usr/include/glibmm-2.4/glibmm/thread.h:50,
                 from /usr/include/glibmm-2.4/glibmm.h:89,
                 from bindings/ruby/classes_wrap.cpp:2011:
/usr/include/c++/5.3.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support \
  ^
In file included from /usr/include/glibmm-2.4/glibmm/exception.h:25:0,
                 from /usr/include/glibmm-2.4/glibmm/error.h:23,
                 from /usr/include/glibmm-2.4/glibmm/thread.h:48,
                 from /usr/include/glibmm-2.4/glibmm.h:89,
                 from bindings/ruby/classes_wrap.cpp:2011:
/usr/include/glibmm-2.4/glibmm/ustring.h:102:9: error: expected nested-name-specifier before ‘iterator_category’
   using iterator_category = std::bidirectional_iterator_tag;
         ^

I guess the long stream after this is a consequence.
The compiler supports c++11 and the flag is activated. This is the extract of ./configure output:

Code: [Select]
libsigrok configuration summary:
 - Package version................. 0.5.0-git-61c9085
 - Library ABI version............. 3:0:0
 - Prefix.......................... /usr
 - Building on..................... x86_64-unknown-linux-gnu
 - Building for.................... x86_64-unknown-linux-gnu

Compile configuration:
 - C compiler...................... gcc
 - C compiler version.............. gcc (GCC) 5.3.0
 - C compiler flags................ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
 - Additional C compiler flags..... -std=c99 -fvisibility=hidden
 - C compiler warnings............. -Wall -Wextra -Wmissing-prototypes
 - C++ compiler.................... g++
 - C++ compiler version............ g++ (GCC) 5.3.0
 - C++ compiler flags.............. -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -std=c++11
 - C++ compiler warnings........... -Wall -Wextra

Detected libraries (required):
 - glib-2.0 >= 2.32.0.............. 2.48.0
 - libzip >= 0.10.................. 1.1.2

Detected libraries (optional):
 - libserialport >= 0.1.1.......... 0.1.1
 - libftdi1 >= 1.0................. 1.2
 - libusb-1.0 >= 1.0.16............ 1.0.20
 - librevisa >= 0.0.20130412....... no
 - libgpib......................... no
 - libieee1284..................... yes
 - check >= 0.9.4.................. 0.10.0
 - glibmm-2.4 >= 2.32.0............ 2.48.1
 - python = 2.7.................... no
 - python2 = 2.7................... 2.7
 - pygobject-3.0 >= 3.0.0.......... 3.20.0
 - ruby............................ no
 - ruby-2.3........................ 2.3.0

Will somebody please help?

I really need this to operate my scope because I don't have a windows machine around and it doesn't like a virtual machine, doesn't trigger.

TIA,
jss
« Last Edit: 01. May 2016, 20:40:44 by jssilva »