{"action":"created","issue":{"url":"https://api.github.com/repos/enjoy-digital/litex/issues/287","repository_url":"https://api.github.com/repos/enjoy-digital/litex","labels_url":"https://api.github.com/repos/enjoy-digital/litex/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/enjoy-digital/litex/issues/287/comments","events_url":"https://api.github.com/repos/enjoy-digital/litex/issues/287/events","html_url":"https://github.com/enjoy-digital/litex/issues/287","id":512259897,"node_id":"MDU6SXNzdWU1MTIyNTk4OTc=","number":287,"title":"Software only compiles on Windows when V=1","user":{"login":"xobs","id":238325,"node_id":"MDQ6VXNlcjIzODMyNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/238325?v=4","gravatar_id":"","url":"https://api.github.com/users/xobs","html_url":"https://github.com/xobs","followers_url":"https://api.github.com/users/xobs/followers","following_url":"https://api.github.com/users/xobs/following{/other_user}","gists_url":"https://api.github.com/users/xobs/gists{/gist_id}","starred_url":"https://api.github.com/users/xobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xobs/subscriptions","organizations_url":"https://api.github.com/users/xobs/orgs","repos_url":"https://api.github.com/users/xobs/repos","events_url":"https://api.github.com/users/xobs/events{/privacy}","received_events_url":"https://api.github.com/users/xobs/received_events","type":"User","site_admin":false},"labels":[{"id":283518908,"node_id":"MDU6TGFiZWwyODM1MTg5MDg=","url":"https://api.github.com/repos/enjoy-digital/litex/labels/question","name":"question","color":"cc317c","default":true,"description":null}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2019-10-25T01:49:30Z","updated_at":"2019-12-23T01:27:14Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Something changed, and now \r\n\r\n```powershell\r\nsmcro@CUBOID   yosys-bld  D:\\Code\\HaD\\valentytest   master ≢                                                                                                                                                                                 [09:36]\r\n❯ make -C D:\\Code\\HaD\\valentytest\\build2\\software\\libcompiler_rt -f D:\\Code\\HaD\\valentytest\\deps\\litex\\litex\\soc\\software\\libcompiler_rt\\Makefile\r\nmake: Entering directory 'D:/Code/HaD/valentytest/build2/software/libcompiler_rt'\r\n CC       umodsi3.o\r\nriscv64-unknown-elf-gcc.exe: error: D:CodeHaDvalentytestdepslitexlitexsoc/software/compiler_rt/lib/builtins/umodsi3.c: No such file or directory\r\nriscv64-unknown-elf-gcc.exe: fatal error: no input files\r\ncompilation terminated.\r\nmake: *** [D:\\Code\\HaD\\valentytest\\deps\\litex\\litex\\soc\\software\\libcompiler_rt\\Makefile:27: umodsi3.o] Error 1\r\nmake: Leaving directory 'D:/Code/HaD/valentytest/build2/software/libcompiler_rt'\r\nsmcro@CUBOID   yosys-bld  D:\\Code\\HaD\\valentytest   master ≢                                                                                                                                                                                 [09:36]\r\n❯ make -C D:\\Code\\HaD\\valentytest\\build2\\software\\libcompiler_rt -f D:\\Code\\HaD\\valentytest\\deps\\litex\\litex\\soc\\software\\libcompiler_rt\\Makefile V=1\r\nmake: Entering directory 'D:/Code/HaD/valentytest/build2/software/libcompiler_rt'\r\nriscv64-unknown-elf-gcc -std=gnu99 -c -MD -MP -Os -march=rv32ima    -mabi=ilp32 -D__vexriscv__ -g3 -fomit-frame-pointer -Wall -fno-builtin -nostdinc -ID:\\\\Code\\\\HaD\\\\valentytest\\\\deps\\\\litex\\\\litex\\\\soc/software/include/base -ID:\\\\Code\\\\HaD\\\\valentytest\\\\deps\\\\litex\\\\litex\\\\soc/software/include -ID:\\\\Code\\\\HaD\\\\valentytest\\\\deps\\\\litex\\\\litex\\\\soc/common -ID:\\\\Code\\\\HaD\\\\valentytest\\\\build2\\\\software\\\\include -fexceptions -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -D_YUGA_LITTLE_ENDIAN=1 -D_YUGA_BIG_ENDIAN=0 -Wno-missing-prototypes  D:\\\\Code\\\\HaD\\\\valentytest\\\\deps\\\\litex\\\\litex\\\\soc/software/compiler_rt/lib/builtins/umodsi3.c -o umodsi3.o\r\nriscv64-unknown-elf-gcc -std=gnu99 -c -MD -MP -Os -march=rv32ima    -mabi=ilp32 -D__vexriscv__ -g3 -fomit-frame-pointer -Wall -fno-builtin -nostdinc -ID:\\\\Code\\\\HaD\\\\valentytest\\\\deps\\\\litex\\\\litex\\\\soc/software/include/base -ID:\\\\Code\\\\HaD\\\\valentytest\\\\deps\\\\litex\\\\litex\\\\soc/software/include -ID:\\\\Code\\\\HaD\\\\valentytest\\\\deps\\\\litex\\\\litex\\\\soc/common -ID:\\\\Code\\\\HaD\\\\valentytest\\\\build2\\\\software\\\\include -fexceptions -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -D_YUGA_LITTLE_ENDIAN=1 -D_YUGA_BIG_ENDIAN=0 -Wno-missing-prototypes  D:\\\\Code\\\\HaD\\\\valentytest\\\\deps\\\\litex\\\\litex\\\\soc/software/compiler_rt/lib/builtins/udivsi3.c -o udivsi3.o\r\n```\r\n\r\nI'm unsure of what changed, or why it's not working.  The `&&` appears to be causing the problem now.\r\n\r\nMy current workaround is to hardcode `V=1` in `common.mk`.\r\n\r\n**Edited:** Corrected how I'm hardcoding verbose mode."},"comment":{"url":"https://api.github.com/repos/enjoy-digital/litex/issues/comments/568323934","html_url":"https://github.com/enjoy-digital/litex/issues/287#issuecomment-568323934","issue_url":"https://api.github.com/repos/enjoy-digital/litex/issues/287","id":568323934,"node_id":"MDEyOklzc3VlQ29tbWVudDU2ODMyMzkzNA==","user":{"login":"xobs","id":238325,"node_id":"MDQ6VXNlcjIzODMyNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/238325?v=4","gravatar_id":"","url":"https://api.github.com/users/xobs","html_url":"https://github.com/xobs","followers_url":"https://api.github.com/users/xobs/followers","following_url":"https://api.github.com/users/xobs/following{/other_user}","gists_url":"https://api.github.com/users/xobs/gists{/gist_id}","starred_url":"https://api.github.com/users/xobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xobs/subscriptions","organizations_url":"https://api.github.com/users/xobs/orgs","repos_url":"https://api.github.com/users/xobs/repos","events_url":"https://api.github.com/users/xobs/events{/privacy}","received_events_url":"https://api.github.com/users/xobs/received_events","type":"User","site_admin":false},"created_at":"2019-12-23T01:27:14Z","updated_at":"2019-12-23T01:27:14Z","author_association":"CONTRIBUTOR","body":"We ran into this issue in the Fomu workshop.  Someone showed up with a Windows machine and had Cygwin in their PATH, and it kept picking up the `sh.exe` even though it didn't have access to certain commands.\r\n\r\nThe solution there was to set `SHELL=cmd.exe` unconditionally.  I couldn't come up with any cross-platform method of determining whether commands were available without throwing a lot of warnings."}}
{"actor":{"display_login":"xobs"}}