From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F6F0C433EF for ; Fri, 3 Sep 2021 02:50:14 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E474A610A0 for ; Fri, 3 Sep 2021 02:50:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E474A610A0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=busybox.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.buildroot.org Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id AEB326070D; Fri, 3 Sep 2021 02:50:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hX00ZNpePj-s; Fri, 3 Sep 2021 02:50:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id F2C72606E3; Fri, 3 Sep 2021 02:50:11 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 745581BF331 for ; Fri, 3 Sep 2021 02:50:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 7106B606E3 for ; Fri, 3 Sep 2021 02:50:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ct9LOm7lx7St for ; Fri, 3 Sep 2021 02:50:09 +0000 (UTC) Received: from busybox.osuosl.org (busybox.osuosl.org [140.211.167.122]) by smtp3.osuosl.org (Postfix) with ESMTP id C44E5606DE for ; Fri, 3 Sep 2021 02:50:09 +0000 (UTC) Received: by busybox.osuosl.org (Postfix, from userid 81) id 62DC487D39; Fri, 3 Sep 2021 02:48:51 +0000 (UTC) From: bugzilla@busybox.net To: buildroot@uclibc.org Date: Fri, 03 Sep 2021 02:50:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: buildroot X-Bugzilla-Component: Other X-Bugzilla-Version: 2021.02.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: geyunda@163.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P5 X-Bugzilla-Assigned-To: unassigned@buildroot.uclibc.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: X-Bugzilla-URL: https://bugs.busybox.net/ Auto-Submitted: auto-generated MIME-Version: 1.0 Subject: [Buildroot] [Bug 14191] New: patchelf v0.9 corrupt Nvidia shared libraries X-BeenThere: buildroot@lists.buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@lists.buildroot.org Sender: "buildroot" https://bugs.busybox.net/show_bug.cgi?id=14191 Bug ID: 14191 Summary: patchelf v0.9 corrupt Nvidia shared libraries Product: buildroot Version: 2021.02.3 Hardware: All OS: Linux Status: NEW Severity: normal Priority: P5 Component: Other Assignee: unassigned@buildroot.uclibc.org Reporter: geyunda@163.com CC: buildroot@uclibc.org Target Milestone: --- Unpack the libcudnn deb archive and install the .so file to $(TARGET_DIR). libcudnn.so.8.0.0 was corrupted after target-finalize. I found it was caused by patchelf v0.9. After upgrading to patchelf v0.13,it worked. target-finalize log: ++ /home/gyd/work/hito_jetson/out/host/bin/patchelf --print-rpath /home/gyd/work/hito_jetson/out/target/usr/lib/aarch64-linux-gnu/libcudnn.so.8.0.0 + rpath='$ORIGIN' + test 0 -ne 0 ++ chmod -c u+w /home/gyd/work/hito_jetson/out/target/usr/lib/aarch64-linux-gnu/libcudnn.so.8.0.0 + changed= ++ echo '$ORIGIN' ++ sed 's@/home/gyd/work/hito_jetson/out/per-package/[^/]\+/host@/home/gyd/work/hito_jetson/out/host@' + changed_rpath='$ORIGIN' + test '$ORIGIN' '!=' '$ORIGIN' + /home/gyd/work/hito_jetson/out/host/bin/patchelf --make-rpath-relative /home/gyd/work/hito_jetson/out/target --no-standard-lib-dirs /home/gyd/work/hito_jetson/out/target/usr/lib/aarch64-linux-gnu /libcudnn.so.8.0.0 # ldconfig /sbin/ldconfig.real: file /usr/lib/aarch64-linux-gnu/libcudnn.so.8.0.0 is truncated -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list buildroot@lists.buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot