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.

Cross compiled executable not supported

See original GitHub issue

Checklist

Describe the bug

I have installed a cross compiler for Raspberry Pi (ARM). I am able to compile an executable including Catch2 support.

Testmate won’t discover tests. There is an error message “Error: Not a supported test executable”

  • I can execute the program using qemu-arm-static <executable> and see the Catch2 test report
  • If I change the compiler to a standard x86 gcc, the tests are discovered.

Desktop

Extension Version: 3.2.12 VS Code Version: 1.47.1 Catch2 / Google Test / DOCTest Version: Catch2 v2.13.0-1-g229cc482 OS Type and Version: Windows 10 Using remote-ssh/docker/wsl?: docker on wsl2

Log

See below:

`

[2020-07-27 10:37:22.618] [INFO] load called [2020-07-27 10:37:22.618] [DEBUG] canceled [2020-07-27 10:37:22.618] [INFO] load started [2020-07-27 10:37:22.618] [INFO] context:executables [ { name: ‘blaat’, pattern: ‘build/imaxi2_test’ } ] [2020-07-27 10:37:22.618] [INFO] pattern build/imaxi2_test /home/dinne/isenseit/firmwares/raspberry/raspberry-firmware { isAbsolute: false, absPattern: ‘/home/dinne/isenseit/firmwares/raspberry/raspberry-firmware/build/imaxi2_test’, isPartOfWs: true, relativeToWsPosix: ‘build/imaxi2_test’ } [2020-07-27 10:37:22.707] [DEBUG] Checking file for tests: /home/dinne/isenseit/firmwares/raspberry/raspberry firmware/build/imaxi2_test [2020-07-27 10:37:22.715] [DEBUG] Not a test executable: /home/dinne/isenseit/firmwares/raspberry/raspberry firmware/build/imaxi2_test reason: [Error: Not a supported test executable: /home/dinne/isenseit/firmwares/raspberry/raspberry-firmware/build/imaxi2_test

output: at /home/_vscode/.vscode-server-insiders/extensions/matepek.vscode-catch2-test-adapter-3.2.12/out/dist/main.js:65:31530 at async e.ExecutableConfig.load (/home/_vscode/.vscode-server-insiders/extensions/matepek.vscode-catch2-test-adapter-3.2.12/out/dist/main.js:65:23639) at async Promise.all (index 0) at async s.load (/home/_vscode/.vscode-server-insiders/extensions/matepek.vscode-catch2-test-adapter-3.2.12/out/dist/main.js:64:33463) at async e.SharedVariables._shared.u.SharedVariables.e [as loadWithTask] (/home/_vscode/.vscode-server-insiders/extensions/matepek.vscode-catch2-test-adapter-3.2.12/out/dist/main.js:64:10172)] [2020-07-27 10:37:22.715] [INFO] load finished 0

`

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
matepekcommented, Jul 27, 2020

Not yet, but I will implement it. It seems a good feature.

0reactions
matepekcommented, Jul 27, 2020

Check testMate.advancedExecutables.executionWrapper. It is intended to solve your issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trying to run a cross-compiled executable on target device ...
Now the cross-compiled application works on BBB. The BBB is running the original Angstrom distribution. This is not the ideal fix.
Read more >
Cross-compilation in Rust
This post contains excerpts from my course Black Hat Rust Now we have a mostly secure RAT, it's time to expand our reach....
Read more >
Cross-compilation
Crystal supports a basic form of cross compilation. In order to achieve this, the compiler executable provides two flags: --cross-compile : When given ......
Read more >
Cross-Compiling from MacOS to Windows
Hi, I'm trying to cross-compile a simple Swift executable from MacOS 12 ... The cross‐compilation support has not been deliberately removed, ...
Read more >
dart compile
No cross-compilation support (issue 28617): The compiler can create machine code only for the operating system on which you're compiling. To create executables...
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