SChernykh / p2pool

Decentralized pool for Monero mining
GNU General Public License v3.0
1.03k stars 124 forks source link

Build error on termux #215

Closed Saikatsaha1996 closed 1 year ago

Saikatsaha1996 commented 1 year ago

In file included from /data/data/com.termux/files/home/p2pool/src/common.h:350:
In file included from /data/data/com.termux/files/home/p2pool/src/util.h:29:
/data/data/com.termux/files/home/p2pool/external/src/robin-hood-hashing/src/include/robin_hood.h:1458:33: error: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Werror,-Wdeprecated-builtins]
        Cloner<Table, IsFlat && ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(Node)>()(o, *this);
                                ^
/data/data/com.termux/files/home/p2pool/external/src/robin-hood-hashing/src/include/robin_hood.h:210:51: note: expanded from macro 'ROBIN_HOOD_IS_TRIVIALLY_COPYABLE'
#    define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) __has_trivial_copy(__VA_ARGS__)
                                                  ^
In file included from /data/data/com.termux/files/home/p2pool/src/block_cache.cpp:18:
In file included from /data/data/com.termux/files/home/p2pool/src/common.h:350:
In file included from /data/data/com.termux/files/home/p2pool/src/util.h:29:
/data/data/com.termux/files/home/p2pool/external/src/robin-hood-hashing/src/include/robin_hood.h:1458:33: error: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Werror,-Wdeprecated-builtins]
        Cloner<Table, IsFlat && ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(Node)>()(o, *this);
                                ^
/data/data/com.termux/files/home/p2pool/external/src/robin-hood-hashing/src/include/robin_hood.h:210:51: note: expanded from macro 'ROBIN_HOOD_IS_TRIVIALLY_COPYABLE'
#    define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) __has_trivial_copy(__VA_ARGS__)
                                                  ^
In file included from /data/data/com.termux/files/home/p2pool/src/keccak.cpp:18:
In file included from /data/data/com.termux/files/home/p2pool/src/common.h:350:
In file included from /data/data/com.termux/files/home/p2pool/src/util.h:29:
/data/data/com.termux/files/home/p2pool/external/src/robin-hood-hashing/src/include/robin_hood.h:1458:33: error: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Werror,-Wdeprecated-builtins]
        Cloner<Table, IsFlat && ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(Node)>()(o, *this);
                                ^
/data/data/com.termux/files/home/p2pool/external/src/robin-hood-hashing/src/include/robin_hood.h:210:51: note: expanded from macro 'ROBIN_HOOD_IS_TRIVIALLY_COPYABLE'
#    define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) __has_trivial_copy(__VA_ARGS__)
                                                  ^
In file included from /data/data/com.termux/files/home/p2pool/src/json_rpc_request.cpp:18:
In file included from /data/data/com.termux/files/home/p2pool/src/common.h:350:
In file included from /data/data/com.termux/files/home/p2pool/src/util.h:29:
/data/data/com.termux/files/home/p2pool/external/src/robin-hood-hashing/src/include/robin_hood.h:1458:33: error: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Werror,-Wdeprecated-builtins]
        Cloner<Table, IsFlat && ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(Node)>()(o, *this);
                                ^
/data/data/com.termux/files/home/p2pool/external/src/robin-hood-hashing/src/include/robin_hood.h:210:51: note: expanded from macro 'ROBIN_HOOD_IS_TRIVIALLY_COPYABLE'
#    define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) __has_trivial_copy(__VA_ARGS__)
                                                  ^
In file included from /data/data/com.termux/files/home/p2pool/src/crypto.cpp:18:
In file included from /data/data/com.termux/files/home/p2pool/src/common.h:350:
In file included from /data/data/com.termux/files/home/p2pool/src/util.h:29:
/data/data/com.termux/files/home/p2pool/external/src/robin-hood-hashing/src/include/robin_hood.h:1458:33: error: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Werror,-Wdeprecated-builtins]
        Cloner<Table, IsFlat && ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(Node)>()(o, *this);
                                ^
/data/data/com.termux/files/home/p2pool/external/src/robin-hood-hashing/src/include/robin_hood.h:210:51: note: expanded from macro 'ROBIN_HOOD_IS_TRIVIALLY_COPYABLE'
#    define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) __has_trivial_copy(__VA_ARGS__)
                                                  ^
In file included from /data/data/com.termux/files/home/p2pool/src/console_commands.cpp:19:
In file included from /data/data/com.termux/files/home/p2pool/src/common.h:350:
In file included from /data/data/com.termux/files/home/p2pool/src/util.h:29:
/data/data/com.termux/files/home/p2pool/external/src/robin-hood-hashing/src/include/robin_hood.h:1458:33: error: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Werror,-Wdeprecated-builtins]
        Cloner<Table, IsFlat && ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(Node)>()(o, *this);
                                ^
/data/data/com.termux/files/home/p2pool/external/src/robin-hood-hashing/src/include/robin_hood.h:210:51: note: expanded from macro 'ROBIN_HOOD_IS_TRIVIALLY_COPYABLE'
#    define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) __has_trivial_copy(__VA_ARGS__)
                                                  ^
1 error generated.
make[2]: *** [CMakeFiles/p2pool.dir/build.make:174: CMakeFiles/p2pool.dir/src/keccak.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /data/data/com.termux/files/home/p2pool/src/log.cpp:18:
In file included from /data/data/com.termux/files/home/p2pool/src/common.h:350:
In file included from /data/data/com.termux/files/home/p2pool/src/util.h:29:
/data/data/com.termux/files/home/p2pool/external/src/robin-hood-hashing/src/include/robin_hood.h:1458:33: error: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Werror,-Wdeprecated-builtins]
        Cloner<Table, IsFlat && ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(Node)>()(o, *this);
                                ^
/data/data/com.termux/files/home/p2pool/external/src/robin-hood-hashing/src/include/robin_hood.h:210:51: note: expanded from macro 'ROBIN_HOOD_IS_TRIVIALLY_COPYABLE'
#    define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) __has_trivial_copy(__VA_ARGS__)
                                                  ^
1 error generated.
make[2]: *** [CMakeFiles/p2pool.dir/build.make:104: CMakeFiles/p2pool.dir/src/block_cache.cpp.o] Error 1
1 error generated.
make[2]: *** [CMakeFiles/p2pool.dir/build.make:160: CMakeFiles/p2pool.dir/src/json_rpc_request.cpp.o] Error 1
1 error generated.
make[2]: *** [CMakeFiles/p2pool.dir/build.make:146: CMakeFiles/p2pool.dir/src/crypto.cpp.o] Error 1
1 error generated.
make[2]: *** [CMakeFiles/p2pool.dir/build.make:188: CMakeFiles/p2pool.dir/src/log.cpp.o] Error 1
1 error generated.
make[2]: *** [CMakeFiles/p2pool.dir/build.make:132: CMakeFiles/p2pool.dir/src/console_commands.cpp.o] Error 1
1 error generated.
make[2]: *** [CMakeFiles/p2pool.dir/build.make:118: CMakeFiles/p2pool.dir/src/block_template.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/p2pool.dir/all] Error 2
make: *** [Makefile:136: all] Error 2```
SChernykh commented 1 year ago

Same bug was discussed in https://github.com/SChernykh/p2pool/issues/207 What's the full output of cmake step when you compile p2pool?

Saikatsaha1996 commented 1 year ago

Same bug was discussed in #207 What's the full output of cmake step when you compile p2pool?

Performing Test HAVE_BITSCANREVERSE64 - Failed

Others all is okay.. configure done..

IMG_20221104_142318

SChernykh commented 1 year ago

https://github.com/SChernykh/p2pool/commit/b9a9be27953c40262dec6f188c9ec38c2b7b9985 should fix this specific error, but I haven't tried to compile P2Pool with clang 15 so it can fail somewhere else.

Saikatsaha1996 commented 1 year ago

@SChernykh thank you solved..

Under termux gcc 9, 10, 11, 12 available But with gcc have bugs with cmake ..

IMG_20221104_151404

Saikatsaha1996 commented 1 year ago

@SChernykh i have Android wallet.. It should mandatory to run monero node run fast? Than i can mine with p2pool ?