Pages:
Author

Topic: [ANN] Warthog Crypto Currency - page 5. (Read 3157 times)

jr. member
Activity: 32
Merit: 2
July 04, 2023, 11:21:01 AM
#34
After rebuilding and compiling, the startup still fails, and the following error is prompted

meirong@OS-20230306EWPM:~/youzhu/new/build/src$ cd wallet
meirong@OS-20230306EWPM:~/youzhu/new/build/src/wallet$ ls -a
.  ..  wart-wallet  wart-wallet.p
meirong@OS-20230306EWPM:~/youzhu/new/build/src/wallet$ ./wart-wallet
./wart-wallet: symbol lookup error: ./wart-wallet: undefined symbol: secp256k1_ecdsa_recover

What is the output of this?
Code:
meirong@OS-20230306EWPM:~/youzhu/new/build/src/wallet$ ldd wart-wallet
newbie
Activity: 99
Merit: 0
July 04, 2023, 11:02:28 AM
#33
After rebuilding and compiling, the startup still fails, and the following error is prompted

meirong@OS-20230306EWPM:~/youzhu/new/build/src$ cd wallet
meirong@OS-20230306EWPM:~/youzhu/new/build/src/wallet$ ls -a
.  ..  wart-wallet  wart-wallet.p
meirong@OS-20230306EWPM:~/youzhu/new/build/src/wallet$ ./wart-wallet
./wart-wallet: symbol lookup error: ./wart-wallet: undefined symbol: secp256k1_ecdsa_recover
newbie
Activity: 99
Merit: 0
July 04, 2023, 11:00:20 AM
#32
meirong@OS-20230306EWPM:~/youzhu/new/build$ ninja
[156/212] Compiling C object src/miner/wart-miner.p/third_party_cpuminer-opt_sph_sha2.c.o
../src/miner/third_party/cpuminer-opt/sph_sha2.c:822: warning: ISO C forbids an empty translation unit [-Wpedantic]
[170/212] Compiling C object src/miner/wart-miner.p/third_party_cpuminer-opt_sha256-hash-opt.c.o
In file included from ../src/miner/third_party/cpuminer-opt/simd-utils.h:155,
                 from ../src/miner/third_party/cpuminer-opt/sha256-hash-opt.c:14:
../src/miner/third_party/cpuminer-opt/simd-utils/simd-int.h:55:18: warning: ISO C does not support ‘__int128’ types [-Wpedantic]
   55 | typedef          __int128  int128_t;
      |                  ^~~~~~~~
../src/miner/third_party/cpuminer-opt/simd-utils/simd-int.h:56:18: warning: ISO C does not support ‘__int128’ types [-Wpedantic]
   56 | typedef unsigned __int128 uint128_t;
      |                  ^~~~~~~~
[212/212] Linking target src/miner/wart-miner
meirong@OS-20230306EWPM:~/youzhu/new/build$
newbie
Activity: 99
Merit: 0
July 04, 2023, 10:38:53 AM
#31
May I ask which folder the node program is in, and what is the directory path? Where is the directory path of wart-wallet?
The important executables are in these directories:
Code:
src
├── miner
│   └── wart-miner
├── node
│   └── wart-node
└── wallet
    └── wart-wallet
These distro packages are not relevant:
Code:
meirong@OS-20230306EWPM:~/Warthog$ dpkg -l | grep libsecp256k1
ii  libsecp256k1-0:amd64                   0.1~20170810-2                    amd64        library for EC operations on curve secp256k1
ii  libsecp256k1-dev:amd64                 0.1~20170810-2                    amd64        library for EC operations on curve secp256k1 - development headers
secp256k1 is built statically and shipped with the repo. No need for this to be installed.


I delete the directory and try to rebuild and compile. If it doesn't work, I can only give up this project


meirong@OS-20230306EWPM:~/youzhu/new/build$ meson ..
The Meson build system
Version: 1.1.1
Source dir: /home/meirong/youzhu/new
Build dir: /home/meirong/youzhu/new/build
Build type: native build
Project name: Warthog
Project version: 0.1
C compiler for the host machine: ccache cc (gcc 11.1.0 "cc (Ubuntu 11.1.0-1ubuntu1~20.04) 11.1.0")
C linker for the host machine: cc ld.bfd 2.34
C++ compiler for the host machine: ccache c++ (gcc 11.1.0 "c++ (Ubuntu 11.1.0-1ubuntu1~20.04) 11.1.0")
C++ linker for the host machine: c++ ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64

Executing subproject libuv

libuv| Project name: libuv
libuv| Project version: 1.44.2
libuv| C compiler for the host machine: ccache cc (gcc 11.1.0 "cc (Ubuntu 11.1.0-1ubuntu1~20.04) 11.1.0")
libuv| C linker for the host machine: cc ld.bfd 2.34
libuv| Fetching value of define "__QNX__" :
libuv| Fetching value of define "_AIX" :
libuv| Message: System: linux
libuv| Compiler for C supports arguments -fno-strict-aliasing: YES
libuv| Run-time dependency threads found: YES
libuv| Library dl found: YES
libuv| Library rt found: YES
libuv| Build targets in project: 1
libuv| Subproject libuv finished.

Using sqlite3 source from cache.
Downloading sqlite3 patch from https://wrapdb.mesonbuild.com/v2/sqlite3_3.39.3-1/get_patch
WARNING: failed to download with error: WrapDB connection failed to https://wrapdb.mesonbuild.com/v2/sqlite3_3.39.3-1/get_patch with error .. Trying after a delay...
WARNING: failed to download with error: WrapDB connection failed to https://wrapdb.mesonbuild.com/v2/sqlite3_3.39.3-1/get_patch with error .. Trying after a delay...
WARNING: failed to download with error: WrapDB connection failed to https://wrapdb.mesonbuild.com/v2/sqlite3_3.39.3-1/get_patch with error .. Trying after a delay...
WARNING: failed to download with error: WrapDB connection failed to https://wrapdb.mesonbuild.com/v2/sqlite3_3.39.3-1/get_patch with error .. Trying after a delay...
Download size: 1658
Downloading: ..........

Executing subproject sqlite3

sqlite3| Project name: sqlite3
sqlite3| Project version: 3.39.3
sqlite3| C compiler for the host machine: ccache cc (gcc 11.1.0 "cc (Ubuntu 11.1.0-1ubuntu1~20.04) 11.1.0")
sqlite3| C linker for the host machine: cc ld.bfd 2.34
sqlite3| Run-time dependency dl found: YES
sqlite3| Library m found: YES
sqlite3| Dependency threads found: YES unknown (cached)
sqlite3| Build targets in project: 2
sqlite3| Subproject sqlite3 finished.

Dependency threads found: YES unknown (cached)
Build targets in project: 8

Warthog 0.1

  Subprojects
    libuv  : YES
    sqlite3: YES

Found ninja-1.11.1.git.kitware.jobserver-1 at /home/meirong/.local/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
newbie
Activity: 99
Merit: 0
July 04, 2023, 10:34:32 AM
#30
It is not feasible to execute them indiscriminately. I will send you the results after execution, and you will know after looking at them.

meirong@OS-20230306EWPM:~/Warthog/new$ ls -a
.  ..  .clang-format  .git  .gitignore  LICENSE  README  build  meson.build  src  subprojects  thirdparty
meirong@OS-20230306EWPM:~/Warthog/new$ cd build
meirong@OS-20230306EWPM:~/Warthog/new/build$ ls -a
.   .gitignore  .ninja_deps  build.ninja            meson-info  meson-private      src          thirdparty
..  .hgignore   .ninja_log   compile_commands.json  meson-logs  meson-uninstalled  subprojects
meirong@OS-20230306EWPM:~/Warthog/new/build$ cd src
meirong@OS-20230306EWPM:~/Warthog/new/build/src$ ls -a
.  ..  miner  node  shared  wallet
meirong@OS-20230306EWPM:~/Warthog/new/build/src$ ./wart-node --help
-bash: ./wart-node: No such file or directory
meirong@OS-20230306EWPM:~/Warthog/new/build/src$ cd node
meirong@OS-20230306EWPM:~/Warthog/new/build/src/node$ ls -a
.  ..  wart-node  wart-node.p
meirong@OS-20230306EWPM:~/Warthog/new/build/src/node$ ./wart-node --help
./wart-node: symbol lookup error: ./wart-node: undefined symbol: secp256k1_ecdsa_sign_recoverable
meirong@OS-20230306EWPM:~/Warthog/new/build/src/node$ ./wart-node
./wart-node: symbol lookup error: ./wart-node: undefined symbol: secp256k1_ecdsa_sign_recoverable
meirong@OS-20230306EWPM:~/Warthog/new/build/src/node$ cd ..
meirong@OS-20230306EWPM:~/Warthog/new/build/src$ cd wallet
meirong@OS-20230306EWPM:~/Warthog/new/build/src/wallet$ ./wart-wallet --help
./wart-wallet: symbol lookup error: ./wart-wallet: undefined symbol: secp256k1_ecdsa_recover
meirong@OS-20230306EWPM:~/Warthog/new/build/src/wallet$ ./wart-wallet
./wart-wallet: symbol lookup error: ./wart-wallet: undefined symbol: secp256k1_ecdsa_recover
meirong@OS-20230306EWPM:~/Warthog/new/build/src/wallet$
jr. member
Activity: 32
Merit: 2
July 04, 2023, 07:08:52 AM
#29
May I ask which folder the node program is in, and what is the directory path? Where is the directory path of wart-wallet?
The important executables are in these directories:
Code:
src
├── miner
│   └── wart-miner
├── node
│   └── wart-node
└── wallet
    └── wart-wallet
These distro packages are not relevant:
Code:
meirong@OS-20230306EWPM:~/Warthog$ dpkg -l | grep libsecp256k1
ii  libsecp256k1-0:amd64                   0.1~20170810-2                    amd64        library for EC operations on curve secp256k1
ii  libsecp256k1-dev:amd64                 0.1~20170810-2                    amd64        library for EC operations on curve secp256k1 - development headers
secp256k1 is built statically and shipped with the repo. No need for this to be installed.
newbie
Activity: 99
Merit: 0
July 04, 2023, 04:49:22 AM
#28
Got an error when compiling on ubuntu 20.04 LTS:
nicola@WOORKER005:~/war/Warthog/builddir$ meson compile
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja
[25/212] Compiling C object thirdparty/uSockets/libusockets.so.p/src_bsd.c.o
FAILED: thirdparty/uSockets/libusockets.so.p/src_bsd.c.o
cc -I./thirdparty/./uSockets/libusockets.so.p -I./thirdparty/./uSockets -I../thirdparty/uSockets -I../thirdparty/uSockets/src -I../subprojects/libuv-v1.44.2/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -O0 -g -fPIC -pthread -DLIBUS_USE_LIBUV -DLIBUS_NO_SSL -w -MD -MQ thirdparty/uSockets/libusockets.so.p/src_bsd.c.o -MF ./thirdparty/./uSockets/libusockets.so.p/src_bsd.c.o.d -o thirdparty/uSockets/libusockets.so.p/src_bsd.c.o -c ../thirdparty/uSockets/src/bsd.c
../thirdparty/uSockets/src/bsd.c: In function ‘bsd_create_connect_socket’:
../thirdparty/uSockets/src/bsd.c:274:104: error: parameter name omitted
  274 | LIBUS_SOCKET_DESCRIPTOR bsd_create_connect_socket(const char *host, int port, const char *source_host, int /*options*/) {
      |                                                                                                        ^~~
[45/212] Compiling C object subprojects/sqlite-amalgamation-3390300/libsqlite3.so.0.8.6.p/sqlite3.c.o
ninja: build stopped: subcommand failed.


 ubuntu 20.04 LTS The system version does not support
full member
Activity: 442
Merit: 100
July 04, 2023, 04:27:42 AM
#27
Don't copy/move the executable files, start them from the directory where they are generated. Does this help?



It is useless according to what you said, what system version does ubuntu support?

I am able to run and mine this coin on Ubuntu 22.04
newbie
Activity: 99
Merit: 0
July 04, 2023, 02:09:25 AM
#26
Don't copy/move the executable files, start them from the directory where they are generated. Does this help?

It is useless according to what you said, what system version does ubuntu support?
jr. member
Activity: 32
Merit: 2
July 03, 2023, 03:29:36 PM
#25
Don't copy/move the executable files, start them from the directory where they are generated. Does this help?
newbie
Activity: 99
Merit: 0
July 03, 2023, 03:14:03 PM
#24
Quote
Haha, I seem to build and compile successfully, it is not easy.
We tested on many new distros and it worked without problems, sorry that 20.04 is not supported out of the box. Pumbaa added a comment on the readme that 20.04 is not supported but you managed to compile on 20.04.
Can you write down the steps into this issue? https://github.com/ByPumbaa/Warthog/issues/2
This person also wanted to compile on 20.04 and with your steps it might work.

Quote
May I ask which 2 programs do I need to run? wallet and which
Posted on: Today at 07:38:36 PM

You need to run the node program to be able to mine.
Then you need to generate a new wallet file and keep it safe. Do this with the "wallet" program, read the help you can access with "./wart-wallet --help`.  You can print your wallet address by adding the "-a" argument after you generated your wallet file "./wart-wallet -a"
Then you need to run the miner with your personal address from the wallet file. Again read the "--help" of the miner, you need to specify the address and number of threads to mine.

Don't forget, the miner only has good performance if you compile everything with "--buildtype=release"! You need to append this to the meson command when you generate the build directory.



meirong@OS-20230306EWPM:~/Warthog$ ./wart-wallet
./wart-wallet: symbol lookup error: ./wart-wallet: undefined symbol: secp256k1_ecdsa_recover

secp256k1  Incompatible library version         
meirong@OS-20230306EWPM:~/Warthog$ dpkg -l | grep libsecp256k1
ii  libsecp256k1-0:amd64                   0.1~20170810-2                    amd64        library for EC operations on curve secp256k1
ii  libsecp256k1-dev:amd64                 0.1~20170810-2                    amd64        library for EC operations on curve secp256k1 - development headers
newbie
Activity: 99
Merit: 0
July 03, 2023, 03:02:27 PM
#23
Quote
Haha, I seem to build and compile successfully, it is not easy.
We tested on many new distros and it worked without problems, sorry that 20.04 is not supported out of the box. Pumbaa added a comment on the readme that 20.04 is not supported but you managed to compile on 20.04.
Can you write down the steps into this issue? https://github.com/ByPumbaa/Warthog/issues/2
This person also wanted to compile on 20.04 and with your steps it might work.

Quote
May I ask which 2 programs do I need to run? wallet and which
Posted on: Today at 07:38:36 PM

You need to run the node program to be able to mine.
Then you need to generate a new wallet file and keep it safe. Do this with the "wallet" program, read the help you can access with "./wart-wallet --help`.  You can print your wallet address by adding the "-a" argument after you generated your wallet file "./wart-wallet -a"
Then you need to run the miner with your personal address from the wallet file. Again read the "--help" of the miner, you need to specify the address and number of threads to mine.

Don't forget, the miner only has good performance if you compile everything with "--buildtype=release"! You need to append this to the meson command when you generate the build directory.



meirong@OS-20230306EWPM:~/Warthog/node$ ls -a
.  ..  wart-node  wart-node.p
meirong@OS-20230306EWPM:~/Warthog/node$ ./wart-node --help
./wart-node: error while loading shared libraries: libusockets.so: cannot open shared object file: No such file or directory
meirong@OS-20230306EWPM:~/Warthog/node$ ./wart-node
./wart-node: error while loading shared libraries: libusockets.so: cannot open shared object file: No such file or directory
newbie
Activity: 99
Merit: 0
July 03, 2023, 02:55:42 PM
#22
May I ask which folder the node program is in, and what is the directory path? Where is the directory path of wart-wallet?
jr. member
Activity: 32
Merit: 2
July 03, 2023, 02:51:21 PM
#21
Quote
Haha, I seem to build and compile successfully, it is not easy.
We tested on many new distros and it worked without problems, sorry that 20.04 is not supported out of the box. Pumbaa added a comment on the readme that 20.04 is not supported but you managed to compile on 20.04.
Can you write down the steps into this issue? https://github.com/ByPumbaa/Warthog/issues/2
This person also wanted to compile on 20.04 and with your steps it might work.

Quote
May I ask which 2 programs do I need to run? wallet and which
Posted on: Today at 07:38:36 PM

You need to run the node program to be able to mine.
Then you need to generate a new wallet file and keep it safe. Do this with the "wallet" program, read the help you can access with "./wart-wallet --help`.  You can print your wallet address by adding the "-a" argument after you generated your wallet file "./wart-wallet -a"
Then you need to run the miner with your personal address from the wallet file. Again read the "--help" of the miner, you need to specify the address and number of threads to mine.

Don't forget, the miner only has good performance if you compile everything with "--buildtype=release"! You need to append this to the meson command when you generate the build directory.
newbie
Activity: 99
Merit: 0
July 03, 2023, 02:41:13 PM
#20
Please try again later, this might be a temporary network issue:
Code:
WARNING: failed to download with error: WrapDB connection failed to https://wrapdb.mesonbuild.com/v2/sqlite3_3.39.3-1/get_patch with error .. Trying after a delay...
And don't forget to delete the build directory before you try again.

meirong@OS-20230306EWPM:~/Warthog/new/build/src$ ls -a
.  ..  miner  node  shared  wallet

meirong@OS-20230306EWPM:~/Warthog/new/build/src$ ls -a
. .. miner node shared wallet

May I ask which 2 programs do I need to run? wallet and which
newbie
Activity: 99
Merit: 0
July 03, 2023, 02:38:36 PM
#19
Haha, I seem to build and compile successfully, it is not easy.
meirong@OS-20230306EWPM:~/Warthog/new/build$ ninja --version
1.11.1.git.kitware.jobserver-1
meirong@OS-20230306EWPM:~/Warthog/new/build$ ninja
[153/212] Compiling C object src/miner/wart-miner.p/third_party_cpuminer-opt_sph_sha2.c.o
../src/miner/third_party/cpuminer-opt/sph_sha2.c:822: warning: ISO C forbids an empty translation unit [-Wpedantic]
[168/212] Compiling C object src/miner/wart-miner.p/third_party_cpuminer-opt_sha256-hash-opt.c.o
In file included from ../src/miner/third_party/cpuminer-opt/simd-utils.h:155,
                  from ../src/miner/third_party/cpuminer-opt/sha256-hash-opt.c:14:
../src/miner/third_party/cpuminer-opt/simd-utils/simd-int.h:55:18: warning: ISO C does not support '__int128' types [-Wpedantic]
    55 | typedef __int128 int128_t;
       | ^~~~~~~~
../src/miner/third_party/cpuminer-opt/simd-utils/simd-int.h:56:18: warning: ISO C does not support '__int128' types [-Wpedantic]
    56 | typedef unsigned __int128 uint128_t;
       | ^~~~~~~~
[212/212] Linking target src/miner/wart-miner
jr. member
Activity: 32
Merit: 2
July 03, 2023, 02:38:00 PM
#18
Please try again later, this might be a temporary network issue:
Code:
WARNING: failed to download with error: WrapDB connection failed to https://wrapdb.mesonbuild.com/v2/sqlite3_3.39.3-1/get_patch with error .. Trying after a delay...
And don't forget to delete the build directory before you try again.
newbie
Activity: 99
Merit: 0
July 03, 2023, 02:31:32 PM
#17
20230306EWPM:~/Warthog/new/build$ meson ..
The Meson build system
Version: 1.1.1
Source dir: /home/meirong/Warthog/new
Build dir: /home/meirong/Warthog/new/build
Build type: native build
Project name: Warthog
Project version: 0.1
C compiler for the host machine: ccache cc (gcc 11.1.0 "cc (Ubuntu 11.1.0-1ubuntu1~20.04) 11.1.0")
C linker for the host machine: cc ld.bfd 2.34
C++ compiler for the host machine: ccache c++ (gcc 11.1.0 "c++ (Ubuntu 11.1.0-1ubuntu1~20.04) 11.1.0")
C++ linker for the host machine: c++ ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64

Executing subproject libuv

libuv| Project name: libuv
libuv| Project version: 1.44.2
libuv| C compiler for the host machine: ccache cc (gcc 11.1.0 "cc (Ubuntu 11.1.0-1ubuntu1~20.04) 11.1.0")
libuv| C linker for the host machine: cc ld.bfd 2.34
libuv| Fetching value of define "__QNX__" :
libuv| Fetching value of define "_AIX" :
libuv| Message: System: linux
libuv| Compiler for C supports arguments -fno-strict-aliasing: YES
libuv| Run-time dependency threads found: YES
libuv| Library dl found: YES
libuv| Library rt found: YES
libuv| Build targets in project: 1
libuv| Subproject libuv finished.

Using sqlite3 source from cache.
Downloading sqlite3 patch from https://wrapdb.mesonbuild.com/v2/sqlite3_3.39.3-1/get_patch
WARNING: failed to download with error: Remote end closed connection without response. Trying after a delay...
WARNING: failed to download with error: WrapDB connection failed to https://wrapdb.mesonbuild.com/v2/sqlite3_3.39.3-1/get_patch with error .. Trying after a delay...
WARNING: failed to download with error: WrapDB connection failed to https://wrapdb.mesonbuild.com/v2/sqlite3_3.39.3-1/get_patch with error .. Trying after a delay...
jr. member
Activity: 32
Merit: 2
July 03, 2023, 11:33:30 AM
#16
How did you upgrade to gcc 11? It is not a standard package of Ubuntu 20.04 LTS.Maybe you messed something up or only did a partial install without corresponding C++ headers like .
Can you try on a newer system like 22.04?
You wrote:
Code:
fatal error: pan: No such file or directory3#include NNNNA
Something is messed up here,  "pan" and "NNNNA" are not normal output. Can you please open a GitHub issue with the correct output?

Ubuntu 20.04.'s compiler packages are too old. You probably chose a workaround to install gcc 11 and did not succeed. You should try compiling on a newer system.

Quote
Still the same error after I upgrade gcc11
Are you sure gcc11 is now used? Is gcc9 still installed? You also need to clear the delete the build directory and create it again. On creation meson outputs the compiler version used.
newbie
Activity: 99
Merit: 0
July 03, 2023, 09:08:05 AM
#15
I am not a C++ specialist, I would need to wait for pumbaa's or timon's opinion but I think is not found because your compiler is too old?
Compiler version is checked with this command:
gcc --version


gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The command I use is this, what is wrong? I have installed g++, graphviz, gtest, git, re2c, python2.7+ these dependencies

cd ~ && mkdir Warthog && cd Warthog && git clone https://github.com/ByPumbaa/Warthog new && cd new && mkdir build && cd build && meson .. && ninja




Still the same error after I upgrade gcc11



Your commands are correct but your build toolchain is too old, you should upgrade to a newer os version or upgrade your compiler but compiler upgrade is something for experts because it not only involves the compiler itself but also things such as placing new libraries and C++ include files. Please switch to a newer os which comes with gcc 11 or newer.
Pages:
Jump to: