From owner-freebsd-ports@FreeBSD.ORG Tue Mar 24 18:09:21 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A970F1065687 for ; Tue, 24 Mar 2009 18:09:21 +0000 (UTC) (envelope-from mailnull@mips.inka.de) Received: from mail-in-11.arcor-online.net (mail-in-11.arcor-online.net [151.189.21.51]) by mx1.freebsd.org (Postfix) with ESMTP id 5F7128FC0C for ; Tue, 24 Mar 2009 18:09:21 +0000 (UTC) (envelope-from mailnull@mips.inka.de) Received: from mail-in-08-z2.arcor-online.net (mail-in-08-z2.arcor-online.net [151.189.8.20]) by mx.arcor.de (Postfix) with ESMTP id B6DB7E3F07 for ; Tue, 24 Mar 2009 19:09:19 +0100 (CET) Received: from mail-in-03.arcor-online.net (mail-in-03.arcor-online.net [151.189.21.43]) by mail-in-08-z2.arcor-online.net (Postfix) with ESMTP id 9CD7821307F for ; Tue, 24 Mar 2009 19:09:19 +0100 (CET) Received: from lorvorc.mips.inka.de (dslb-092-075-202-031.pools.arcor-ip.net [92.75.202.31]) by mail-in-03.arcor-online.net (Postfix) with ESMTPS id 93F8E2C3135 for ; Tue, 24 Mar 2009 19:09:19 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-03.arcor-online.net 93F8E2C3135 Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.14.3/8.14.3) with ESMTP id n2OI9Jic088865 for ; Tue, 24 Mar 2009 19:09:19 +0100 (CET) (envelope-from mailnull@lorvorc.mips.inka.de) Received: (from mailnull@localhost) by lorvorc.mips.inka.de (8.14.3/8.14.3/Submit) id n2OI9JNn088864 for freebsd-ports@freebsd.org; Tue, 24 Mar 2009 19:09:19 +0100 (CET) (envelope-from mailnull) From: naddy@mips.inka.de (Christian Weisgerber) Date: Tue, 24 Mar 2009 18:09:19 +0000 (UTC) Message-ID: References: <1237901632.1849.19.camel@pav.hide.vol.cz> Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-ports@freebsd.org Subject: Re: HEADS UP multi processor compilations for everyone X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 18:09:22 -0000 Pav Lucistnik wrote: > Ports framework now systematically supports building ports on > multiple processing cores. It is achieved by passing -jX flag to make(1) > running on vendor code. Of course not all ports handle this well, A word of caution: It is quite possible for a port to build fine with -jN and still fail with -jM, where N < M. If it builds fine on a 64-core sparc64, it will build anywhere, but I expect some ports will work fine for, say, -j2 and fail for -j4. Or only fail *sometimes* due to a race. > If you are FreeBSD port maintainer: > > Nothing changes for you, if you don't want. If you want to enable the > use of multiple cores in your port, add MAKE_JOBS_SAFE=yes to a block > somewhere below dependency declarations. What is the goal here? Should all ports that can be safely built in parallel eventually have MAKE_JOBS_SAFE=yes? Or should we not bother with ports where the gain is likely to be minimal? -- Christian "naddy" Weisgerber naddy@mips.inka.de