From owner-freebsd-ports@freebsd.org Tue Jul 21 08:36:25 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 88B6C9A7794 for ; Tue, 21 Jul 2015 08:36:25 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 732FC1A52 for ; Tue, 21 Jul 2015 08:36:25 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: by mailman.ysv.freebsd.org (Postfix) id 71BF99A7792; Tue, 21 Jul 2015 08:36:25 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 714D69A7791 for ; Tue, 21 Jul 2015 08:36:25 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by mx1.freebsd.org (Postfix) with ESMTP id D81431A51; Tue, 21 Jul 2015 08:36:24 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp14-2-93-217.lns21.adl6.internode.on.net (HELO leader.local) ([14.2.93.217]) by ipmail07.adl2.internode.on.net with ESMTP; 21 Jul 2015 18:06:17 +0930 Message-ID: <55AE0474.5050207@ShaneWare.Biz> Date: Tue, 21 Jul 2015 18:06:04 +0930 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Dennis Glatting , Brooks Davis CC: ports@freebsd.org Subject: Re: Does OpenMP (iomp5) work for clang-devel? References: <1437439738.57135.5.camel@pki2.com> <20150721010727.GA64147@spindle.one-eyed-alien.net> <1437442196.57135.13.camel@pki2.com> In-Reply-To: <1437442196.57135.13.camel@pki2.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2015 08:36:25 -0000 On 21/07/2015 10:59, Dennis Glatting wrote: > On Tue, 2015-07-21 at 01:07 +0000, Brooks Davis wrote: >> On Mon, Jul 20, 2015 at 05:48:58PM -0700, Dennis Glatting wrote: >>> I can't seem to get this working and it appears not to emit code. I have >>> libiomp5 installed and I compile specifying: >>> >>> clang++-devel -fopenmp=libiomp5 ... >>> >>> And the compiler says: >>> >>> clang: warning: argument unused during compilation: '-fopenmp=libiomp5' That should be just -fopenmp From http://blog.llvm.org/2015/05/openmp-support_22.html To enable OpenMP, just add ‘-fopenmp’ to the command line and provide paths to OpenMP headers and library with ‘-I -L ’. >> The most recent clang-devel port doesn't include the bits to make iomp >> support automatic (it came not long after the update). I'm working on >> a update, but the ability to build clang and llvm separately appears to >> have been broken quite badly so it's taking a while and the only port to >> install will be devel/llvm-devel. That will be great, been waiting for this. -- FreeBSD - the place to B...Software Developing Shane Ambler