[BUG]: Unable to execute programs using wine-vc
See original GitHub issueDescribe the bug
I am trying to execute programs compiled with wine-vc. I get the following error:
Could not execute the program
Compiler returned: -1
Compiler stderr
<spawn /usr/bin/wine ENOENT>
I enabled debug output, and this is probably from a cwd that doesn’t exist: "cwd":"mp/compiler-explorer-compiler2022723-53-1dkihet.ihfx"
I assume this is caused by this: https://sourcegraph.com/github.com/compiler-explorer/compiler-explorer/-/blob/lib/compilers/wine-vc.js?L54
So, uh, what is that line of code there for? Am I doing something wrong?
Steps to reproduce
I am trying to build a docker container with compiler-explorer and MSVC. The easiest way to reproduce is to use that:
https://github.com/edmcman/docker-msvc-compiler-explorer
Then try to execute any C++ program using Visual C++ 2005 or 2008.
Expected behavior
The program executes
Reproduction link
Not applicable
Screenshots
Operating System
No response
Browser version
No response
Issue Analytics
- State:
- Created a year ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Wine Programs Not Working? Try These Steps - MakeUseOf
After this, you'll be able to run programs with a simple wine [program] command. Use the Staging Version of Wine. Wine staging has...
Read more >Unable to Install Windows Programs using Wine in Ubuntu ...
The program is running fine under Wine1.6 (which you already have). Right Click on the setup and select Open With Wine Windows Program...
Read more >Can't get wine to run any programs: included error message.
Here is error code i get no matter what i try to run--other than the one notepad program that seems to be included...
Read more >Can't run an exe file on Ubuntu using Wine - JRE error
When I run it through the terminal I get this error: This application requires a Java Runtime Environment 1.8.0(32 bit). Wine has referred...
Read more >How a Windows Developer can most easily get his software to ...
Wine is more sensitive to errors than Windows. For example, Wine will crash on NULL window handles, and fail to create windows if...
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
filename() is always called “last minute” just before it’s passed to for example runCompiler() and similar functions where the inputfilename is a parameter to a compiler, https://github.com/compiler-explorer/compiler-explorer/blob/46cdf8f4a504e68591d1695eedc3ddfb791c88e5/lib/base-compiler.ts#L1591
PR in #3986
Execution is working perfectly with those two commits!