Open zhaohongjian520 opened 8 months ago
Hey @zhaohongjian520 , thanks for the report. What is asan
? And how can I reproduce the separate build of it? (Would not want to compile the whole Gcc.)
asan also known as libasan is a santizer https://github.com/google/sanitizers/wiki/AddressSanitizer
compile instructions are https://github.com/google/sanitizers/wiki/AddressSanitizerHowToBuild
Maybe check the compilation logs, compiling/cross-compiling gcc is a complex process, usually in stage 1 only the bare gcc is being build, which is then used to build libc, and then within stage 2 the full gcc (with libgcc and other necessary libs) is being built. Sometimes the stage1 compiler binary is being renamed to xgcc
which bear
doesn't recognize as compilator, try using --use-cc
option to bear directly (I'm using Bear v2.4.4 but for v3 probably similar option exists).
when I compile source code of gcc, I found that content of compile_commands.json not contain asan. then I try to compile asan separately, and the result is the same.