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=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham 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) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id A4FAF1F4CC for ; Thu, 19 Dec 2024 18:26:54 +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=hKwWUWOC; 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=rqAN18Ib; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1734632812; bh=OJ19NETpC44oiqsPdIZZYXpXXuAStfI7QHqn6I3V01s=; 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=hKwWUWOCduN1UrER6TiZ1wBq5XdwQRbZbt2gv9jityR2OzMTfDDxWJCrOY7nD7F9G bSqIPWNxE7+sVGrwCDqAUXt7XApLvTg9X2itZWPd3JX/NEhvkmBzXmyk6NFbH+Hxuz bGJMh7hgZ2/RN/Pn6lxlL5ETjROH1+dM091WoG88= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 1CE3A44E6D for ; Thu, 19 Dec 2024 18:26:52 +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=rqAN18Ib; 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 BCD1B44D1F for ; Thu, 19 Dec 2024 18:26:48 +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=45JOTFkXcxm/SoNE6vKKD3z/45B4ZEmUKnU14HF3b6A=; b=rqAN18IbWPpznneGZfgQAEkgRjQxm6cV6FAjeLFzSn5hKB4WJRHUPZRyRRO/GTTB7xTq eJc2okT18oGYzMfR43CCdqPbIQXHcS7+9bVnAVYpWbYbTFIabzADCwheDq5kn0jVPHnVHQ Q7SZGPtCIN+190v266hxhyuzAPiv9sxfBzWCOp9q+JbogFVKhDchafk4MeeSQVMdKegEwQ IDrpvFLM6HzIEaih1Jhx0EbTJA+96G7QmiyK2ez6JbLlWXrFd3OjpR5r2T7wKdt3hokirA 7Wel0CbNX+GY7KJFYDo6BHrQyXvIfp4Wc75ZnbkKWuJeFqf5Z664bUGOaSgG76oA== Received: by recvd-5f9ffdf494-9zmwj with SMTP id recvd-5f9ffdf494-9zmwj-1-67646567-2D 2024-12-19 18:26:47.46116785 +0000 UTC m=+3013666.026328504 Received: from herokuapp.com (unknown) by geopod-ismtpd-17 (SG) with ESMTP id 3xBISZozTammQz6TYxRxiQ for ; Thu, 19 Dec 2024 18:26:47.403 +0000 (UTC) Date: Thu, 19 Dec 2024 18:26:47 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20961 X-Redmine-Issue-Author: shan X-Redmine-Issue-Priority: Normal X-Redmine-Sender: peterzhu2118 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: 97008 X-SG-EID: =?us-ascii?Q?u001=2Ekd4TWqqnZK2Pq9maY+59BkwPXNavWGdRTqIyL3IgtZAw5qeC7ItH57h+o?= =?us-ascii?Q?hG9YiGBOwfMPa0H3x4Mo6m+2eFOH0G7aecq6ieA?= =?us-ascii?Q?bHYebnEyEZUoKPUojuQdhzIeRF5I5stv3+KJVet?= =?us-ascii?Q?6O2Z28CYbEz68mWssloYgpyPtpoi1WH0vz81xuK?= =?us-ascii?Q?HYGBb2W3LcByyuv1G+j+lW11ZadthH5K2ozbHy4?= =?us-ascii?Q?7prNbUKwCFQ++yMrv3+SGJuGbvbI8Q9XMgSngho?= =?us-ascii?Q?1jMvdDLvCp0QPceBgFEIamSBOQ=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: HMTAJVMEKHY7JWBJVWDVWDTIG2XKH5PL X-Message-ID-Hash: HMTAJVMEKHY7JWBJVWDVWDTIG2XKH5PL 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:120331] [Ruby master Bug#20961] MMTk build on macOS missing librubygc.mmtk.bundle List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "peterzhu2118 (Peter Zhu) via ruby-core" Cc: "peterzhu2118 (Peter Zhu)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20961 has been updated by peterzhu2118 (Peter Zhu). Was the `RUBY_GC_LIBRARY` environment variable set when you ran `make modular-gc MODULAR_GC=mmtk`? The `make modular-gc` target uses Ruby to build the modular GC and it seems that the Ruby is trying to use the GC before it has been built. ---------------------------------------- Bug #20961: MMTk build on macOS missing librubygc.mmtk.bundle https://bugs.ruby-lang.org/issues/20961#change-111105 * Author: shan (Shannon Skipper) * Status: Open * ruby -v: ruby 3.4.0dev (2024-12-18 master 9715131c32) +YJIT +MN +PRISM [arm64-darwin24.2.0] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- Hi! I'm excited about the new modular GC feature. I just wanted to report that when I build Ruby 3.4.0-rc1 with MMTk on latest macOS 15.2 I seem to be encountering a linking issue. Whether I `cargo build --release` or `ruby extconf.rb && make` a `target/release/libmmtk_ruby.dylib` is created. A `make modular-gc MODULAR_GC=mmtk` then seems to expect a `target/release/librubygc.mmtk.bundle`, which doesn't exist. I briefly had it working but now can't reproduce the working order. Reproduction steps: ``` shell brew install gmp jemalloc libffi libyaml openssl@3 readline rust zlib curl https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.0-rc1.tar.xz | tar -x cd ruby-3.4.0-rc1 ./configure \ --prefix="$HOME/.rubies/ruby-3.4.0-rc1" \ --with-libyaml-dir="$(brew --prefix libyaml)" \ --with-openssl-dir="$(brew --prefix openssl@3)" \ --with-readline-dir="$(brew --prefix readline)" \ --with-zlib-dir="$(brew --prefix zlib)" \ --with-opt-dir="$(brew --prefix gmp):$(brew --prefix jemalloc)" \ --with-jemalloc \ --with-modular-gc="gc/mmtk/target/release" cargo build --release --manifest-path=gc/mmtk/Cargo.toml make -j miniruby modular-gc MODULAR_GC=mmtk ``` I keep getting errors similar to: ``` ruby_modular_gc_init: Shared library /Users/havenwood/src/ruby-3.4.0-rc1/gc/mmtk/target/release/librubygc.mmtk.bundle cannot be opened: dlopen(/Users/havenwood/src/ruby-3.4.0-rc1/gc/mmtk/target/release/librubygc.mmtk.bundle, 0x0009): tried: '/Users/havenwood/src/ruby-3.4.0-rc1/gc/mmtk/target/release/librubygc.mmtk.bundle' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/havenwood/src/ruby-3.4.0-rc1/gc/mmtk/target/release/librubygc.mmtk.bundle' (no such file), '/Users/havenwood/src/ruby-3.4.0-rc1/gc/mmtk/target/release/librubygc.mmtk.bundle' (no such file) ``` The latest nightly Ruby I tried produced the same missing `.bundle` error. I'm very much looking forward to 3.4.0 and the introduction of the new pluggable GC feature! Thank you! -- 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/