Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Dec 2017 17:03:42 +0000
From:      David Chisnall <theraven@FreeBSD.org>
To:        Tijl Coosemans <tijl@FreeBSD.org>
Cc:        Alexey Dokuchaev <danfe@FreeBSD.org>, Yuri <yuri@freebsd.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r457438 - head/devel/ispc
Message-ID:  <BA0983F3-25F7-4777-AC98-29295F5E95C8@FreeBSD.org>
In-Reply-To: <20171228175548.1cce8ada@kalimero.tijl.coosemans.org>
References:  <201712280506.vBS56ZSj011894@repo.freebsd.org> <20171228071400.GA42910@FreeBSD.org> <a5b19d77-4a12-b11f-98aa-ffc94a6037e6@freebsd.org> <20171228133631.GB61460@FreeBSD.org> <20171228164809.GA33755@FreeBSD.org> <20171228175548.1cce8ada@kalimero.tijl.coosemans.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 28 Dec 2017, at 16:55, Tijl Coosemans <tijl@FreeBSD.org> wrote:
>=20
> On Thu, 28 Dec 2017 16:48:09 +0000 Alexey Dokuchaev =
<danfe@FreeBSD.org> wrote:
>> On Thu, Dec 28, 2017 at 01:36:31PM +0000, Alexey Dokuchaev wrote:
>>> On Thu, Dec 28, 2017 at 01:29:20AM -0800, Yuri wrote: =20
>>>> On 12/27/17 23:14, Alexey Dokuchaev wrote: =20
>>>>> But just couple of days ago X.org/Mesa had switched to 5.0, and
>>>>> I'm not sure what to do about this yet. =20
>>>>=20
>>>> Please feel free to further update ISPC's clang dependency if you =
feel
>>>> this is needed for embree. =20
>>>=20
>>> Yes, that's probably the most straight way forward.  I'm now =
(re)building
>>> all the ports involved (that might take some time on my slow =
hardware) to
>>> verify that CLANG_VERSION=3D50 does not cause regressions (vs. 40). =20=

>>=20
>> We have a problem building `devel/ispc' againt LLVM 5.0:
>>  ...
>>  /usr/local/llvm50/lib/libLLVMSupport.a(Signals.cpp.o): In function =
`llvm::sys::PrintStackTrace(llvm::raw_ostream&)':
>>  =
/work/a/ports/devel/llvm50/work/llvm-5.0.0.src/lib/Support/Signals.cpp:(.t=
ext+0x20e0): undefined reference to `backtrace'
>>  clang-5.0: error: linker command failed with exit code 1 (use -v to =
seeinvocation)
>>=20
>> It builds fine against LLVM 4.0.  Anyone got ideas (I'm too drunk to =
debug
>> this myself now) how do we proceed from here?
>=20
> "backtrace" is provided by libexecinfo.

Note that recent versions of LLVM added a --system-libs flag to =
llvm-config.  On FreeBSD, this provides the relevant linker flags for =
adding libexecinfo.  Older projects may not have added this to their =
build systems and will find that things mostly work on Linux (I don=E2=80=99=
t think it adds anything for the most common build configurations).  The =
correct fix is likely to add this in the same place that they do =
llvm-config --libs --ldflags or similar.

David




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA0983F3-25F7-4777-AC98-29295F5E95C8>