Ubuntu [SOLVED]: Missing C++ std library methods and other errors while compiling EOS on Ubuntu 14.04?

Ubuntu [SOLVED]: Missing C++ std library methods and other errors while compiling EOS on Ubuntu 14.04?

Home Forums Ubuntu Ubuntu [SOLVED]: Missing C++ std library methods and other errors while compiling EOS on Ubuntu 14.04?

Tagged: , , ,

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #36838

    Anonymous

    QuestionQuestion

    I’m trying to compile the EOS blockchain/smart contract project on GitHub on Ubuntu 14.04:

    https://github.com/EOSIO/eos

    After getting Clang 4.0 to install, installing build_essentials, and upgrading CMake to 3.5, I was able to run the build process without any missing dependencies. However, now I get the errors shown below when I build the EOS source. This seems to me like another general issue with the configuration of the tools on my system since many people are able to compile the EOS code, although usually on Ubuntu 14.04.

    Can anyone tell by looking at the errors I’m getting what tool or library I need to install or upgrade?

    In file included from /usr/lib/llvm-4.0/include/clang/AST/Decl.h:31:
    /usr/lib/llvm-4.0/include/llvm/Support/TrailingObjects.h:259:33: error: 'BaseTy' does not refer to a value
        static_assert(LLVM_IS_FINAL(BaseTy), "BaseTy must be final.");
                                ^
    /usr/lib/llvm-4.0/include/llvm/Support/TrailingObjects.h:233:20: note: declared here
    template <typename BaseTy, typename... TrailingTys>
                   ^
    /usr/lib/llvm-4.0/include/llvm/Support/TrailingObjects.h:259:19: error: expected expression
        static_assert(LLVM_IS_FINAL(BaseTy), "BaseTy must be final.");
                  ^
    /usr/lib/llvm-4.0/include/llvm/Support/type_traits.h:104:45: note: expanded from macro 'LLVM_IS_FINAL'
    #define LLVM_IS_FINAL(Ty) std::is_final<Ty>()
                                            ^
    Linking CXX executable codegen
    /home/robert/Documents/GitHub/eos/programs/launcher/main.cpp:405:18: error: no template named 'underlying_type_t' in namespace 'std'; did you mean
          'underlying_type'?
      using T = std::underlying_type_t <enum_type>;
            ~~~~~^~~~~~~~~~~~~~~~~
                 underlying_type
    /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:1855:12: note: 'underlying_type' declared here
        struct underlying_type
           ^
    /home/robert/Documents/GitHub/eos/programs/launcher/main.cpp:435:17: error: no member named 'put_time' in namespace 'std'
      dstrm << std::put_time(std::localtime(&now_c), "%Y_%m_%d_%H_%M_%S");
           ~~~~~^
    [ 64%] Building CXX object libraries/chain/CMakeFiles/eos_chain.dir/chain_controller.cpp.o
    /home/robert/Documents/GitHub/eos/programs/launcher/main.cpp:406:39: error: no matching conversion for static_cast from 'allowed_connection' to 'T'
          (aka 'underlying_type<allowed_connection>')
      return lhs = static_cast<enum_type>(static_cast<T>(lhs) | static_cast<T>(rhs));
                                      ^~~~~~~~~~~~~~~~~~~
    

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.