Bug 937 - HEAD of libsigrok will not build using current Linux Mint
Summary: HEAD of libsigrok will not build using current Linux Mint
Status: RESOLVED DUPLICATE of bug 547
Alias: None
Product: libsigrok
Classification: Unclassified
Component: Build system (show other bugs)
Version: unreleased development snapshot
Hardware: x86 Linux
: Normal blocker
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-29 10:21 CEST by Thorsten
Modified: 2023-06-14 20:56 CEST (History)
4 users (show)



Attachments
Output of ./autogen ./configure and make (14.40 KB, text/plain)
2017-04-29 10:21 CEST, Thorsten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thorsten 2017-04-29 10:21:12 CEST
Created attachment 292 [details]
Output of ./autogen ./configure and make

Hello and thx for reading this,

My System looks as follows:

Linux Mint 18.1
Kernel 4.4.0-75-generic (standard Kernel for Linux Mint 18.1)

Steps to Reproduce:
$ git clone git://sigrok.org/libserialport
$ cd libserialport
$ ./autogen.sh
$ ./configure
$ make

(make will then not succeed with the following message:
In file included from bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp:997:0,
                 from bindings/cxx/classes.cpp:26:
bindings/cxx/include/libsigrokcxx/enums.hpp:22:32: error: redeclaration of ‘const sigrok::LogLevel* const sigrok::LogLevel::NONE’
  static const LogLevel * const NONE;

Thank you very much and great work in general! :)

Best regards!
 - Thorsten
Comment 1 Soeren Apel 2017-04-29 11:50:02 CEST
Looks like a compiler issue to me. Can you try a different gcc version or clang?
Comment 2 Thorsten 2017-04-30 11:18:31 CEST
(In reply to comment #1)
> Looks like a compiler issue to me. Can you try a different gcc version or
> clang?

Hi Soeren,

thank you very much for your fast reply. I think the issue is on my side. Compilers are both working (gcc and clang) - I first had to install clang. Have never used it before - I'm just an electrical engineer with no IT skills ;)

Anyways I still can't pinpoint the fault exactly, but what I know from my about 20 compile runs is, that it does always build in /dev/shm (the RAM-Drive) but not so much on my /home/thorsten/Downloads/sigrok/libsigrok folder... 

Now I'm thinking of a Filesystem or Hardware-related issue. Will investigate this further, but like I said... everything is fine on your side. 

Thanks alot for the help.

Best regards and great work!
 - Thorsten
Comment 3 Virgile Andreani 2017-08-12 23:11:29 CEST
I have the same problem with gcc 6.4.0 and clang 3.8.1-24, and I don't think that this is compiler-related.
Indeed, the files `bindings/cxx/include/libsigrokcxx/enums.hpp` and `bindings/cxx/enums.cpp` have indeed repeated declarations: https://paste.fulltxt.net/gq7SWoU:i https://paste.fulltxt.net/4fgtD
Comment 4 Virgile Andreani 2017-08-12 23:44:21 CEST
Changing the line 746 of Doxyfile from

INPUT = src include $(BUILDDIR)include/libsigrok

to

INPUT = src include

seems to solve the problem on my computer, libsigrok now builds without issue.
My version of doxygen is 1.8.13.
Comment 5 Uwe Hermann 2019-05-01 18:21:13 CEST

*** This bug has been marked as a duplicate of bug 547 ***
Comment 6 Rock12 2023-06-14 20:56:54 CEST
In conclusion, if you're looking to create a home gym, Home Gym Maven is the perfect place to start. With their affordable prices, expert advice, and range of equipment and workout plans, you'll have everything you need to get started on your fitness journey. Say goodbye to the gym and hello to your own personal workout space with Home Gym Maven.  [url=https://homegymmaven.com/best-home-gym-under-500/]home gym under 500[/url]