Coder Social home page Coder Social logo

Missing Libiberty on Mac OS X about orbuculum HOT 10 CLOSED

orbcode avatar orbcode commented on September 3, 2024
Missing Libiberty on Mac OS X

from orbuculum.

Comments (10)

akohlsmith avatar akohlsmith commented on September 3, 2024 1

Oh yes, just add int flags, I forgot about that. I have a PR I need to create which fixes the build on OSX.

from orbuculum.

mubes avatar mubes commented on September 3, 2024

from orbuculum.

UweBonnes avatar UweBonnes commented on September 3, 2024

As posted on gitter, on OpenSuse <demangle.h> is the right include:

locate demangle.h
...
/usr/include/demangle.h
rpm -qf /usr/include/demangle.h
binutils-devel-2.31-lp150.5.3.1.x86_64

from orbuculum.

mubes avatar mubes commented on September 3, 2024

OK, thanks Uwe. Fix pushed for the OpenSuse case...perhaps that also fixes the issue for OSX. Waiting for feedback but will close this in a week if I don't hear further.

from orbuculum.

hellgheast avatar hellgheast commented on September 3, 2024

Hello,
I tried to compile binutils and other libs that should have libiberty but it doesn't seem to work.
to resume at the moment there's no known fix.
One way would be to compile gcc-7 from scratch,but i didn't complete the compilation at the moment.

from orbuculum.

hardkrash avatar hardkrash commented on September 3, 2024

Would the LLVM version work?
https://llvm.org/doxygen/Demangle_8h_source.html

from orbuculum.

akohlsmith avatar akohlsmith commented on September 3, 2024

I have this working in OSX by using binutils from homebrew, building from source and editing the recipe to include --enable-install-libiberty to the configure options. I then added the homebrew install paths to LDFLAGS and INCLUDE_PATHS in the Makefile.

The last bit, elf.h, I succeeded by changing #include <elf.h> to #include "elf.h" and putting the elf.h from the arm-none-eabi toolchain into the Orbuculum Src directory.

from orbuculum.

Gasman2014 avatar Gasman2014 commented on September 3, 2024

Thanks @akohlsmith that has helped.

i get the following error

Src/orbuculum.c:1567:16: error: use of undeclared identifier 'flags'
if ( ( flags = fcntl( f, F_GETFL, NULL ) ) < 0 )

and i can still only build orbuculum on macOS if I comment out the section (1555).

    // #ifdef OSX
    //         /* Remove the O_NONBLOCK flag now the port is open (OSX Only) */

    //         if ( ( flags = fcntl( f, F_GETFL, NULL ) ) < 0 )
    //         {
    //             genericsExit( -3, "F_GETFL failed" EOL );
    //         }

    //         flags &= ~O_NONBLOCK;

    //         if ( ( flags = fcntl( f, F_SETFL, flags ) ) < 0 )
    //         {
    //             genericsExit( -3, "F_SETFL failed" EOL );
    //         }

    // #endif

orbit still won't build as it complains about missing demangle.h which still doesn't appear to have been installed.

from orbuculum.

mubes avatar mubes commented on September 3, 2024

@akohlsmith Andrew, do you have an patch for this so we can close it off?

from orbuculum.

mubes avatar mubes commented on September 3, 2024

As at 9f6a8e9 OSX building is folded back into main. Thanks a million for this @akohlsmith

from orbuculum.

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.