Coder Social home page Coder Social logo

Comments (19)

ilovezfs avatar ilovezfs commented on May 13, 2024

The original issue is from 2013 Homebrew/legacy-homebrew#24132

Should we just go back to clang and maybe it's fixed by now?

from homebrew-core.

Habbie avatar Habbie commented on May 13, 2024

Good point, I can test that. Do I just remove the fails_with :clang block to switch it back to clang?

from homebrew-core.

ilovezfs avatar ilovezfs commented on May 13, 2024

Yes. Both of them compiled and the tests passed just now but only extended usage will tell the tale based on how the original issue describes what went down.

from homebrew-core.

Habbie avatar Habbie commented on May 13, 2024

How did you compile? I now get

Last 15 lines from /Users/peter/Library/Logs/Homebrew/rtorrent/03.make:
../../rak/priority_queue_default.h:40:10: fatal error: 'tr1/functional' file not found
#include <tr1/functional>
         ^
1 error generated.

and again I'm happy to debug but if it already works for you I'm curious to hear what you did.

from homebrew-core.

Habbie avatar Habbie commented on May 13, 2024

To be clear, rtorrent is failing that way, libtorrent did build and install after removing fails_with :clang.

from homebrew-core.

ilovezfs avatar ilovezfs commented on May 13, 2024

@Habbie you have to also put back in the ENV.libstdcxx if ENV.compiler == :clang that is commented out.

from homebrew-core.

Habbie avatar Habbie commented on May 13, 2024

Oh that makes sense to get new C++ stuff.

from homebrew-core.

Habbie avatar Habbie commented on May 13, 2024

It crashed for me:

Caught Segmentation fault, dumping stack:
0   rtorrent                            0x000000010a0bfacb _Z8do_panici + 233
1   libsystem_platform.dylib            0x00007fff90165f1a _sigtramp + 26
2   ???                                 0x0000000000000002 0x0 + 2
3   libtorrent.19.dylib                 0x000000010a2e855b _ZN7torrent16HandshakeManager14receive_failedEPNS_9HandshakeEii + 81
4   libtorrent.19.dylib                 0x000000010a2e693a _ZN7torrent9Handshake10event_readEv + 1360
5   libtorrent.19.dylib                 0x000000010a298842 _ZN7torrent10PollKQueue7performEv + 238
6   libtorrent.19.dylib                 0x000000010a2bd64f _ZN7torrent11thread_base10event_loopEPS0_ + 415
7   rtorrent                            0x000000010a0bf4f3 main + 13415
8   libdyld.dylib                       0x00007fff8acff5c9 start + 1
9   ???                                 0x0000000000000003 0x0 + 3
Abort trap: 6

so apparently we can't go clang on both. Maybe on one, not sure. My inclination is to submit a PR that would switch them to 4.9 without manual user intervention, do you have hints on how to put that in a formula?

from homebrew-core.

ilovezfs avatar ilovezfs commented on May 13, 2024

This probably belongs in the boneyard.

from homebrew-core.

mistydemeo avatar mistydemeo commented on May 13, 2024

Does it still segfault if we change the optimization level? Has the segfault been reported upstream? I know the C++11 compilation failure was, but I don't know if the segfault ever was.

from homebrew-core.

mistydemeo avatar mistydemeo commented on May 13, 2024

Hm, no, the C++11 compilation failure is still totally there - never mind.

from homebrew-core.

mistydemeo avatar mistydemeo commented on May 13, 2024

The C++11 branch was merged into master two years ago, but has yet to make it into a stable release: rakshasa/libtorrent@77a0f35

from homebrew-core.

dunn avatar dunn commented on May 13, 2024

@Habbie both compile for me with GCC 5.3.0

from homebrew-core.

ilovezfs avatar ilovezfs commented on May 13, 2024

@mistydemeo Not really.
rakshasa/rtorrent#350
rakshasa/rtorrent#240
rakshasa/rtorrent#170

rakshasa/rtorrent#44
rakshasa/rtorrent#32
rakshasa/rtorrent#14

from homebrew-core.

Habbie avatar Habbie commented on May 13, 2024

Just as a datapoint, a clang libtorrent + 4.9 rtorrent also crashes.

from homebrew-core.

Habbie avatar Habbie commented on May 13, 2024

@dunn does brew have a flag for that today?

from homebrew-core.

dunn avatar dunn commented on May 13, 2024

If you have gcc-5 available, it should use it automatically, since it's marked as failing with Clang. But --cc=gcc-5 should work too.

from homebrew-core.

ilovezfs avatar ilovezfs commented on May 13, 2024

Other than possibly boneyarding this formula, I don't think there's an issue here beyond the usual things-that-don't-build-with-clang-don't-really-belong-in-core problem.

from homebrew-core.

MikeMcQuaid avatar MikeMcQuaid commented on May 13, 2024

I don't think there's an issue here beyond the usual things-that-don't-build-with-clang-don't-really-belong-in-core problem.

It's on my TODO list to kill these.

from homebrew-core.

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.