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=-3.9 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,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 E50771F466 for ; Mon, 27 Jan 2020 06:38:12 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 0DC39120913; Mon, 27 Jan 2020 15:37:55 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id EB4A5120910 for ; Mon, 27 Jan 2020 15:37:51 +0900 (JST) Received: by filterdrecv-p3iad2-57f487d66-whbch with SMTP id filterdrecv-p3iad2-57f487d66-whbch-18-5E2E8546-3F 2020-01-27 06:37:58.811671245 +0000 UTC m=+3563481.775630590 Received: from herokuapp.com (unknown [107.23.212.120]) by ismtpd0046p1mdw1.sendgrid.net (SG) with ESMTP id 3sBr_1XMRfKfijL4uxshHA for ; Mon, 27 Jan 2020 06:37:58.730 +0000 (UTC) Date: Mon, 27 Jan 2020 06:37:58 +0000 (UTC) From: meta@FreeBSD.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 72730 X-Redmine-Project: ruby-master X-Redmine-Issue-Id: 16331 X-Redmine-Issue-Author: meta@vmeta.jp X-Redmine-Sender: meta@vmeta.jp 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?Me9FiEz=2Fh4gtSc+IQtoy1kubVZ8960r++jook3Z4pXmPrTCXcF+lRS0GcpkJWJ?= =?us-ascii?Q?qOFfF12zW143tcNdHdDCOPtTPjdBpB2pUduZV=2F5?= =?us-ascii?Q?v+g7kt=2FoSmmv58t=2FDGOslVwOWgqpswI8bNipkef?= =?us-ascii?Q?XXQaI3xEL4Tfi=2FDFCu2LyLc72PQ6GVuyVLGPDQV?= =?us-ascii?Q?rgEdE5IDIrkq7EWGEXkY+D87JWXjGJglXWgd9mI?= =?us-ascii?Q?gk4D8RC6uO2yK7HrI=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 97003 Subject: [ruby-core:97003] [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 meta@vmeta.jp (Koichiro Iwao). Status changed from Closed to Feedback File buildtest-with-gmake-and-j-option.log added File buildtest-with-bmake-and-j-option.log added It is not fixed yet for me, too. I attach ruby-{2.6.5,2.7.0} build result with {BSD,GNU} make. ---------------------------------------- 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-84092 * Author: meta@vmeta.jp (Koichiro Iwao) * Status: Feedback * Priority: Normal * Assignee: * Target version: * ruby -v: 2.6.5 * Backport: 2.5: REQUIRED, 2.6: REQUIRED ---------------------------------------- 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) buildtest-with-bmake-and-j-option.log (202 KB) buildtest-with-bmake-and-j-option.log (101 KB) buildtest-with-gmake-and-j-option.log (220 KB) -- https://bugs.ruby-lang.org/