[Mesa-dev] [PATCH v2 3/4] meson: build clover

Francisco Jerez currojerez at riseup.net
Wed Dec 13 21:48:26 UTC 2017


Dylan Baker <dylan at pnwbakers.com> writes:

> Quoting Francisco Jerez (2017-12-13 13:01:29)
>> Jan Vesely <jan.vesely at rutgers.edu> writes:
>> > meson asked for libdrm_amdgpu dependency even though I'm only building clover+r600g driver.
>> > after a bit of fiddling with PATH and PK_CONFIG_PATH to pick up the latest llvm/liblclc
>> > linking failed with:
>> > src/gallium/auxiliary/libgallium.a(gallivm_lp_bld_misc.cpp.o):(.data.rel.ro._ZTI26DelegatingJITMemoryManager[_ZTI26DelegatingJITMemoryManager]+0x10): undefined reference to `typeinfo for llvm::RTDyldMemoryManager'
>> > collect2: error: ld returned 1 exit status
>> >
>> > this looks like it did not pick up the rtti setting from llvm-config:
>> > $ ~/.local/bin/llvm-config --has-rtti
>> > NO
>> > $ ~/.local/bin/llvm-config --cxxflags | grep -o fno-rtti
>> > fno-rtti
>> >
>> > rtti setting is quite messy since clover uses dynamic_cast. I think it
>> > should be OK to only support rtti build of llvm if it's detected at
>> > configure time
>> 
>> Is that any different with autotools?  Clover is not meant to link
>> against an -fno-rtti LLVM, because an LLVM library built in such a way
>> has a non-standard C++ ABI.  Picking up the -fno-rtti flag from
>> llvm-config is not guaranteed to fix anything.  Attempting to do so
>> should probably lead to a build error at configure time...
>
> I can add some logic to detect `-fno-rtti` and error out if you think that's the
> right thing to do.

That would be great, but I wouldn't set it as a requirement for the
meson build, since the autotools build system is lacking the same
feature ;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171213/82daaeb1/attachment.sig>


More information about the mesa-dev mailing list