Open tanzelin430 opened 2 years ago
besides, I sincerely recommend that you try the same operation I mentioned above on FPGA compute node.When I did those operations on A10,compilation also falied.
I chose a devcloud node with A10 OneAPI, and did the follows:
s001-n081:~/a10-intelLabs-t2sp/t2s/preprocessor/src$ make
clang++ -std=c++17 -fno-exceptions -fno-rtti -O3 -Os t2spreprocessor.cpp `/home/u89062/a10-intelLabs-t2sp/install/bin/llvm-config --cxxflags --ldflags` -I /home/u89062/a10-intelLabs-t2sp/downloads/llvm9.0/tools/clang/include/ -I /home/u89062/a10-intelLabs-t2sp/install -I /home/u89062/a10-intelLabs-t2sp/install/lib/clang/9.0.1/include/ -Wl,--start-group -lclang -lclangIndex -lclangCodeGen -lclangToolingCore -lclangFrontend -lclangRewriteFrontend -lclangSema -lclangSerialization -lclangParse -lclangASTMatchers -lclangAST -lclangARCMigrate -lclangAnalysis -lclangEdit -lclangRewrite -lclangFrontendTool -lclangDriver -lclangDynamicASTMatchers -lclangFormat -lclangStaticAnalyzerCore -lclangTooling -lclangStaticAnalyzerCheckers -lclangStaticAnalyzerFrontend -lclangBasic -lclangLex -lLLVMSupport -Wl,--end-group `/home/u89062/a10-intelLabs-t2sp/install/bin/llvm-config --libs --system-libs` -o t2spreprocessor -I /home/u89062/a10-intelLabs-t2sp/install/gcc-7.5.0/lib/gcc/x86_64-pc-linux-gnu/7.5.0/include/ -I /home/u89062/a10-intelLabs-t2sp/install/lib/clang/9.0.1/include/
/bin/sh: 1: clang++: not found
Makefile:57: recipe for target 't2spreprocessor' failed
make: *** [t2spreprocessor] Error 127
s001-n081:~/a10-intelLabs-t2sp/t2s/preprocessor/src$ export PATH=~/a10-intelLabs-t2sp/install/bin:$PATH
s001-n081:~/a10-intelLabs-t2sp/t2s/preprocessor/src$ make
clang++ -std=c++17 -fno-exceptions -fno-rtti -O3 -Os t2spreprocessor.cpp `/home/u89062/a10-intelLabs-t2sp/install/bin/llvm-config --cxxflags --ldflags` -I /home/u89062/a10-intelLabs-t2sp/downloads/llvm9.0/tools/clang/include/ -I /home/u89062/a10-intelLabs-t2sp/install -I /home/u89062/a10-intelLabs-t2sp/install/lib/clang/9.0.1/include/ -Wl,--start-group -lclang -lclangIndex -lclangCodeGen -lclangToolingCore -lclangFrontend -lclangRewriteFrontend -lclangSema -lclangSerialization -lclangParse -lclangASTMatchers -lclangAST -lclangARCMigrate -lclangAnalysis -lclangEdit -lclangRewrite -lclangFrontendTool -lclangDriver -lclangDynamicASTMatchers -lclangFormat -lclangStaticAnalyzerCore -lclangTooling -lclangStaticAnalyzerCheckers -lclangStaticAnalyzerFrontend -lclangBasic -lclangLex -lLLVMSupport -Wl,--end-group `/home/u89062/a10-intelLabs-t2sp/install/bin/llvm-config --libs --system-libs` -o t2spreprocessor -I /home/u89062/a10-intelLabs-t2sp/install/gcc-7.5.0/lib/gcc/x86_64-pc-linux-gnu/7.5.0/include/ -I /home/u89062/a10-intelLabs-t2sp/install/lib/clang/9.0.1/include/
s001-n081:~/a10-intelLabs-t2sp/t2s/preprocessor/src$ ls
Makefile t2spreprocessor t2spreprocessor.cpp t2spreprocessor.h tmp.txt
As a final solution, please fix the environment setting in setenv.sh, and revise the README under t2s/preprecessor. Thanks.
Hi,I met a serious problem when I make /t2sp/t2s/preprocessor/src. At first I log into gen9 compute node on devcloud,and I ran setenv.sh.Then I went to /t2sp/t2s/preprocessor/src and make,error occurred.(clang-9: error: linker command failed with exit code 1 (use -v to see invocation)). Solution like changing -std=c++17 to c++11 has been proved meaningless.