question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

make test: command errors on Windows

See original GitHub issue

https://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:open
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
eerimoqcommented, Dec 13, 2020

make test-c-src works in Cygwin.

0reactions
eerimoqcommented, Dec 14, 2020

If you figure it out you can create a PR =)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found