make test: command errors on Windows
See original GitHub issuehttps://github.com/eerimoq/cantools/blob/34fb50c3e45312279e2e928fc68da890d8ace6f8/Makefile#L151
When running make test
on WIndows, this seems to produce malformed gcc calls.
make test-c-src
make[2]: Entering directory '/c/backup/cantools'
for f in tests/files/c_source/motohawk.c tests/files/c_source/padding_bit_order.c tests/files/c_source/vehicle.c tests/files/c_source/multiplex.c tests/files/c_source/multiplex_2.c tests/files/c_source/floating_point.c tests/files/c_source/no_signals.c tests/files/c_source/choices.c tests/files/c_source/signed.c tests/files/c_source/my_database_name.c tests/files/c_source/min_max_only_6_0.c tests/files/c_source/abs.c ; do \
C:\msys64\mingw64\bin\gcc.exe -Wall -Wextra -Wdouble-promotion -Wfloat-equal -Wformat=2 -Wshadow -Werror -Wconversion -Wpedantic -std=c99 -O3 -c $f ; \
done
/bin/sh: line 1: C:msys64mingw64bingcc.exe: command not found
/bin/sh: line 1: C:msys64mingw64bingcc.exe: command not found
/bin/sh: line 1: C:msys64mingw64bingcc.exe: command not found
/bin/sh: line 1: C:msys64mingw64bingcc.exe: command not found
/bin/sh: line 1: C:msys64mingw64bingcc.exe: command not found
/bin/sh: line 1: C:msys64mingw64bingcc.exe: command not found
/bin/sh: line 1: C:msys64mingw64bingcc.exe: command not found
/bin/sh: line 1: C:msys64mingw64bingcc.exe: command not found
/bin/sh: line 1: C:msys64mingw64bingcc.exe: command not found
/bin/sh: line 1: C:msys64mingw64bingcc.exe: command not found
/bin/sh: line 1: C:msys64mingw64bingcc.exe: command not found
/bin/sh: line 1: C:msys64mingw64bingcc.exe: command not found
make[2]: *** [Makefile:151: test-c-src] Error 127
make[2]: Leaving directory '/c/backup/cantools'
make[1]: *** [Makefile:160: test-c] Error 2
make[1]: Leaving directory '/c/backup/cantools'
make: *** [Makefile:147: test] Error 2
C:\backup\cantools>
There is something wrong with the slashes.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Fix program errors and improve code - Visual Studio (Windows)
This article describes some basic ways Visual Studio can help you find and fix problems in your code, including build errors, code analysis, ......
Read more >Reproduce the test failure by running the test ... - Microsoft Learn
Run a Device Fundamentals test from the command line; How to use /BreakOnError ... Create a c:\temp folder on the system under test...
Read more >Windows 10 Error Checking Tool and sfc - Microsoft Community
SFC /scannow checks some of the Windows operational files to be sure those are the proper ones that need to be accessed in...
Read more >Use the System File Checker tool to repair missing or ...
Describes how to use the System File Checker tool to troubleshoot missing or corrupted system files in Windows 8.1, Windows 8, Windows 7...
Read more >Using System File Checker in Windows - Microsoft Support
In the search box on the taskbar, type command prompt, and right-click or press and hold Command Prompt (Desktop app) from the list...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
make test-c-src
works in Cygwin.If you figure it out you can create a PR =)