Discussion:
[deprecated list] Compilation of SVN using scons always re-compiles everything
Chen, Feng
2009-08-13 22:20:10 UTC
Permalink
Hi, all:

I am trying to use the latest svn recently, after checked with svn, and then typed the command:

scons PREFIX=/home/fchen/YADE1937 optimize=1

The scons compiled everything well.

However, if I modified a file: Preprofessor/DEM/ClumpTestGen.cpp

and the scons started to compile everything again, no matter I use the same command, or just type "scons", it will first delete the intermediate file, like core.o, and then re-compile a new one.

Then I did a test by first re-check with svn, do a clean, new build and then without modifying anything, type the same build command, "scons", and scons still started to re-build everything again.

Can anyone tell if I did something wrong?

Thanks a lot!


Feng Chen
Geotechnical Engineer
HNTB Federal
9100 Bluebonnet Centre Blvd Suite 301
Baton Rouge, LA 70809
http://fchen3.googlepages.com/home
Anton Gladky
2009-08-13 22:29:08 UTC
Permalink
http://yade.wikia.com/wiki/FAQ#I_would_like_to_update_my_YADE_to_latest_at_SVN._Do_I_need_do_build_the_YADE_again.3F

use version='something_to_add'


______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Post by Chen, Feng
I am trying to use the latest svn recently, after checked with svn, and
scons PREFIX=/home/fchen/YADE1937 optimize=1
The scons compiled everything well.
However, if I modified a file: Preprofessor/DEM/ClumpTestGen.cpp
and the scons started to compile everything again, no matter I use the same
command, or just type "scons", it will first delete the intermediate file,
like core.o, and then re-compile a new one.
Then I did a test by first re-check with svn, do a clean, new build and
then without modifying anything, type the same build command, "scons", and
scons still started to re-build everything again.
Can anyone tell if I did something wrong?
Thanks a lot!
Feng Chen
Geotechnical Engineer
HNTB Federal
9100 Bluebonnet Centre Blvd Suite 301
Baton Rouge, LA 70809
http://fchen3.googlepages.com/home
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Chen, Feng
2009-08-14 03:02:57 UTC
Permalink
Hi, Anton Gladky:

Thanks for the reply, but it does not seem to work, it still re-compiles everything. What I did is add a line

version='something_to_add' //is this correct???

to the file: trunk/scons.current-profile //this file is empty when I first download

or I should change the "something_to_add" to the version number like version='svn1940'? or I should pass this parameter direct to scons?

Thanks in advance!

Feng Chen
Geotechnical Engineer
HNTB Federal
9100 Bluebonnet Centre Blvd Suite 301
Baton Rouge, LA 70809
http://fchen3.googlepages.com/home



-----Original Message-----
From: Anton Gladky [mailto:gladky.anton-***@public.gmane.org]
Sent: Thu 8/13/2009 6:29 PM
To: Chen, Feng
Cc: yade-users-oU9gvf+***@public.gmane.org
Subject: Re: [Yade-users] Compilation of SVN using scons always re-compiles everything

http://yade.wikia.com/wiki/FAQ#I_would_like_to_update_my_YADE_to_latest_at_SVN._Do_I_need_do_build_the_YADE_again.3F

use version='something_to_add'


______________________________
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] ? ?????????? ???????????
[UKR] ? ?????????? ???????????

Anton Gladkyy
Post by Chen, Feng
I am trying to use the latest svn recently, after checked with svn, and
scons PREFIX=/home/fchen/YADE1937 optimize=1
The scons compiled everything well.
However, if I modified a file: Preprofessor/DEM/ClumpTestGen.cpp
and the scons started to compile everything again, no matter I use the same
command, or just type "scons", it will first delete the intermediate file,
like core.o, and then re-compile a new one.
Then I did a test by first re-check with svn, do a clean, new build and
then without modifying anything, type the same build command, "scons", and
scons still started to re-build everything again.
Can anyone tell if I did something wrong?
Thanks a lot!
Feng Chen
Geotechnical Engineer
HNTB Federal
9100 Bluebonnet Centre Blvd Suite 301
Baton Rouge, LA 70809
http://fchen3.googlepages.com/home
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Anton Gladky
2009-08-14 04:48:19 UTC
Permalink
Post by Chen, Feng
Thanks for the reply, but it does not seem to work, it still re-compiles
everything. What I did is add a line
version='something_to_add' //is this correct???
to the file: trunk/scons.current-profile //this file is empty when I first download
scons.profile-default
This file should contain the string:
version='something_to_add'
Post by Chen, Feng
or I should change the "something_to_add" to the version number like
version='svn1940'?
You can give any name. I use, for example,
version = 'current'
or
version = 'new_build'

It does not really matter
Post by Chen, Feng
or I should pass this parameter direct to scons?
You can pass this parameter directly to scons. in this case you dont need to
edit scons.profile-default: it will be automatically added there.

______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Post by Chen, Feng
Thanks in advance!
Feng Chen
Geotechnical Engineer
HNTB Federal
9100 Bluebonnet Centre Blvd Suite 301
Baton Rouge, LA 70809
http://fchen3.googlepages.com/home
-----Original Message-----
]
Sent: Thu 8/13/2009 6:29 PM
To: Chen, Feng
Subject: Re: [Yade-users] Compilation of SVN using scons always re-compiles everything
http://yade.wikia.com/wiki/FAQ#I_would_like_to_update_my_YADE_to_latest_at_SVN._Do_I_need_do_build_the_YADE_again.3F
use version='something_to_add'
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] ? ?????????? ???????????
[UKR] ? ?????????? ???????????
Anton Gladkyy
Post by Chen, Feng
I am trying to use the latest svn recently, after checked with svn, and
scons PREFIX=/home/fchen/YADE1937 optimize=1
The scons compiled everything well.
However, if I modified a file: Preprofessor/DEM/ClumpTestGen.cpp
and the scons started to compile everything again, no matter I use the
same
Post by Chen, Feng
command, or just type "scons", it will first delete the intermediate
file,
Post by Chen, Feng
like core.o, and then re-compile a new one.
Then I did a test by first re-check with svn, do a clean, new build and
then without modifying anything, type the same build command, "scons",
and
Post by Chen, Feng
scons still started to re-build everything again.
Can anyone tell if I did something wrong?
Thanks a lot!
Feng Chen
Geotechnical Engineer
HNTB Federal
9100 Bluebonnet Centre Blvd Suite 301
Baton Rouge, LA 70809
http://fchen3.googlepages.com/home
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
<https://launchpad.net/%7Eyade-users>
Post by Chen, Feng
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
<https://launchpad.net/%7Eyade-users>
Post by Chen, Feng
More help : https://help.launchpad.net/ListHelp
Chen, Feng
2009-08-14 13:28:13 UTC
Permalink
Post by Anton Gladky
scons.profile-default
version='something_to_add'
Hi, Anton Gladky:

Thanks, it is working now, I am wondering where is this information saved in the configuration file? Although it is not re-compiling, but I saw the scons.current-profile is empty and the scons.profile-default does not contain the version information? i.e. How does the scons know it is a new build or not? Thanks!

scons.profile-default:

PREFIX = '/home/fchen/YADE1940'
optimize = True
exclude = 'none'
features = 'log4cxx,openGL,python'
QTDIR = ['/usr/share/qt3', '/usr/lib/qt', '/usr/lib/qt3', '/usr/qt/3', '/usr/lib/qt-3.3']
CXXFLAGS = []
SHCCFLAGS = ['-fPIC']
Anton Gladky
2009-08-14 13:35:36 UTC
Permalink
Post by Chen, Feng
Post by Anton Gladky
scons.profile-default
version='something_to_add'
Thanks, it is working now, I am wondering where is this information saved
in the configuration file?
scons.profile-default
Post by Chen, Feng
Although it is not re-compiling, but I saw the scons.current-profile is
empty and the scons.profile-default does not contain the version
information? i.e. How does the scons know it is a new build or not?
As I understand, if you do not insert the "version" option to your scons
command line, scons uses SVNXXXX parameter for version. That is why,
updating your svn repository you get another "version" that is why it
recompiles wholly.

If you insert version at least for 1 time, it will allways recompile only
changed modules (actually, sometimes it takes a lot of time, when core is
changed)
Post by Chen, Feng
Thanks!
PREFIX = '/home/fchen/YADE1940'
optimize = True
exclude = 'none'
features = 'log4cxx,openGL,python'
QTDIR = ['/usr/share/qt3', '/usr/lib/qt', '/usr/lib/qt3', '/usr/qt/3', '/usr/lib/qt-3.3']
CXXFLAGS = []
SHCCFLAGS = ['-fPIC']
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Chen, Feng
2009-08-15 04:23:05 UTC
Permalink
Thanks Anton Gladky for your active response, I will look at how the scons read this parameter if I have time!

Feng Chen
Geotechnical Engineer
HNTB Federal
9100 Bluebonnet Centre Blvd Suite 301
Baton Rouge, LA 70809
http://fchen3.googlepages.com/home



-----Original Message-----
From: Anton Gladky [mailto:gladky.anton-***@public.gmane.org]
Sent: Fri 8/14/2009 9:35 AM
To: Chen, Feng
Cc: yade-users-oU9gvf+***@public.gmane.org
Subject: Re: [Yade-users] Compilation of SVN using scons always re-compiles everything
Post by Chen, Feng
Post by Anton Gladky
scons.profile-default
version='something_to_add'
Thanks, it is working now, I am wondering where is this information saved
in the configuration file?
scons.profile-default
Post by Chen, Feng
Although it is not re-compiling, but I saw the scons.current-profile is
empty and the scons.profile-default does not contain the version
information? i.e. How does the scons know it is a new build or not?
As I understand, if you do not insert the "version" option to your scons
command line, scons uses SVNXXXX parameter for version. That is why,
updating your svn repository you get another "version" that is why it
recompiles wholly.

If you insert version at least for 1 time, it will allways recompile only
changed modules (actually, sometimes it takes a lot of time, when core is
changed)
Post by Chen, Feng
Thanks!
PREFIX = '/home/fchen/YADE1940'
optimize = True
exclude = 'none'
features = 'log4cxx,openGL,python'
QTDIR = ['/usr/share/qt3', '/usr/lib/qt', '/usr/lib/qt3', '/usr/qt/3', '/usr/lib/qt-3.3']
CXXFLAGS = []
SHCCFLAGS = ['-fPIC']
______________________________
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] ? ?????????? ???????????
[UKR] ? ?????????? ???????????

Anton Gladkyy

Loading...