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-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham 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 1912C1F454 for ; Sun, 10 Nov 2019 00:27:20 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 01AF31209E6; Sun, 10 Nov 2019 09:27:11 +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 855DC1209D9 for ; Sun, 10 Nov 2019 09:27:08 +0900 (JST) Received: by filter0094p3las1.sendgrid.net with SMTP id filter0094p3las1-19867-5DC7595E-1C 2019-11-10 00:27:10.450422767 +0000 UTC m=+182207.895637816 Received: from herokuapp.com (unknown [3.80.151.94]) by ismtpd0125p1mdw1.sendgrid.net (SG) with ESMTP id ZWogGarXQAi5SyH_-r7-iA for ; Sun, 10 Nov 2019 00:27:10.275 +0000 (UTC) Date: Sun, 10 Nov 2019 00:27:10 +0000 (UTC) From: nobu@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 71396 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 16331 X-Redmine-Issue-Author: meta@vmeta.jp X-Redmine-Sender: nobu 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?q8Dly+pU2+3ektTtZVXgZtbJPXwqo7p86jCsvYTW4Byo0gbW8sc0EHqBZAeqGP?= =?us-ascii?Q?rFnakUl2Pamg0qkPVONSCsY0hCZKqKAuiQ9RREQ?= =?us-ascii?Q?lYMurC6muDcCmNBlY1VVHNhNdPBV5mtXj81YzRO?= =?us-ascii?Q?dPd77SVSe6OohgqrFvL9sVV0oRx8+uT8dKtSInB?= =?us-ascii?Q?7Fvz47pFAIlAuVrnN1TdBgj28SRNUMTWB4Q=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 95771 Subject: [ruby-core:95771] [Ruby master Bug#16331] fails to build with BSD make when any -j option is given (including -j 1) 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 #16331 has been updated by nobu (Nobuyoshi Nakada). meta@vmeta.jp (Koichiro Iwao) wrote: > One of the FreeBSD folks Yuichiro NAITO provided more detail. > > See comment 13: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241633#c13 The conditions in libruby-static and libruby-shared are different intentionally. > First: It seems that it is not intended to call $(PRE_LIBRARY_UPDATE) in Ruby's Makefile, when libruby.so.26 is built. Comparing to libruby-static library build, Ruby's Makefile should be fixed like `Makefile.in.patch`. ---------------------------------------- Bug #16331: fails to build with BSD make when any -j option is given (including -j 1) https://bugs.ruby-lang.org/issues/16331#change-82587 * Author: meta@vmeta.jp (Koichiro Iwao) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: 2.6.5 * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- When building Ruby parallely with BSD make (FreeBSD make), it fails to build. Reported by FreeBSD Ruby folks. Please keep in mind I didn't find out the root cause. OS: FreeBSD 12-STABLE See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241633 ## How to reproduce ``` tar xf ruby-2.6.5.tar.gz cd ruby-2.6.5 ./configure --enable-shared --disable-readline --disable-libedit make -j 8 # any value will cause build failure (snip) configuring -test-/st/numhash configuring -test-/st/update --- enc --- ld: error: unable to find library -lruby cc: error: linker command failed with exit code 1 (use -v to see invocation) --- exts.mk --- configuring -test-/string configuring -test-/struct configuring -test-/symbol --- enc --- *** [.ext/x86_64-freebsd12.1/enc/encdb.so] Error code 1 ``` ## BSD make without -j option: success ``` cd ruby-2.6.5 make distclean ./configure --enable-shared --disable-readline --disable-libedit make `ruby' is up to date. *** Following extensions are not compiled: readline: Could not be configured. It will not be installed. /home/sair/tmp/ruby-2.6.5/ext/readline/extconf.rb:52: readline not found Check ext/readline/mkmf.log for more details. gdbm: Could not be configured. It will not be installed. Check ext/gdbm/mkmf.log for more details. *** Fix the problems, then remove these directories and try again if you want. making enc making trans `trans' is up to date. making encs Generating RDoc documentation ``` ## Using GNU make: success ``` cd ruby-2.6.5 export MAKE=gmake # GNU make make distclean ./configure --enable-shared --disable-readline --disable-libedit $MAKE -j 8 ``` ---Files-------------------------------- ruby-bsdmake.log (13.9 KB) -- https://bugs.ruby-lang.org/