[Scons-users] Strage behavior of Alias() method for executables on unix platforms

Alexey Petruchik i100500 at gmail.com
Thu Jul 5 18:43:36 EDT 2012


Any ideas how to fix it?

On Thu, Jul 5, 2012 at 7:35 PM, Gary Oberbrunner <garyo at oberbrunner.com>wrote:


> On Thu, Jul 5, 2012 at 12:24 PM, Managan, Rob <managan1 at llnl.gov> wrote:

> > With the alias I get:

> >

> > mantle[11] scons --tree=prune some_program

> > scons: Reading SConscript files ...

> > scons: done reading SConscript files.

> > scons: Building targets ...

> > g++ -o build/program.o -c src/program.cpp

> > +-some_program

> > +-build/program.o

> > | +-src/program.cpp

>

> I see, there is a name collision between the empty alias and the

> actual program name. Notice how it never links the program. I

> suspect somewhere there's a Node 'some_program' that's getting mapped

> incorrectly to the alias. The short answer is of course don't use

> alias names that match real file names, but you're supposed to be safe

> if the alias doesn't match a filename in a subdir. So there's

> definitely some sort of SCons bug here.

>

> --

> Gary

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20120706/f3b14247/attachment.html>


More information about the Scons-users mailing list