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)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 8D3841F4CC for ; Wed, 18 Dec 2024 03:25:25 +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=Ca4nJpE9; 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=Q6dyUjMA; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1734492323; bh=ZtJU2Bqp7nS6ReEkThaHsPYxhrz9VoQxCrDDRi1V8HU=; 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=Ca4nJpE9366RoUGwn/umduA4t24k1I/Cv4j1vmi10NpgerQw5nUSz46jQb01LnwjD a6d39y06MrMtkK/XP3lP3qH+zsrl2JkkMk1LCoXrwgAT9dOpE+Nnmik4/66m+vZQ9P 8MB/9ZsjNfzupkClfmLmL+OkuWfhkFuN6uaoKPPY= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 4AEA944E08 for ; Wed, 18 Dec 2024 03:25:23 +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=Q6dyUjMA; dkim-atps=neutral Received: from s.wfbtzhsw.outbound-mail.sendgrid.net (s.wfbtzhsw.outbound-mail.sendgrid.net [159.183.224.105]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 9DAC844C4D for ; Wed, 18 Dec 2024 03:25:19 +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=K0NXXp8hpjS1cTl353cljvhddQ0YM1Yxt9P8/NYZ86g=; b=Q6dyUjMAXJKOKheJm3mSCGGNVKVLzGgDB6K8LTaKqCVEljDYaC66Ec+gYquezbZ27rb8 rN3OUPj2JsjzyryknMAtp1QbnQU+ikY8cXET4I7kWqtqGuGb2gWGyO6e6jdBB27H3B+WQO sQ8WKh243yCkEuunvly4QE7NnDm7qzUTtMSHQw9Xw02GmsuxAfem7XU3OJi9uwSiyj/F/e S/Lm6DfFE7yTW4LnEOvRLvykzBgD/Fbp2hyLcc3SEbNunkeGjQE/7rUVytoYF/2ExGeAm9 Vrq5S9Fy0uJovm59WArGix+h/6X7MBn02c0k6HoKtU+tnM5yfxDypSwbhivCZcyg== Received: by recvd-69cbc48b94-5dtvb with SMTP id recvd-69cbc48b94-5dtvb-1-6762409E-26 2024-12-18 03:25:18.64392277 +0000 UTC m=+2872876.872016240 Received: from herokuapp.com (unknown) by geopod-ismtpd-26 (SG) with ESMTP id QlfPxVCzQUukime5au98lQ for ; Wed, 18 Dec 2024 03:25:18.601 +0000 (UTC) Date: Wed, 18 Dec 2024 03:25:18 +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: 96965 X-SG-EID: =?us-ascii?Q?u001=2Ekd4TWqqnZK2Pq9maY+59BkwPXNavWGdRTqIyL3IgtZAw5qeC7ItH57h+o?= =?us-ascii?Q?hG9YiGBOwfMPa0H3x4Mo6m+2eFOH0G7aecq6ieA?= =?us-ascii?Q?bHYebnEyEZXawIQAb=2Fa7++GocHYSqYygbzbhLQ5?= =?us-ascii?Q?7PNRWiPfAhR6QyRzTj6eMsAldeUqgAe92wSY=2FtO?= =?us-ascii?Q?rcCPBf2kafcxMY0NOrr1aWAGdJ7p4WsTl55W7U8?= =?us-ascii?Q?Ma6qEy=2F8I1psuyPCTfw05Muytj7mr=2FleTrnF+sQ?= =?us-ascii?Q?AeNFWD6PKpLhXmmBjspL=2FICTjg=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: ASROO3HZIXJS3O4DCAZDLNEYW4IL6PUW X-Message-ID-Hash: ASROO3HZIXJS3O4DCAZDLNEYW4IL6PUW 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:120288] [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). Thank you for trying this feature out. I think you're confused about how the configuration works, and that's our bad, we never documented anything. The `--with-modular-gc` flag is used to specify a directory that the built GC library will be placed into, and it uses a different directory for the intermediate build artifacts (you don't need to specify this directory). It seems like you're trying to specify the Rust build directory for it? I started [working on a `gc/README.md` document](https://github.com/ruby/ruby/pull/12379). It's far from complete, but I wrote a "building guide" section which may help you in building this feature. Please let me know if you still run into issues. ---------------------------------------- Bug #20961: MMTk build on macOS missing librubygc.mmtk.bundle https://bugs.ruby-lang.org/issues/20961#change-111053 * 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/