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) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 4507D1F4C4 for ; Sun, 3 Nov 2024 10:36:28 +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=M6Q/e5JP; 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=DALRy29c; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1730630185; bh=3f74P0danrWDHwEygfE4NZmjgZqAvLjymiduyrLtz98=; 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=M6Q/e5JPCwkQMq+LvAhmY0vh4QnHL79QgWvx+H+0AL6Rw9KIhneVTiAA7vw9GHYn0 O7484lPWfojA0UNoDh1knOeJqkW8VHb2oVxPVtdkPL7tXRP5Qxf/cMFZ2+apb10x0S /ouYEblHWnNqtWuwLC3G0w6GvAe9uYTkm+N0e6zw= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id B3BB744B26 for ; Sun, 3 Nov 2024 10:36:25 +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=DALRy29c; 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 87B25400C3 for ; Sun, 3 Nov 2024 10:36:13 +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=lv2+Mbep8GIyi02SsZNQ0ryj1WNsqG9kacxTZ1HMYTI=; b=DALRy29cqsbAuE19ZCEyOZGKEhaGqelPxqslQEhFT1jv3om0ZoG/Og/xR+kQ+I2wQP5P WL4qHkR21MfJtfimEFJt/0dAtRRCnqm6nQx0gIOqt7OibzfkpjHwx2Mg/ZXk2FpSuBWnk3 qosi4oURakIbCSchOX01aciFoHe5dn1GjfcZh9XIzw7N76hkA8IEI2U9eeE7b0CdmaTidE AazbNtg3dfQ4U8hzQMKDIYeEqhedyVHkhVghq1jwiGASXRuTZdCe7YcaW2vFb5DbwG5LDD S8GNveEFVOtLJjZuhNmnnN4yS/riMlacmnWe3aTdEETc4Y66aGLdIFtiIQQkMXvw== Received: by recvd-94b86bfcc-nxwxc with SMTP id recvd-94b86bfcc-nxwxc-1-6727521B-7 2024-11-03 10:36:11.141643176 +0000 UTC m=+4466387.862862426 Received: from herokuapp.com (unknown) by geopod-ismtpd-25 (SG) with ESMTP id zScn2dzOQkWCULL_S2uzbg for ; Sun, 03 Nov 2024 10:36:11.115 +0000 (UTC) Date: Sun, 03 Nov 2024 10:36:11 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20506 X-Redmine-Issue-Author: schneems X-Redmine-Issue-Assignee: Group (yjit) X-Redmine-Issue-Priority: Normal X-Redmine-Sender: Earlopain 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: 96357 X-SG-EID: =?us-ascii?Q?u001=2EeN8dK4P86Am4z06GVDKdfvEyoI3WQjPfTcd7CtGb2eN1eriElpjSWp5GJ?= =?us-ascii?Q?vSR=2FvvdvOqED6rgnv4GFThyvgwcprSNImpAr6Od?= =?us-ascii?Q?dbc1UMwoGtuZsdw77zXppuWxKZ5HvKXGqNMwZQx?= =?us-ascii?Q?NCgcWX52HsYIIMluK71oNJw38alPYhbYyXbyOKU?= =?us-ascii?Q?bfCJiiZywOdyTqOlByOlpGSrqxClZWdGVKnAldP?= =?us-ascii?Q?dii5413vtQshDoV2ndaJT7bvgF3iVR9Cm9888hY?= =?us-ascii?Q?GAIx?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: YWE2U2FNIR3DFTIZBJLWXCI2C7HPGVGK X-Message-ID-Hash: YWE2U2FNIR3DFTIZBJLWXCI2C7HPGVGK 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:119692] [Ruby master Bug#20506] YJIT build error on aarch64 with Rust 1.78.0 List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "Earlopain (A S) via ruby-core" Cc: "Earlopain (A S)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20506 has been updated by Earlopain (A S). Small update, I believe https://github.com/rust-lang/rust/pull/131221 will fix this, which is slated for Rust 1.83. Not so sure about that since the actual fix seems to have been applied in llvm https://github.com/llvm/llvm-project/pull/93890 but I can confirm that this still happens with Rust 1.82 ---------------------------------------- Bug #20506: YJIT build error on aarch64 with Rust 1.78.0 https://bugs.ruby-lang.org/issues/20506#change-110352 * Author: schneems (Richard Schneeman) * Status: Third Party's Issue * Assignee: yjit * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- I was unable to compile Ruby 3.4.0-preview1 on Ubuntu 24.04 via Github Actions. As the logs are not retained indefinitely here's a link to the compilation failure: https://gist.github.com/schneems/bc6bdd6fba08ff6bfdd1bce8d76c457d The relevant errors seem to be in linking yjit: ``` touch yjit/target/release/libyjit.a partial linking yjit/target/release/libyjit.a into yjit/target/release/libyjit.o linking miniruby /usr/bin/ld: yjit/target/release/libyjit.o: in function `__multc3': /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.108/./lib/builtins/multc3.c:33:(.text.__multc3+0x30c): undefined reference to `__builtin_copysignq' /usr/bin/ld: /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.108/./lib/builtins/multc3.c:34:(.text.__multc3+0x394): undefined reference to `__builtin_copysignq' /usr/bin/ld: /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.108/./lib/builtins/multc3.c:42:(.text.__multc3+0x7f4): undefined reference to `__builtin_copysignq' /usr/bin/ld: /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.108/./lib/builtins/multc3.c:43:(.text.__multc3+0x864): undefined reference to `__builtin_copysignq' /usr/bin/ld: /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.108/./lib/builtins/multc3.c:47:(.text.__multc3+0x8c4): undefined reference to `__builtin_copysignq' /usr/bin/ld: yjit/target/release/libyjit.o:/cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.108/./lib/builtins/multc3.c:38: more undefined references to `__builtin_copysignq' follow collect2: error: ld returned 1 exit status make: *** [Makefile:298: miniruby] Error 1 /tmp/lib/build_script.rb:118:in `pipe': Command failed debugflags="-g" ./configure --disable-install-doc --prefix /tmp/d20240524-1-bdq0bj/prefix --enable-load-relative --enable-shared --enable-yjit && make -j16 && make install (RuntimeError) from /tmp/lib/build_script.rb:158:in `block in build' from /tmp/lib/build_script.rb:152:in `chdir' from /tmp/lib/build_script.rb:152:in `build' from /tmp/lib/build_script.rb:65:in `block in run_build_script' from /usr/lib/ruby/3.2.0/tmpdir.rb:94:in `mktmpdir' from /tmp/lib/build_script.rb:61:in `run_build_script' from /tmp/build.rb:8:in `
' ``` Here's the GHA link: https://github.com/heroku/docker-heroku-ruby-builder/actions/runs/9225538149/job/25383247191. This is the Dockerfile for Ubuntu 24.04 https://github.com/heroku/docker-heroku-ruby-builder/blob/73bdda974811717baccc05ea3e23f607817fbc8a/dockerfiles/Dockerfile.heroku-24. I'm able to reproduce the failure locally: ``` $ git clone https://github.com/heroku/docker-heroku-ruby-builder $ cd docker-heroku-ruby-builder $ export DOCKER_DEFAULT_PLATFORM=linux/arm64 $ bin/activate_docker heroku-24 $ bin/build_ruby heroku-24 3.4.0-preview1 # Fails ``` Full output https://gist.github.com/schneems/cfa21847228d48e6bbe27463deae6745. I'm also seeing failures when using `ruby-install` on my mac (ARM), the error message is different so I'm not sure if it's the same problem or unrelated: https://gist.github.com/schneems/12af87e967126c7bfa319645b00015b3 -- 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/