From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 8F3BA1F5CB for ; Fri, 4 Oct 2024 09:58:07 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=HrEbF9ft; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=ZpaTjxNz; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1728035854; bh=pp8kfC45p51QBmQMW3hzIf+OR6BOwTy/se12Ks2FFA4=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=HrEbF9ftjkX5OyMBM/Tm40+k/p5aM+cIAD+k0tXHn9PRxI6Q2IAzvsyZ1PopIUf+k 2ev35WT0U4NF1srxAd+aPLMvXsLc7ScaS1/KEdBS2VZ7hxDgw9LPQX8YsZFndZa8DS DZhdpM346RZ21eOViQ9Hn/pH7+5Zr8Y3eK+SyZJ8= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id D4CCA43FDC for ; Fri, 4 Oct 2024 09:57:34 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=ZpaTjxNz; dkim-atps=neutral Received: from s.wrqvtzvf.outbound-mail.sendgrid.net (s.wrqvtzvf.outbound-mail.sendgrid.net [149.72.126.143]) by nue.mailmanlists.eu (Postfix) with ESMTPS id B245D43E91 for ; Fri, 4 Oct 2024 09:57:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=mKvBaB4M4DQ7xrtK7n0F5Gp+pBjxJ+lVhxaE9is47Ic=; b=ZpaTjxNzwUZHIcFmKReHGP1iXiZVQe904LJBevyZFPwvQZiqCKDyX+SY0xL5Aiv/jviV 25qN0mt64rZJUb5r1ChGONmX/XGCRSyWXDvywNTCbribNubX3VNtasPvYOUuyOrpBq2CUi FuMIxHvgvDo74Ymev42S/kToZnrkSsCMw88FYEvByRjcyE1D4ydKQh21thX02TCyOZrrwf 5NyEL0+CfbTFNLCGmKFvkKBtT6nWyuBDUMCBDmnFJlfLyKkXCinpCv/JG9iNSdLQUZiNGx S0qqby3wcsVnT9+LMM6fcXpjWMuhjob20wZ1liK9wt1VM74VeUBgYpbFiQnd4FLQ== Received: by recvd-d66cff667-47qhb with SMTP id recvd-d66cff667-47qhb-1-66FFBC03-7 2024-10-04 09:57:23.243184183 +0000 UTC m=+1872065.184245528 Received: from herokuapp.com (unknown) by geopod-ismtpd-15 (SG) with ESMTP id hzISbc08R4uyHHlZaRy6AA for ; Fri, 04 Oct 2024 09:57:23.141 +0000 (UTC) Date: Fri, 04 Oct 2024 09:57:23 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20783 X-Redmine-Issue-Author: Eregon X-Redmine-Issue-Priority: Normal X-Redmine-Sender: nobu X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 96082 X-SG-EID: =?us-ascii?Q?u001=2E5PtzXJ23KrYzgM1nrOIr+EQ222PyrDaWSg0Er8CZ8tP86xyXmBM81zBKD?= =?us-ascii?Q?HreavdFYMbHjxXOR6UPMkt=2Fu9CyBIp6y52n8D2y?= =?us-ascii?Q?qA9zqurrgUcqhD=2FejNfxcGQzqQCJjEmqfTeuMwN?= =?us-ascii?Q?PGcfEQ1JPIvTdoXOu8eSBnufSU=2FiMRgDPSnbbC1?= =?us-ascii?Q?GK=2FO6lpCxeyFAw7KDn7Jpss3kvGIyDAectH2Ws=2F?= =?us-ascii?Q?AOYkKlLFFEsNJqVNKQNw6TYj5s25G8GkIgJvjU7?= =?us-ascii?Q?WvQjdmpXUZCeCxSJiD12lLcNAw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: UNVPBSPNCCH6QZSBFJ6RTOYQIUHQBDUR X-Message-ID-Hash: UNVPBSPNCCH6QZSBFJ6RTOYQIUHQBDUR X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:119446] [Ruby master Bug#20783] --enable-shared and the rpath/runpath are broken on Linux on CRuby master List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "nobu (Nobuyoshi Nakada) via ruby-core" Cc: "nobu (Nobuyoshi Nakada)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20783 has been updated by nobu (Nobuyoshi Nakada). https://github.com/ruby/ruby/pull/11797 ---------------------------------------- Bug #20783: --enable-shared and the rpath/runpath are broken on Linux on CRuby master https://bugs.ruby-lang.org/issues/20783#change-110065 * Author: Eregon (Benoit Daloze) * Status: Open * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- https://github.com/ruby/ruby-dev-builder/actions/runs/11095200420 ``` $ ruby test_files/cli_test.rb ruby: error while loading shared libraries: libruby.so.3.4: cannot open shared object file: No such file or directory ``` And indeed locally I can confirm it's broken (I use ruby-build for convenience, as you can see it just does a bunch of regular build commands): ``` $ RUBY_CONFIGURE_OPTS=--enable-shared ruby-build ruby-dev -d ~/.rubies ==> Cloning https://github.com/ruby/ruby.git... -> git clone --depth 1 --branch master https://github.com/ruby/ruby.git ruby-master ... ==> Installing ruby-master... -> autoreconf -i -> ./configure "--prefix=$HOME/.rubies/ruby-dev" --enable-shared -> make -j 16 -> make update-gems extract-gems install ==> Installed ruby-master to /home/eregon/.rubies/ruby-dev ``` And that build with `--enable-shared` is not working, same as on GitHub Actions: ``` $ /home/eregon/.rubies/ruby-dev/bin/ruby -v /home/eregon/.rubies/ruby-dev/bin/ruby: error while loading shared libraries: libruby.so.3.4: cannot open shared object file: No such file or directory $ ldd /home/eregon/.rubies/ruby-dev/bin/ruby linux-vdso.so.1 (0x00007fff9018c000) libruby.so.3.4 => not found libz.so.1 => /lib64/libz.so.1 (0x00007f4c8d928000) libcrypt.so.2 => /lib64/libcrypt.so.2 (0x00007f4c8d8ef000) libm.so.6 => /lib64/libm.so.6 (0x00007f4c8d80e000) libc.so.6 => /lib64/libc.so.6 (0x00007f4c8d62c000) /lib64/ld-linux-x86-64.so.2 (0x00007f4c8d95e000) $ readelf -d /home/eregon/.rubies/ruby-dev/bin/ruby Dynamic section at offset 0x2db8 contains 29 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libruby.so.3.4] 0x0000000000000001 (NEEDED) Shared library: [libz.so.1] 0x0000000000000001 (NEEDED) Shared library: [libcrypt.so.2] 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000001d (RUNPATH) Library runpath: [/home/eregon/.rubies/ruby-dev/lib-L/home/eregon/.rubies/ruby-dev/lib] ... ``` @hsbt said he remembers https://github.com/ruby/ruby/commit/1f6d2e77d9be9a5a829e60908d21d621f4e1ceb0 changed something in this area which might be the cause. Once this is fixed we should also revert https://github.com/ruby/docker-images/pull/107. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/