You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting several compilation errors during the build. I have followed the steps exactly as mentioned in the README.
/home/nqx/.conan/data/llvm/17.0.5-0/_/_/package/fa4e83519b8c7ca96c21cb33c75ecc7a417721c3/include/llvm/Support/Error.h:1249: error: undefined reference to 'llvm::Twine::str() const' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/targets/systems/mock/MockTarget.cpp:282: error: undefined reference to 'llvm::sys::getDefaultTargetTriple()' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/targets/systems/mock/MockTarget.cpp:285: error: undefined reference to 'llvm::TargetRegistry::lookupTarget(llvm::StringRef, std::string&)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/targets/systems/mock/MockTarget.cpp:294: error: undefined reference to 'llvm::SubtargetFeatures::getString() const' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/include/Conversion/QUIRToLLVM/QUIRToLLVM.h:85: error: undefined reference to 'mlir::FrozenRewritePatternSet::FrozenRewritePatternSet(mlir::RewritePatternSet&&, llvm::ArrayRef<std::string>, llvm::ArrayRef<std::string>)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/targets/systems/mock/Conversion/QUIRToStandard/QUIRToStandard.cpp:293: error: undefined reference to 'mlir::FrozenRewritePatternSet::FrozenRewritePatternSet(mlir::RewritePatternSet&&, llvm::ArrayRef<std::string>, llvm::ArrayRef<std::string>)' /home/nqx/.conan/data/llvm/17.0.5-0/_/_/package/fa4e83519b8c7ca96c21cb33c75ecc7a417721c3/include/llvm/Support/CommandLine.h:652: error: undefined reference to 'vtable for llvm::cl::OptionValue<std::string>' /usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function /home/nqx/.conan/data/llvm/17.0.5-0/_/_/package/fa4e83519b8c7ca96c21cb33c75ecc7a417721c3/include/llvm/Support/CommandLine.h:1488: error: undefined reference to 'vtable for llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >' /usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function /home/nqx/.conan/data/llvm/17.0.5-0/_/_/package/fa4e83519b8c7ca96c21cb33c75ecc7a417721c3/include/llvm/Support/CommandLine.h:1158: error: undefined reference to 'vtable for llvm::cl::parser<std::string>' /usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function /home/nqx/.conan/data/llvm/17.0.5-0/_/_/package/fa4e83519b8c7ca96c21cb33c75ecc7a417721c3/include/llvm/Support/CommandLine.h:1158: error: undefined reference to 'vtable for llvm::cl::parser<std::string>' /usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Frontend/OpenQASM3/OpenQASM3Frontend.cpp:105: error: undefined reference to 'llvm::StringRef::lower() const' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Config/QSSConfig.cpp:326: error: undefined reference to 'mlir::DialectPlugin::load(std::string const&)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Config/QSSConfig.cpp:336: error: undefined reference to 'mlir::PassPlugin::load(std::string const&)' /home/nqx/.conan/data/llvm/17.0.5-0/_/_/package/fa4e83519b8c7ca96c21cb33c75ecc7a417721c3/include/llvm/Support/CommandLine.h:652: error: undefined reference to 'vtable for llvm::cl::OptionValue<std::string>' /usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function /home/nqx/.conan/data/llvm/17.0.5-0/_/_/package/fa4e83519b8c7ca96c21cb33c75ecc7a417721c3/include/llvm/Support/CommandLine.h:1226: error: undefined reference to 'llvm::cl::parser<std::string>::printOptionDiff(llvm::cl::Option const&, llvm::StringRef, llvm::cl::OptionValue<std::string> const&, unsigned long) const' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Dialect/QUIR/Transforms/BreakReset.cpp:159: error: undefined reference to 'mlir::FrozenRewritePatternSet::FrozenRewritePatternSet(mlir::RewritePatternSet&&, llvm::ArrayRef<std::string>, llvm::ArrayRef<std::string>)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Dialect/QUIR/Transforms/ReorderMeasurements.cpp:236: error: undefined reference to 'mlir::FrozenRewritePatternSet::FrozenRewritePatternSet(mlir::RewritePatternSet&&, llvm::ArrayRef<std::string>, llvm::ArrayRef<std::string>)' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::Pass::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::handleOccurrence(unsigned int, llvm::StringRef, llvm::StringRef)' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::Pass::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::getValueExpectedFlagDefault() const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::Pass::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::getOptionWidth() const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::Pass::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::printOptionInfo(unsigned long) const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::Pass::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::printOptionValue(unsigned long, bool) const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::Pass::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::setDefault()' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::Pass::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::getExtraOptionNames(llvm::SmallVectorImpl<llvm::StringRef>&)' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:typeinfo for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'typeinfo for llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::handleOccurrence(unsigned int, llvm::StringRef, llvm::StringRef)' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::getValueExpectedFlagDefault() const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::getOptionWidth() const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::printOptionInfo(unsigned long) const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::printOptionValue(unsigned long, bool) const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::setDefault()' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::getExtraOptionNames(llvm::SmallVectorImpl<llvm::StringRef>&)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Dialect/Pulse/Transforms/SchedulePort.cpp:252: error: undefined reference to 'llvm::toString(llvm::Error)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Dialect/Pulse/Transforms/SchedulePort.cpp:260: error: undefined reference to 'llvm::toString(llvm::Error)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Dialect/Pulse/Transforms/Scheduling.cpp:135: error: undefined reference to 'llvm::toString(llvm::Error)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Conversion/QUIRToPulse/LoadPulseCals.cpp:388: error: undefined reference to 'mlir::openInputFile(llvm::StringRef, std::string*)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Conversion/QUIRToPulse/QUIRToPulse.cpp:655: error: undefined reference to 'mlir::openInputFile(llvm::StringRef, std::string*)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Dialect/Pulse/IR/PulseOps.cpp:183: error: undefined reference to 'llvm::toString(llvm::Error)'
Any suggestions to resolve these errors?
The text was updated successfully, but these errors were encountered:
HI @miniskar, this seems to be a linking error. Could you please post your Conan profile configuration and the system configuration you are using (os, compiler toolchain, etc.) as well as the exact commands you entered to build?
I am getting several compilation errors during the build. I have followed the steps exactly as mentioned in the README.
/home/nqx/.conan/data/llvm/17.0.5-0/_/_/package/fa4e83519b8c7ca96c21cb33c75ecc7a417721c3/include/llvm/Support/Error.h:1249: error: undefined reference to 'llvm::Twine::str() const' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/targets/systems/mock/MockTarget.cpp:282: error: undefined reference to 'llvm::sys::getDefaultTargetTriple()' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/targets/systems/mock/MockTarget.cpp:285: error: undefined reference to 'llvm::TargetRegistry::lookupTarget(llvm::StringRef, std::string&)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/targets/systems/mock/MockTarget.cpp:294: error: undefined reference to 'llvm::SubtargetFeatures::getString() const' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/include/Conversion/QUIRToLLVM/QUIRToLLVM.h:85: error: undefined reference to 'mlir::FrozenRewritePatternSet::FrozenRewritePatternSet(mlir::RewritePatternSet&&, llvm::ArrayRef<std::string>, llvm::ArrayRef<std::string>)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/targets/systems/mock/Conversion/QUIRToStandard/QUIRToStandard.cpp:293: error: undefined reference to 'mlir::FrozenRewritePatternSet::FrozenRewritePatternSet(mlir::RewritePatternSet&&, llvm::ArrayRef<std::string>, llvm::ArrayRef<std::string>)' /home/nqx/.conan/data/llvm/17.0.5-0/_/_/package/fa4e83519b8c7ca96c21cb33c75ecc7a417721c3/include/llvm/Support/CommandLine.h:652: error: undefined reference to 'vtable for llvm::cl::OptionValue<std::string>' /usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function /home/nqx/.conan/data/llvm/17.0.5-0/_/_/package/fa4e83519b8c7ca96c21cb33c75ecc7a417721c3/include/llvm/Support/CommandLine.h:1488: error: undefined reference to 'vtable for llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >' /usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function /home/nqx/.conan/data/llvm/17.0.5-0/_/_/package/fa4e83519b8c7ca96c21cb33c75ecc7a417721c3/include/llvm/Support/CommandLine.h:1158: error: undefined reference to 'vtable for llvm::cl::parser<std::string>' /usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function /home/nqx/.conan/data/llvm/17.0.5-0/_/_/package/fa4e83519b8c7ca96c21cb33c75ecc7a417721c3/include/llvm/Support/CommandLine.h:1158: error: undefined reference to 'vtable for llvm::cl::parser<std::string>' /usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Frontend/OpenQASM3/OpenQASM3Frontend.cpp:105: error: undefined reference to 'llvm::StringRef::lower() const' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Config/QSSConfig.cpp:326: error: undefined reference to 'mlir::DialectPlugin::load(std::string const&)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Config/QSSConfig.cpp:336: error: undefined reference to 'mlir::PassPlugin::load(std::string const&)' /home/nqx/.conan/data/llvm/17.0.5-0/_/_/package/fa4e83519b8c7ca96c21cb33c75ecc7a417721c3/include/llvm/Support/CommandLine.h:652: error: undefined reference to 'vtable for llvm::cl::OptionValue<std::string>' /usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function /home/nqx/.conan/data/llvm/17.0.5-0/_/_/package/fa4e83519b8c7ca96c21cb33c75ecc7a417721c3/include/llvm/Support/CommandLine.h:1226: error: undefined reference to 'llvm::cl::parser<std::string>::printOptionDiff(llvm::cl::Option const&, llvm::StringRef, llvm::cl::OptionValue<std::string> const&, unsigned long) const' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Dialect/QUIR/Transforms/BreakReset.cpp:159: error: undefined reference to 'mlir::FrozenRewritePatternSet::FrozenRewritePatternSet(mlir::RewritePatternSet&&, llvm::ArrayRef<std::string>, llvm::ArrayRef<std::string>)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Dialect/QUIR/Transforms/ReorderMeasurements.cpp:236: error: undefined reference to 'mlir::FrozenRewritePatternSet::FrozenRewritePatternSet(mlir::RewritePatternSet&&, llvm::ArrayRef<std::string>, llvm::ArrayRef<std::string>)' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::Pass::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::handleOccurrence(unsigned int, llvm::StringRef, llvm::StringRef)' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::Pass::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::getValueExpectedFlagDefault() const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::Pass::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::getOptionWidth() const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::Pass::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::printOptionInfo(unsigned long) const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::Pass::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::printOptionValue(unsigned long, bool) const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::Pass::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::setDefault()' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::Pass::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::getExtraOptionNames(llvm::SmallVectorImpl<llvm::StringRef>&)' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:typeinfo for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'typeinfo for llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::handleOccurrence(unsigned int, llvm::StringRef, llvm::StringRef)' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::getValueExpectedFlagDefault() const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::getOptionWidth() const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::printOptionInfo(unsigned long) const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::printOptionValue(unsigned long, bool) const' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::setDefault()' lib/libMLIRPulseTransforms.a(Passes.cpp.o):Passes.cpp:vtable for mlir::detail::PassOptions::Option<std::string, llvm::cl::parser<std::string> >: error: undefined reference to 'llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::getExtraOptionNames(llvm::SmallVectorImpl<llvm::StringRef>&)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Dialect/Pulse/Transforms/SchedulePort.cpp:252: error: undefined reference to 'llvm::toString(llvm::Error)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Dialect/Pulse/Transforms/SchedulePort.cpp:260: error: undefined reference to 'llvm::toString(llvm::Error)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Dialect/Pulse/Transforms/Scheduling.cpp:135: error: undefined reference to 'llvm::toString(llvm::Error)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Conversion/QUIRToPulse/LoadPulseCals.cpp:388: error: undefined reference to 'mlir::openInputFile(llvm::StringRef, std::string*)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Conversion/QUIRToPulse/QUIRToPulse.cpp:655: error: undefined reference to 'mlir::openInputFile(llvm::StringRef, std::string*)' /home/nqx/Quantum/quantum-resources/tmp/qe-compiler/lib/Dialect/Pulse/IR/PulseOps.cpp:183: error: undefined reference to 'llvm::toString(llvm::Error)'
Any suggestions to resolve these errors?
The text was updated successfully, but these errors were encountered: