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

rtorrent not building (10.5/G5) #237

Open
ghost opened this issue Aug 22, 2014 · 11 comments
Open

rtorrent not building (10.5/G5) #237

ghost opened this issue Aug 22, 2014 · 11 comments

Comments

@ghost
Copy link

ghost commented Aug 22, 2014

Thanks for fixing #231 but now the next step. :) rtorrent also does not build

https://gist.github.com/e4891aa8ce80cc907c49
https://gist.github.com/55a66d7515d26264a234
https://gist.github.com/7f0d6c1774e60960919b
https://gist.github.com/c2618f0dba40197d1720
https://gist.github.com/768c9364dd3924b6a8e5

@mistydemeo
Copy link
Owner

Try building this with --cc=gcc-4.9; it may also fail with older GCCs. I'll mark it as failing if that fixes it.

@ghost
Copy link
Author

ghost commented Aug 22, 2014

brew install rtorrent --cc=gcc-4.9
~/Library/Logs/Homebrew/rtorrent
==> Downloading http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/rtorrent-0.9.4.tar.gz
==> ./configure --prefix=/usr/local/Cellar/rtorrent/0.9.4_1
==> make
../../rak/allocators.h:80:80: error: 'posix_memalign' was not declared in this scope
make[3]: *** [curl_get.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

https://gist.github.com/6a6c068e5aa291782fa7
https://gist.github.com/9c08c7665e70f3cce16e
https://gist.github.com/a763cd03324592e8b126
https://gist.github.com/dd25d151f3fa5c3ae58c
https://gist.github.com/5e2e134f6b9cfcb3fb6b

@mistydemeo
Copy link
Owner

Looks like it should be compatible with the patch from libtorrent.

@mistydemeo
Copy link
Owner

Pushed a potential fix, can you brew update and test? Thanks!

@ghost
Copy link
Author

ghost commented Aug 22, 2014

Still not building. Tried with the --cc=gcc-4.9 flag and without.

==> Downloading http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/rtorrent-0.9.4.tar.gz
==> Downloading https://trac.macports.org/export/124274/trunk/dports/net/libtorrent/files/no_posix_memalign.patch
Already downloaded: /Library/Caches/Homebrew/rtorrent--patch-c507b74290f16f933da0a648645945e938a8e36d.patch
==> Patching
patching file rak/allocators.h
==> ./configure --prefix=/usr/local/Cellar/rtorrent/0.9.4_1
==> make
g++-4.9: error: Macintosh: No such file or directory
make[3]: *** [rtorrent] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

https://gist.github.com/97c8f479872659f30290
https://gist.github.com/c2aabd41e7324e8c70d0
https://gist.github.com/951dd4a11e348e28a234
https://gist.github.com/76ee92f390be958c4724
https://gist.github.com/e7cbb50d61d7012fa756

@mistydemeo
Copy link
Owner

Uh oh. Looks like a makefile problem:

-arch Power Macintosh -arch ppc64 -arch i386 -arch x86_64 -dynamic -arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -arch ppc -arch ppc64 -arch i386 -arch x86_64

That's a mysterious and improbable set of architectures. Power Macintosh is the result of uname -m on PowerPC Macs, so it's presumably a misdetection here. The space is throwing the buildsystem, but it would have been an invalid option either way.

@ghost
Copy link
Author

ghost commented Aug 25, 2014

Hi Misty, thanks for looking at it. Let's re-open this ticket for now.

@mistydemeo
Copy link
Owner

Filed an issue upstream at rakshasa/rtorrent#229.

@ghost
Copy link
Author

ghost commented Sep 24, 2014

Related to #255 ?

@ghost
Copy link
Author

ghost commented Jan 11, 2016

For whatever reason, this builds just fine now.

@ghost ghost closed this as completed Jan 11, 2016
@ghost
Copy link
Author

ghost commented Jan 11, 2016

Whoops. But it doesn't run!

% rtorrent ~
dyld: lazy symbol binding failed: Symbol not found: ___sync_add_and_fetch_8
Referenced from: /usr/local/lib/libtorrent.19.dylib
Expected in: dynamic lookup

dyld: Symbol not found: ___sync_add_and_fetch_8
Referenced from: /usr/local/lib/libtorrent.19.dylib
Expected in: dynamic lookup

[1] 97494 trace trap rtorrent

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

1 participant