Comments (3)
Just after posting this I thought of putting the path to the actual vbccm68k executable as my CC
environment variable instead of the vc frontend, and then it worked just fine and added the includes. Doh. So ignore this I guess. I do wonder if there is a way to not have to specify that every time? Shouldn't the /usr/lib/bear/wrapper.d/vbccm68k
link handle that theoretically?
from bear.
@rsvensson I am happy that you could sort it out.
I can explain why it is a bit of trouble to use cross compilers... The two main things (that Bear does) are: intercept the executions and recognize them. When you put a link into the wrapper directory, that helps to intercept. To help recognize it, you need to create a config file and list the compiler in the compilation.compilers_to_recognize
section.
When you specify the CC
environment, that instruct Bear that this executable needs to be recognized.
On linux the interception works well without create a new wrapper executable. But still needs help to recognize the compiler calls.
from bear.
Thanks for your explanation!
Hmm but I did create a config file like that and tried to add both vc and vbccm68k to the compilers_to_recognize
list. That did not help me in this case unfortunately, although it's possible I did something wrong. I don't have that config file saved anymore unfortunately. But it's not a big deal to specify the CC
env var. I don't need to run Bear often enough to where it would be annoying.
Thanks for making this great piece of software btw!
from bear.
Related Issues (20)
- 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
- [Build failed] ld cannot find stdc++fs: ld: undefined reference to std::filesystem HOT 4
- Question - how to capture built in compiler options HOT 1
- How to support emcc compiler? HOT 1
- bear 3.1.4 hangs when proxy is enabled in ubuntu 24.04 HOT 3
- I get the error: "ERROR: ld.so: object '/usr/$LIB/bear/libexec.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored." HOT 3
- Build2 compatibility HOT 5
- Cannot open /usr/local/bin/bear: No such file HOT 1
- Bear does not preserve single quotes in command line macro definitions HOT 2
- Build problem with fmtlib 11
- Bear doesn't seem to detect MinGW calls on macOS HOT 2
- LSP: Unsupported option '-m68000' for target x86_64-pc-linux-gnu HOT 3
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.