Drasil: Make error (Windows?)

Created on 17 May 2019  路  13Comments  路  Source: JacquesCarette/Drasil

As of the merge of #1346, I get the following error when I run make:

$ make
/usr/bin/sh: C:/Program: No such file or directory
make: *** [check_stack] Error 127

I'm guessing the file path it's supposed to be looking for is C:/Program Files/ but it's getting cut off at the space? Any thoughts @Mornix?

All 13 comments

Interesting. Nothing changed with check_stack.sh with build_cleanup. I'll look into it.

Quick question: Line 80 of the Makefile, if you quote $(SHELL) so it looks like:
@MIN_STACK_VER=$(MIN_STACK_VER) CACHED_MSV_FILE=$(CACHED_MSV_FILE) "$(SHELL)" $(SCRIPT_FOLDER)check_stack.sh does that result in a different error?

That almost fixed it, it ran through almost the entire make process but then I got the same error at the end:

Copied executables to C:\Users\brook\AppData\Roaming\local\bin:
- chipmunkdocs.exe
- glassbr.exe
- nopcm.exe
- ssp.exe
- swhs.exe
- tiny.exe
cd build/Tiny && stack exec -- tiny
cd build/GlassBR && stack exec -- glassbr
cd build/NoPCM && stack exec -- nopcm
cd build/SWHS && stack exec -- swhs
cd build/SSP && stack exec -- ssp
cd build/Chipmunk && stack exec -- chipmunkdocs
diff -r -X ../.gitignore -x '*.txt' ./stable/tiny/ build/Tiny/ > logs/Tiny_log.log 2>&1
diff -r -X ../.gitignore -x '*.txt' ./stable/glassbr/ build/GlassBR/ > logs/GlassBR_log.log 2>&1
make: [glassbr_diff] Error 1 (ignored)
diff -r -X ../.gitignore -x '*.txt' ./stable/nopcm/ build/NoPCM/ > logs/NoPCM_log.log 2>&1
diff -r -X ../.gitignore -x '*.txt' ./stable/swhs/ build/SWHS/ > logs/SWHS_log.log 2>&1
diff -r -X ../.gitignore -x '*.txt' ./stable/ssp/ build/SSP/ > logs/SSP_log.log 2>&1
make: [ssp_diff] Error 1 (ignored)
diff -r -X ../.gitignore -x '*.txt' ./stable/gamephys/ build/Chipmunk/ > logs/Chipmunk_log.log 2>&1
----------------------------
Make complete, checking logs
----------------------------
/usr/bin/sh: C:/Program: No such file or directory
make: *** [test] Error 127

There are 3-4 other $(SHELL) instances in the Makefile, I think the one on line 104 should be enough to get a regular build restored. I'll make the necessary changes here (including other places where I missed quotes 馃槗) and put up a proper PR.

Great, thanks for the quick response!

@Mornix as @bmaclach mentioned I also got this error and I can not do build locally. Should we fix it manually ?[ for double check: doing quote $(SHELL) in MakeFile ].

1

@Mornix Although, I have successful build locally, I do not have successful build on Travis #1370 , would this issue be related to the Make File?

@vajihehm Yup! Those same two changes @bmaclach made should suffice until #1368 is merged.

This issue isn鈥檛 responsible for build failures with #1370. It looks like some warnings were present and thus became errors in CI. It also looks like some files aren鈥檛 updated in stable.

@Mornix perfect thanks! Besides, I doubled-check stable folder, so all of files have been copied from build folder to stable!

This issue should be good to be closed if @bmaclach or @vajihehm can confirm with the latest changes to master building on Windows works again.

@Mornix You mean, should we undo the local changes on the MakeFile and get the MakeFIle from master?

Yup.

@Mornix I have tested with the new changes and it works well. So you can close this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samm82 picture samm82  路  12Comments

niazim3 picture niazim3  路  14Comments

samm82 picture samm82  路  11Comments

samm82 picture samm82  路  3Comments

samm82 picture samm82  路  3Comments