Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make extensions failing on OS X #778

Closed
sleepdeprecation opened this issue Jul 11, 2014 · 4 comments
Closed

make extensions failing on OS X #778

sleepdeprecation opened this issue Jul 11, 2014 · 4 comments

Comments

@sleepdeprecation
Copy link

Running make extensions is failing for me on OS X.

I'm not sure what the issue is. Running make extensions outputs:

cd fancy-backtrace && /Applications/Xcode.app/Contents/Developer/usr/bin/make
BINDIR=../../bin /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.osx build
gcc -fno-pie -g -I/usr/local/Cellar/gettext/0.18.3.2/include -I/usr/local/Cellar/binutils/2.24/include -L/usr/local/Cellar/gettext/0.18.3.2/lib -L/usr/local/Cellar/binutils/2.24/lib/ -L/usr/local/Cellar/binutils/2.24/lib/x86_64/ -DBUILDING_BACKTRACE_LIB -fPIC -O2 -shared -Wall -o fancy_backtrace.dylib fancy_backtrace.c -lbfd -lintl -liberty -lz
fancy_backtrace.c:223:21: warning: comparison of unsigned expression < 0 is always false
      [-Wtautological-compare]
    if (num_symbols < 0) {
        ~~~~~~~~~~~ ^ ~
1 warning generated.
ld: warning: directory not found for option '-L/usr/local/Cellar/binutils/2.24/lib/x86_64/'
ld: library not found for -liberty
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [fancy_backtrace.dylib] Error 1
make[2]: *** [build] Error 2
make[1]: *** [fancy-backtrace] Error 2
make: *** [extensions] Error 2
@sleepdeprecation
Copy link
Author

This is Homebrew's fault. binutils 2.24 no longer ships with libiberty any more, which is odd...

@nddrylliog
Copy link
Member

I've contributed to a few homebrew formulas, I'm interested in why that's
happening.

If someone can get a full-featured "fancy backtrace" implementation that
doesn't rely on libiberty, be my guest.. I remember spending a few weeks
tinkering with this code and making it cross-platform.

On Fri, Jul 11, 2014 at 9:08 PM, Don Kuntz notifications@github.com wrote:

This is Homebrew's fault. binutils 2.24 no longer ships with libiberty
any more, which is odd...


Reply to this email directly or view it on GitHub
#778 (comment).

@sduensin
Copy link

Apparently the libiberty folks want every program that relies on it to distribute their own copy. That's why Homebrew pulled it. Go figure.

@fasterthanlime
Copy link
Collaborator

I remember making almost that exact comment somewhere else - but anyway, @sduensin, you're right. We should probably vendor it somewhere, if someone want to submit a pull request for that, be my guest :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants