[Mesa-dev] clover: Fix build after llvm r325155 and r325160
Jan Vesely
jan.vesely at rutgers.edu
Wed Feb 21 00:17:35 UTC 2018
On Wed, 2018-02-21 at 00:50 +0100, Dieter Nützel wrote:
> Thank you Jan,
>
> much appreciated, but now I get this:
>
> LLVM-CC amdgcn--/lib/math/half_exp.cl.tahiti.bc
> ./amdgcn/lib/workitem/get_global_offset.cl:6:3: error: casting
> '__attribute__((address_space(4)))
> unsigned char *' to type '__attribute__((address_space(2))) uint
> *' (aka
> '__attribute__((address_space(2))) unsigned int *') changes
> address space of pointer
> (__attribute__((address_space(2))) uint *)
> ^
> 1 error generated.
> make: *** [Makefile:6309:
> amdgcn--/lib/workitem/get_global_offset.cl.tahiti.bc] Fehler 1
> make: *** Es wird auf noch nicht beendete Prozesse gewartet....
> ./amdgcn/lib/workitem/get_work_dim.cl:6:3: error: casting
> '__attribute__((address_space(4)))
> unsigned char *' to type '__attribute__((address_space(2))) uint
> *' (aka
> '__attribute__((address_space(2))) unsigned int *') changes
> address space of pointer
> (__attribute__((address_space(2))) uint *)
> ^
> 1 error generated.
> make: *** [Makefile:6336:
> amdgcn--/lib/workitem/get_work_dim.cl.tahiti.bc] Fehler 1
>
> LLVM git taken some seconds ago
> (#99eb4ff05c078ba341c99a5da2d003b346bd092c)
amdgcn backend switched GDS and const address space numbers (for
whatever reason, writing sensible and explanatory commit messages is
apparently frowned upon at AMD).
you'll need at least the 3 gcn patches from an earlier build fix
series[0].
Jan
[0] http://lists.llvm.org/pipermail/libclc-dev/2018-February/002796.htm
l
>
> Dieter
>
> Am 19.02.2018 23:21, schrieb Jan Vesely:
> > On Fri, 2018-02-16 at 05:49 +0100, Dieter Nützel wrote:
> > > Hello Jan,
> > >
> > > something semilar is needed fro libclc, too.
> > >
> > > LLVM-CC nvptx64--nvidiacl/lib/geometric/dot.cl.bc
> > > ./utils/prepare-builtins.cpp:108:3: error: no matching function for
> > > call
> > > to 'WriteBitcodeToFile'
> > > WriteBitcodeToFile(M, Out->os());
> > > ^~~~~~~~~~~~~~~~~~
> > > /usr/local/include/llvm/Bitcode/BitcodeWriter.h:129:8: note: candidate
> > > function not viable: no known
> > > conversion from 'llvm::Module *' to 'const llvm::Module' for
> > > 1st
> > > argument; dereference the
> > > argument with *
> > > void WriteBitcodeToFile(const Module &M, raw_ostream &Out,
> > > ^
> >
> > patch is now posted at:
> > https://lists.llvm.org/pipermail/libclc-dev/2018-February/002800.html
> >
> > Jan
> >
> > >
> > > Greetings,
> > > Dieter
--
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180220/3177e50a/attachment.sig>
More information about the mesa-dev
mailing list