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 7C8901F5CB for ; Fri, 4 Oct 2024 09:21:01 +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=YY2ialal; 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=OPIyPoVo; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1728033658; bh=bGO1FwJXeXW5w2zwjGmDWERj+JM1gVri7A4E+K05ypo=; 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=YY2ialaljN7J54klHCqDTLT/6oq0XM/VKADniGzGUKFtU+vCUTkYoYcM+i1lLvGHa pPYs7NOsSRa0C2oKzpcvUNUmNlqCS1hoQmRt+8mQlVDLZkcbuztbO4rT/hMHlOxjWh vZhGAM33PZVPJg2Se19/tsUI/gqr5o9QtSYLH148= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 9657743F9D for ; Fri, 4 Oct 2024 09:20:58 +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=OPIyPoVo; dkim-atps=neutral Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) by nue.mailmanlists.eu (Postfix) with ESMTPS id CA15343F46 for ; Fri, 4 Oct 2024 09:20:47 +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=ApUma5vHb8xpRtSMzHZev84wr1ImSYW3O9qhMVwPulw=; b=OPIyPoVoE+QA7XSMMD/ZmiNFOWrKMvwUpGo/vvGrNvIhYGE1R0gFFm/yRTrdm+YOBUrU NkTZnQJOUY/3jHgpBLUvw/niE75HKH31E0U0cyYlqBDv6SrzO64wpujJYnwoTAf4hUTBkb /t+FrGpCakkVwjfbucmY4i++W8A3oEEMzk7Wj1FvHKeHYQiP3cPd/S9h84I4UOOfjSI5XZ lK+J1ZP3SFq2f22jAnx/XEoQ12g1Ri830zT5uLJskqXvHxlVAu7UxsnioQ7SQ3vnoMN1AP KxwdSsf9KQKsuR1DMzJuHPvd7WOtFcvJ0giA6JRxKdoRKR64vCYNh29HXWZ2ThMg== Received: by recvd-5577bcb48c-prxvp with SMTP id recvd-5577bcb48c-prxvp-1-66FFB36E-3D 2024-10-04 09:20:46.76502426 +0000 UTC m=+1869870.382962990 Received: from herokuapp.com (unknown) by geopod-ismtpd-4 (SG) with ESMTP id 9xE2z391STuGPaCNPhlSwg for ; Fri, 04 Oct 2024 09:20:46.731 +0000 (UTC) Date: Fri, 04 Oct 2024 09:20:46 +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: Eregon 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: 96080 X-SG-EID: =?us-ascii?Q?u001=2EByjZWvxTCjdoV8K03xEuhE7KqN4thWULFLM7+oH78KY30oYB3qFthsDpL?= =?us-ascii?Q?4w4cbYa3ttBh8bAHPOnE=2FkzPba67JNu7Lnrked2?= =?us-ascii?Q?O7K9VQ=2FJax1k1g+wWjHY=2FQgsziwoBircF0PgN4T?= =?us-ascii?Q?D6IT9+a+Nm7uM7NkpeINjcCDXpKEFOJfIkLuPeo?= =?us-ascii?Q?M13gYjKXjAMopcuuoESLv+oxOZ=2Fble3dSlar9g=2F?= =?us-ascii?Q?QZW8IqqRYjoAst6Q=2Fw6GRft0lnk8ax2vhHioLfF?= =?us-ascii?Q?V2KMTWQw+RQ=2FCj85Qq0406AINQ=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: T7D3UUBRZNHJUPEYVJ6FKIEBJGWFUZPR X-Message-ID-Hash: T7D3UUBRZNHJUPEYVJ6FKIEBJGWFUZPR 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:119444] [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: "Eregon (Benoit Daloze) via ruby-core" Cc: "Eregon (Benoit Daloze)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20783 has been reported by Eregon (Benoit Daloze). ---------------------------------------- Bug #20783: --enable-shared and the rpath/runpath are broken on Linux on CRuby master https://bugs.ruby-lang.org/issues/20783 * 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: ``` $ 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/