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

runPatchelf: "patchelf: cannot find section '.dynamic'\n" #61

Closed
AIIX opened this issue Jan 30, 2017 · 3 comments
Closed

runPatchelf: "patchelf: cannot find section '.dynamic'\n" #61

AIIX opened this issue Jan 30, 2017 · 3 comments

Comments

@AIIX
Copy link

AIIX commented Jan 30, 2017

./linuxdeployqt-continuous-x86_64.AppImage /home/Aix/build-mycroft-qtapplication-Desktop-Release/mycroft-qtapplication -no-strip -appimage -bundle-non-qt-libs -qmldir=/home/Aix/build-mycroft-qtapplication-Desktop-Release/qml/ -verbose=3

Log: Using patchelf:
Log: change rpath in "/home/Aix/release-mycroft-qtapplication/lib//libnsl.so.1"
Log: to "$ORIGIN"
ERROR: runPatchelf: "patchelf: cannot find section '.dynamic'\n"
ERROR: runPatchelf: ""

Distro: Fedora 25 Plasma 5 Using Distribution QT5 and QtCreator

@probonopd
Copy link
Owner

Thanks for reporting @AIIX.

Sounds to a patchelf issue similar to NixOS/patchelf#66. Please report this to https://github.com/NixOS/patchelf/issues, ideally with the library attached as an example.

@probonopd
Copy link
Owner

Fixed and (hopefully) working, please try https://github.com/probonopd/linuxdeployqt/releases/tag/continuous. Turns out that strip has a bug that cripples binaries on which patchelf was previously run (NixOS/patchelf#10). Therefore, I am now checking whether a binary has a rpath starting with $ (indicating that we already ran patchelf on it), and not run strip in that case. c643d6a

Let me know if this solves it for you.

@probonopd
Copy link
Owner

With NixOS/patchelf#117 merged, patchelf will hopefully allow binaries to be stripped after running patchelf.

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

2 participants