Compilation fails to find JANA/JEvent.h

8 views
Skip to first unread message

Elton Smith

unread,
Sep 9, 2025, 11:26:32 AMSep 9
to gluex-s...@googlegroups.com, Elton Smith
Dear Software Help,

I am probably doing something dumb, but I am trying to compile an amplitude and it cannot find a JANA/JEvent.h include file. It seems like my environment should allow this, but it fails. Any suggestions are welcome.

Thanks!



The error highlighted in red

ifarm2402.jlab.org> scons -u install
scons: Entering directory `/w/halld-scshelf2101/halld2/home/elton/git/halld_sim/src'
scons: Reading SConscript files ...
sbms : Making setenv.csh in /w/halld-scshelf2101/halld2/home/elton/git/halld_sim/Linux_Alma9-x86_64-gcc11.5.0
sbms : Making setenv.sh in /w/halld-scshelf2101/halld2/home/elton/git/halld_sim/Linux_Alma9-x86_64-gcc11.5.0
scons: done reading SConscript files.
scons: Building targets ...
[ 23%] Compiling  [libraries/AMPTOOLS_AMPS/TwoPiAngles_primakoff.cc]
In file included from libraries/AMPTOOLS_AMPS/TwoPiAngles_primakoff.cc:12:
/work/halld2/home/elton/git/halld_recon/Linux_Alma9-x86_64-gcc11.5.0/include/ANALYSIS/DAnalysisUtilities.h:14:10: fatal error: JANA/JEvent.h: No such file or directory
   14 | #include <JANA/JEvent.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
scons: *** [.Linux_Alma9-x86_64-gcc11.5.0/libraries/AMPTOOLS_AMPS/TwoPiAngles_primakoff.o] Error 1
scons: building terminated because of errors.

JANA environment:

ifarm2402.jlab.org> ls -ltr $JANA_HOME/include/JANA/JEvent.h
-rw-r--r--. 1 gluex halld 22149 Apr 16 10:07 '/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/jana/jana_2.4.1^ccdb2006/Linux_Alma9-x86_64-gcc11.5.0/include/JANA/JEvent.h'

Environment setup:

ifarm2402.jlab.org> printenv | grep -i jana
PATH=/apps/bin:/work/halld2/home/elton/git/gluex_root_analysis/Linux_Alma9-x86_64-gcc11.5.0/bin/:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/gluex_MCwrapper/gluex_MCwrapper-v2.10.0:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/hdgeant4/hdgeant4-3.1.0/bin/Linux-g++:/home/elton/halld_my/Linux_Alma9-x86_64-gcc11.5.0/bin:/work/halld2/home/elton/git/halld_sim/Linux_Alma9-x86_64-gcc11.5.0/bin:/work/halld2/home/elton/git/halld_recon/Linux_Alma9-x86_64-gcc11.5.0/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/hddm/hddm-5.0.0/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/jana/jana_2.4.1^ccdb2006/Linux_Alma9-x86_64-gcc11.5.0/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/rcdb/rcdb_0.09.01:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/rcdb/rcdb_0.09.01/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/rcdb/rcdb_0.09.01/cpp/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/ccdb/ccdb_2.00.06/bin:/home/elton/geant4_workdir/bin/Linux-g++:/u/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/geant4/geant4.10.07.p04/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/cernlib/2005/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/root/root-6.24.04/bin:/apps/perl/bin:.:/usr/share/Modules/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin:/home/elton/bin:/home/elton/usr/bin:/usr/local/bin:/work/halld2/home/elton/git/gluex_root_analysis/Linux_Alma9-x86_64-gcc11.5.0/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/gluex_MCwrapper/gluex_MCwrapper-v2.10.0
JANA_VERSION=2.4.1
JANA_HOME=/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/jana/jana_2.4.1^ccdb2006/Linux_Alma9-x86_64-gcc11.5.0
JANA_DIRTAG=ccdb2006
JANA_CALIB_URL=mysql://ccdb...@hallddb.jlab.org/ccdb
JANA_GEOMETRY_URL=ccdb:///GEOMETRY/cpp_HDDS.xml
JANA_PLUGIN_PATH=/home/elton/halld_my/Linux_Alma9-x86_64-gcc11.5.0/plugins:/work/halld2/home/elton/git/halld_sim/Linux_Alma9-x86_64-gcc11.5.0/plugins:/work/halld2/home/elton/git/halld_recon/Linux_Alma9-x86_64-gcc11.5.0/plugins:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/jana/jana_2.4.1^ccdb2006/Linux_Alma9-x86_64-gcc11.5.0/plugins:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/jana/jana_2.4.1^ccdb2006/Linux_Alma9-x86_64-gcc11.5.0/lib
JANA_RESOURCE_DIR=/group/halld/www/halldweb/html/resources
JANA_CALIB_CONTEXT=variation=default


Aside: I am trying to access the polarization information for a given run number, which accesses dAnalysisUtilities as follows. There might be an easier way to do this.
UInt_t locRunNumber = 101580;
dIsPolarizedFlag = dAnalysisUtilities.Get_IsPolarizedBeam(locRunNumber, dIsPARAFlag);



Elton Smith




alexander.a...@gmail.com

unread,
Sep 16, 2025, 2:24:02 PMSep 16
to GlueX Software Help
Hi Elton,
It looks like something is wrong with your environment. How do you set it up?
Thanks,
Alex

Elton Smith

unread,
Sep 17, 2025, 9:31:50 AMSep 17
to alexander.a...@gmail.com, Elton Smith, GlueX Software Help
Hi Alex,

Here is the setup
source /group/halld/Software/build_scripts/gluex_env_boot_jlab.csh
source /group/halld/Software/build_scripts/gluex_env_jlab.csh /work/halld2/home/elton/git/elton_2025-05-07.xml

The local builds should be up-to-date with the master.

Note: I found a work-around for this particular instance so the Issue is no longer pressing, but it still needs to be resolved.

Thanks!

Elton Smith
--
You received this message because you are subscribed to the Google Groups "GlueX Software Help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gluex-softwar...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/gluex-software/456ce035-cbc8-46c4-ac0b-4030c6499b35n%40googlegroups.com.

Alexander Austregesilo

unread,
Sep 17, 2025, 11:01:48 AMSep 17
to gluex-s...@googlegroups.com

Hi Elton,

I can't reproduce your observation. I am able to compile the current halld_sim master against your xml file with the same command without any problems.

In which directory did you run 'scons -u install' ?

And what was your work-around?

Thanks,

Alex

To view this discussion visit https://groups.google.com/d/msgid/gluex-software/8B20F6EF-843A-4BCD-8EA6-E39613FE104C%40jlab.org.
-- 
Alexander Austregesilo

Staff Scientist - Experimental Nuclear Physics
Thomas Jefferson National Accelerator Facility
Newport News, VA
aaus...@jlab.org
(757) 269-6982

Elton Smith

unread,
Sep 25, 2025, 8:59:56 AM (6 days ago) Sep 25
to Alexander Austregesilo, Elton Smith, gluex-s...@googlegroups.com
Hi Alex,

Thanks for taking a look at this. I realized I did not need to make this change to the amplitude, so for the moment it is not an issue for me. However, perhaps I can bend your ear during the collaboration meeting next week and sort this out because I do want to understand it.  Thanks, Elton.


 My email was not clear in that I tried to add the following line to TwoPiAngles_primakoff.cc to the file in the master and it fails to find the include fine:

#include <JANA/JEvent.h>

And get the following message


[ 14%] Compiling  [libraries/AMPTOOLS_AMPS/TwoPiAngles_primakoff.cc]
libraries/AMPTOOLS_AMPS/TwoPiAngles_primakoff.cc:13:10: fatal error: JANA/JEvent.h: No such file or directory
   13 | #include <JANA/JEvent.h>
      |          ^~~~~~~~~~~~~~~



Elton Smith
Reply all
Reply to author
Forward
0 new messages