Comments (5)
hi @vguerra ,
thanks for the report. i did looked into the pastebin outputs. (can't reproduce those on my machine) it looks to me that you got compiler wrappers installed and used on your computer.
g++
is calling /Applications/Xcode.app/Contents/Developer/usr/bin/g++
which is calling /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
. and cc
is calling /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
.
are these files (execpt the clang
instances) wrappers? can you also show it somehow to me?
bear
is already filtering compilers. you could take a look at the bear.conf
file. (currently it allows those well known compiler names from any location.) maybe you should replace those with something like /usr/bin/clang(\\+\\+)$
.
ps.: did you try to install bear
from homebrew
?
from bear.
thank you for the quick response!
Unfortunately g++ and cc are binaries as well. But dtruss showed that effectively those are simply wrappers to /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang respectively.
Yeah.. I spotted that bear.conf file, I'll try to add the corresponding entries in order to filter out the wrappers.
No.. I cloned the repo and built it my self. Should I try to install from homebrew?
Thanks again @rizsotto.
from bear.
okay, so i could read the log properly. ;) please let me know if i can help you more. now i would close this ticket, but can reopen if we need to change on Bear.
about homebrew, i just wanted to know how it behaves in your environment. probably needs the config adjustment as well, but maybe the building process also behaves funny.
from bear.
Sorry I didn't comment earlier.
I just wanted to confirm that modifying the compilers accepted from the bear.conf file allowed me to run the tests with out errors. I basically removed the regular expressions that would match the clang* compilers.
from bear.
no problem, and thank you for the report. i added your finding into the readme file yesterday. hope it will help others as well.
from bear.
Related Issues (20)
- bear -- make produces an empty compile_commands.json HOT 3
- bear not work HOT 2
- Bear intercept does not work with shell scripts HOT 5
- Build error: /bin/sh: 1: ctest: not found HOT 4
- Can cause link errors during cross compilation HOT 1
- Running 'nrfutil pkg' through bear won't find GLIBCXX_3.4.30 - add a "de-wrapper"? HOT 3
- Bear spawns an endless number of processes on FreeBSD HOT 4
- [Feature Request] Enable preload mode on macOS with SIP disabled HOT 2
- How does bear work? HOT 1
- Calling `bear -- emmake make` from makefile has different output than without the makefile HOT 3
- `bear intercept` prints empty events.json with dynamically linked arm-none-eabi-gcc HOT 3
- Compile option "--include <path>" generates incorrect database entry HOT 2
- compile asan, but the content of compile_commands.json is empty HOT 4
- makeopts ignored HOT 3
- can't install bear without sudo HOT 2
- has no member named ‘always_print_primitive_fields’ HOT 7
- How can I create the compile_commands.json for the Bear project? HOT 3
- Combining compile & link with Clang results in erroneous entry HOT 3
- Empty compilation database when compiling OpenBSD kernel HOT 2
- bear::func_test failed 7 tests (3.1.4) HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bear.