From owner-freebsd-ports@freebsd.org Wed Sep 13 11:05:09 2017 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 313DBE1AA75 for ; Wed, 13 Sep 2017 11:05:09 +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 C3DDF8334B for ; Wed, 13 Sep 2017 11:05:08 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from 124-169-212-207.dyn.iinet.net.au (HELO leader.local) ([124.169.212.207]) by ipmail07.adl2.internode.on.net with ESMTP; 13 Sep 2017 20:35:07 +0930 To: FreeBSD-ports From: Shane Ambler Subject: Issues between openmp and llvm Message-ID: Date: Wed, 13 Sep 2017 20:35:05 +0930 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-AU Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2017 11:05:09 -0000 I am testing an update to graphics/blender and seeing if I can use devel/openmp as a dependency to prevent forcing the choice of compiler. This works fine when openmp is pre-installed but fails if llvm[40|devel] is installed before checking if libomp exists. As the copy of libomp.so installed by llvm is found, devel/openmp does not get installed. > ... libomp.so - found (/usr/local/llvm-devel/lib/libomp.so) The issue is that the build then fails because cc/ld is looking for openmp files in /usr/local where they should be installed. This can fail on the host system as well as in poudriere. In poudriere it only fails if blenders CYCLESOSL option is enabled which now installs llvm40 before checking for libomp.so. -- FreeBSD - the place to B...Software Developing Shane Ambler