SparkBuild Community

Pushing the envelope of build performance

David Ward
David Ward
  • Monrovia, MD
  • United States
Share on Facebook Share Twitter

David Ward's Discussions

Environment variables are not getting passed to sub-makes (continued).
2 Replies

I did a full rebuild as well as another attempt at a subbuild. I got the same environment variable problems I had before on the subbuild.Full…Continue

Started this discussion. Last reply by David Ward Jan 27, 2010.

Environment variables are not getting passed to sub-makes (continued).
4 Replies

EM:The Forum's reply doesn't seem to allow attaches, so I have continued in a new thread.XML output from emke is attached.Thanks.DavidContinue

Started this discussion. Last reply by Duc Nguyen Jan 23, 2010.

Environment variables are not getting passed to sub-makes
5 Replies

I'm trying SparkBuild for the first time. All of our makefiles start with an include of common definitions in file $(__buildTop)/mk/top.mk. This works for the first makefile, but when SparkBuild…Continue

Started this discussion. Last reply by Eric Melski Jan 22, 2010.

 

David Ward's Page

Latest Activity

Profile Icon
David Ward replied to David Ward's discussion 'Environment variables are not getting passed to sub-makes (continued).'
EM: OK. Thanks for the update. We'll look forward to the fix in the next release. David
Jan 27, 2010
Profile Icon
Eric Melski replied to David Ward's discussion 'Environment variables are not getting passed to sub-makes (continued).'
Thanks David, it looks like this is a bug in emake related to the subbuild feature. The issue is that environment variables are stored in the subbuild database with the name converted to uppercase, so when the environment is recreated in a…
Jan 26, 2010
Profile Icon

Environment variables are not getting passed to sub-makes (continued).

I did a full rebuild as well as another attempt at a subbuild. I got the same environment variable problems I had before on the subbuild.Full rebuild:W:\dward_JELProject\JEL>C:\SparkBuild\i686_win32\bin\emake.exe --win32 --emake-gen-subbuild-db=1 --emake-subbuild-db=W:\dward_JELProject\JEL\emake.subbuild.db --emake-debug=jpn --emake-logfile=dlog buildType=debugAttempted subbuild:W:\dward_JELProject\JEL\jel\state\unittest>C:\SparkBuild\i686_win32\bin\emake.exe --win32…See More
Discussion posted by David Ward Jan 24, 2010
Profile Icon
Duc Nguyen replied to David Ward's discussion 'Environment variables are not getting passed to sub-makes (continued).'
The dependencies tracked in the sparkbuild db depends on how you structured your makefiles. If you made *.cpp files depend on outputs generated by other submakes, then yes, every time you add a .cpp file to your build you have to regenerate the…
Jan 23, 2010
Profile Icon
David Ward replied to David Ward's discussion 'Environment variables are not getting passed to sub-makes (continued).'
EM: I did one more thing. Instead of doing a clean first, I just built everything with gen=1. I didn't build much because not much was changed, but it did go through all of the makefiles. This built the database, but gives me the original…
Jan 23, 2010
Profile Icon
David Ward replied to David Ward's discussion 'Environment variables are not getting passed to sub-makes (continued).'
EM: Did a clean and a full build. Now I can't get it to even try to build targets in other makefiles. After the full build, I deleted a library that is built in a different makefile to see if it would be rebuilt, but all I get is an…
Jan 23, 2010
Profile Icon
Eric Melski replied to David Ward's discussion 'Environment variables are not getting passed to sub-makes (continued).'
I see that the submake that is missing the environment variable is actually created as a subbuild job, which means that the environment it uses is coming from the subbuild db. That means that your subbuild db may be invalid -- is it possible that it…
Jan 22, 2010
Profile Icon

Environment variables are not getting passed to sub-makes (continued).

EM:The Forum's reply doesn't seem to allow attaches, so I have continued in a new thread.XML output from emke is attached.Thanks.DavidSee More
Discussion posted by David Ward Jan 22, 2010
Profile Icon
Eric Melski replied to David Ward's discussion 'Environment variables are not getting passed to sub-makes'
Can you attach that XML to your post, rather than pasting it inline? The site seems to have swallowed most of the XML tags. Click the "Upload Files" link beneath the text editing field when you write your reply. Thanks.
Jan 22, 2010
Profile Icon
David Ward replied to David Ward's discussion 'Environment variables are not getting passed to sub-makes'
EM: Line 31 of the makefile is: include $(__buildRoot)/mk/subdir.mk Note that this is not the makefile that is first executed. This is in a subbuild makefile in a different directory. And this all works for a build from the top-level down plus…
Jan 22, 2010
Profile Icon
Eric Melski replied to David Ward's discussion 'Environment variables are not getting passed to sub-makes'
David, Are you certain this only breaks with SparkBuild emake? I crafted a simple test case based on the information you provided here and it seems to be working correctly as expected, so I think there must be more going on in your environment than…
Jan 22, 2010
Profile Icon
David Ward replied to David Ward's discussion 'Environment variables are not getting passed to sub-makes'
EM: Command line (and output): C:\SparkBuild\i686_win32\bin\emake.exe --win32 --emake-emulation=gmake --emake-autodepend=1 --case-sen sitive=0 --emake-root="W:\dward_JELProject" buildType=debug C:/SparkBuild/i686_win32/bin/emake…
Jan 21, 2010
Profile Icon
Eric Melski replied to David Ward's discussion 'Environment variables are not getting passed to sub-makes'
Can you show us the command-line you use to invoke SparkBuild emake?
Jan 21, 2010
Profile Icon

Environment variables are not getting passed to sub-makes

I'm trying SparkBuild for the first time. All of our makefiles start with an include of common definitions in file $(__buildTop)/mk/top.mk. This works for the first makefile, but when SparkBuild enters a different directorie's makefile, I get an error "Can't find file /mk/top.mk". So, the first file is picking up the $(__buildTop) environment variable, but the other makefiles are not. Note: This works fine with Accelerator emake and with clearmake so I'm pretty sure it's a SparkBuild emake…See More
Discussion posted by David Ward Jan 21, 2010
Profile Icon
David Ward is now a member of SparkBuild Community Jan 21, 2010

Profile Information

Technical Role
Principal Software Engineer

Comment Wall

You need to be a member of SparkBuild Community to add comments!

Join SparkBuild Community

  • No comments yet!
 
 
 

Share

© 2012   Created by Electric Cloud Administrator.

Badges  |  Report an Issue  |  Terms of Service