-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Fortran support #998
Comments
In principle yes. Search the issues and mailing list, I think some of these have work on them done already. |
Here is what I did to enable Fortran support in Emscripten:
I know that this patch is a very hacky one. It would be great if someone could present a similiar solution that can be merged into the official repo! |
I've been using a similar workaround today (in an attempt to compile LAPACK), except I've used a shell script instead of Python code to run I get warnings that the bytecode of the Fortran files is from a different triple than what emcc compils from C. So I guess one would have to compile Dragonegg against the LLVM version of emscripten. Not sure (yet) how to do that. If I feed a Fortran file to my native Once Fortran can be compiled, we should investigate ways to compile libgfortran as well, to offer a suitable runtime environment. But Fortran sources first.
Some pointers:
|
I believe you can safely ignore that as long as you make sure that the target architecture (like x86, x64 etc) matches. But still it would be nice to fix this :) |
Related to issue ( #5553 ). |
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant. |
Yeah I guess this or #5553 should be closed and marked as a duplicate. |
Closing as a duplicate. |
…e#998) This is needed to allow custom rules and/or transitions on top of wasm_cc_binary (e.g. to workaround emscripten-core#972). It's debatable whether .wasm is the correct executable target for non-standalone Wasm builds, but we don't have a way to differentiate those in wasm_cc_binary, and considering that this attribute isn't exported now, it shouldn't break anything.
Recently I tried to build GNU octave through emscripten, however it failed because of parts written in Fortran. may
be it would be possible to add fortran, as I understand currently emscripten is translating llvm bytecode to javascript. And in extension, one could add Ada and Obj-C support?
The text was updated successfully, but these errors were encountered: