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

scaleHLS build problem #32

Open
lloo099 opened this issue Dec 1, 2021 · 0 comments
Open

scaleHLS build problem #32

lloo099 opened this issue Dec 1, 2021 · 0 comments

Comments

@lloo099
Copy link

lloo099 commented Dec 1, 2021

Hi, I encounter this *.inc error when I try to make -j6 for ur makefile.

[ 40%] Built target LLVMDiff
[ 40%] Built target llvm-jitlink-executor
[ 40%] Building CXX object tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/LegalizeOnnx.cpp.o
[ 40%] Building CXX object tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/HLSKernelToAffine.cpp.o
[ 40%] Built target StripOptsTableGen
[ 40%] Building CXX object tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/LegalizeToHLSCpp.cpp.o
[ 40%] Built target LLVMBitReader
[ 40%] Built target LLVMProfileData
[ 40%] Building CXX object tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/QuantizeOnnx.cpp.o
[ 40%] Building CXX object tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/Passes.cpp.o
[ 43%] Built target obj.clangStaticAnalyzerCheckers
In file included from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/IR/BuiltinTypes.h:12:0,
                 from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/Dialect/Affine/IR/AffineMemoryOpInterfaces.h:17,
                 from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/Dialect/Affine/IR/AffineOps.h:17,
                 from /home/enai/Desktop/project/enai0/test/scalehls/lib/Conversion/HLSKernelToAffine.cpp:7:
/home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/IR/SubElementInterfaces.h:21:10: fatal error: mlir/IR/SubElementAttrInterfaces.h.inc: No such file or directory
 #include "mlir/IR/SubElementAttrInterfaces.h.inc"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/build.make:75: recipe for target 'tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/HLSKernelToAffine.cpp.o' failed
make[2]: *** [tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/HLSKernelToAffine.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/IR/BuiltinAttributes.h:13:0,
                 from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/IR/Operation.h:17,
                 from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/IR/OpDefinition.h:23,
                 from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/Dialect/Arithmetic/IR/Arithmetic.h:12,
                 from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/Dialect/StandardOps/IR/Ops.h:17,
                 from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/Analysis/AffineAnalysis.h:18,
                 from /home/enai/Desktop/project/enai0/test/scalehls/lib/Conversion/LegalizeToHLSCpp.cpp:7:
/home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/IR/SubElementInterfaces.h:21:10: fatal error: mlir/IR/SubElementAttrInterfaces.h.inc: No such file or directory
 #include "mlir/IR/SubElementAttrInterfaces.h.inc"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/build.make:103: recipe for target 'tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/LegalizeToHLSCpp.cpp.o' failed
make[2]: *** [tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/LegalizeToHLSCpp.cpp.o] Error 1
[ 43%] Built target LLVMAsmParser
In file included from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/IR/BuiltinTypes.h:12:0,
                 from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/Dialect/Affine/IR/AffineMemoryOpInterfaces.h:17,
                 from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/Dialect/Affine/IR/AffineOps.h:17,
                 from /home/enai/Desktop/project/enai0/test/scalehls/lib/Conversion/LegalizeOnnx.cpp:7:
/home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/IR/SubElementInterfaces.h:21:10: fatal error: mlir/IR/SubElementAttrInterfaces.h.inc: No such file or directory
 #include "mlir/IR/SubElementAttrInterfaces.h.inc"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/IR/BuiltinTypes.h:12:0,
                 from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/Dialect/Affine/IR/AffineMemoryOpInterfaces.h:17,
                 from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/Dialect/Affine/IR/AffineOps.h:17,
                 from /home/enai/Desktop/project/enai0/test/scalehls/lib/Conversion/QuantizeOnnx.cpp:7:
/home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/IR/SubElementInterfaces.h:21:10: fatal error: mlir/IR/SubElementAttrInterfaces.h.inc: No such file or directory
 #include "mlir/IR/SubElementAttrInterfaces.h.inc"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/build.make:89: recipe for target 'tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/LegalizeOnnx.cpp.o' failed
make[2]: *** [tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/LegalizeOnnx.cpp.o] Error 1
tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/build.make:131: recipe for target 'tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/QuantizeOnnx.cpp.o' failed
make[2]: *** [tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/QuantizeOnnx.cpp.o] Error 1
[ 43%] Built target LLVMCFGuard
In file included from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/IR/BuiltinTypes.h:12:0,
                 from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/IR/FunctionSupport.h:17,
                 from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/IR/BuiltinOps.h:16,
                 from /home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/Pass/Pass.h:12,
                 from /home/enai/Desktop/project/enai0/test/scalehls/include/scalehls/Conversion/Passes.h:10,
                 from /home/enai/Desktop/project/enai0/test/scalehls/lib/Conversion/Passes.cpp:7:
/home/enai/Desktop/project/enai0/test/scalehls/polygeist/llvm-project/llvm/../mlir/include/mlir/IR/SubElementInterfaces.h:21:10: fatal error: mlir/IR/SubElementAttrInterfaces.h.inc: No such file or directory
 #include "mlir/IR/SubElementAttrInterfaces.h.inc"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/build.make:117: recipe for target 'tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/Passes.cpp.o' failed
make[2]: *** [tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/Passes.cpp.o] Error 1
CMakeFiles/Makefile2:130441: recipe for target 'tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/all' failed
make[1]: *** [tools/scalehls/lib/Conversion/CMakeFiles/obj.MLIRScaleHLSConversion.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 43%] Built target LLVMX86Disassembler
[ 43%] Built target clangBasic
[ 43%] Built target llvm-profdata
[ 45%] Built target LLVMX86Desc
[ 46%] Built target obj.clangAST
Makefile:155: recipe for target 'all' failed
make: *** [all] Error 2

Platform: Ubuntu 18.04

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

1 participant