From owner-freebsd-ports@FreeBSD.ORG Fri Jan 18 17:48:33 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 769F3B41; Fri, 18 Jan 2013 17:48:33 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (mail1.sourcehosting.net [74.205.51.45]) by mx1.freebsd.org (Postfix) with ESMTP id 524D5C23; Fri, 18 Jan 2013 17:48:33 +0000 (UTC) Received: from 24-181-237-39.dhcp.oxfr.ma.charter.com ([24.181.237.39] helo=Gregory-Larkins-iMac.local) by mail1.sourcehosting.net with esmtp (Exim 4.73 (FreeBSD)) (envelope-from ) id 1TwG3J-000ObI-8g; Fri, 18 Jan 2013 12:48:31 -0500 Received: from Gregory-Larkins-iMac.local (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by Gregory-Larkins-iMac.local (Postfix) with ESMTPS id D4B4419625FB; Fri, 18 Jan 2013 12:48:25 -0500 (EST) Message-ID: <50F98AE4.3090409@FreeBSD.org> Date: Fri, 18 Jan 2013 12:48:20 -0500 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Rainer Hurling References: <201301171634.59322.lumiwa@gmail.com> <20130118073715.GA17087@hag.hw.v5d.org> <50F97FB0.9050804@gwdg.de> In-Reply-To: <50F97FB0.9050804@gwdg.de> X-Enigmail-Version: 1.5 X-SA-Exim-Connect-IP: 24.181.237.39 X-SA-Exim-Mail-From: glarkin@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.sourcehosting.net X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC,TVD_RCVD_IP autolearn=no version=3.3.1 Subject: Re: FreeBSD Port: graphics/hugin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail1.sourcehosting.net) Cc: Vasil Dimov , ajtiM , freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2013 17:48:33 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 1/18/13 12:00 PM, Rainer Hurling wrote: > On 18.01.2013 08:37 (UTC+2), Vasil Dimov wrote: >> On Thu, Jan 17, 2013 at 16:34:59 -0600, ajtiM wrote: >>> My system: 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec >>> 4 06:55:39 UTC 2012 >>> root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >>> >>> clang -v: FreeBSD clang version 3.1 (branches/release_31 >>> 156863) 20120523 Target: i386-unknown-freebsd9.0 Thread model: >>> posix >>> >>> I try to update hugin (Chase OpenEXR lib update) with clang but >>> I got an error: >>> >>> >>> In file included from >>> /usr/ports/graphics/hugin/work/hugin-2011.4.0/src/foreign/zthread/src/vanilla/SimpleAtomicCount.cxx:26: >>> >>> /usr/ports/graphics/hugin/work/hugin-2011.4.0/src/foreign/zthread/src/../include/zthread/Guard.h:117:9: >>> error: void function 'createScope' should not return a value >>> [-Wreturn-type] return false; ^ ~~~~~ >>> /usr/ports/graphics/hugin/work/hugin-2011.4.0/src/foreign/zthread/src/../include/zthread/Guard.h:121:5: >>> error: void function 'createScope' should not return a value >>> [-Wreturn-type] return true; ^ ~~~~ 2 errors generated. >>> *** >>> [src/foreign/zthread/src/CMakeFiles/ZThread.dir/AtomicCount.cxx.o] >>> Error code 1 >> [...] >> >> Hello, >> >> Do you have >> >> CC=clang CXX=clang++ CPP=clang-cpp >> >> in your environment, e.g. /etc/make.conf ? >> >> hugin does not seem to compile with clang. I fixed the above >> error but a set of another ones spills out. >> >> Can you try the attached patch which should force it to compile >> with gcc and confirm whether it fixes the problem for you? > > Hi Vasil, > > thanks for the patch for Makefile and > src/foreign/flann/util/logger.h. Both works nice for me on recent > 10.0-CURRENT amd64. > > With USE_GCC=yes the patch uses lang/gcc46. Isn't USE_GCC=any also > sufficient, so we can use systems compiler gcc-4.2.1, if present? > > Rainer > >> The clang compilation issues would better be addressed with the >> hugin authors. >> > > Hi all, The build with clang dies inside of the zthread code included in the hugin distro, and I wonder if it would be fixed with the same patch that I committed to the devel/zthread port this week? Here is the patch file for zthread's Guard.h file: http://svnweb.freebsd.org/ports/head/devel/zthread/files/patch-include__zthread__Guard.h?revision=310556&view=co Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlD5iuMACgkQ0sRouByUApBLDACcC//v9Eh1FarE5hquSOXCJTCW dkQAn28D/1xJ+FytgzRrRgUN3lDiIA6g =mvIm -----END PGP SIGNATURE-----