Comments (2)
1.get bear source and compile.
cmake ../Bear-2.4.3/ -DCMAKE_C_COMPILER_ARG1="-m32"; VERBOSE=1 make all;
cmake ../Bear-2.4.3/ -DCMAKE_C_COMPILER_ARG1="-m64"; VERBOSE=1 make all;
2.compile ok and check the libear.so. (dir 64-- 64bit , dir 32--32bit)
xxxx@ubuntu:~/workspace/tools/64/libear$ file libear.so
libear.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=60bcee5e81fab27ba1e7c08abad2cf8550a54d4f, not stripped
xxxx@ubuntu:~/workspace/tools/32/libear$ file libear.so
libear.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=e8db844222fb7ac596c657af5fec11f1f44696dc, not stripped
3.use bear to make,but fail
xxxx@ubuntu:~/workspace$ bear --libear /home/workspace/tools/32/libear/libear.so make
ERROR: ld.so: object '/home/workspace/tools/32/libear/libear.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
xxxx@ubuntu:~/workspace$ bear --libear /home/workspace/tools/64/libear/libear.so make
ERROR: ld.so: object '/home/workspace/tools/64/libear/libear.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
how to fix it .thanks.
from bear.
Hey @zxx1234 ,
The multilib issue is documented on the wiki. You probably want to have a look at it. And I would also recommend to read man ld.so
page, "Dynamic string token" section.
But since the multilib is not tested in CI, it might be broken. Sorry for that!
from bear.
Related Issues (20)
- 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 9
- [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
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.