rizsotto / Bear

Bear is a tool that generates a compilation database for clang tooling.
GNU General Public License v3.0
4.83k stars 313 forks source link

Bear fails with Argument list too long #483

Closed sambitesh closed 1 year ago

sambitesh commented 2 years ago

Describe the bug I am trying to run bear with Brazil. It fails with the below error. It won't be possible to reproduce it on your side.

I should add that eventually the built is passed to Scons

Does Bear support Scons?

bear: Running intercept failed: System call "posix_spawnp" failed for /bin/sh: Argument list too long
bear: failed with: System call "posix_spawnp" failed for /bin/sh: Argument list too long

Expected behavior Bear should succeed with a compile_commands.json file

Environment:

Before you send...

rizsotto commented 2 years ago

Hey @sambitesh , thanks for the report.

I've not heard about Brazil, so I don't know how it works. Was the quoted error message from Brazil build? (Or Scons?)

Scons I know of, and it should work with Bear.

rizsotto commented 1 year ago

Hey @sambitesh , do you have update on this? Was it working with Scons?

rizsotto commented 1 year ago

Can't reproduce it, since I have no access to brazil.

Scons known to be working with Bear.