Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2019 21:35:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 239175] lang/beignet: fails to build with llvm90
Message-ID:  <bug-239175-7141-0BZ8UgOGP0@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-239175-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-239175-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-x11 mailing li=
st
<x11@FreeBSD.org> for maintainer-feedback:
Bug 239175: lang/beignet: fails to build with llvm90
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239175



--- Description ---
$ echo 'DEFAULT_VERSIONS+=3Dllvm=3D-devel' >>${__MAKE_CONF:-/etc/make.conf}
$ make
[...]
backend/src/llvm/llvm_intrinsic_lowering.cpp:80:19: error: no viable conver=
sion
from 'llvm::FunctionCallee' to 'llvm::Constant *'
	Constant* FCache =3D M->getOrInsertFunction(NewFn,
		  ^	   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
backend/src/llvm/llvm_sampler_fix.cpp:85:18: error: no viable conversion fr=
om
'llvm::FunctionCallee' to 'llvm::Value *'
	  Value* samplerCvt =3D
M->getOrInsertFunction("__gen_ocl_sampler_to_int", i32Ty,
I->getOperand(0)->getType());
		 ^=09=20=20=20=20=20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=
~~~~
~~~~~~~
backend/src/llvm/llvm_sampler_fix.cpp:127:18: error: no viable conversion f=
rom
'llvm::FunctionCallee' to 'llvm::Value *'
	  Value* samplerCvt =3D
M->getOrInsertFunction("__gen_ocl_sampler_to_int", i32Ty,
I->getOperand(0)->getType());
		 ^=09=20=20=20=20=20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=
~~~~
~~~~~~~
backend/src/llvm/llvm_profiling.cpp:166:27: error: no matching function for
call to 'cast'
      builder->CreateCall(cast<llvm::Function>(module->getOrInsertFunction(
			  ^~~~~~~~~~~~~~~~~~~~
backend/src/llvm/llvm_device_enqueue.cpp:401:52: error: no matching function
for call to 'cast'
	      CallInst* newCI =3D
builder.CreateCall(cast<llvm::Function>(mod->getOrInsertFunction(
						   ^~~~~~~~~~~~~~~~~~~~
/usr/local/llvm-devel/include/llvm/Support/Casting.h:256:44: note: candidate
function [with X =3D llvm::Function, Y =3D llvm::FunctionCallee] not viable:
expects an l-value for 1st argument
inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
					   ^
/usr/local/llvm-devel/include/llvm/Support/Casting.h:249:1: note: candidate
template ignored: requirement '!is_simple_type<llvm::FunctionCallee>::value'
was not satisfied [with X =3D llvm::Function, Y =3D llvm::FunctionCallee]
cast(const Y &Val) {
^
/usr/local/llvm-devel/include/llvm/Support/Casting.h:263:46: note: candidate
template ignored: could not match 'Y *' against 'llvm::FunctionCallee'
inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
					     ^
/usr/local/llvm-devel/include/llvm/Support/Casting.h:271:1: note: candidate
template ignored: could not match 'unique_ptr<type-parameter-0-1,
default_delete<type-parameter-0-1> >' against 'llvm::FunctionCallee'
cast(std::unique_ptr<Y> &&Val) {
^
/tmp/a/overlay/git-ports/lang/beignet/work/Beignet-1.3.2-Source/backend/src=
/llv
m/llvm_profiling.cpp:188:25:
error: no matching function for call to 'cast'
    builder->CreateCall(cast<llvm::Function>(module->getOrInsertFunction(
			^~~~~~~~~~~~~~~~~~~~
/usr/local/llvm-devel/include/llvm/Support/Casting.h:256:44: note: candidate
function [with X =3D llvm::Function, Y =3D llvm::FunctionCallee] not viable:
expects an l-value for 1st argument
inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
					   ^
/usr/local/llvm-devel/include/llvm/Support/Casting.h:249:1: note: candidate
template ignored: requirement '!is_simple_type<llvm::FunctionCallee>::value'
was not satisfied [with X =3D llvm::Function, Y =3D llvm::FunctionCallee]
cast(const Y &Val) {
^
/usr/local/llvm-devel/include/llvm/Support/Casting.h:263:46: note: candidate
template ignored: could not match 'Y *' against 'llvm::FunctionCallee'
inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
					     ^
/usr/local/llvm-devel/include/llvm/Support/Casting.h:271:1: note: candidate
template ignored: could not match 'unique_ptr<type-parameter-0-1,
default_delete<type-parameter-0-1> >' against 'llvm::FunctionCallee'
cast(std::unique_ptr<Y> &&Val) {
^



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239175-7141-0BZ8UgOGP0>