[Mesa-dev] clover: Fix build after llvm r325155 and r325160
Dieter Nützel
Dieter at nuetzel-hh.de
Tue Feb 20 23:50:07 UTC 2018
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)
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
More information about the mesa-dev
mailing list