ton-blockchain / mytonctrl

A tool to run and maintain a TON node/validator
GNU General Public License v3.0
279 stars 153 forks source link

failed to compile #67

Closed centralhardware closed 2 years ago

centralhardware commented 2 years ago
In file included from /usr/src/ton/third-party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:42:
/usr/src/ton/third-party/abseil-cpp/absl/base/internal/spinlock.h:156:21: warning: bitwise operation between different enumeration types ('absl::base_internal::SpinLock::(unnamed enum at /usr/src/ton/third-party/abseil-cpp/absl/base/internal/spinlock.h:151:3)' and 'absl::base_internal::SpinLock::(unnamed enum at /usr/src/ton/third-party/abseil-cpp/absl/base/internal/spinlock.h:152:3)') [-Wanon-enum-enum-conversion]
    ~(kSpinLockHeld | kSpinLockCooperative | kSpinLockDisabledScheduling) };
      ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
/usr/src/ton/third-party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:451:26: error: no member named 'numeric_limits' in namespace 'std'
  if (x->version == std::numeric_limits<uint32_t>::max()) {
                    ~~~~~^
/usr/src/ton/third-party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:451:41: error: unexpected type name 'uint32_t': expected expression
  if (x->version == std::numeric_limits<uint32_t>::max()) {
                                        ^
/usr/src/ton/third-party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:451:52: error: no member named 'max' in the global namespace
  if (x->version == std::numeric_limits<uint32_t>::max()) {
                                                 ~~^
3 warnings and 3 errors generated.
make[3]: *** [third-party/abseil-cpp/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/build.make:82: third-party/abseil-cpp/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/internal/graphcycles.cc.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:4975: third-party/abseil-cpp/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:8018: crypto/CMakeFiles/fift.dir/rule] Error 2
make: *** [Makefile:2053: fift] Error 2

os: Linux server 5.13.0-22-generic #22-Ubuntu SMP Fri Nov 5 13:21:36 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Eptagone commented 2 years ago

I have the same problem trying yo install mytonctl using install.sh script on Ubuntu.

hamzahamidi commented 2 years ago

any news on this?

zorvan commented 2 years ago

I solved it by adding #include <limits> to the beginning of graphcycles.cc

igroman787 commented 2 years ago

As far as I know, there was a problem compiling TON components on ubuntu 22 system. It was solved