laura is hosted by Hepforge, IPPP Durham

Opened 8 years ago

Closed 7 years ago

#67 closed defect (fixed)

Compilation issues with Ubuntu 16.04LTS

Reported by: guest Owned by: Thomas Latham
Priority: minor Milestone: v3r2
Version: Keywords: Ubuntu compilation
Cc:

Description

Dear Laura++ developers,

I have installed and run Laura++ in SL6 (gcc 4.4.7) with no issues. I recently tried to install Laura++ on Ubuntu 16.04LTS (gcc 5.4.0), but I get a lot of unused variable-errors (see make_withErrors.log for full list), such as:

inc/LauConstants.hh:89:18: error: LauConstants::pi defined but not used [-Werror=unused-variable]

const Double_t pi = TMath::Pi();

and compilation fails.

The code can be compiled by adding "-Wno-error=unused-variable" to the Makefile, though the compilation now spits out a very long list of warnings (see make_withWarnings.log), but it does appear to compile and run okay after this change.

Perhaps this is a compiler issue, but if so maybe you could add a note about this to the installation instructions?

Thank you very much,

Matt

Attachments (2)

make_withErrors.log (6.2 KB) - added by guest 8 years ago.
Output of compilation on Ubuntu 16.04LTS with errors.
make_withWarnings.log (96.1 KB) - added by guest 8 years ago.
Output of compilation on Ubuntu 16.04LTS with warnings after adding extra flag to Makefile.

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by guest

Attachment: make_withErrors.log added

Output of compilation on Ubuntu 16.04LTS with errors.

Changed 8 years ago by guest

Attachment: make_withWarnings.log added

Output of compilation on Ubuntu 16.04LTS with warnings after adding extra flag to Makefile.

comment:1 Changed 8 years ago by Thomas Latham

Milestone: v3r2
Owner: set to Thomas Latham

comment:2 Changed 7 years ago by Thomas Latham

Thanks for the report and apologies in the delay in acting on it. I don't have an Ubuntu machine on which to test this but have compiled without any warnings on Centos7 with gcc 6.2.0 (i.e. an even newer version). So it would seem to be something related to the specific compiler version (perhaps a bug even, since it looks like a spurious warning). I shall add a note to the doc/README file.

comment:3 Changed 7 years ago by Thomas Latham

Resolution: fixed
Status: newclosed

(In [399]) Add note to README file about compilation issue on Ubuntu 16.04 LTS, close #67

Note: See TracTickets for help on using tickets.