-
-
Notifications
You must be signed in to change notification settings - Fork 145
Description
I'm starting a new project and I had a folder src/chip with a Tupfile and some sourcefiles - at this point everything was working fine. I moved the chip with its contents down one level, to new src/board folder (which has nothing more but this chip folder at this moment), and tup decided to share such info with me:
>tup
[ tup ] [0.000s] Scanning filesystem...
[ tup ] [0.003s] Reading in new environment variables...
[ tup ] [0.004s] Parsing Tupfiles...
1) [0.001s] src
2) [0.001s] src\board
[ ] 50%SQL reset error: UNIQUE constraint failed: normal_link.from_id, norm
al_link.to_id
Statement was: insert into normal_link(from_id, to_id) values(?, ?)
* 3) [0.002s] src\board\chip
tup error: Error parsing Tupfile line 14
Line was: ': foreach $(ASSRCS) |> !as |>'
[ ] 75%
*** tup: 1 job failed.
The Tupfile I have is extremely simple:
include_rules
ASSRCS = *.S
CSRCS = *.c
CXXSRCS = *.cpp
: foreach $(ASSRCS) |> !as |>
: foreach $(CSRCS) |> !cc |>
: foreach $(CXXSRCS) |> !cxx |>
As you imagine !as, !cc and !cxx are the most standard macros that are possible... If I revert my change, the error remains - I have to delete .tup directory to make it go away. If I don't revert my changes, delete .tup directory and do an update it works fine. If I revert the change from this working state, it fails again with the same error.
I've used the most recent tup available (tup v0.7.1-4-gd6fe766). The behavior is the same on some older version of tup (from January).
Am I doing something wrong here? It usually worked perfectly fine when moving files around and now it doesn't... What additional info should I attach?