Bug 1461 - build fails on Linux Mint 18.3 (cmake 3.5.1, Qt 5.5.1, gcc 5.4.0)
Summary: build fails on Linux Mint 18.3 (cmake 3.5.1, Qt 5.5.1, gcc 5.4.0)
Status: RESOLVED WORKSFORME
Alias: None
Product: PulseView
Classification: Unclassified
Component: Build system (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-21 19:05 CET by Gerhard Sittig
Modified: 2020-09-13 12:27 CEST (History)
1 user (show)



Attachments
cmake 3.5.1, build fails (23.42 KB, text/plain)
2019-12-21 19:05 CET, Gerhard Sittig
Details
cmake 3.16.2, build completes (9.52 KB, text/plain)
2019-12-21 19:07 CET, Gerhard Sittig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Sittig 2019-12-21 19:05:24 CET
Created attachment 563 [details]
cmake 3.5.1, build fails

This was observed on Linux Mint 18.3, which ships with cmake 3.5.1, Qt 5.5.1, 
and GCC 5.4.0). Pulseview source code revision is 6b8b739df2fe.

Compilation fails in moc_*.cpp files. Two independent(?) issues were observed: 
Generated MOC sources contained #include statements with incorrect relative 
paths (../ at the start of the path). Compilation failed because of symbol 
redefinitions. Starting from clean new output directories, as well as checking 
several directory layouts (build in-source, out-of-source in subdirectories, 
as well as in sibling directories) were tested, all of them failed.

Mint 18.3 is based on Ubuntu 16.04. It's assumed that this problem did not 
reproduce on Ubuntu systems (I'm not aware of any reports). So it might be 
specific to Mint, or to my local system that was used in the build. Better 
reproduction and isolation has yet to happen.

Building with cmake 3.16.2 (the most recent version available when the report 
was filed) did pass. It's assumed that cmake's builtin or bundled Qt support 
affects the issue. Specific Qt versions may contribute to the issue.
Comment 1 Gerhard Sittig 2019-12-21 19:07:19 CET
Created attachment 564 [details]
cmake 3.16.2, build completes

This is the screen output from a successful build with cmake 3.16.2.
Generated code (the set of files) looks different, compilation passes.
Comment 2 Soeren Apel 2020-09-13 12:27:27 CEST
Older cmake versions didn't show this problem and a newer version fixes the issue so I don't consider this a PV bug. Thanks for reporting, though!