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

SwitfShader + DXC build failure #780

Open
jaebaek opened this issue Feb 4, 2020 · 0 comments
Open

SwitfShader + DXC build failure #780

jaebaek opened this issue Feb 4, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@jaebaek
Copy link
Contributor

jaebaek commented Feb 4, 2020

We want to test HLSL shaders using SwiftShader.
When I build Amber witht the following command, I met linking errors:

mkdir -p out/SWFT && cd out/SWFT
cmake -GNinja -DAMBER_USE_DXC=true -DAMBER_ENABLE_SWIFTSHADER=TRUE -DAMBER_USE_LOCAL_VULKAN=true ../..
ninja
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:274: undefined reference to `llvm::opt::ArgList::getLastArgValue(llvm::opt::OptSpecifier, llvm::StringRef) const'
/usr/bin/ld: third_party/dxc/lib/libLLVMDxcSupport.a(HLSLOptions.cpp.o): in function `hlsl::options::ReadDxcOpts(llvm::opt::OptTable const*, unsigned int, hlsl::options::MainArgs const&, hlsl::options::DxcOpts&, llvm::raw_ostream&)':
/usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:323: undefined reference to `llvm::opt::OptTable::ParseArgs(llvm::ArrayRef<char const*>, unsigned int&, unsigned int&, unsigned int, unsigned int) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:327: undefined reference to `llvm::opt::ArgList::getLastArgValue(llvm::opt::OptSpecifier, llvm::StringRef) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:341: undefined reference to `llvm::opt::ArgList::getLastArgValue(llvm::opt::OptSpecifier, llvm::StringRef) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:342: undefined reference to `llvm::opt::ArgList::getLastArgValue(llvm::opt::OptSpecifier, llvm::StringRef) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:358: undefined reference to `llvm::opt::ArgList::hasFlag(llvm::opt::OptSpecifier, llvm::opt::OptSpecifier, bool) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:359: undefined reference to `llvm::opt::ArgList::hasFlag(llvm::opt::OptSpecifier, llvm::opt::OptSpecifier, bool) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:372: undefined reference to `llvm::opt::Arg::getAsString[abi:cxx11](llvm::opt::ArgList const&) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:389: undefined reference to `llvm::opt::ArgList::hasFlag(llvm::opt::OptSpecifier, llvm::opt::OptSpecifier, bool) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:390: undefined reference to `llvm::opt::ArgList::getLastArgValue(llvm::opt::OptSpecifier, llvm::StringRef) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:395: undefined reference to `llvm::opt::ArgList::getLastArgValue(llvm::opt::OptSpecifier, llvm::StringRef) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:404: undefined reference to `llvm::opt::ArgList::getLastArg(llvm::opt::OptSpecifier) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:407: undefined reference to `llvm::opt::ArgList::hasFlag(llvm::opt::OptSpecifier, llvm::opt::OptSpecifier, bool) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:410: undefined reference to `llvm::opt::ArgList::getLastArg(llvm::opt::OptSpecifier) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:416: undefined reference to `llvm::opt::ArgList::hasFlag(llvm::opt::OptSpecifier, llvm::opt::OptSpecifier, bool) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:417: undefined reference to `llvm::opt::ArgList::getLastArgValue(llvm::opt::OptSpecifier, llvm::StringRef) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:457: undefined reference to `llvm::opt::ArgList::getLastArgValue(llvm::opt::OptSpecifier, llvm::StringRef) const'
/usr/bin/ld: /usr/local/home/jaebaek/sdb/amber.git/out/SWFT/../../third_party/dxc/lib/DxcSupport/HLSLOptions.cpp:458: undefined reference to `llvm::opt::ArgList::getLastArgValue(llvm::opt::OptSpecifier, llvm::StringRef) const'
...
@jaebaek jaebaek added the bug Something isn't working label Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant