Skip to content
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

make -j fails on high core count machine #12

Open
rui314 opened this issue Feb 20, 2022 · 0 comments
Open

make -j fails on high core count machine #12

rui314 opened this issue Feb 20, 2022 · 0 comments

Comments

@rui314
Copy link

rui314 commented Feb 20, 2022

It looks like there's a missing dependency in Makefile.in which results in running ranlib on a library while the linker reads that archive file. As a result, the linker occasionally crashes. If I add sleep 1 before running ranlib like below, it fixes the issue (though it's not a correct way to fix it).

diff --git a/Makefile.in b/Makefile.in
index 96089c8..5957a01 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -238,6 +238,7 @@ RDFGEN_TARGET       = \
 sdk:           sdkstatic $(SDK_DYNAMIC) $(HOSTSDK_DYNAMIC)

 sdkstatic:     $(SDK_STATIC) $(HOSTSDK_STATIC)
+               sleep 1
                $(RANLIB) $(SDK_STATIC)
                $(RANLIB) $(HOSTSDK_STATIC)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant