Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deluge DSM7 compile error #4429

Closed
favoretti opened this issue Feb 3, 2021 · 20 comments · Fixed by #5398
Closed

Deluge DSM7 compile error #4429

favoretti opened this issue Feb 3, 2021 · 20 comments · Fixed by #5398
Labels

Comments

@favoretti
Copy link
Contributor

Trying to compile Deluge for DSM7, but libtorrent-rasterbar fails with this:

make[5]: Entering directory '/spksrc/spk/deluge/work-x64-7.0/libtorrent-rasterbar-1.1.14/src'
  CXX      web_connection_base.lo
In file included from /spksrc/toolchain/syno-x64-7.0/work/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/include/c++/7.3.0/cmath:45:0,
                 from /spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/config/no_tr1/cmath.hpp:21,
                 from /spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/date_time/posix_time/posix_time_config.hpp:15,
                 from /spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/date_time/posix_time/posix_time_system.hpp:13,
                 from /spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/date_time/posix_time/ptime.hpp:12,
                 from /spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/date_time/posix_time/posix_time_types.hpp:12,
                 from /spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/asio/time_traits.hpp:23,
                 from /spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/asio/deadline_timer_service.hpp:27,
                 from /spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/asio/basic_socket_streambuf.hpp:24,
                 from /spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/asio/basic_socket_iostream.hpp:24,
                 from /spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/asio/ip/tcp.hpp:20,
                 from ../include/libtorrent/socket.hpp:55,
                 from ../include/libtorrent/peer_connection_interface.hpp:36,
                 from ../include/libtorrent/peer_connection.hpp:57,
                 from ../include/libtorrent/web_connection_base.hpp:56,
                 from web_connection_base.cpp:44:
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/detail/hash_float.hpp: In function ‘std::size_t boost::hash_detail::float_hash_value(T)’:
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/detail/hash_float.hpp:210:21: error: expected primary-expression before ‘float’
             switch (fpclassify(v))
                     ^
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/detail/hash_float.hpp:210:21: error: expected primary-expression before ‘default’
             switch (fpclassify(v))
                     ^
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/detail/hash_float.hpp:210:21: error: expected primary-expression before ‘long’
             switch (fpclassify(v))
                     ^
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/detail/hash_float.hpp:210:21: error: found ‘:’ in nested-name-specifier, expected ‘::’
             switch (fpclassify(v))
                     ^
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/detail/hash_float.hpp:210:21: error: ‘_Float128’ is not a class, namespace, or enumeration
             switch (fpclassify(v))
                     ^
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/detail/hash_float.hpp: In instantiation of ‘std::size_t boost::hash_detail::float_hash_value(T) [with T = float; std::size_t = long unsigned int]’:
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/hash.hpp:394:52:   required from ‘typename boost::hash_detail::float_numbers<T>::type boost::hash_value(T) [with T = float; typename boost::hash_detail::float_numbers<T>::type = long unsigned int]’
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/hash.hpp:454:5:   required from here
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/detail/hash_float.hpp:210:21: error: ‘_Generic’ was not declared in this scope
             switch (fpclassify(v))
                     ^
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/detail/hash_float.hpp:210:21: note: suggested alternative: ‘__erfc’
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/detail/hash_float.hpp: In instantiation of ‘std::size_t boost::hash_detail::float_hash_value(T) [with T = double; std::size_t = long unsigned int]’:
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/hash.hpp:394:52:   required from ‘typename boost::hash_detail::float_numbers<T>::type boost::hash_value(T) [with T = double; typename boost::hash_detail::float_numbers<T>::type = long unsigned int]’
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/hash.hpp:455:5:   required from here
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/detail/hash_float.hpp:210:21: error: ‘_Generic’ was not declared in this scope
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/detail/hash_float.hpp:210:21: note: suggested alternative: ‘__erfc’
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/detail/hash_float.hpp: In instantiation of ‘std::size_t boost::hash_detail::float_hash_value(T) [with T = long double; std::size_t = long unsigned int]’:
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/hash.hpp:394:52:   required from ‘typename boost::hash_detail::float_numbers<T>::type boost::hash_value(T) [with T = long double; typename boost::hash_detail::float_numbers<T>::type = long unsigned int]’
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/hash.hpp:456:5:   required from here
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/detail/hash_float.hpp:210:21: error: ‘_Generic’ was not declared in this scope
/spksrc/spk/deluge/work-x64-7.0/install/var/packages/deluge/target/include/boost/functional/hash/detail/hash_float.hpp:210:21: note: suggested alternative: ‘__erfc’
make[5]: *** [Makefile:1031: web_connection_base.lo] Error 1
make[5]: Leaving directory '/spksrc/spk/deluge/work-x64-7.0/libtorrent-rasterbar-1.1.14/src'
make[4]: *** [Makefile:625: all-recursive] Error 1
make[4]: Leaving directory '/spksrc/spk/deluge/work-x64-7.0/libtorrent-rasterbar-1.1.14'
make[3]: *** [../../mk/spksrc.compile.mk:36: compile_target] Error 2
make[3]: Leaving directory '/spksrc/cross/libtorrent'
make[2]: *** [../../mk/spksrc.depend.mk:51: depend_target] Error 2
make[2]: Leaving directory '/spksrc/cross/deluge'
make[1]: *** [../../mk/spksrc.depend.mk:51: depend_target] Error 2
make[1]: Leaving directory '/spksrc/spk/deluge'
make: [../../mk/spksrc.spk.mk:464: arch-x64-7.0] Error 2 (ignored)

Been poking around it for a couple of days, to no avail. Anyone has ideas on how to fix this?

Thanks!

@favoretti
Copy link
Contributor Author

What I haven't tried yet (trying now) is bump libtorrent version, will report back once I get results.

@Forge36
Copy link

Forge36 commented Feb 5, 2021

Should this be added to https://github.com/SynoCommunity/spksrc/projects/9 ?

@moi15moi
Copy link

Hi,
Is there any news about this problem?
Thank you

@abohne
Copy link

abohne commented Sep 27, 2021

As of today, I was able to successfully run a make all-supported.

@hgy59
Copy link
Contributor

hgy59 commented Sep 27, 2021

@abohne did you build with the current master branch or the PR #4153 that includes a port to python3?

@abohne
Copy link

abohne commented Sep 28, 2021

@abohne did you build with the current master branch or the PR #4153 that includes a port to python3?

I built off master. I wasn't aware there was a branch for python 3 support.

@RobSpectre
Copy link

Any update here?

@hgy59
Copy link
Contributor

hgy59 commented Mar 27, 2022

Any update here?

@RobSpectre here: #4153

@th0ma7 th0ma7 linked a pull request Aug 29, 2022 that will close this issue
13 tasks
@th0ma7
Copy link
Contributor

th0ma7 commented Aug 31, 2022

New version of deluge is being published. Please reopen the issue if its still occurring. Thnx in advance.

@Taelkir
Copy link

Taelkir commented Aug 31, 2022

Should this be available from the Community section of the Package Center on DSM 7 now? I'm getting

Python: Invalid file format. Please contact the package developer.

When trying to install Deluge from there. This is the 'Safihre' Deluge package.

@juanmuto
Copy link

Should this be available from the Community section of the Package Center on DSM 7 now? I'm getting

Python: Invalid file format. Please contact the package developer.

When trying to install Deluge from there. This is the 'Safihre' Deluge package.

Same thing here.

@th0ma7
Copy link
Contributor

th0ma7 commented Aug 31, 2022

It usually takes around 24-48h to become available due to proxy. Older version won't work on DSM7.

If you can't wait, look for package Deluge v2.1.1-15 directly from our web-site https://synocommunity.com/package/deluge

@th0ma7 th0ma7 reopened this Aug 31, 2022
@Taelkir
Copy link

Taelkir commented Sep 1, 2022

Ah, wasn't aware of that delay. Seems to be installing and running fine on my DSM7 NAS now (though looks like I've got to sort some certs out to connect to trackers - does that sound like something on my side, or a bug to raise? 🤔).

Thanks to everyone involved in working on this!

@th0ma7
Copy link
Contributor

th0ma7 commented Sep 2, 2022

though looks like I've got to sort some certs out to connect to trackers - does that sound like something on my side, or a bug to raise?

@Taelkir I honestly have no clue. I've tested on multiple platform and found no issues on my end. It may be something to report upstream to deluge dev at https://github.com/deluge-torrent/deluge ? In any case if it turns out a package & integration issue please open-up a new issue in here. Thnx for testing it out.

@th0ma7 th0ma7 closed this as completed Sep 2, 2022
@Taelkir
Copy link

Taelkir commented Sep 2, 2022

Thanks. Have posted on their forum here, for reference if anyone else encounters a similar issue: https://forum.deluge-torrent.org/viewtopic.php?f=7&t=56270

@th0ma7
Copy link
Contributor

th0ma7 commented Sep 2, 2022

@Taelkir I've read your post and am wondering, have you applied all Synology DSM system updates? Your certificate error may be due to that. If this does not fix things you can manually update your certificates as explained here #4897 (comment)

@Taelkir
Copy link

Taelkir commented Sep 2, 2022

@th0ma7 No luck with either of those unfortunately, but thanks for the suggestions. Got an update to DSM 7.1-42661 Update 4 out of it 😅 I'll keep rooting around for other solutions.

@th0ma7
Copy link
Contributor

th0ma7 commented Sep 10, 2022

@Taelkir it ends-up another issue was opened on this #5420 for which I was able to find a simple one liner fix #5422

Package update will be publised shortly. Open-up a new issue if you find anything else. Cheers and enjoy!

@Taelkir
Copy link

Taelkir commented Sep 10, 2022

@th0ma7 Fantastic, thanks for updating back here (hadn't had time to check the deluge forum thread all week and looks like it filled up! 😮). I'll check it out as soon as I can.

@Taelkir
Copy link

Taelkir commented Sep 12, 2022

Just got the 2.1.1-16 update installed and everything's working perfectly. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants