-
Notifications
You must be signed in to change notification settings - Fork 415
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
don't try to run lief on static libraries #4808
Conversation
We require contributors to sign our Contributor License Agreement and we don't have one on file for @h-vetinari. In order for us to review and merge your code, please e-sign the Contributor License Agreement PDF. We then need to manually verify your signature. We will ping the bot to refresh the PR status when we have confirmed your signature. |
Just signed the CLA, let me know if there's anything else left to do to unblock this aspect. |
I tried this patch on my custom build of LLVM/compiler-rt on macOS and conda build just hung on a loop when it reached the packaging phase. Have you confirmed that it works for you? |
No, so far I just followed the suggestion given in the issue (+ some educated guessing, e.g. what's going to be in On the other hand, I cannot see how this would hang more or differently with the patch than without. There's no recursion that I can see ( |
Yes, you are right once again :) It just takes an enormous amount of time to do the post-compilation checks on macOS. Takes literally as long as the entire compilation of LLVM, but seems to complete eventually, so looks like this fix is the way to go. Thanks. |
I'm not sure this is working correctly... There are some .a files generated by LLVM's compiler-rt that are not copied to the final tarball, and during compilation I see a ton of "is not an ELF" and "Relocation #1 of __text seems corrupted" messages. I also see a "WARNING :: Failed to get_static_lib_exports" on an archive file that was previously breaking conda-build (lib/clang/../lib/libclang_rt.builtins_i386_osx.a), and with this PR this file is skipped altogether and not included in the package tree, which is incorrect behaviour. |
What you're seeing is normal. Please have a look at the logs of the compiler-rt-feedstock before you conclude something must be amiss. The changes here are intentionally minimal, and will not affect which static libraries are packaged or not (that's the job of the recipe build scripts). |
Be that as it may, there might have been a user error the first time, but I tried again this patch on a fresh install of macOS and miniconda3, and I got this error during packaging:
|
I was finally able to make this work by reverting this change, but instead updating the conda-build/conda_build/os_utils/pyldd.py Line 1012 in 6751f09
.a .
Feel free to incorporate it into your PR if you feel it makes sense. |
@conda-bot check |
This requires a news file and if possible a test case |
Suggested-By: Isuru Fernando <isuruf@gmail.com>
This reverts commit b24edf9.
Sorry this fell off the radar
I did that, but I'm flying blind here - the function is not documented and I don't know the internals here. But I'm glad you tested it, thanks a lot!
Added a news file; not sure how a test case would look like, short of building one of the failing feedstocks. |
Suggested-By: Stéphane Travostino <sph@combo.cc>
Closing in favor of #4900 |
Fixes #4787