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 463C51F5CB for ; Fri, 4 Oct 2024 10:09:38 +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=TFVV2yqV; 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=rQH09SaB; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1728036545; bh=ioMeQjpZBSPH4+GA0vGcMfHaq4DyMJGmqvyzFk+J5y0=; 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=TFVV2yqVvzdGWnZGnx8RSgu6klR4UaIelYtcMNG2xmZaHEcu7ZEgyB6xjbF2OIZGm QkfW2/cwPaTA9smE+62fWl55RzVnyJgI4N6tX5CeV9YapyF6IGZWeGupMaNg7E8qio p2xDV9N78Y683wuYZV3l3CBlTJ328/m5kAwPMSO8= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 09F4543FEA for ; Fri, 4 Oct 2024 10:09:05 +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=rQH09SaB; dkim-atps=neutral Received: from s.wrqvtbkv.outbound-mail.sendgrid.net (s.wrqvtbkv.outbound-mail.sendgrid.net [149.72.123.24]) by nue.mailmanlists.eu (Postfix) with ESMTPS id D70ED43F32 for ; Fri, 4 Oct 2024 10:08:54 +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=XskiBLnhlrcqpCHGtwjJLz6g9whXrnhZDdl3XYqD+PE=; b=rQH09SaBp4AZvoMd8LZbcOh9KH8xeiFNFSG2R+PVlMp4STX15X3BRlVDDAlgJAF0yX+5 2L/JmwZUHeUPPAmymOOEmzpnuvPro4K+ATULlsbfeVS5yjhPvmeLf0g9WAznXzotj3pT9Y BmZxrShrIn6BNVPP+z5qLYVRWFsDXXOc4+Zb9FE8CKwGLfoLMMjNWMWFJ+dMhXfWSM6BZN strnQtMCM1MgUQQG5b3hfWCK3hbTcqo17LiNGapFtKezGf5ulxKwEcFZ4udzwwfjKohyV0 vJsEqqm6niXOYbG1Nd+ly/axZfVJARnW/N3AMPEGqjbPpTCnWzFDhQKYCZsrJQZg== Received: by recvd-7cc7f7d978-5pdk4 with SMTP id recvd-7cc7f7d978-5pdk4-1-66FFBEB5-5 2024-10-04 10:08:53.12277521 +0000 UTC m=+1872711.337751559 Received: from herokuapp.com (unknown) by geopod-ismtpd-19 (SG) with ESMTP id gqFLqdtxQjmh8WcZGJszFw for ; Fri, 04 Oct 2024 10:08:53.109 +0000 (UTC) Date: Fri, 04 Oct 2024 10:08:53 +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-Assignee: nobu X-Redmine-Issue-Priority: Normal X-Redmine-Sender: hsbt 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: 96083 X-SG-EID: =?us-ascii?Q?u001=2ESNtsfy=2FRYrUmxOeGSN+Ah1new64UppKFg8YOAgra6KK6sIhqEP6LswYh4?= =?us-ascii?Q?tCf2AhAD20FCmXanLCSpdJ9Heq83FKB1eeA=2FIRz?= =?us-ascii?Q?=2FUFVHcMb3GNXlbnGS9nHKLzUjadG6FxkONrARt8?= =?us-ascii?Q?byv10toEhnPG79Mc4rTaauZS6wC8Cxy4i5yd3Vp?= =?us-ascii?Q?eMlqO7boT=2FaP61BbF+mqbaB9AzA0J7N6z1T2tI1?= =?us-ascii?Q?sdp35Q5JT24cVlXM3QBICc2qaFBBvkLZitKlq7Z?= =?us-ascii?Q?z95gDFKBVvt+5pMoV5kzqqKb0A=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: LUGYZKCB2YQB7KXTF5TT5R7EWGVITLBV X-Message-ID-Hash: LUGYZKCB2YQB7KXTF5TT5R7EWGVITLBV 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:119447] [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: "hsbt (Hiroshi SHIBATA) via ruby-core" Cc: "hsbt (Hiroshi SHIBATA)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20783 has been updated by hsbt (Hiroshi SHIBATA). Status changed from Open to Assigned Assignee set to nobu (Nobuyoshi Nakada) ---------------------------------------- Bug #20783: --enable-shared and the rpath/runpath are broken on Linux on CRuby master https://bugs.ruby-lang.org/issues/20783#change-110066 * Author: Eregon (Benoit Daloze) * Status: Assigned * Assignee: nobu (Nobuyoshi Nakada) * 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/