-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deno compile
cross compilation does not work Linux -> Windows
#22690
Comments
@mabasic please provide reproduction commands and the output you get so we can investigate the issue. |
deno compile
cross compilation does not work Linux -> Windows
@bartlomieju Here is the reproduction repository: https://github.com/govisit/deno-cross-compilation-panic You will find all the instructions in the I have tested it on Linux and Windows and can recreate the issue every time. Let me know if I can help somehow. |
These are my versions: Linux:
Windows:
|
I have just tested and compiling the same program on Windows for Linux, and running on Linux works. So maybe the only direction problematic is Linux -> Windows. |
@littledivy please take a look |
I've also found this to not work either when trying to compile on Mac (aarch64-apple-darwin), targeting Linux (x86_64-unknown-linux-gnu) |
Discussed in #22685
Originally posted by mabasic March 4, 2024
I'm not opening an issue yet, because I'm typing this on mobile ... here it goes.
I'm using Deno 1.41.1 and when I run deno compile on Linux with target Windows, the command generates a .exe file without issues. But when I copy that file to my windows machine and run it I get a error deno panic something something.
I have tried running it with rust_backtrace="full" but I can't find anything useful in the output. Just a bunch of gibberish.
Things that I have tried:
deno compile
from there, it generates a .exe file and the executable works as expected.This signals to me that the issue is somewhere in the cross compilation, and not in the compilation in general.
I have even reduced the bug in my source code to a specific NPM package: https://github.com/sindresorhus/ink-big-text
When I comment out the import for this package and any related code from my application, the cross compilation works.
Hopefuly, someone will find this info useful. I have tried reading the source code for cli/tools/compile.rs but I can't seem to find anything interesting there, also I'm not a rust programmer yet so maybe that is the issue too 😊
I will try to create a reproduction repository and open a issue in the following week.
The text was updated successfully, but these errors were encountered: