Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build with Clang 10.0 #126

Closed
jbeich opened this issue Feb 26, 2020 · 1 comment
Closed

Fails to build with Clang 10.0 #126

jbeich opened this issue Feb 26, 2020 · 1 comment
Assignees

Comments

@jbeich
Copy link
Contributor

jbeich commented Feb 26, 2020

$ export CC=clang10 CXX=clang++10
$ cmake -GNinja /path/to/intel-graphics-compiler
$ ninja
[...]
In file included from IGC/Compiler/CISACodeGen/PreRAScheduler.cpp:37:
In file included from IGC/Compiler/CISACodeGen/PreRAScheduler.hpp:29:
In file included from IGC/Compiler/CISACodeGen/ShaderCodeGen.hpp:28:
In file included from IGC/Compiler/CISACodeGen/CVariable.hpp:28:
In file included from IGC/Compiler/CISACodeGen/CISABuilder.hpp:27:
In file included from IGC/Compiler/CISACodeGen/CISACodeGen.h:27:
In file included from IGC/Compiler/CodeGenPublic.h:43:
In file included from IGC/Compiler/CISACodeGen/helper.h:50:
In file included from IGC/Compiler/MetaDataApi/MetaDataApi.h:31:
In file included from IGC/Compiler/MetaDataApi/MetaDataApiUtils.h:29:
IGC/Compiler/MetaDataApi/MetaDataValue.h:81: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:259:23: error: assigning to 'llvm::Metadata *' from incompatible type 'llvm::Value *'
            m_pNode = pNode;
                      ^~~~~
IGC/Compiler/MetaDataApi/MetaDataValue.h:269:18: error: no viable overloaded '='
            m_id = name;
            ~~~~ ^ ~~~~
IGC/Compiler/MetaDataApi/MetaDataValue.h:40: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:40: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:277:18: error: no viable overloaded '='
            m_id = name.c_str();
            ~~~~ ^ ~~~~~~~~~~~~
IGC/Compiler/MetaDataApi/MetaDataValue.h:40: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:40: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
          ^
4 errors generated.

http://package18.nyi.freebsd.org/data/headamd64244251-default/2020-02-24_21h29m01s/logs/errors/intel-graphics-compiler-1.0.3342.log

@lwesiers lwesiers self-assigned this Mar 17, 2020
@jbeich
Copy link
Contributor Author

jbeich commented Dec 9, 2020

Fixed by c94066f.

@jbeich jbeich closed this as completed Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants