Page 1 of 1

deluge >1.1.3 fails to compile *SOLVED*

Posted: Sat May 02, 2009 2:25 am
by BK201
Been stuck on 1.1.3 for a while, anything greater fails to compile. It looks like something to do with boost. It wont let me attach .log, .txt, .xml or any file extension i can think of for some reason.... so heres the end of the build log.

Code: Select all

gcc -DNDEBUG -O2 -pipe -march=athlon64 -msse3 -mtune=athlon64 -mfpmath=sse -fPIC -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.5 -I/usr/include -I/usr/include/python2.5 -c -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.5 -I/usr/include -I/usr/include/python2.5 -c ./libtorrent/src/create_torrent.cpp -o build/temp.linux-x86_64-2.5/./libtorrent/src/create_torrent.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -O2 -Wno-missing-braces
In file included from /usr/include/boost/date_time/gregorian/gregorian_io.hpp:12,
                 from /usr/include/boost/date_time/gregorian/conversion.hpp:23,
                 from /usr/include/boost/date_time/gregorian/gregorian.hpp:21,
                 from /usr/include/boost/date_time/posix_time/time_formatters.hpp:12,
                 from /usr/include/boost/date_time/posix_time/posix_time.hpp:24,
                 from ./libtorrent/include/libtorrent/create_torrent.hpp:55,
                 from ./libtorrent/src/create_torrent.cpp:33:
/usr/include/boost/date_time/date_facet.hpp:560: error: declaration of ‘void boost::date_time::date_input_facet<date_type, CharT, InItrT>::special_values_parser(boost::date_time::special_values_parser<date_type, charT>)’
/usr/include/boost/date_time/special_values_parser.hpp:34: error: changes meaning of ‘special_values_parser’ from ‘class boost::date_time::special_values_parser<date_type, charT>’
error: command 'gcc' failed with exit status 1
I'm on boost 1.34.1 because 1.35 caused the cpu usage bug with the asio library. Has that been fixed? >1.35 is hard masked in portage still.

Re: deluge >1.1.3 fails to compile

Posted: Sat May 02, 2009 3:50 am
by andar
BK201 wrote:Been stuck on 1.1.3 for a while, anything greater fails to compile. It looks like something to do with boost. It wont let me attach .log, .txt, .xml or any file extension i can think of for some reason.... so heres the end of the build log.

Code: Select all

gcc -DNDEBUG -O2 -pipe -march=athlon64 -msse3 -mtune=athlon64 -mfpmath=sse -fPIC -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.5 -I/usr/include -I/usr/include/python2.5 -c -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.5 -I/usr/include -I/usr/include/python2.5 -c ./libtorrent/src/create_torrent.cpp -o build/temp.linux-x86_64-2.5/./libtorrent/src/create_torrent.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -O2 -Wno-missing-braces
In file included from /usr/include/boost/date_time/gregorian/gregorian_io.hpp:12,
                 from /usr/include/boost/date_time/gregorian/conversion.hpp:23,
                 from /usr/include/boost/date_time/gregorian/gregorian.hpp:21,
                 from /usr/include/boost/date_time/posix_time/time_formatters.hpp:12,
                 from /usr/include/boost/date_time/posix_time/posix_time.hpp:24,
                 from ./libtorrent/include/libtorrent/create_torrent.hpp:55,
                 from ./libtorrent/src/create_torrent.cpp:33:
/usr/include/boost/date_time/date_facet.hpp:560: error: declaration of ‘void boost::date_time::date_input_facet<date_type, CharT, InItrT>::special_values_parser(boost::date_time::special_values_parser<date_type, charT>)’
/usr/include/boost/date_time/special_values_parser.hpp:34: error: changes meaning of ‘special_values_parser’ from ‘class boost::date_time::special_values_parser<date_type, charT>’
error: command 'gcc' failed with exit status 1
I'm on boost 1.34.1 because 1.35 caused the cpu usage bug with the asio library. Has that been fixed? >1.35 is hard masked in portage still.
Try using 1.1.7

Re: deluge >1.1.3 fails to compile

Posted: Sat May 02, 2009 11:42 am
by BK201
That build log was from an attempt at 1.1.7. Ive tried all versions since 1.1.3 and get the same error.

Re: deluge >1.1.3 fails to compile

Posted: Sat May 02, 2009 2:43 pm
by jesperl
BK201 wrote:That build log was from an attempt at 1.1.7. Ive tried all versions since 1.1.3 and get the same error.
Are you sure that you have the Boost headers? Did you install all packages from the README file.

Re: deluge >1.1.3 fails to compile

Posted: Sat May 02, 2009 3:25 pm
by BK201
twisted was not installed but installing it didn't fix the error. I am rebuilding boost with pyste support now, is that necessary since deluge is written in python?

Re: deluge >1.1.3 fails to compile

Posted: Fri May 08, 2009 12:58 am
by BK201
Looks like my boost installation was broken, upgraded to 1.36.0 and its working fine now.