Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2020 01:53:55 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r536666 - head/devel/intel-graphics-compiler
Message-ID:  <202005270153.04R1rtOs048336@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Wed May 27 01:53:54 2020
New Revision: 536666
URL: https://svnweb.freebsd.org/changeset/ports/536666

Log:
  devel/intel-graphics-compiler: unbreak on -CURRENT
  
  -CURRENT now has Clang 10.0.1 and FreeBSD 12.2 may inherit it but
  FreeBSD 11.4 is likely to keep Clang 10.0.0.
  
  In file included from IGC/GenISAIntrinsics/GenIntrinsics.cpp:28:
  In file included from IGC/Compiler/CodeGenPublic.h:44:
  In file included from IGC/Compiler/CISACodeGen/helper.h:49:
  In file included from IGC/Compiler/MetaDataApi/MetaDataApi.h:31:
  In file included from IGC/Compiler/MetaDataApi/MetaDataApiUtils.h:30:
  IGC/Compiler/MetaDataApi/MetaDataValue.h:82:20: error: cannot initialize return object of type 'llvm::MDNode *' with an lvalue of type 'llvm::Metadata *'
              return m_pNode;
                     ^~~~~~~
  IGC/Compiler/MetaDataApi/MetaDataValue.h:260:23: error: assigning to 'llvm::Metadata *' from incompatible type 'llvm::Value *'
              m_pNode = pNode;
                        ^~~~~
  IGC/Compiler/MetaDataApi/MetaDataValue.h:270:18: error: no viable overloaded '='
              m_id = name;
              ~~~~ ^ ~~~~
  IGC/Compiler/MetaDataApi/MetaDataValue.h:41:11: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'const char *' to 'const IGC::MetaDataValue<std::__1::basic_string<char>, IGC::MDValueTraits<std::string, void> >' for 1st argument
      class MetaDataValue
            ^
  IGC/Compiler/MetaDataApi/MetaDataValue.h:41:11: note: candidate function (the implicit move assignment operator) not viable: no known conversion from 'const char *' to 'IGC::MetaDataValue<std::__1::basic_string<char>, IGC::MDValueTraits<std::string, void> >' for 1st argument
      class MetaDataValue
            ^
  IGC/Compiler/MetaDataApi/MetaDataValue.h:278:18: error: no viable overloaded '='
              m_id = name.c_str();
              ~~~~ ^ ~~~~~~~~~~~~
  IGC/Compiler/MetaDataApi/MetaDataValue.h:41:11: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'const std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::value_type *' (aka 'const char *') to 'const IGC::MetaDataValue<std::__1::basic_string<char>, IGC::MDValueTraits<std::string, void> >' for 1st argument
      class MetaDataValue
            ^
  IGC/Compiler/MetaDataApi/MetaDataValue.h:41:11: note: candidate function (the implicit move assignment operator) not viable: no known conversion from 'const std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::value_type *' (aka 'const char *') to 'IGC::MetaDataValue<std::__1::basic_string<char>, IGC::MDValueTraits<std::string, void> >' for 1st argument
      class MetaDataValue
            ^
  
  Reported by:	pkg-fallout

Modified:
  head/devel/intel-graphics-compiler/Makefile   (contents, props changed)

Modified: head/devel/intel-graphics-compiler/Makefile
==============================================================================
--- head/devel/intel-graphics-compiler/Makefile	Wed May 27 00:24:40 2020	(r536665)
+++ head/devel/intel-graphics-compiler/Makefile	Wed May 27 01:53:54 2020	(r536666)
@@ -26,7 +26,7 @@ GH_ACCOUNT=	intel
 CFLAGS+=	-Wno-macro-redefined # __fastcall
 PLIST_SUB=	ARCH_SUFX=${ARCH:S/i386/32/:S/amd//:S/x86_//}
 
-.if exists(/usr/lib/clang/10.0.0) && ${CXX} == c++
+.if (exists(/usr/lib/clang/10.0.0) || exists(/usr/lib/clang/10.0.1)) && ${CXX} == c++
 # https://github.com/intel/intel-graphics-compiler/issues/126
 BUILD_DEPENDS+=	clang++90:devel/llvm90
 USES:=		${USES:Ncompiler*}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005270153.04R1rtOs048336>