On Thu, Jan 17, 2019 at 08:39:24PM -0500, Brad Smith wrote:
> On Fri, Jan 18, 2019 at 09:52:14AM +1100, Jonathan Gray wrote:
> > On Thu, Jan 17, 2019 at 11:48:08AM -0500, Brad Smith wrote:
> > > On Wed, Jan 16, 2019 at 07:19:17PM -0500, Brad Smith wrote:
> > > > Here is a work in progress diff to update the LLVM/Clang port to
> > > > LLVM 7.0.1.
> > > > 
> > > > Code generation is broken at the moment on amd64. I don't know what
> > > > the issue is. Clang crashes in the X86 backend. This only seems to
> > > > affect amd64.
> > > > 
> > > > Any feedback and testing welcome.
> > > 
> > > Thanks to the diff jca@ forwarded over from mortimer@ it resolved the
> > > crashing issue and the other question I had regarding the exact line
> > > of code I was questioning how I merged.
> > > 
> > > Now things appear to be good on amd64.
> > 
> > This doesn't build on amd64 here:
> 
> Local diff playing with base-gcc covered up lldb. I see what happened.
> Someone missed the OpenBSD bits in a big diff June 2018.
> 
> Try this.

This builds on amd64 but breaks building xenocara Mesa 17.3.9 with llvm

ie:

common/ac_nir_to_llvm.c:6415:2: error: implicit declaration of function 
'LLVMAddPromoteMemoryToRegisterPass' is invalid in C99 
[-Werror,-Wimplicit-function-declaration]
        LLVMAddPromoteMemoryToRegisterPass(passmgr);
        ^

Mesa 18.3.2 builds with this llvm 7.0.1 update but updating Mesa
before i386 has switched to lld by default would break the xenocara
build as it requires build-id support in ld for the i965 driver which
ld.bfd doesn't have.

Building Mesa against libLLVM is required to use the radeonsi driver.

Reply via email to