Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jan 2013 12:48:20 -0500
From:      Greg Larkin <glarkin@FreeBSD.org>
To:        Rainer Hurling <rhurlin@gwdg.de>
Cc:        Vasil Dimov <vd@FreeBSD.org>, ajtiM <lumiwa@gmail.com>, freebsd-ports@freebsd.org
Subject:   Re: FreeBSD Port: graphics/hugin
Message-ID:  <50F98AE4.3090409@FreeBSD.org>
In-Reply-To: <50F97FB0.9050804@gwdg.de>
References:  <201301171634.59322.lumiwa@gmail.com> <20130118073715.GA17087@hag.hw.v5d.org> <50F97FB0.9050804@gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50F98AE4.3090409>