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)
Change History (5)
Changed 8 years ago by
Attachment: | make_withErrors.log added |
---|
Changed 8 years ago by
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
Milestone: | → v3r2 |
---|---|
Owner: | set to Thomas Latham |
comment:2 Changed 7 years ago by
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
Resolution: | → fixed |
---|---|
Status: | new → closed |
Output of compilation on Ubuntu 16.04LTS with errors.