Author Topic: Invictus Innovations - Help Wanted!  (Read 18164 times)

0 Members and 1 Guest are viewing this topic.

Offline HackFisher

  • Hero Member
  • *****
  • Posts: 883
    • View Profile
Here is link says pop_back was introduced in C++11. CPP is not my advantage :) Do we need 4.7 and up, because I'm using g++4.6 according to dependencies on https://github.com/InvictusInnovations/BitShares

http://stackoverflow.com/questions/16684533/string-pop-back-function-error

I believe we can modify that particular call as it is the only place it is used.   We should aim to support a wider range of compilers.

I changed to g++4.8, and this problem is solved.

Then another error occur, I post it here, if anyone know the reason, please tell me, thanks.

Quote
[ 49%] Building CXX object fc/CMakeFiles/fc.dir/src/thread/thread.cpp.o
In file included from /usr/local/include/boost/context/all.hpp:10:0,
                 from /Users/cleney/Temp/keyhotee/BitShares/fc/src/thread/context.hpp:3,
                 from /Users/cleney/Temp/keyhotee/BitShares/fc/src/thread/thread_d.hpp:5,
                 from /Users/cleney/Temp/keyhotee/BitShares/fc/src/thread/thread.cpp:5:
/usr/local/include/boost/context/fcontext.hpp:73:48: warning: 'jump_fcontext' initialized and declared 'extern' [enabled by default]
 intptr_t BOOST_CONTEXT_CALLDECL jump_fcontext( fcontext_t * ofc, fcontext_t const* nfc, intptr_t vp, bool preserve_fpu = true);
                                                ^
/usr/local/include/boost/context/fcontext.hpp:73:48: error: 'fcontext_t' was not declared in this scope
/usr/local/include/boost/context/fcontext.hpp:73:48: note: suggested alternative:
In file included from /usr/local/include/boost/context/fcontext.hpp:36:0,
                 from /usr/local/include/boost/context/all.hpp:10,
                 from /Users/cleney/Temp/keyhotee/BitShares/fc/src/thread/context.hpp:3,
                 from /Users/cleney/Temp/keyhotee/BitShares/fc/src/thread/thread_d.hpp:5,
                 from /Users/cleney/Temp/keyhotee/BitShares/fc/src/thread/thread.cpp:5:
/usr/local/include/boost/context/detail/fcontext_x86_64.hpp:45:8: note:   'boost::ctx::fcontext_t'
 struct fcontext_t
        ^
In file included from /usr/local/include/boost/context/all.hpp:10:0,
                 from /Users/cleney/Temp/keyhotee/BitShares/fc/src/thread/context.hpp:3,
                 from /Users/cleney/Temp/keyhotee/BitShares/fc/src/thread/thread_d.hpp:5,
                 from /Users/cleney/Temp/keyhotee/BitShares/fc/src/thread/thread.cpp:5:
/usr/local/include/boost/context/fcontext.hpp:73:61: error: 'ofc' was not declared in this scope
 intptr_t BOOST_CONTEXT_CALLDECL jump_fcontext( fcontext_t * ofc, fcontext_t const* nfc, intptr_t vp, bool preserve_fpu = true);
                                                             ^
/usr/local/include/boost/context/fcontext.hpp:73:66: error: 'fcontext_t' was not declared in this scope
 intptr_t BOOST_CONTEXT_CALLDECL jump_fcontext( fcontext_t * ofc, fcontext_t const* nfc, intptr_t vp, bool preserve_fpu = true);
                                                                  ^
compilation terminated due to -fmax-errors=3.
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline bytemaster

Here is link says pop_back was introduced in C++11. CPP is not my advantage :) Do we need 4.7 and up, because I'm using g++4.6 according to dependencies on https://github.com/InvictusInnovations/BitShares

http://stackoverflow.com/questions/16684533/string-pop-back-function-error

I believe we can modify that particular call as it is the only place it is used.   We should aim to support a wider range of compilers.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline HackFisher

  • Hero Member
  • *****
  • Posts: 883
    • View Profile
Here is link says pop_back was introduced in C++11. CPP is not my advantage :) Do we need 4.7 and up, because I'm using g++4.6 according to dependencies on https://github.com/InvictusInnovations/BitShares

http://stackoverflow.com/questions/16684533/string-pop-back-function-error
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline HackFisher

  • Hero Member
  • *****
  • Posts: 883
    • View Profile
I encoutered another problem, It seems that Cmake cannot detect boost version(boost 1.54.0 installed):

Quote
-- The C compiler identification is Clang 3.1.0
-- The CXX compiler identification is Clang 3.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
statusCompiling on UNIX
CMake Error at /usr/local/Cellar/cmake/2.8.11.2/share/cmake/Modules/FindBoost.cmake:1106 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.51.0

  Boost include path: /usr/local/include

  Detected version of Boost is too old.  Requested version was 1.53 (or
  newer).
Call Stack (most recent call first):
  CMakeLists.txt:62 (FIND_PACKAGE)


-- Could NOT find Boost

Download Boost 1.54 and install it from source.

It works after install it from source, Thanks.

but another error appears, sorry to fullfill this thread with these logs :-\, do anybody know the reason?

Quote
/Users/cleney/Temp/keyhotee/BitShares/src/bitname/bitname_hash.cpp: In function 'uint64_t bts::bitname::name_hash(const string&)':
/Users/cleney/Temp/keyhotee/BitShares/src/bitname/bitname_hash.cpp:118:43: error: 'std::string' has no member named 'pop_back'
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-unused-local-typedefs" [enabled by default]
make[2]: *** [CMakeFiles/bshare.dir/src/bitname/bitname_hash.cpp.o] Error 1
make[1]: *** [CMakeFiles/bshare.dir/all] Error 2
make: *** [all] Error 2

I'm wondering if it is caused by some fail when building boost:
Quote
...failed darwin.compile.c++ bin.v2/libs/log/build/darwin-4.2.1/release/build-no/link-static/log-api-unix/threading-multi/default_filter_factory.o...
...skipped <pbin.v2/libs/log/build/darwin-4.2.1/release/build-no/link-static/log-api-unix/threading-multi>libboost_log_setup.a(clean) for lack of <pbin.v2/libs/log/build/darwin-4.2.1/release/build-no/link-static/log-api-unix/threading-multi>filter_parser.o...
...skipped <pbin.v2/libs/log/build/darwin-4.2.1/release/build-no/link-static/log-api-unix/threading-multi>libboost_log_setup.a for lack of <pbin.v2/libs/log/build/darwin-4.2.1/release/build-no/link-static/log-api-unix/threading-multi>filter_parser.o...
...skipped <p/usr/local/lib>libboost_log_setup.a for lack of <pbin.v2/libs/log/build/darwin-4.2.1/release/build-no/link-static/log-api-unix/threading-multi>libboost_log_setup.a...
...failed updating 6 targets...
...skipped 4 targets...
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline bytemaster

I encoutered another problem, It seems that Cmake cannot detect boost version(boost 1.54.0 installed):

Quote
-- The C compiler identification is Clang 3.1.0
-- The CXX compiler identification is Clang 3.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
statusCompiling on UNIX
CMake Error at /usr/local/Cellar/cmake/2.8.11.2/share/cmake/Modules/FindBoost.cmake:1106 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.51.0

  Boost include path: /usr/local/include

  Detected version of Boost is too old.  Requested version was 1.53 (or
  newer).
Call Stack (most recent call first):
  CMakeLists.txt:62 (FIND_PACKAGE)


-- Could NOT find Boost

Download Boost 1.54 and install it from source. 
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline HackFisher

  • Hero Member
  • *****
  • Posts: 883
    • View Profile
I encoutered another problem, It seems that Cmake cannot detect boost version(boost 1.54.0 installed):

Quote
-- The C compiler identification is Clang 3.1.0
-- The CXX compiler identification is Clang 3.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
statusCompiling on UNIX
CMake Error at /usr/local/Cellar/cmake/2.8.11.2/share/cmake/Modules/FindBoost.cmake:1106 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.51.0

  Boost include path: /usr/local/include

  Detected version of Boost is too old.  Requested version was 1.53 (or
  newer).
Call Stack (most recent call first):
  CMakeLists.txt:62 (FIND_PACKAGE)


-- Could NOT find Boost
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline Slydee

  • Newbie
  • *
  • Posts: 4
    • View Profile
Hi bytemaster,

I install it :

g++ --version
g++ (MacPorts gcc48 4.8.2_0) 4.8.2

And select it :

port select --list gcc
Available versions for gcc:
   mp-gcc48 (active)
   none

But still the same error!

Offline bytemaster

Please install macports g++ 4.8


Sent from my iPhone using Tapatalk
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline Slydee

  • Newbie
  • *
  • Posts: 4
    • View Profile
g++ --version give me this:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix

Thanks!
Slydee

Offline bytemaster

I have not seen that error before.   What version of g++?


Sent from my iPhone using Tapatalk
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline Slydee

  • Newbie
  • *
  • Posts: 4
    • View Profile
Hi guys!

I would like to give some help here!
I'm software engineer, involve in computer development since 1993, I'm comfortable in C/C++ for all platform!

I strongly believe in Keyhotee, as a data center owner also involve in security question, I always found that Email, are technology from the Past, useful but so old and insecure, at my point of view Email is like an Oil lamp, still working but Electricity is so common sense !! That is my main concern, communicate with people securely is the base of everything!

I've set up the Keyhotee project on my Mac, and ready to dive in that world, but I got some issue to build the project!

Here the error or issue :
.
.
.

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/type_traits:770:38: error:
      implicit instantiation of undefined template 'std::__1::hash<fc::ip::endpoint>'
    : public integral_constant<bool, __is_empty(_Tp)> {};
.
.
.
.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:2147:15: error: no matching
      constructor for initialization of 'bts::network::connection'
              __second_(_VSTD::forward<_Args2>(get<_I2>(__second_args))...)

.
.
.
.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:2147:15: error: no matching
      constructor for initialization of 'bts::network::connection'
              __second_(_VSTD::forward<_Args2>(get<_I2>(__second_args))...)

.
..
.

2 warnings and 3 errors generated.
make[2]: *** [bitshares/CMakeFiles/bshare.dir/src/network/server.cpp.o] Error 1
make[1]: *** [bitshares/CMakeFiles/bshare.dir/all] Error 2


I did not search deeply, I believe someone had already found something on that?

Thanks for your help!

Slydee


Offline liberman

  • Full Member
  • ***
  • Posts: 85
    • View Profile
Several other people have been reporting this compile error and yet I have never seen it on any OS (Linux, Mac or Windows).    What version of gcc are you using?  I compile using gcc-4.8 on OS X and 4.7 on Linux.

gcc 4.8.2 and boost 1.55 as you can see (it doesn't even start to compile with boost libraries included in my distro Arch).

It seems to be a problem with boost. Version 1.54 doesn't compile with newer versions of glibc, and 1.55 has the above problem. The problem with arch is that it usually has the newest version of everything so this things may happen very often.

Offline liberman

  • Full Member
  • ***
  • Posts: 85
    • View Profile
Several other people have been reporting this compile error and yet I have never seen it on any OS (Linux, Mac or Windows).    What version of gcc are you using?  I compile using gcc-4.8 on OS X and 4.7 on Linux.

gcc 4.8.2 and boost 1.55 as you can see (it doesn't even start to compile with boost libraries included in my distro Arch).

Offline bytemaster

I don't know where you do discuss issues, I don't want to fill the thread about them, but here is the error I'm getting:

Code: [Select]
[ 19%] Building CXX object bitshares/fc/CMakeFiles/fc.dir/src/thread/thread.cpp.o
In file included from /home/javi/opt/src/boost_1_55_0/boost/atomic/detail/platform.hpp:22:0,
                 from /home/javi/opt/src/boost_1_55_0/boost/atomic/atomic.hpp:17,
                 from /home/javi/opt/src/boost_1_55_0/boost/atomic.hpp:12,
                 from /home/javi/opt/src/boost_1_55_0/boost/thread/pthread/once_atomic.hpp:20,
                 from /home/javi/opt/src/boost_1_55_0/boost/thread/once.hpp:20,
                 from /home/javi/opt/src/boost_1_55_0/boost/thread.hpp:17,
                 from /home/javi/opt/src/keyhotee/bitshares/fc/src/thread/thread_d.hpp:4,
                 from /home/javi/opt/src/keyhotee/bitshares/fc/src/thread/thread.cpp:5:
/home/javi/opt/src/boost_1_55_0/boost/atomic/detail/gcc-atomic.hpp: In member function 'void fc::thread_d::process_tasks()':
/home/javi/opt/src/boost_1_55_0/boost/atomic/detail/gcc-atomic.hpp:1081:95: error: invalid memory model for '__atomic_exchange'
         return __atomic_exchange_n(&v_, v, atomics::detail::convert_memory_order_to_gcc(order));


Several other people have been reporting this compile error and yet I have never seen it on any OS (Linux, Mac or Windows).    What version of gcc are you using?  I compile using gcc-4.8 on OS X and 4.7 on Linux.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline liberman

  • Full Member
  • ***
  • Posts: 85
    • View Profile
I don't know where you do discuss issues, I don't want to fill the thread about them, but here is the error I'm getting:

Code: [Select]
[ 19%] Building CXX object bitshares/fc/CMakeFiles/fc.dir/src/thread/thread.cpp.o
In file included from /home/javi/opt/src/boost_1_55_0/boost/atomic/detail/platform.hpp:22:0,
                 from /home/javi/opt/src/boost_1_55_0/boost/atomic/atomic.hpp:17,
                 from /home/javi/opt/src/boost_1_55_0/boost/atomic.hpp:12,
                 from /home/javi/opt/src/boost_1_55_0/boost/thread/pthread/once_atomic.hpp:20,
                 from /home/javi/opt/src/boost_1_55_0/boost/thread/once.hpp:20,
                 from /home/javi/opt/src/boost_1_55_0/boost/thread.hpp:17,
                 from /home/javi/opt/src/keyhotee/bitshares/fc/src/thread/thread_d.hpp:4,
                 from /home/javi/opt/src/keyhotee/bitshares/fc/src/thread/thread.cpp:5:
/home/javi/opt/src/boost_1_55_0/boost/atomic/detail/gcc-atomic.hpp: In member function 'void fc::thread_d::process_tasks()':
/home/javi/opt/src/boost_1_55_0/boost/atomic/detail/gcc-atomic.hpp:1081:95: error: invalid memory model for '__atomic_exchange'
         return __atomic_exchange_n(&v_, v, atomics::detail::convert_memory_order_to_gcc(order));