From owner-freebsd-stable@freebsd.org Fri Jul 24 21:18:43 2015 Return-Path: Delivered-To: freebsd-stable@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 368F29AA1E5 for ; Fri, 24 Jul 2015 21:18:43 +0000 (UTC) (envelope-from truckman@FreeBSD.org) 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 22F461FEA for ; Fri, 24 Jul 2015 21:18:43 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2209F9AA1E4; Fri, 24 Jul 2015 21:18:43 +0000 (UTC) Delivered-To: stable@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 219CA9AA1E3 for ; Fri, 24 Jul 2015 21:18:43 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 07DB51FE9 for ; Fri, 24 Jul 2015 21:18:42 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id t6OLFSEC016398; Fri, 24 Jul 2015 14:15:33 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <201507242115.t6OLFSEC016398@gw.catspoiler.org> Date: Fri, 24 Jul 2015 14:15:28 -0700 (PDT) From: Don Lewis Subject: Re: MFC r282973 (disable libgomp build) and r283060 (disable libgcov build)? To: mazhe@alkumuna.eu cc: stable@FreeBSD.org In-Reply-To: <20150724071917.6a1fd3a3@freedom> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2015 21:18:43 -0000 On 24 Jul, Matthieu Volat wrote: > On Mon, 20 Jul 2015 14:03:01 -0700 (PDT) > Don Lewis wrote: > >> Should r282973 and r283060 be MFCed to FreeBSD 10? On amd64 and i386, >> which use clang as their base compiler and don't have gcc in base by >> default, the math/scilab port uses clang for cc and c++ compilation, >> but finds /usr/include/omp.h (and links to libgomp from lang/gcc). >> The build succeeds, but I suspect this may not run properly. > > Does it mean the door to an openmp-enabled cc in base is closed? That is probably true for FreeBSD 10, since clang 3.4 in base doesn't support OpenMP. Even though and libgomp are present in FreeBSD 10, and using base clang to compile the test program here succeeds, the resulting executable only runs one thread. There is probably more hope for FreeBSD 11 if the runtime is imported, since clang 3.6 in base there at least knows about the -fopenmp option. > I'm not fond of lang/gcc as openmp "provider": if a port use c++, it > will cause linkage headaches with libc++ (I never was able to have > graphics/darktable working, for example). You might want to try out lang/clang-devel with devel/libiomp5-devel. See this thread on freebsd-ports@ .