Opened 13 years ago
Closed 13 years ago
#32295 closed defect (fixed)
libtorrent, rtorrent: build fails with clang
Reported by: | blobdobguy@… | Owned by: | gardnermj@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | clang haspatch | Cc: | ryandesign (Ryan Carsten Schmidt) |
Port: | libtorrent, rtorrent |
Description (last modified by mf2k (Frank Schima))
Error: Target org.macports.build returned: shell command failed (see log for details) Error: Failed to install libtorrent Log for libtorrent is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/main.log
Logfile is attached.
Attachments (5)
Change History (14)
Changed 13 years ago by blobdobguy@…
comment:2 Changed 13 years ago by mf2k (Frank Schima)
Cc: | blobdobguy@… removed |
---|---|
Description: | modified (diff) |
Keywords: | clang added |
Owner: | changed from macports-tickets@… to gardnermj@… |
Port: | libtorrent added |
comment:3 Changed 13 years ago by gardnermj@…
You're compiling with clang, right? Upstream has been working on fixing clang warnings and errors recently (http://rakshasa.no/pipermail/libtorrent-devel/2011-August/002655.html), but the changes haven't made it into a release yet. Until then I'd suggest either using gcc, or compiling from upstream's trunk.
comment:4 Changed 13 years ago by blobdobguy@…
I left everything as default. How do I switch from clang to gcc?
comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Try llvm-gcc-4.2 first. Only try gcc if llvm-gcc-4.2 doesn't work. Please read ProblemHotlist#compiler.
comment:7 Changed 13 years ago by gardnermj@…
I didn't realize clang had become the default with Xcode 4.2. That explains why I hadn't had any problems building libtorrent, since I was still on Xcode 4.1.
The next upstream release should hopefully compile on clang. In the meanwhile, we can update the portfiles for libtorrent/rtorrent (and the devel versions) to use llvm-gcc-4.2.
Changed 13 years ago by gardnermj@…
Attachment: | Portfile-libtorrent.diff added |
---|
Changed 13 years ago by gardnermj@…
Attachment: | Portfile-rtorrent.diff added |
---|
Changed 13 years ago by gardnermj@…
Attachment: | Portfile-libtorrent-devel.diff added |
---|
Changed 13 years ago by gardnermj@…
Attachment: | Portfile-rtorrent-devel.diff added |
---|
comment:9 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Keywords: | haspatch added |
Port: | rtorrent added |
Resolution: | → fixed |
Status: | new → closed |
Summary: | libtorrent failed to build → libtorrent, rtorrent: build fails with clang |
logfile containing build error