Problem 2066 - Warning Messages on Compilation
Summary: Warning Messages on Compilation
Status: RESOLVED WORKSFORME
Alias: None
Product: Geant4
Classification: Unclassified
Component: cmake (show other problems)
Version: 10.4
Hardware: PC Linux
: P4 minor
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2018-06-21 22:38 CEST by Jonathan Corbett
Modified: 2018-06-22 08:42 CEST (History)
1 user (show)

See Also:


Attachments
Build Log with a couple warning messages (368.27 KB, text/x-log)
2018-06-21 22:38 CEST, Jonathan Corbett
Details

Note You need to log in before you can comment on or make changes to this problem.
Description Jonathan Corbett 2018-06-21 22:38:52 CEST
Created attachment 499 [details]
Build Log with a couple warning messages

Hello,
I'm relatively new to G4 and recently started, but I was told that since I get warning messages when I "make" G4 I should make a post about it.
My G4 version is 10.04.p01
I am dual booting my laptop running and the output on uname -a in my terminal is:
Linux jonathan-HP-Pavilion-Notebook 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
When I navigate to settings->About it says "Ubuntu 18.04 LTS"
My g++ compiler (ie. the output of g++ --version) is:
g++ (Ubuntu 7.3.0-16ubuntu3) 7.3.0

I have attached a log of my G4 make (I ran the command make clean all > g4build.log 2>&1). 
Also, some flags which I had on when I made were:
GEANT4_INSTALL_DATA = ON
GEANT4_USE_OPENGL_X11 = ON
GEANT4_USE_RAYTRACER_X11 = ON 
GEANT4_USE_SYSTEM_EXPAT = ON 

G4 made successfully, but there were a few warning messages.
Comment 1 Gabriele Cosmo 2018-06-22 08:42:30 CEST
Thanks for reporting this. Those are warnings you can safely ignore and usually are not reported in normal configurations of the gcc compiler. This is because your system has eventually configured gcc with -Wunused-result set as default also for C system functions.
Will in any case try to clear them in the code.