You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Hi there,
In general you'll often find this library bundled with binutils-dev...so
please have a look there and report back. I'd be surprised if it isn't
available _somewhere_ inside gcc7. I'll check to see if it's replaceable
but iirc we use the demangler from it which is, I'm afraid, a pretty
fundamental part of orbtop.
I'll also check how others have got it compiling on osx. Back in the day
that's how the suite first came into being, so it should be possible.
Regards
Dave
On Mon, 5 Aug 2019, 17:02 Mohammed-Ismail Ben Salah, < ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#23?email_source=notifications&email_token=ABJTBDZAZEVFTMN6NO2W55LQDBFKFA5CNFSM4IJMWKEKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDNRCXQ>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABJTBD6A2ALZZLFEUGKWNQTQDBFKFANCNFSM4IJMWKEA>
.
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.
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.
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.
Activity
mubes commentedon Aug 5, 2019
UweBonnes commentedon Aug 13, 2019
As posted on gitter, on OpenSuse <demangle.h> is the right include:
mubes commentedon Aug 13, 2019
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.
hellgheast commentedon Aug 15, 2019
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.
hardkrash commentedon May 29, 2020
Would the LLVM version work?
https://llvm.org/doxygen/Demangle_8h_source.html
akohlsmith commentedon Jul 31, 2020
I have this working in OSX by using binutils from homebrew, building from source and editing the recipe to include
--enable-install-libibertyto 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.Gasman2014 commentedon Jul 31, 2020
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).
orbit still won't build as it complains about missing demangle.h which still doesn't appear to have been installed.
akohlsmith commentedon Jul 31, 2020
Oh yes, just add
int flags, I forgot about that. I have a PR I need to create which fixes the build on OSX.mubes commentedon Sep 10, 2020
@akohlsmith Andrew, do you have an patch for this so we can close it off?
mubes commentedon Nov 5, 2020
As at 9f6a8e9 OSX building is folded back into main. Thanks a million for this @akohlsmith