Opened 12 years ago

Closed 12 years ago

#34347 closed defect (invalid)

libtorrent: error: cannot allocate function type 'rak::cacheline_allocator<> ()' with new

Reported by: online@… Owned by: gardnermj@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: libtorrent

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I am pretty new to this game, so I dont know what to do.

--->  Computing dependencies for rtorrent..
--->  Dependencies to be installed: libtorrent
--->  Building libtorrent
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9'
/usr/bin/make  all-recursive
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9'
Making all in src
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9/src'
Making all in torrent
make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9/src/torrent'
Making all in data
make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9/src/torrent/data'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9/src/torrent/data'
Making all in download
make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9/src/torrent/download'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9/src/torrent/download'
Making all in peer
make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9/src/torrent/peer'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9/src/torrent/peer'
Making all in utils
make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9/src/torrent/utils'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9/src/torrent/utils'
make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9/src/torrent'
/bin/sh ../../libtool --tag=CXX   --mode=compile /usr/bin/c++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../..  -I/opt/local/include  -pipe -O2 -m64 -DNDEBUG -fvisibility=hidden -I/opt/local/include   -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include   -MT poll_select.lo -MD -MP -MF .deps/poll_select.Tpo -c -o poll_select.lo poll_select.cc
libtool: compile:  /usr/bin/c++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/opt/local/include -pipe -O2 -m64 -DNDEBUG -fvisibility=hidden -I/opt/local/include -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -MT poll_select.lo -MD -MP -MF .deps/poll_select.Tpo -c poll_select.cc  -fno-common -DPIC -o .libs/poll_select.o
poll_select.cc:126:28: error: cannot allocate function type 'rak::cacheline_allocator<> ()' with new
  block_type* block = new (rak::cacheline_allocator<>()) block_type;
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[4]: *** [poll_select.lo] Error 1
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9/src/torrent'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9/src/torrent'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9'
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_libtorrent/libtorrent/work/libtorrent-0.12.9" && /usr/bin/make -j4 -w all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
Warning: the following items did not execute (for libtorrent): org.macports.activate org.macports.build org.macports.destroot org.macports.install
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
Error: The following dependencies were not installed: libtorrent
Error: Status 1 encountered during processing.

Attachments (1)

log rtorrent.txt (8.3 KB) - added by online@… 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by online@…

Attachment: log rtorrent.txt added

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to gardnermj@…
Port: libtorrent added
Summary: rtorrent on macosx 10.7.3 macports 2.04libtorrent: error: cannot allocate function type 'rak::cacheline_allocator<> ()' with new

You should "sudo port clean libtorrent" and try again, then attach the new main.log file so that we get a complete account of what happened. (The one you attached is incomplete because you had not cleaned before.)

comment:2 Changed 12 years ago by online@…

lol! That was an easy fix! Thx.... Did "sudo port clean libtorrent" and then "sudo port -v install rtorrent" ....... Now it works.

Cheers!

comment:3 Changed 12 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.