Comments (8)
hi João, i am new in the Mac world, but for me it looks like a problem of different architectures. similar error messages pops up on the net when people try to run a i386 code against X86_64 code. (might be a case if the libear.dylib is a X86_64 only, and one of the build tool is a i386 executable.) could you dig some more to validate this theory?
from bear.
@tritao You want to use
cmake "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" /path/to/build/dir
to make a binary that can use both 32 and 64 bit osx libraries.
from bear.
@alexanderkyte Thanks for this! Have you had the same issue and was this line solved for you?
@tritao Can you confirm what @alexanderkyte wrote is solve the issue you have?
from bear.
I'll give this a try and report.
from bear.
@rizsotto I had the same issue, and setting both architectures fixed it for me. It's a frequent mistake with cmake on osx to only build for one architecture, since many things link to libs from both architectures.
from bear.
Closing this, because nobody reported anything related to this since. Thanks @alexanderkyte !
from bear.
I have the same problem when use "bear make" for Qemu. I tried different target archs, but I still get the error. Please find the error here:
dyld: could not load inserted library '/usr/local/lib/bear/libear.dylib' because no suitable image found. Did find:
/usr/local/lib/bear/libear.dylib: mach-o, but wrong architecture
/usr/local/lib/bear/libear.dylib: stat() failed with errno=1
/bin/sh: line 1: 71301 Abort trap: 6 Rez -append /.../qemu/pc-bios/qemu.rsrc -o qemu-system-x86_64
make[1]: *** [qemu-system-x86_64] Error 134
make[1]: *** Deleting file `qemu-system-x86_64'
make: *** [subdir-x86_64-softmmu] Error 2
[NOTE] I can use "bear make" for compiling other projects without any problem.
Thanks!
from bear.
The reports does not give me enough information to fix it. Closing now. Would re-open it if somebody who has this issue can help to pair with me to debug. :)
from bear.
Related Issues (20)
- [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
- [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
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.