From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 746011F4B4 for ; Tue, 6 Oct 2020 11:19:28 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 0C062120A69; Tue, 6 Oct 2020 20:18:50 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id 3DA63120A62 for ; Tue, 6 Oct 2020 20:18:48 +0900 (JST) Received: by filterdrecv-p3las1-6f66587546-9bmz7 with SMTP id filterdrecv-p3las1-6f66587546-9bmz7-18-5F7C52B8-52 2020-10-06 11:19:20.859091931 +0000 UTC m=+1257641.938143624 Received: from herokuapp.com (unknown) by geopod-ismtpd-3-1 (SG) with ESMTP id xNDC2WvIQdyM05U0iWTL8w for ; Tue, 06 Oct 2020 11:19:20.697 +0000 (UTC) Date: Tue, 06 Oct 2020 11:19:20 +0000 (UTC) From: nakilon@gmail.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 76151 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Misc X-Redmine-Issue-Id: 17174 X-Redmine-Issue-Author: Nakilon X-Redmine-Sender: Nakilon 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-SG-EID: =?us-ascii?Q?18hGLwT3fiAt8E+ZAf+80zVVH6CaJtPqTXMGgjJHAzzDVlIoioUekUobJiYeTy?= =?us-ascii?Q?KkSZrkqe1=2F2lTkQOVqiJX0DsM9J9f4bU=2Fg2z1Y4?= =?us-ascii?Q?gtmO1esVBOuXbsfxfDWq5POdzIeCPTTKihp1ldK?= =?us-ascii?Q?ANrKoTxqpIPn+iuF9xgXWnsNaXHuxFp92N4XDk+?= =?us-ascii?Q?qDRJfgu4T6zCaUJnXHn66Qs97LWFhtER9vFirEH?= =?us-ascii?Q?eJVaIchupM90lrw64=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 100308 Subject: [ruby-core:100308] [Ruby master Misc#17174] "Error relocating, symbol not found" error when compiling a native extension on Alpine with Ruby >=2.4 X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #17174 has been updated by Nakilon (Victor Maslov). Nakilon (Victor Maslov) wrote: > docker build - -t temp-ruby2.3.8 --build-arg RUBY_VERSION=2.3.8 --build-arg ALPINE_VERSION=3.8 =2.4 https://bugs.ruby-lang.org/issues/17174#change-87893 * Author: Nakilon (Victor Maslov) * Status: Open * Priority: Normal ---------------------------------------- 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