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, T_SCC_BODY_TEXT_LINE 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 A03891F518 for ; Mon, 27 May 2024 03:50:32 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=SuQl09cn; 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=FDl/bTJC; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 46A5B861B5; Mon, 27 May 2024 03:50:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1716781824; bh=X8wAk2Xg3ZiNMWhxNAbVMQP16qCPsiR8e7PwCIJFcmc=; 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=SuQl09cnTmTIpgYMlXkMsENoLrByRZldwJFf9+v85tkcgcpABf1i1LEZMvlr7zKHR g4qZ5eC1qQRVO/TtcNZi30ag4X6xf20Cde4fHxc88Axnu1pe9dagK0QJTXeFEmYb28 icn5JnFrnwhMCoIvNwK4JKbs4XLKUCFgIi7jNZyk= Received: from s.wrqvtvvn.outbound-mail.sendgrid.net (s.wrqvtvvn.outbound-mail.sendgrid.net [149.72.120.130]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 0A835861AF for ; Mon, 27 May 2024 03:50:20 +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=FDl/bTJC; dkim-atps=neutral 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=DGdldsmtG7rFGuOcM1+rqMn/HLRMPxMoGuzDf/1h31s=; b=FDl/bTJCaPcsqEnu6mCZPt3XSKjSMHv4ACR5qB6bFj0dyLJe+5mFlMLWhfwsPp6LSLt8 Y7U2BPuUzLTGlFpozxvI4tGxgdvgTAEue089kbAdtvMDsUESegfhh0LW7p2GmA59x7xaVO Y94bC3s1BOoEjqL93cIR9q0aeYSuawe11NOExmPrgErNovYcHEPlMzQciNniVLPgj36/6A gTcR7ux2PWCi5Ic7bla1Zw7+HaHIBPLJnN1dqrcU1pHXoTKGx1q4RgZdvlrxKAkpGJRjEa wIO+Nk1fPl4QP+xdnak0yduSEp1HnDKGIkIxAvwGKZAJYHRj/F5gkXWkt6JlBsYQ== Received: by recvd-785ff4475c-b65kb with SMTP id recvd-785ff4475c-b65kb-1-665402FB-7 2024-05-27 03:50:19.9842639 +0000 UTC m=+2260684.389449234 Received: from herokuapp.com (unknown) by geopod-ismtpd-33 (SG) with ESMTP id vOG_YjmdTXG5W5_XHCY7Dg for ; Mon, 27 May 2024 03:50:19.955 +0000 (UTC) Date: Mon, 27 May 2024 03:50:20 +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: schneems 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: 94624 X-SG-EID: =?us-ascii?Q?u001=2Ero=2FN0iCdhEvkg92lhzAmFB6d6iePz6nWtgxu+LpAwONAvjaF2FaKI1fvo?= =?us-ascii?Q?OvSlxvjRs0ABCk+m6YzBjPkhN9tVEy4e9v0v0pZ?= =?us-ascii?Q?sOAApoiYbuxHjus8jde48MP=2F9RBLzaCMAJFqPVx?= =?us-ascii?Q?8AD2eDHFZkAbDxJ9pz4YkkDNI823QOd8kmrlmm5?= =?us-ascii?Q?BP+fzgtEaRCPm9MXfm1A2YQrFaOqAqSj=2FZYB7D+?= =?us-ascii?Q?lo5nyb7sFCTJAbUyLiis+Df+yhV7BPfPirVAYaG?= =?us-ascii?Q?7LTekOR4pzU2rERVjKvHhlNQRA=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: K6TC3NXCEPXP3KLWYIKRRVYIXB6XDMNM X-Message-ID-Hash: K6TC3NXCEPXP3KLWYIKRRVYIXB6XDMNM 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.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:118026] [Ruby master Bug#20506] Failure compiling Ruby 3.4.0-preview1 on aarch64 on a mac and linux (Ubuntu 24.04) List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "schneems (Richard Schneeman) via ruby-core" Cc: "schneems (Richard Schneeman)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20506 has been updated by schneems (Richard Schneeman). Thanks for the fast responses. I was able to get it working on Ubuntu by downgrading rust in my dockerfile (nothing special about 1.75, I randomly picked a version): ``` RUN rustup install 1.75 && rustup default 1.75 ``` It also looks like other Ruby versions fail to compile with the latest Rust version: It fails with Ruby 3.3.1 on Ubuntu 24.04 with the latest rust (1.78) in addition to Ruby 3.4.0-preview1. ---------------------------------------- Bug #20506: Failure compiling Ruby 3.4.0-preview1 on aarch64 on a mac and linux (Ubuntu 24.04) https://bugs.ruby-lang.org/issues/20506#change-108445 * Author: schneems (Richard Schneeman) * Status: Assigned * 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/postorius/lists/ruby-core.ml.ruby-lang.org/