[Halld-offline] Scons & SBMS missing homes
Justin Stevens
jrsteven at jlab.org
Tue Jul 31 22:42:34 EDT 2018
Hi Paul,
Did you already set HALLD_RECON_HOME and build halld_recon before compiling halld_sim? I think this will solve your issue with the includes that are in halld_recon and used in halld_sim since in sbms.py the include path is set.
The old references to HALLD_HOME in halld_sim need to be fixed.
-Justin
> On Jul 31, 2018, at 9:36 PM, Paul Eugenio <peugenio at fsu.edu> wrote:
>
> The two I have come across are: particleType.h & HDDM/hddm_s.hpp
>
> particleType.h was located in sim-recon/src/libraries/include/. It is now located in halld_recon/src/libraries/include/. There is no halld_sim/src/libraries/include directory. It looks like HDDM/hddm_s.hpp is build somehow as it exists in sim-recon/sim-recon-2.27.0/Linux_CentOS7-x86_64-gcc4.8.5/include/HDDM/hddm_s.hpp.
>
>
> Paul
>
>
>
>
> --
> Prof. Paul Eugenio
> Florida State University
> Department of Physics
> Tallahassee, Florida, USA 32306
>
> (850) 644-2585
> peugenio at fsu.edu <mailto:peugenio at fsu.edu>
>
>
>
>
>> On Jul 31, 2018, at 9:04 PM, Sean Dobbs <sdobbs at fsu.edu <mailto:sdobbs at fsu.edu>> wrote:
>>
>> Paul, that certainly sounds like something that was overlooked. What is the problem with missing includes that you mentioned?
>>
>> —-Sean
>> On Tue, Jul 31, 2018 at 8:58 PM Paul Eugenio <peugenio at fsu.edu <mailto:peugenio at fsu.edu>> wrote:
>> I started looking at the SConstript files working my way up the tree and came to the SBMS directory. The smbs.py has the new split recon and sim homes, but sbms_setenv.py and SConstruct.plugin have the old $HALLD_HOME. This smells like the problem. I tried changing the HALLD_HOME to HALLD_SIM_HOME following the HALLD_RECON_HOME in halld_recon, but that did not fix it. In addition to this scons issues, there is another problem in halld_sim regarding missing includes.
>>
>>
>> Paul
>>
>>
>>
>> hnpgrid5 490% grep HALLD ../../../SBMS/*
>>
>> ../../../SBMS/sbms.py:
>> halld_recon_home = os.getenv('HALLD_RECON_HOME', 'halld_recon')
>> ../../../SBMS/sbms.py:
>> env.AppendUnique(CUDAFLAGS=['-I%s -I%s/src/libraries' % (AMPTOOLS, os.getenv('HALLD_SIM_HOME',os.getcwd()))])
>> ../../../SBMS/sbms.py:
>> cobrems_home = os.getenv('HALLD_SIM_HOME', 'halld_sim’)
>>
>> ../../../SBMS/sbms_setenv.py:
>> # HALLD
>> ../../../SBMS/sbms_setenv.py:
>> str += '# HALLD\n'
>> ../../../SBMS/sbms_setenv.py:
>> str += 'setenv HALLD_HOME %s\n' % halld_home
>> ../../../SBMS/sbms_setenv.py:
>> str += 'setenv PATH ${HALLD_HOME}/${BMS_OSNAME}/bin:${PATH}\n'
>> ../../../SBMS/sbms_setenv.py:
>> str += 'setenv JANA_PLUGIN_PATH ${HALLD_HOME}/${BMS_OSNAME}/plugins:${JANA_PLUGIN_PATH}\n'
>> ../../../SBMS/sbms_setenv.py:
>> str += 'setenv %s ${HALLD_HOME}/${BMS_OSNAME}/lib:${%s}\n' %(LDLPV, LDLPV)
>> ../../../SBMS/sbms_setenv.py:
>> str += 'setenv PYTHONPATH ${HALLD_HOME}/${BMS_OSNAME}/lib/python:${PYTHONPATH}\n'
>> ../../../SBMS/sbms_setenv.py:
>> # HALLD
>> ../../../SBMS/sbms_setenv.py:
>> str += '# HALLD\n'
>> ../../../SBMS/sbms_setenv.py:
>> str += 'export HALLD_HOME=%s\n' % halld_home
>> ../../../SBMS/sbms_setenv.py:
>> str += 'export PATH=${HALLD_HOME}/${BMS_OSNAME}/bin:${PATH}\n'
>> ../../../SBMS/sbms_setenv.py:
>> str += 'export JANA_PLUGIN_PATH=${HALLD_HOME}/${BMS_OSNAME}/plugins:${JANA_PLUGIN_PATH}\n'
>> ../../../SBMS/sbms_setenv.py:
>> str += 'export %s=${HALLD_HOME}/${BMS_OSNAME}/lib:${%s}\n' %(LDLPV, LDLPV)
>> ../../../SBMS/sbms_setenv.py:
>> str += 'export PYTHONPATH=${HALLD_HOME}/${BMS_OSNAME}/lib/python:${PYTHONPATH}\n'
>>
>> ../../../SBMS/SConstruct.plugin:# install into the directory specified by the HALLD_MY environment
>> ../../../SBMS/SConstruct.plugin:# variable if defined. Otherwise, it will install in the HALLD_HOME
>> ../../../SBMS/SConstruct.plugin:# Get HALLD_HOME environment variable, verifying it is set
>> ../../../SBMS/SConstruct.plugin:halld_home = os.getenv('HALLD_HOME')
>> ../../../SBMS/SConstruct.plugin:
>> print 'HALLD_HOME environment variable not set!'
>> ../../../SBMS/SConstruct.plugin:# Get HALLD_MY if it exists. Otherwise use HALLD_HOME
>> ../../../SBMS/SConstruct.plugin:halld_my = os.getenv('HALLD_MY', halld_home)
>> ../../../SBMS/SConstruct.plugin: LIBPATH = ["%s/%s/lib" %(halld_home, osname)], # n.b. add HALLD_HOME here and prepend HALLD_MY below
>> ../../../SBMS/SConstruct.plugin:# Only add HALLD_MY library search path if it already exists
>> ../../../SBMS/SConstruct.plugin:# Add local directory, directories from HALLD_MY and HALLD_HOME to include search path
>>
>> --
>> Prof. Paul Eugenio
>> Florida State University
>> Department of Physics
>> Tallahassee, Florida, USA 32306
>>
>> (850) 644-2585
>> peugenio at fsu.edu <mailto:peugenio at fsu.edu>
>>
>>
>>
>>
>> _______________________________________________
>> Halld-offline mailing list
>> Halld-offline at jlab.org <mailto:Halld-offline at jlab.org>
>> https://mailman.jlab.org/mailman/listinfo/halld-offline <https://mailman.jlab.org/mailman/listinfo/halld-offline>
> _______________________________________________
> Halld-offline mailing list
> Halld-offline at jlab.org
> https://mailman.jlab.org/mailman/listinfo/halld-offline
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/halld-offline/attachments/20180731/b2b593cd/attachment-0002.html>
More information about the Halld-offline
mailing list