rizsotto / Bear

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

compile failed with clang/musl/libc++ #362

Closed 12101111 closed 3 years ago

12101111 commented 3 years ago

Describe the bug ../../../../Bear-3.0.8/source/citnames/source/EventsDatabase.cc:135:34: error: too few arguments to function call, expected at least 2, have 1 auto handle = ::open(file);


/usr/include/fcntl.h:34:5: note: 'open' declared here
int open(const char *, int, ...);
    ^
1 error generated.

**To Reproduce**
Compile bear 3.0.8 with clang/musl/libc++

**Expected behavior**
Compiled without error

**Environment:**
 - OS name: Gentoo Linux
 - OS version: ~amd
 - OS architecture: x86_64
 - Bear version: 3.0.8
 - Bear install method: compiled from source by portage
rizsotto commented 3 years ago

Thanks for the report. This is fixed on master branch now. Will release soon.