snowyu / libtorrent

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

libtorrent-rasterbar-0.16.18 cannot be built: thread.hpp:79:2: error: #error not implemented #689

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
$ make
Making all in include/libtorrent
make[1]: Entering directory 
`/tmp/libtorrent-rasterbar-0.16.18/include/libtorrent'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/tmp/libtorrent-rasterbar-0.16.18/include/libtorrent'
Making all in src
make[1]: Entering directory `/tmp/libtorrent-rasterbar-0.16.18/src'
  CXX      web_connection_base.lo
In file included from ../include/libtorrent/alert.hpp:64:0,
                 from ../include/libtorrent/peer_connection.hpp:66,
                 from ../include/libtorrent/web_connection_base.hpp:60,
                 from web_connection_base.cpp:40:
../include/libtorrent/thread.hpp:79:2: error: #error not implemented
In file included from ../include/libtorrent/storage.hpp:54:0,
                 from ../include/libtorrent/web_connection_base.hpp:63,
                 from web_connection_base.cpp:40:
../include/libtorrent/torrent_info.hpp: In member function 'void 
libtorrent::torrent_info::rename_file(int, const wstring&)':
../include/libtorrent/torrent_info.hpp:287:43: warning: 'void 
libtorrent::file_storage::rename_file(int, const wstring&)' is deprecated 
(declared at ../include/libtorrent/file_storage.hpp:208) 
[-Wdeprecated-declarations]
make[1]: *** [web_connection_base.lo] Error 1
make[1]: Leaving directory `/tmp/libtorrent-rasterbar-0.16.18/src'
make: *** [all-recursive] Error 1

boost-1.41.0-18.el6.i686
boost-date-time-1.41.0-18.el6.i686
boost-devel-1.41.0-18.el6.i686
boost-filesystem-1.41.0-18.el6.i686
boost-graph-1.41.0-18.el6.i686
boost-iostreams-1.41.0-18.el6.i686
boost-math-1.41.0-18.el6.i686
boost-program-options-1.41.0-18.el6.i686
boost-python-1.41.0-18.el6.i686
boost-regex-1.41.0-18.el6.i686
boost-serialization-1.41.0-18.el6.i686
boost-signals-1.41.0-18.el6.i686
boost-static-1.41.0-18.el6.i686
boost-system-1.41.0-18.el6.i686
boost-test-1.41.0-18.el6.i686
boost-thread-1.41.0-18.el6.i686
boost-wave-1.41.0-18.el6.i686

Original issue reported on code.google.com by anestl...@gmail.com on 27 Oct 2014 at 10:29

GoogleCodeExporter commented 9 years ago
The same error with 0.16.17/0.16.16.

Configured using:

./configure --enable-shared --disable-static --with-libgeoip --with-libiconv

Edit:

That's weird: with CXXFLAGS="-O2 -m32 -march=native" I get this error, with 
CXXFLAGS="-O2 -march=native" everything is fine.

Consider this bug invalid, however I don't like that valid GCC options break 
libtorrent build.

Original comment by anestl...@gmail.com on 27 Oct 2014 at 10:54

GoogleCodeExporter commented 9 years ago
Nevermind, it now builds with -m32.

I don't know what was the error and why.

Status: INVALID.

Original comment by anestl...@gmail.com on 27 Oct 2014 at 10:56

GoogleCodeExporter commented 9 years ago
is it possible the -pthread flag was omitted somehow? I take it this is linux. 
It won't build without pthread support (on unix systems).

Original comment by arvid.no...@gmail.com on 27 Oct 2014 at 4:42