[Halld-offline] scons build problem with new split halld_sim

Paul Eugenio peugenio at fsu.edu
Tue Jul 31 19:25:49 EDT 2018


I am building an executable from a git branch of halld_sim.   It seems that scons has lost the dependency build.  After modifying a source file, scons will build an updated object file but does not update the executable unless one removes both old executables in the associated $BMS_OSNAME/bin  and  ./$BMS_OSNAME/bin  directories.

See the list of commands and the build times below. I build genr8, then modify the source and rebuild. The object file genr8.o gets updated but the executable does not.  But when I remove the development and the install genr8 executables, scons builds the update executable.

I’m guessing scons has some $HALLD_HOME issues.

Paul


hnpgrid5 460% pwd
/d/home/eugenio/gluex/git-work/halld_sim/src/programs/Simulation/genr8
hnpgrid5 461% rm ../../../../Linux_CentOS7-x86_64-gcc4.8.5/bin/genr8

hnpgrid5 462% scons -u install
hnpgrid5 463% ls -l  `which genr8`
-rwxr-xr-x. 1 eugenio fsu 72K Jul 31 17:58 /d/home/eugenio/gluex/git-work//halld_sim/Linux_CentOS7-x86_64-gcc4.8.5/bin/genr8

hnpgrid5 464% emacs -nw genr8.c
hnpgrid5 465% scons -u install
hnpgrid5 466% ls -l `which genr8`
-rwxr-xr-x. 1 eugenio fsu 72K Jul 31 17:58 /d/home/eugenio/gluex/git-work//halld_sim/Linux_CentOS7-x86_64-gcc4.8.5/bin/genr8

hnpgrid5 467% ls -l ../../../.Linux_CentOS7-x86_64-gcc4.8.5/programs/Simulation/genr8/*
-rwxr-xr-x. 1 eugenio fsu  73720 Jul 31 17:58 genr8
-rw-r--r--. 1 eugenio fsu 124576 Jul 31 18:01 genr8.o

hnpgrid5 468% rm ../../../.Linux_CentOS7-x86_64-gcc4.8.5/programs/Simulation/genr8/genr8
hnpgrid5 469% scons -u install

hnpgrid5 470% l `which genr8`
-rwxr-xr-x. 1 eugenio fsu 72K Jul 31 17:58 /d/home/eugenio/gluex/git-work//halld_sim/Linux_CentOS7-x86_64-gcc4.8.5/bin/genr8

hnpgrid5 471% ls -l ../../../.Linux_CentOS7-x86_64-gcc4.8.5/programs/Simulation/genr8/genr8*
-rwxr-xr-x. 1 eugenio fsu  73720 Jul 31 18:02 genr8
-rw-r--r--. 1 eugenio fsu 124576 Jul 31 18:01 genr8.o

hnpgrid5 472% rm /d/home/eugenio/gluex/git-work//halld_sim/Linux_CentOS7-x86_64-gcc4.8.5/bin/genr8
hnpgrid5 473% scons -u install
hnpgrid5 474% ls -l `which genr8`
-rwxr-xr-x. 1 eugenio fsu 72K Jul 31 18:02 /d/home/eugenio/gluex/git-work/halld_sim/Linux_CentOS7-x86_64-gcc4.8.5/bin/genr8



--
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>




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/halld-offline/attachments/20180731/e8ac2254/attachment-0001.html>


More information about the Halld-offline mailing list