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.

[BUG]: Unable to execute programs using wine-vc

See original GitHub issue

Describe 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

image

Operating System

No response

Browser version

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
partoufcommented, Aug 24, 2022

Ok, that makes sense. I guess the better question is can that path actually ever start with Z: at this point?

Based on my limited reading of the source code, I don’t think it can, because that path will ultimately come from https://sourcegraph.com/github.com/compiler-explorer/compiler-explorer/-/blob/lib/base-compiler.ts?L266:5&subtree=true

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

0reactions
edmcmancommented, Aug 24, 2022

PR in #3986

Execution is working perfectly with those two commits!

Read more comments on GitHub >

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

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