[Scons-users] Problems with env.Install()

William Deegan bill at baddogconsulting.com
Fri Jan 25 15:15:42 EST 2013


Michel,
On Jan 25, 2013, at 12:10 PM, Michel Lestrade <michel.lestrade at crosslight.com> wrote:


>

> On 25/01/2013 11:35 AM, William Deegan wrote:

>> On 01/25/2013 11:04 AM, Michel Lestrade wrote:

>>>> Minimally create a small test case which reproduces your issue.

>>>> Without code it's unlikely we'll find your issue.

>>>>

>>>> -Bill

>>>>

>>> Unfortunately, I cannot duplicate the problem in the simpler test case I just made for posting to the list. I guess this means I did something stupid in my larger case so I will have to muddle through on my own and see what differences there are.

>>

>> If you can't post your SConstruct/SConscript and you can't create a small testcase which reproduces it, it's very difficult to assist you in resolving this issue.

>>

>> Have you tried: scons --tree=prune or scons --debug=explain?

>>

>> -Bill

> I realize that it is not obvious to debug blind; hopefully, it is a mistake I made in the script and not a hard-to-track bug.

>

> Thanks for the suggestion; --debug=explain prints nothing (the project is up to date according to SCONS) and the tree shows the DLL I want (pthread64). However, it's not actually there after Scons finishes.....

>

> scons build/scotch64/scotch_dll --tree=prune > tst.txt:

>> .............................

>> +-build\scotch64\scotch_dll\pthread64.dll

>> | +-build\pthread64\pthread64.dll

>> | +-[build\pthread64\pthread.obj]

>> | +-[build\pthread64\version.res]

>> | +-C:\Program Files (x86)\Intel\Composer XE 2013\bin\intel64\xilink.EXE

>> +-build\scotch64\scotch\SConscript

>> +-build\scotch64\scotch_dll\scotch_wexit64.dll

>> +-build\scotch64\scotch_wexit64.dll

>> +-[build\scotch64\scotch.res]

>> +-[build\scotch64\libscotch\scotch64.lib]

>> +-[build\scotch64\libscotch\scotcherrexit64.lib]

>> +-[build\scotch64\esmumps\esmumps64.lib]

>> +-scotch_5.1.12_esmumps\src\win32\scotch.def

>> +-C:\Program Files (x86)\Intel\Composer XE 2013\bin\intel64\xilink.EXE

>> +-[build\pthread64\pthread64.lib]

>

>> d:\Source\MUMPS_scons>dir build\scotch64\scotch_dll\*.dll

>> Volume in drive D has no label.

>> Volume Serial Number is 862E-E2DF

>>

>> Directory of d:\Source\MUMPS_scons\build\scotch64\scotch_dll

>>

>> 23/01/2013 03:48 PM 366,080 scotch_wexit64.dll

>> 1 File(s) 366,080 bytes

>> 0 Dir(s) 204,723,765,248 bytes free

>

>

> I am attaching the whole tree for that particular variant directory where the DLLs are supposed to be installed. The whole tree is bigger still and would make things harder to track.



I suggested those flags to help you figure out your problem.
As I said before without a test case and/or more of your code, it's not easy (or maybe even possible) to help you resolve this issue.

So if a small test case doesn't replicated the issue, for example a SConstruct, and two SConscripts, one producing a list of files into an env variable, the other installing them somewhere doesn't replicate your issue and does work, then you should look at your code to see how it's different from the small test case. Likely that's where the error is.
Are you sure your have your Import()'s and Export()'s right?
How are you invoking your SConscripts..

-Bill


More information about the Scons-users mailing list