Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Nov 2017 14:01:39 +1030
From:      Shane Ambler <FreeBSD@ShaneWare.Biz>
To:        Alexey Dokuchaev <danfe@nsu.ru>, brooks@freebsd.org
Cc:        ports@freebsd.org
Subject:   Re: RTTI support in devel/llvm40 (and maybe other llvm ports)
Message-ID:  <0df1a31d-db40-3b56-3be9-c3c180746736@ShaneWare.Biz>
In-Reply-To: <20171110070748.GA27570@regency.nsu.ru>
References:  <20171110070748.GA27570@regency.nsu.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/11/2017 17:37, Alexey Dokuchaev wrote:
> Hi Brooks,
> 
> I've just found out that our `devel/llvm40' port comes without
> -DLLVM_ENABLE_RTTI=ON on the CMAKE_ARGS.  This is a regression
> from e.g. 3.4 times when it was enabled by default.
> 
> The problem is that RTTI support is required by some consumers,
> e.g. `graphics/openshadinglanguage' and `graphics/appleseed'
> (cf. https://github.com/appleseedhq/appleseed/issues/1625),
> but I cannot enable RTTI in those ports unless I enable it in
> LLVM port(s) first.
> 

It is probably more a case of llvm sets rtti off by default even though
the llvm ports < v3.8 have enabled it.

Previous versions of osl had rtti enabled to match the llvm setting.
I disabled rtti in osl when switching to llvm40 only to get it to work.
No changes to graphics/blender were needed.

While I know appleseed fails when rtti is disabled directly in CXXFLAGS,
maybe cmake can detect the use of rtti in llvm (or offer an option) and
adjust to suit, or just add -fno-rtti only for the osl files.

-- 
FreeBSD - the place to B...Software Developing

Shane Ambler




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0df1a31d-db40-3b56-3be9-c3c180746736>