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 [IPv6:2a01:4f8:1c0c:6b10::1]) (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 DF5591F44D for ; Wed, 27 Mar 2024 01:03:42 +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=cYcxVkXp; 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=ZpM2FPFV; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 84A6A838E2; Wed, 27 Mar 2024 01:03:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1711501415; bh=WnwhuykXc8MQZEFvukhhur2FOQp6F5tu6IGziNjApo8=; 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=cYcxVkXpJQZ3vIVlfC/0MvcnrBwjBDOoSt/DkPZBO/4MYfPFDRN90PdHoSP2AmbiX IS5ehBEVd8vf9wcQrRgLngBf6g6+prWJF896gf2XmQnNm9tVb+D6PUtRypXw6b2wgB JEg7tF9YBTeDaI1HGeJ7KCcqgskD2qO1dkFXIht4= 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 C5FCE838E3 for ; Wed, 27 Mar 2024 01:03:31 +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=ZpM2FPFV; 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=GQsJHEX/L7ZjCQdzM5dBTKGWoEAj1dtUsuwiB44OKYs=; b=ZpM2FPFVKI3N6oi2U4CHFUu3Pyh3ml+9VfYQc7PHWoM7KMgmrJmFka4cFixGS/7vBysl 9ohhDe4/vJxAGGn6qAhm4Gp7U7WN4eKlkYcQCCA+DDl5IEGh3kuVHMulbluXvcRwbX0qm7 K0DyI8Sg1ELKrZzpWRb45hmAhKl/6vJFQX39S1jYM76kEjKJdpL272vdFLAtONvRjLt/c+ QlZXVbjFRWW2YO+pLNreHOOXEHpvmVK3EhaGGQklU6IYoeTGvCti/SbCetzRjPXN4QI7Km xRcAAfxzndgtHHBGVExxeY97xR06mZ5ZNy5BAPtWkzajzi9ansmJz0zmg2+eklQw== Received: by recvd-75c664ffc8-plfq2 with SMTP id recvd-75c664ffc8-plfq2-1-66037062-17 2024-03-27 01:03:30.498749831 +0000 UTC m=+705863.123809911 Received: from herokuapp.com (unknown) by geopod-ismtpd-13 (SG) with ESMTP id DpnDx3HUR_G4vGsHTAyCcw for ; Wed, 27 Mar 2024 01:03:30.449 +0000 (UTC) Date: Wed, 27 Mar 2024 01:03:30 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Misc X-Redmine-Issue-Id: 17174 X-Redmine-Issue-Author: Nakilon X-Redmine-Issue-Priority: Normal X-Redmine-Sender: hsbt 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: 93935 X-SG-EID: =?us-ascii?Q?u001=2ESNtsfy=2FRYrUmxOeGSN+Ah1new64UppKFg8YOAgra6KK6sIhqEP6LswYh4?= =?us-ascii?Q?tCf2AhAD20FCmXanLCSpdJ9Heq83FKB1eeA=2FIRz?= =?us-ascii?Q?=2FUFVHcMb3GM2KOeGymhPYeBC7w8VWCSowJCZKvO?= =?us-ascii?Q?5sCE4sQBGqNyXfOcYzjLBWVgxATMPUgYlwa5bK2?= =?us-ascii?Q?XG2w7LwGbJ1iLOn95ZtVlL9jwSYiOIe3+xqciLu?= =?us-ascii?Q?6Hp+TF3oVuTOcP82vVZL+k+usUmlcu932j71ScH?= =?us-ascii?Q?KSqyMIwlgwv6XRKPgSvrv5jpYw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: FCZDGTO4NEH7RQQ6GEU7Z2CS4RFMOBDQ X-Message-ID-Hash: FCZDGTO4NEH7RQQ6GEU7Z2CS4RFMOBDQ 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:117337] [Ruby master Misc#17174] "Error relocating, symbol not found" error when compiling a native extension on Alpine with Ruby >=2.4 List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "hsbt (Hiroshi SHIBATA) via ruby-core" Cc: "hsbt (Hiroshi SHIBATA)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #17174 has been updated by hsbt (Hiroshi SHIBATA). Status changed from Open to Closed Unfortunately, there is no active maintainer for musl or alpine platform. I tagged them to [musl](https://bugs.ruby-lang.org/projects/ruby-master/issues?fields%5B%5D=issue_tags&operators%5Bissue_tags%5D=%3D&set_filter=1&values%5Bissue_tags%5D%5B%5D=musl). We welcome patch for them. ---------------------------------------- Misc #17174: "Error relocating, symbol not found" error when compiling a native extension on Alpine with Ruby >=2.4 https://bugs.ruby-lang.org/issues/17174#change-107491 * Author: Nakilon (Victor Maslov) * Status: Closed ---------------------------------------- My native extension gem compiles fine with all versions of Ruby on macOS but only with Ruby 2.3 on Alpine. It throws various `Error relocating`, `symbol not found` when I require the `.o` file. Here I made a branch to reproduce it in Docker quickly. ``` git clone https://github.com/Nakilon/dhash-vips.git --branch alpine-compilation-issues alpine-compilation-issues && cd alpine-compilation-issues ``` ``` # compiles and does not fail on require docker build - -t temp-ruby2.3.8 --build-arg RUBY_VERSION=2.3.8 --build-arg ALPINE_VERSION=3.8