Describe the bug
I want to generate compile_commands for the linux kernel. Initially bear -- make runs well and compile_commands.sqlite3 is generated, then it is stuck for a long time after printing "Kernel: arch/x86/boot/bzImage is ready (# 2)", then it exits, removing compile_commands.sqlite3 without generating compile_commands.json or an error message.
Another run of clean and make produces the same result.
To Reproduce
Run bear -- make
Expected behavior
compile_commands.json is generated
Environment:
OS name: Linux
OS version: Debian 11 (wsl2 in Win10)
OS architecture: x86_64
Bear version: 3.0.8
Bear install method: from package
Additional context
The project is the linux kernel 6.4.9 with the default config
What architecture you are trying to compile for? native x86_64
Could you attach build logs? If you can re-run the command which failed (e.g. bear -- make) with extra verbose log switches (e.g. bear --verbose -- make) and send the output of it, that would help a lot.
Please use a recent version of this tool... Kernel compilation had issues before 3.0.11 version. Those issues are fixed since. (3.0.8 is more than 2 years old now.)
Describe the bug I want to generate compile_commands for the linux kernel. Initially
bear -- make
runs well and compile_commands.sqlite3 is generated, then it is stuck for a long time after printing "Kernel: arch/x86/boot/bzImage is ready (# 2)", then it exits, removing compile_commands.sqlite3 without generating compile_commands.json or an error message. Another run of clean and make produces the same result.To Reproduce Run
bear -- make
Expected behavior compile_commands.json is generated
Environment:
Additional context
bear -- make
) with extra verbose log switches (e.g.bear --verbose -- make
) and send the output of it, that would help a lot.The last few lines are:
Before you send...
README.md
file orman bear
? Yes