Giter VIP home page Giter VIP logo

Comments (2)

zxx1234 avatar zxx1234 commented on September 4, 2024

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.

rizsotto avatar rizsotto commented on September 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.