From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: [PATCH 2/3] gnu: libtorrent: Update to 0.13.6. Date: Sat, 03 Oct 2015 22:50:25 +0300 Message-ID: <87k2r3afzy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiSp7-0000D8-17 for guix-devel@gnu.org; Sat, 03 Oct 2015 15:50:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZiSp4-0006zU-7F for guix-devel@gnu.org; Sat, 03 Oct 2015 15:50:24 -0400 Received: from mail-lb0-x22c.google.com ([2a00:1450:4010:c04::22c]:34716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiSp3-0006zM-QJ for guix-devel@gnu.org; Sat, 03 Oct 2015 15:50:22 -0400 Received: by lbbwt4 with SMTP id wt4so3167525lbb.1 for ; Sat, 03 Oct 2015 12:50:21 -0700 (PDT) Received: from leviafan ([217.107.192.146]) by smtp.gmail.com with ESMTPSA id dk4sm2629536lbc.39.2015.10.03.12.50.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Oct 2015 12:50:20 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/plain I had a problem with this one: it was built successfully but when I enabled tests, "make check" phase ate all my CPU and memory and after several minutes of messing with my HDD, I got: g++: internal compiler error: Killed (program cc1plus) (the backtrace is attached just in case) I didn't report about it, as I think the problem is that I just have not enough memory (3 GB), so I appreciate if someone tries to build libtorrent with tests using this patch, thanks in advance. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0002-gnu-libtorrent-Update-to-0.13.6.patch Content-Transfer-Encoding: quoted-printable >From 0fcf4b7368ce6f145a1cd45bd4b675145b5da4dc Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Sat, 3 Oct 2015 22:21:33 +0300 Subject: [PATCH 2/3] gnu: libtorrent: Update to 0.13.6. * gnu/packages/bittorrent.scm (libtorrent): Update to 0.13.6. [source]: Use new URL. [native-inputs]: Uncomment "cppunit" (for tests). [argument]: Remove (to enable tests). --- gnu/packages/bittorrent.scm | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm index c9b0fe2..fb40915 100644 --- a/gnu/packages/bittorrent.scm +++ b/gnu/packages/bittorrent.scm @@ -99,26 +99,20 @@ DHT, =C2=B5TP, PEX and Magnet Links.") (define-public libtorrent (package (name "libtorrent") - (version "0.13.4") + (version "0.13.6") (source (origin (method url-fetch) (uri (string-append - "http://libtorrent.rakshasa.no/downloads/libtorrent-" + "http://rtorrent.net/downloads/libtorrent-" version ".tar.gz")) (sha256 (base32 - "0ma910br5vxrfpm4f4w4942lpmhwvqjnnf9h8vpf52fw35qhjkkh")))) + "012s1nwcvz5m5r4d2z9klgy2n34kpgn9kgwgzxm97zgdjs6a0f18")))) (build-system gnu-build-system) (inputs `(("openssl" ,openssl) ("zlib" ,zlib))) (native-inputs `(("pkg-config" ,pkg-config) - ;; Add this when you enable tests: - ;; ("cppunit" ,cppunit) - )) - (arguments - ;; FIXME: enable tests on the next release: - ;; https://github.com/rakshasa/libtorrent/issues/59 - `(#:tests? #f)) + ("cppunit" ,cppunit))) (synopsis "BitTorrent library of rtorrent") (description "LibTorrent is a BitTorrent library used by and developed in parallel --=20 2.5.0 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename=rtorrent-make-check-failed Content-Transfer-Encoding: quoted-printable ... Making check in test make[1]: Entering directory '/tmp/nix-build-libtorrent-0.13.6.drv-0/libtorr= ent-0.13.6/test' make LibTorrentTest make[2]: Entering directory '/tmp/nix-build-libtorrent-0.13.6.drv-0/libtorr= ent-0.13.6/test' g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT LibTorrentTest-main.o -MD -MP -MF .deps/LibTorren= tTest-main.Tpo -c -o LibTorrentTest-main.o `test -f 'main.cc' || echo './'`= main.cc g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT ../src/LibTorrentTest-thread_disk.o -MD -MP -MF .= ./src/.deps/LibTorrentTest-thread_disk.Tpo -c -o ../src/LibTorrentTest-thre= ad_disk.o `test -f '../src/thread_disk.cc' || echo './'`../src/thread_disk.= cc g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT rak/LibTorrentTest-allocators_test.o -MD -MP -MF = rak/.deps/LibTorrentTest-allocators_test.Tpo -c -o rak/LibTorrentTest-alloc= ators_test.o `test -f 'rak/allocators_test.cc' || echo './'`rak/allocators_= test.cc mv -f ../src/.deps/LibTorrentTest-thread_disk.Tpo ../src/.deps/LibTorrentTe= st-thread_disk.Po g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT rak/LibTorrentTest-ranges_test.o -MD -MP -MF rak/= .deps/LibTorrentTest-ranges_test.Tpo -c -o rak/LibTorrentTest-ranges_test.o= `test -f 'rak/ranges_test.cc' || echo './'`rak/ranges_test.cc mv -f .deps/LibTorrentTest-main.Tpo .deps/LibTorrentTest-main.Po g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT data/LibTorrentTest-chunk_list_test.o -MD -MP -MF= data/.deps/LibTorrentTest-chunk_list_test.Tpo -c -o data/LibTorrentTest-ch= unk_list_test.o `test -f 'data/chunk_list_test.cc' || echo './'`data/chunk_= list_test.cc mv -f rak/.deps/LibTorrentTest-allocators_test.Tpo rak/.deps/LibTorrentTest= -allocators_test.Po g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT data/LibTorrentTest-hash_check_queue_test.o -MD -= MP -MF data/.deps/LibTorrentTest-hash_check_queue_test.Tpo -c -o data/LibTo= rrentTest-hash_check_queue_test.o `test -f 'data/hash_check_queue_test.cc' = || echo './'`data/hash_check_queue_test.cc mv -f data/.deps/LibTorrentTest-hash_check_queue_test.Tpo data/.deps/LibTor= rentTest-hash_check_queue_test.Po g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT data/LibTorrentTest-hash_queue_test.o -MD -MP -MF= data/.deps/LibTorrentTest-hash_queue_test.Tpo -c -o data/LibTorrentTest-ha= sh_queue_test.o `test -f 'data/hash_queue_test.cc' || echo './'`data/hash_q= ueue_test.cc mv -f rak/.deps/LibTorrentTest-ranges_test.Tpo rak/.deps/LibTorrentTest-ran= ges_test.Po g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT protocol/LibTorrentTest-test_request_list.o -MD -= MP -MF protocol/.deps/LibTorrentTest-test_request_list.Tpo -c -o protocol/L= ibTorrentTest-test_request_list.o `test -f 'protocol/test_request_list.cc' = || echo './'`protocol/test_request_list.cc mv -f data/.deps/LibTorrentTest-chunk_list_test.Tpo data/.deps/LibTorrentTe= st-chunk_list_test.Po g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT torrent/LibTorrentTest-http_test.o -MD -MP -MF to= rrent/.deps/LibTorrentTest-http_test.Tpo -c -o torrent/LibTorrentTest-http_= test.o `test -f 'torrent/http_test.cc' || echo './'`torrent/http_test.cc mv -f torrent/.deps/LibTorrentTest-http_test.Tpo torrent/.deps/LibTorrentTe= st-http_test.Po g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT torrent/LibTorrentTest-object_test.o -MD -MP -MF = torrent/.deps/LibTorrentTest-object_test.Tpo -c -o torrent/LibTorrentTest-o= bject_test.o `test -f 'torrent/object_test.cc' || echo './'`torrent/object_= test.cc mv -f data/.deps/LibTorrentTest-hash_queue_test.Tpo data/.deps/LibTorrentTe= st-hash_queue_test.Po g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT torrent/LibTorrentTest-object_test_utils.o -MD -M= P -MF torrent/.deps/LibTorrentTest-object_test_utils.Tpo -c -o torrent/LibT= orrentTest-object_test_utils.o `test -f 'torrent/object_test_utils.cc' || e= cho './'`torrent/object_test_utils.cc mv -f torrent/.deps/LibTorrentTest-object_test_utils.Tpo torrent/.deps/LibT= orrentTest-object_test_utils.Po g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT torrent/LibTorrentTest-object_static_map_test.o -= MD -MP -MF torrent/.deps/LibTorrentTest-object_static_map_test.Tpo -c -o to= rrent/LibTorrentTest-object_static_map_test.o `test -f 'torrent/object_stat= ic_map_test.cc' || echo './'`torrent/object_static_map_test.cc mv -f protocol/.deps/LibTorrentTest-test_request_list.Tpo protocol/.deps/Li= bTorrentTest-test_request_list.Po g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT torrent/LibTorrentTest-object_stream_test.o -MD -= MP -MF torrent/.deps/LibTorrentTest-object_stream_test.Tpo -c -o torrent/Li= bTorrentTest-object_stream_test.o `test -f 'torrent/object_stream_test.cc' = || echo './'`torrent/object_stream_test.cc mv -f torrent/.deps/LibTorrentTest-object_test.Tpo torrent/.deps/LibTorrent= Test-object_test.Po g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT torrent/LibTorrentTest-tracker_controller_test.o = -MD -MP -MF torrent/.deps/LibTorrentTest-tracker_controller_test.Tpo -c -o = torrent/LibTorrentTest-tracker_controller_test.o `test -f 'torrent/tracker_= controller_test.cc' || echo './'`torrent/tracker_controller_test.cc mv -f torrent/.deps/LibTorrentTest-object_static_map_test.Tpo torrent/.deps= /LibTorrentTest-object_static_map_test.Po g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT torrent/LibTorrentTest-tracker_controller_feature= s.o -MD -MP -MF torrent/.deps/LibTorrentTest-tracker_controller_features.Tp= o -c -o torrent/LibTorrentTest-tracker_controller_features.o `test -f 'torr= ent/tracker_controller_features.cc' || echo './'`torrent/tracker_controller= _features.cc mv -f torrent/.deps/LibTorrentTest-object_stream_test.Tpo torrent/.deps/Lib= TorrentTest-object_stream_test.Po g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT torrent/LibTorrentTest-tracker_controller_request= ing.o -MD -MP -MF torrent/.deps/LibTorrentTest-tracker_controller_requestin= g.Tpo -c -o torrent/LibTorrentTest-tracker_controller_requesting.o `test -f= 'torrent/tracker_controller_requesting.cc' || echo './'`torrent/tracker_co= ntroller_requesting.cc torrent/tracker_controller_requesting.cc: In function =E2=80=98void do_test= _hammering_multi3(bool, bool, bool, uint32_t)=E2=80=99: torrent/tracker_controller_requesting.cc:106:1: note: variable tracking siz= e limit exceeded with -fvar-tracking-assignments, retrying without do_test_hammering_multi3(bool success1, bool success2, bool success3, uint= 32_t min_interval =3D 0) { ^ mv -f torrent/.deps/LibTorrentTest-tracker_controller_requesting.Tpo torren= t/.deps/LibTorrentTest-tracker_controller_requesting.Po g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -I/include -I/gnu/store/mbg= 8qp31g1bmvy1x399xivbm8vm3n7ad-cppunit-1.12.1/include -pthread -g -O2 -g -DD= EBUG -fvisibility=3Dhidden -I/gnu/store/p311lij4y6ali5l6rrli1nmcw73ksp5a-op= enssl-1.0.2d/include -MT torrent/LibTorrentTest-tracker_list_test.o -MD -M= P -MF torrent/.deps/LibTorrentTest-tracker_list_test.Tpo -c -o torrent/LibT= orrentTest-tracker_list_test.o `test -f 'torrent/tracker_list_test.cc' || e= cho './'`torrent/tracker_list_test.cc torrent/tracker_controller_test.cc: In member function =E2=80=98void tracke= r_controller_test::test_multiple_failure()=E2=80=99: torrent/tracker_controller_test.cc:327:1: note: variable tracking size limi= t exceeded with -fvar-tracking-assignments, retrying without tracker_controller_test::test_multiple_failure() { ^ torrent/tracker_list_test.cc: In member function =E2=80=98void tracker_list= _test::test_has_active()=E2=80=99: torrent/tracker_list_test.cc:446:1: note: variable tracking size limit exce= eded with -fvar-tracking-assignments, retrying without tracker_list_test::test_has_active() { ^ g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Makefile:1050: recipe for target 'torrent/LibTorrentTest-tracker_controller= _features.o' failed make[2]: *** [torrent/LibTorrentTest-tracker_controller_features.o] Error 4 make[2]: *** Waiting for unfinished jobs.... mv -f torrent/.deps/LibTorrentTest-tracker_list_test.Tpo torrent/.deps/LibT= orrentTest-tracker_list_test.Po mv -f torrent/.deps/LibTorrentTest-tracker_controller_test.Tpo torrent/.dep= s/LibTorrentTest-tracker_controller_test.Po make[2]: Leaving directory '/tmp/nix-build-libtorrent-0.13.6.drv-0/libtorre= nt-0.13.6/test' Makefile:1511: recipe for target 'check-am' failed make[1]: *** [check-am] Error 2 make[1]: Leaving directory '/tmp/nix-build-libtorrent-0.13.6.drv-0/libtorre= nt-0.13.6/test' Makefile:494: recipe for target 'check-recursive' failed make: *** [check-recursive] Error 1 --=-=-=--