Ticket #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@… |
| Port: | libtorrent, rtorrent |
Description (last modified by macsforever2000@…) (diff)
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
Change History
comment:2 Changed 18 months ago by macsforever2000@…
- Cc blobdobguy@… removed
- Keywords clang added
- Description modified (diff)
- Owner changed from macports-tickets@… to gardnermj@…
- Port set to libtorrent
comment:3 Changed 18 months 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 18 months ago by blobdobguy@…
I left everything as default. How do I switch from clang to gcc?
comment:6 Changed 18 months ago by ryandesign@…
Try llvm-gcc-4.2 first. Only try gcc if llvm-gcc-4.2 doesn't work. Please read ProblemHotlist#compiler.
comment:7 Changed 18 months 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.
comment:9 Changed 17 months ago by ryandesign@…
- Status changed from new to closed
- Cc ryandesign@… added
- Summary changed from libtorrent failed to build to libtorrent, rtorrent: build fails with clang
- Keywords haspatch added
- Resolution set to fixed
- Port changed from libtorrent to libtorrent, rtorrent


logfile containing build error