Closed stijlist closed 8 months ago
I really appreciate the tool, by the way - thanks for writing it!
I'm happy to provide more debugging information if it's helpful.
Oh, I realize now that this might be the same issue as #468. Is there a way to force the dynamically linked (bear 2.x) behavior if I know SIP is disabled and I can use LD_PRELOAD?
I'm not sure why it works for gcc though.
Hey @stijlist , I am happy that you've found that thread. The gist is,
arm-none-eabi-gcc
)It works for the regular gcc, because that's built into the tool. But cross compilers are not.
Describe the bug
bear intercept
is working with gcc but not with arm-none-eabi-gcc.Both are dynamically linked:
Bear is not working with arm-none-eabi-gcc:
Bear is working with gcc:
Running
bear intercept -- make
in a simple C project (e.g. https://github.com/lostella/SimpleMakefile) prints non-empty events.json.To Reproduce Steps to reproduce the behavior:
Install arm-gnu-toolchain. Clone this minimal makefile example. Install bear from homebrew.
Run
bear intercept -- make
. Observe events.json is empty.Expected behavior I expect
bear intercept
to work the same with dynamically linked gcc and dynamically linked arm-eabi-none-gcc.Environment:
brew install bear
macos SIP status:
Before you send...
README.md
file orman bear
? Yes.