-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add a Makefile option to disable libunwind #22215
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
Conversation
src/julia_internal.h
Outdated
@@ -597,7 +597,7 @@ static inline void jl_set_gc_and_wait(void) | |||
} | |||
#endif | |||
|
|||
void jl_dump_native(const char *bc_fname, const char *obj_fname, const char *sysimg_data, size_t sysimg_len); | |||
void jl_dump_native(const char *bc_fname, const char *bc_unopt_fname, const char *obj_fname, const char *sysimg_data, size_t sysimg_len); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some unrelated changes crept in during rebase. Will take them out in the morning.
@@ -26,6 +26,7 @@ OPENBLAS_USE_THREAD:=1 | |||
# Use libraries available on the system instead of building them | |||
USE_SYSTEM_LLVM:=0 | |||
USE_SYSTEM_LIBUNWIND:=0 | |||
DISABLE_LIBUNWIND:=0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We generally try to avoid double negatives in options, although in this case everything else defaults to false.
@jlbuild !flags=DISABLE_LIBUNWIND=1 !nuke |
When running the make under s390x, even having libunwind disabled, I receive the following error make USE_SYSTEM_PCRE=1 PCRE= USE_SYSTEM_*=1 USE_SYSTEM_LIBM=1 USE_SYSTEM_BLAS=1 NO_LAPACK=1 USE_SYSTEM_LLVM=0 DISABLE_LIBUNWIND=1
|
Pushed an update to disable it trying to download libunwind if the make option is set. |
Just downloaded latest master distribution, but still getting the following error at the make step, using makefile flag DISABLE_LIBUNWIND=1
Error: Question: If the LIBUNWIND package is in a disabled state, why does it check the architecture? |
Are you building on this branch |
@tkelman thanks for the hint. I've downloaded the branch and executed the make again. The process went much further, but stopped at a module called flisp. Looks like a dependency issue due to missing libunwind files. Any advice how to fix this error? Here the error message:
|
There's been a request for a version of julia that does not depend on libunwind, for easier bring up on new architectures. This adds a makefile flag that can be put in Make.user (`DISABLE_LIBUNWIND`) and if set, will disable any dependency on libunwind. Backtraces and profiling won't work of course.
I've updated this branch again to hopefully take care of that one as well. |
@Keno , thanks for fixing this dependency. The latest downland of the branch and build process did throw the following error. Any advice how to correct this "core dumped" error at inference.ji?
|
That error seems to now be beyond the scope of this issue. |
@ViralBShah , I agree, certainty latest build error (core dumped) is not related any-more to this branch, so I decided to report it under the issue "Julia Build from Source / s390x Machine Architecture not Supported" [ issue #21474 ]. Hints how to debug the error are welcome. Thanks to all colleagues for fixing the LIBUNWIND dependency. |
There's been a request for a version of julia that does not depend on
libunwind, for easier bring up on new architectures. This adds a makefile
flag that can be put in Make.user (
DISABLE_LIBUNWIND
) and if set, willdisable any dependency on libunwind. Backtraces and profiling won't work
of course.