-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Binary compilation #11816
Comments
What's the output of |
The version info is:
|
I`ve also tried to use:
Still have an error:
|
The useful part of |
I`ve downloaded this - https://github.com/JuliaLang/julia/archive/master.zip and installed by executing make and make install |
That sort of works now (it formerly didn't), but we have no idea of determining what version of Julia you downloaded, so that's not a good idea. Install git and build from a clone. |
Here is a detailed information:
|
That doesn't tell me what commit you built from, which is the important detail here. You'll also find Compat is broken in confusing ways in a non-git build (#10851), so building master from a tarball is not good. |
I`ve got a clone of https://github.com/JuliaLang/julia. Last commit was 6ceb061.
I`ve build it with make OPENBLAS_TARGET_ARCH=NEHALEM. When I execute:
I recieve:
|
This was most likely broken by #11640. Can you try checking out some older commits until you find the last version that worked? If the same invocation formerly worked but is now broken, doing |
Maybe also related: #11442 |
Oh yeah, it's been broken for longer then. That code could definitely use a code-owner who pays attention to it and regularly keeps it working - or adds it to the tests if that doesn't take too much run time. |
I`ve reverted to:
But it still fails. |
Still can not compile julia script into binary. It seems it cannot find some base modules. Probably I should add something into PATH? I get this:
|
That's a syntax error in your |
File does not exists. It does not exists anywhere in repository. |
Did you create one in your local copy? You wouldn't have gotten a syntax error from there if the file didn't exist. |
I have not created this file in my local copy. Should it be created after I`ve made make?
|
What about under |
There is no such file. I`ve tried to find it through all folders in repository, but without any success. |
Even can not find it here https://github.com/JuliaLang/julia/tree/master/base . |
I'm not talking about the git repository, I'm asking about your local copy. There's no reason you would get this error |
It looks like that file can potentially be created by the |
I`ve updated from master, but the error still appears:
|
What does running this in a shell output? cat /opt/emgs/projects/tmp/julia/julia-latest/julia-97f62a9820/share/julia/base/userimg.jl |
|
I am building julia in such a way:
Then call this command to build script into binary:
|
I`ve made some more experiments.
|
The file doesn't exist unless you create it. The only mystery is why you're getting an error about it not existing. |
Here is extended output:
|
It looks like you are executing your main function during compilation. However, STDOUT isn't created during compile time, it is created during runtime. if you delete that call, does it work? am i missing something else from this thread? |
Checking out the last version and everything works. Thanks! |
Delete the line that calls |
Is there any way to compile stadalone .exe files in julia version 0.3? |
If by standalone you mean everything statically linked into a single file, then that might be theoretically possible (though difficult) in 0.4 but not 0.3 since there's still a separate system image there. If you don't mind packaging multiple files together then the process in |
Is building a binary supposed to work on the master branch? I just tried to build a file called test.jl, in a directory where I cloned
to no avail using
|
And the error message was? |
Ahh sorry I updated the comment. |
Looks like
were updated accordingly. |
@akaFalsh I have over the past days moved and updated |
@dhoegh Thank you it works on Windows! great package. Is there a way to only include necessary dlls. Currently it includes all of them resulting in 225MB for a hello world executable. Also load times of executables are rather slow |
You can safely delete BTW I'am merely standing on top of a lot of other peoples great work. |
I am on Windows, julia 0.4.0, trying to compile the program on test.jl: function main() with: build_executable("test", "test.jl", pwd()*"\test_dir", "core2") it generates all files and returns zero but when I run the .exe I get: Please submit a bug report with steps to reproduce this fault, and any 2015-10-15 16:42 GMT-03:00 Daniel Høegh [email protected]:
|
Could you try |
I just tried the new code you suggested, but i still have the exact same problem. |
What is your |
My version info:
test-debug.exe gave the exact same output. |
build_executable has migrated to https://github.com/dhoegh/BuildExecutable.jl |
I am trying to create julia independent binary. I`ve looked to many closely related issues. I had successfully built a library, but when I try to build executable it fails.
The code is rather simple:
I use command:
However I recieve an error:
The text was updated successfully, but these errors were encountered: