Skip to content

Missing Libiberty on Mac OS X #23

Closed

Description

@hellgheast

I would like to know if there's any alternative to libiberty on Mac OS X as i'm unable to compile orbuculum since clang and macport gcc-7 don't have the libiberty library.

Activity

  1. mubes commented on Aug 5, 2019

    @mubes
    Collaborator
  2. UweBonnes commented on Aug 13, 2019

    @UweBonnes

    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

  3. mubes commented on Aug 13, 2019

    @mubes
    Collaborator

    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.

  4. hellgheast commented on Aug 15, 2019

    @hellgheast
    Author

    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.

  5. hardkrash commented on May 29, 2020

    @hardkrash
  6. akohlsmith commented on Jul 31, 2020

    @akohlsmith

    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.

  7. Gasman2014 commented on Jul 31, 2020

    @Gasman2014

    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.

  8. akohlsmith commented on Jul 31, 2020

    @akohlsmith

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

  9. mubes commented on Sep 10, 2020

    @mubes
    Collaborator

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

  10. mubes commented on Nov 5, 2020

    @mubes
    Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions