Ubuntu22 直接 make 内核成功,但不能使用 bear 命令。请老师指点!

Ubuntu22 直接 make 内核成功,但不能使用 bear 命令。请老师指点!

在高版本的 bear 中,需要使用

-- 来表明 command to execute

# bear --help

Usage: bear [--output ] [--verbose] -- ...

--output path of the result file (default: compile_commands.json)

--verbose run in verbose mode

-- ... command to execute

advanced options

--append append result to an existing output file

--config path of the config file

--force-preload force to use library preload

--force-wrapper force to use compiler wrappers

developer options

--citnames path to the citnames executable (default: /usr/bin/citnames)

--interceptor path to the intercept executable (default: /usr/bin/intercept)

--library path to the preload library (default: /usr/$LIB/bear/libexec.so)

--wrapper path to the wrapper executable (default: /usr/lib/x86_64-linux-gnu/bear/wrapper)

--wrapper-dir path to the wrapper directory (default: /usr/lib/x86_64-linux-gnu/bear/wrapper.d)

query options

--help print help and exit

--version print version and exit

所以你应该执行:

bear -- make zImage -j4

相关推荐

五一劳动节代表哪一个生肖(五一劳动节代表什么)
和365差不多的平台有哪些

五一劳动节代表哪一个生肖(五一劳动节代表什么)

📅 07-20 👁️ 8300
王者荣耀兑换百里守约 --- 是什么?如何快速获得?
bat365在线官网平台

王者荣耀兑换百里守约 --- 是什么?如何快速获得?

📅 07-19 👁️ 8052
2尺5是多少厘米长度 2尺5是多大的腰围
和365差不多的平台有哪些

2尺5是多少厘米长度 2尺5是多大的腰围

📅 07-17 👁️ 8563