y500 / libtorrent

Automatically exported from code.google.com/p/libtorrent
0 stars 0 forks source link

libtorrent_aio r9997 fails to build on mingw 4.9.0 #635

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Windows XP sp2 32bit. Boost 1.55
libtorrent_aio r9997 fails to build on mingw 4.9.0

CMD:
b2 -q --without-python --toolset=gcc variant=release link=static 
runtime-link=static encryption=openssl logging=none geoip=static dht=on 
boost=source character-set=unicode boost-link=static 
-sBOOST_ROOT="C:\qBittorrent\boost_1_55_0" 
include="/c/QBITTORRENT/install_mingw/include" 
library-path="/c/QBITTORRENT/install_mingw/lib" -j 2 
--prefix="/c/QBITTORRENT/install_mingw"

OUTPUT: http://pastebin.com/NYHaPgA7

Original issue reported on code.google.com by hammered...@gmail.com on 11 Jun 2014 at 9:05

GoogleCodeExporter commented 8 years ago
I cannot understand this bug:

>BOOST_STATIC_ASSERT(sizeof(piece_pos) == sizeof(char) * 8);

sizeof(char) is always 1, so 1*8 = 8
I counted 53bits in piece_pos so its size should be 64/8 = 8
The assert shouldn't trigger...

Original comment by hammered...@gmail.com on 12 Jun 2014 at 10:20

GoogleCodeExporter commented 8 years ago
MSVC2008 fails somewhere else: http://pastebin.com/B4C2HHh1

Original comment by hammered...@gmail.com on 12 Jun 2014 at 10:36

GoogleCodeExporter commented 8 years ago
these have been fixed.

Original comment by arvid.no...@gmail.com on 23 Jun 2014 at 5:37

GoogleCodeExporter commented 8 years ago
Nope gcc build wasnt fixed. (mingw 4.9.0)
error: http://pastebin.com/Vs7ftskQ

Revision 10027 (libtorrent_aio branch).

Original comment by hammered...@gmail.com on 23 Jun 2014 at 12:15

GoogleCodeExporter commented 8 years ago
oh, right. is gcc 4.9 officially released? this looks like a compiler bug, 
especially since it works on all other compilers (clang, gcc 4.8 msvc-12).

Original comment by arvid.no...@gmail.com on 23 Jun 2014 at 4:22

GoogleCodeExporter commented 8 years ago
Yes gcc 4.9 is officialy released. I get similar errors with 4.8(mingw) too.
r10030
error: http://pastebin.com/Wqa7vxxg

I am going to try a build with MSVC2008 now to see what happens.

Original comment by hammered...@gmail.com on 24 Jun 2014 at 4:00

GoogleCodeExporter commented 8 years ago
And MSVC2008 fails with this: http://pastebin.com/M3Zc2Ljc

Original comment by hammered...@gmail.com on 24 Jun 2014 at 4:12

GoogleCodeExporter commented 8 years ago
you're building a different revision now, right? because I introduced those 
errors last night, and I'm still working on it.

Original comment by arvid.no...@gmail.com on 24 Jun 2014 at 4:27

GoogleCodeExporter commented 8 years ago
Yes, whatever is included in r10030. I use the snapshot link from the sf.net 
page for libtorrent_aio branch.

However the gcc error are the same regardless.

Original comment by hammered...@gmail.com on 24 Jun 2014 at 4:33

GoogleCodeExporter commented 8 years ago
Forgot to mention that I'll wait for your resolution of course...

Original comment by hammered...@gmail.com on 24 Jun 2014 at 4:34

GoogleCodeExporter commented 8 years ago
Just so you know I now can build libtorrent_aio with gcc 4.9.0 on Windows XP.
The bad news is that as soon as qbt/libtorrent tries to write data to disk I 
immediately get an I/O error with reason "The process cannot access the file 
because it is being used by another process" (roughly translated).
libtorrent trunk/0.16.x works as expected.

Original comment by hammered...@gmail.com on 25 Jun 2014 at 11:05