Repository navigation
Description
This issue was originally created at: 2006-02-27 08:05:53.
This issue was reported by: kevinmassey.
kevinmassey said at 2006-02-27 08:05:53
A sample SConstruct file builds a program from a
library and main object, then runs it to produce a
header file. The --debug=dtree on initial run does not
display the dependency on the library. Running the
build a second time with --debug=dtree does correctly
show this dependency.Here is the sample SConstruct file:
=== SConstruct ===
env = Environment()
l = env.Library( 'util.lib', 'util.c' )
p = env.Program( 'test.exe', 'main.c', LIBS=l )
env.Command( 'foo.h', p, '$SOURCE > $TARGET' )Here's the output of the initial run. Although the
build is correct, the dtree output omits the dependency
on the util.lib library.=================
$ scons -Q foo.h --debug=dtree
cl /nologo /c main.c /Fomain.obj
main.c
cl /nologo /c util.c /Foutil.obj
util.c
lib /nologo /OUT:util.lib util.obj
link /nologo /OUT:test.exe util.lib main.obj
test.exe > foo.h
+-foo.h
+-test.exe
+-main.obj=================
Running the build again does produce dtree output that
looks correct.=================
$ scons -Q foo.h --debug=dtree
scons: `foo.h' is up to date.+-foo.h
+-test.exe
+-main.obj
+-util.lib
+-util.objThis was produced on Windows Server 2003 SP1 with the
following version of SCons:=================
$ scons --version
SCons by Steven Knight et al.:
engine: v0.96.91.D001, 2005/09/08 09:14:36, by
knight on roxbury
Copyright (c) 2001, 2002, 2003, 2004 The SCons Foundation
issues@scons said at 2006-02-27 08:05:53
Converted from SourceForge tracker item 1439718
stevenknight said at 2007-05-24 05:21:44
Update: I can't reproduce this using 0.96.91 on Linux, with the default gcc
toolchain. Need to try on Windows to see if that toolchain has differences that
show up in the --debug=dtree output.
stevenknight said at 2007-09-10 18:10:01
Seems to be fixed by the Big Signature Refactoring, which has been checked in to
branches/core and is waiting for promotion to the trunk and release. To make
sure it stays fixed in the future, I have checked in a script using this test case:http://scons.tigris.org/servlets/ReadMsg?list=dev&msgNo=4260
http://scons.tigris.org/servlets/ReadMsg?list=commits&msgNo=991Marking this with the BigSignatureRefactoring keyword so it can be closed on
release.Thanks for the test case,
stevenknight said at 2007-09-19 05:53:39
Fixed with the release of 0.97.0d20070918 and promotion of branches/core to the
trunk. Please open a new issue if you notice apparently similar problems in the
future.
stevenknight said this issue blocks #1664 at 2007-09-10 18:10:01.
Activity