From owner-freebsd-ports@freebsd.org Mon Jan 2 18:23:17 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 48C63C9C390 for ; Mon, 2 Jan 2017 18:23:17 +0000 (UTC) (envelope-from hrs@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 24FEC1A45 for ; Mon, 2 Jan 2017 18:23:17 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 215FDC9C38F; Mon, 2 Jan 2017 18:23:17 +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 20EF8C9C38E for ; Mon, 2 Jan 2017 18:23:17 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper.allbsd.org [IPv6:2001:2f0:104:e001::32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.allbsd.org", Issuer "RapidSSL SHA256 CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 868591A44; Mon, 2 Jan 2017 18:23:16 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail-d.allbsd.org (p2027-ipbf1605funabasi.chiba.ocn.ne.jp [123.225.191.27]) (authenticated bits=56) by mail.allbsd.org (8.15.2/8.15.2) with ESMTPSA id v02IMpE0076885 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) (Client CN "/OU=GT07882699/OU=See+20www.rapidssl.com/resources/cps+20+28c+2915/OU=Domain+20Control+20Validated+20-+20RapidSSL+28R+29/CN=*.allbsd.org", Issuer "/C=US/O=GeoTrust+20Inc./CN=RapidSSL+20SHA256+20CA+20-+20G3"); Tue, 3 Jan 2017 03:23:11 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from alph.allbsd.org (alph.allbsd.org [192.168.0.10]) by mail-d.allbsd.org (8.15.2/8.15.2) with ESMTPS id v02ILZrc029456 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 3 Jan 2017 03:21:35 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.allbsd.org (8.15.2/8.15.2) with ESMTPA id v02ILYrS029452; Tue, 3 Jan 2017 03:21:35 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Tue, 03 Jan 2017 03:21:26 +0900 (JST) Message-Id: <20170103.032126.1717605790407508097.hrs@allbsd.org> To: jbeich@freebsd.org Cc: starikarp@yandex.com, ports@freebsd.org Subject: Re: libwraster From: Hiroki Sato In-Reply-To: <20170101195127.6C0CB3FBF@freefall.freebsd.org> References: <20170102.032931.2199837842430250667.hrs@allbsd.org> <20170101195127.6C0CB3FBF@freefall.freebsd.org> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart0(Tue_Jan__3_03_21_26_2017_988)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.99 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-4.4.3 (mail.allbsd.org [133.31.130.32]); Tue, 03 Jan 2017 03:23:12 +0900 (JST) X-Spam-Status: No, score=-99.9 required=13.0 tests=CONTENT_TYPE_PRESENT, QENCPTR1,USER_IN_WHITELIST autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on gatekeeper.allbsd.org 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: Mon, 02 Jan 2017 18:23:17 -0000 ----Security_Multipart0(Tue_Jan__3_03_21_26_2017_988)-- Content-Type: Multipart/Mixed; boundary="--Next_Part(Tue_Jan__3_03_21_26_2017_167)--" Content-Transfer-Encoding: 7bit ----Next_Part(Tue_Jan__3_03_21_26_2017_167)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit jbeich@freebsd.org (Jan Beich) wrote in <20170101195127.6C0CB3FBF@freefall.freebsd.org>: jb> Hiroki Sato writes: jb> jb> > I did not able to reproduce it even if ImageMagick was built with the jb> > OpenMP option. I guess your environment has another issue which jb> > pulls -lomp into the build process. jb> jb> Clang >= 3.7 no longer ignores -fopenmp which now requires libomp.so jb> from devel/openmp (for base compiler) or devel/llvm* built with OPENMP=on. jb> jb> For example: jb> 1. Use FreeBSD >= 11.0 jb> 2. Install graphics/ImageMagick with OPENMP=on jb> 3. Deinstall devel/openmp (just in case) jb> 4. Build the port with default compiler jb> jb> The obvious fix is teach ImageMagick to not pollute namespace as nothing jb> in its public API uses #pragma omp or omp_ symbols. So is the attached patch safe to avoid this? -- Hiroki ----Next_Part(Tue_Jan__3_03_21_26_2017_167)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ImageMagick.20170103-1.diff" Index: graphics/ImageMagick/files/patch-configure =================================================================== --- graphics/ImageMagick/files/patch-configure (nonexistent) +++ graphics/ImageMagick/files/patch-configure (working copy) @@ -0,0 +1,10 @@ +--- configure.orig 2017-01-03 02:07:28.432298000 +0900 ++++ configure 2017-01-03 02:09:38.248392000 +0900 +@@ -11691,7 +11691,6 @@ + + + CFLAGS="$OPENMP_CFLAGS $CFLAGS" +-MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" + + if test "$enable_openmp" != no; then + if test "$ac_cv_prog_c_openmp" != 'unsupported'; then Property changes on: graphics/ImageMagick/files/patch-configure ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property ----Next_Part(Tue_Jan__3_03_21_26_2017_167)---- ----Security_Multipart0(Tue_Jan__3_03_21_26_2017_988)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEABECAAYFAlhqmiYACgkQTyzT2CeTzy3/UQCgkTRnZuIt/Do1PJkE1b7O4W5V WCsAnRuIjrQZpOHUIwuIDEjlncuMcmoz =CIwR -----END PGP SIGNATURE----- ----Security_Multipart0(Tue_Jan__3_03_21_26_2017_988)----