gittup / tup

Tup is a file-based build system.
http://gittup.org/tup/
GNU General Public License v2.0
1.18k stars 145 forks source link

"Failed to inject DLL" on Windows #385

Open tomeksowi opened 5 years ago

tomeksowi commented 5 years ago

Trying to build A First Tupfile returns an error encountered in #168 and #147:

[ tup ] [0.002s] Scanning filesystem...                            
[ tup ] [0.004s] Reading in new environment variables...           
[ tup ] [0.005s] No Tupfiles to parse.                             
[ tup ] [0.006s] No files to delete.                               
[ tup ] [0.007s] Executing Commands...                             
 [ ]   0%tup error: failed to inject dll: No such file or directory
 *** Command ID=26 failed: gcc hello.c -o hello.exe                
 [ ]   0%                                                          
 *** tup: 1 job failed.

Everything is according to the tutorial except my Tupfile is adjusted for the .exe suffix on Windows:

: hello.c |> gcc hello.c -o hello.exe |> hello.exe

Needless to say, the gcc command outside tup works fine and the tup directory with all the executables and tup-dllinject(32).dll is in path.

Wetmelon commented 4 years ago

This is probably related to the tup32detect.exe problem. Make sure it's not being quarantined by your AV

gittup commented 4 years ago

This is probably related to the tup32detect.exe problem. Make sure it's not being quarantined by your AV

It could be, though with that version of tup, if I remove tup32detect.exe from the system, I see a different error:

[ tup ] [0.250s] Executing Commands...
 [ ]   0%Unable to retrieve WOW64 info
tup error: failed to inject dll: No error
 *** Command ID=25 failed: gcc hello.c -o hello.exe
 [ ]   0%
 *** tup: 1 job failed.

I'm not sure if removing it is representative of what would happen with an AV blocking it, though.