From owner-freebsd-ports@FreeBSD.ORG Tue Aug 21 09:25:33 2012 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 27DFB106566C for ; Tue, 21 Aug 2012 09:25:33 +0000 (UTC) (envelope-from andrew.w.nosenko@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9A2D08FC0A for ; Tue, 21 Aug 2012 09:25:32 +0000 (UTC) Received: by lbbgg13 with SMTP id gg13so967930lbb.13 for ; Tue, 21 Aug 2012 02:25:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=SjPpdWhHFDX/dUzY562PEtbXP/htBDo4JRE88qoKgmc=; b=XmF0Nr/qGBaOiNurSrB3SqzGjI1EiBtsy13FhqQB9K/3R8BpFrs/YK5cS+JSKHEaVY VcP+QJ/WVH3QXSNT58RT+QEnZXt4NO/ziKvh5c5xFzC/k8SbiOX579UKUMp5jHERTaP5 vUMf9Qgc9qcXFRF480vGZU3TSlcB5icK1WgP+ZV4WF26qEpcgYQCjyhVX9Ske62aXVE6 7kVfVYdZp9p60QK/jzoSU3DE6vR1AcLCv4pvgqLTzcLCydz675oKssOGVlh+XDY+0HzZ IBZR9nD2c55AjnJN8TB5Athx+qSIs0v21DaqUemn8ycUNvRiiFls4mxG0CesQ0EbDcl+ jGJg== MIME-Version: 1.0 Received: by 10.112.24.229 with SMTP id x5mr7458093lbf.23.1345541130622; Tue, 21 Aug 2012 02:25:30 -0700 (PDT) Received: by 10.112.20.163 with HTTP; Tue, 21 Aug 2012 02:25:30 -0700 (PDT) In-Reply-To: <5032925C.4040604@zedat.fu-berlin.de> References: <50327A9C.5040103@zedat.fu-berlin.de> <50328AF8.60804@infracaninophile.co.uk> <5032925C.4040604@zedat.fu-berlin.de> Date: Tue, 21 Aug 2012 12:25:30 +0300 Message-ID: From: "Andrew W. Nosenko" To: "O. Hartmann" Content-Type: text/plain; charset=ISO-8859-1 Cc: Ports FreeBSD Subject: Re: pkg(ng)/portupgrade-devel: does not respect setting of USE_GCC= 4.6+ 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, 21 Aug 2012 09:25:33 -0000 On Mon, Aug 20, 2012 at 10:39 PM, O. Hartmann wrote: > I'm pretty sure, that the last time I updated port math/fftw3 I wanted > option OpenMP enabled so I declared "USE_GCC=4.6+" in make.conf. Later, > also working!, I excluded all these user definitions into an external > file called ports.conf located in /usr/local/etc (I like this clean > separation of OS and user messes ;-) ). Suddenly it doesn't work > anymore. There were changes in several Mk files located in /usr/ports/Mk. Beware! Even if you will be able to force gcc-4.6 to be used and thus obtain OpenMP-3.1 at the compilation stage, the libgomp.so.1, which will be used at run-time, will be OpenMP-3.0 from the base gcc-4.2 (/usr/lib/libgomp.so.1 on my FreeBSD-8.0 system). Also, as a bonus, you may be exposed to ancient bugs from the gcc-4.2 openmp implementation. For me, personally, it is memory leak as described in http://gcc.gnu.org/ml/gcc/2009-05/msg00427.html Fixed in gcc-4.3, but gcc-4.3 never was nor will be in base. Thus... For obtain the proper openmp you will either limit yourself to openmp-3.0 from gcc-4.2 and workaround known bugs, or make a black magic dance for override and "unsteal" the libgomp (e.g. using libmap.conf) and have maintenance problem every time when gcc version changes (and, therefore, changes the directory name, where gcc libraries live). -- Andrew W. Nosenko