[Scons-users] Symbolic links and Scons

Erling D. Andersen e.d.andersen at mosek.com
Mon Jun 16 02:54:14 EDT 2014


[This is a repost since my initial email did not make it to archive
initially.]

We use scons to create so symbolic to an shared object (=.so file). Now
that give rise to the error

  scons: *** [bld/gram/final/default/intelc-14.0.1/dll/libmosek64.so]
File exists


in some cases.


Here is the diagnose behind the problem.


When we rebuild the shared object then of course

  1. The shared object target is deleted
  2. The symbolic link should be deleted.

Now if Scons happens to delete the shared object first then symbolic does
***NOT*** get deleted because the file the symbolic link points to does not
exists. Now if it happens to delete symbolic link first it works fine.

How does scons decide when to delete symbolic links? Anyone knows where
that decision is made in scons source code?

Thanks in advance.

-- 
Erling D. Andersen

MOSEK APS
Fruebjergvej 3, Box 16,
DK-2100 Copenhagen O

Ph: +4539179907
Mo: +452362920
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140616/cee66526/attachment.html>


More information about the Scons-users mailing list