No Branch/Tag Specified
arm
asyncnotedecryption
danger
dev
dev-aarch64
dev-mac
dev-old-randomx
divzaddrs
dragonx
duke
freebsd
getfilterednotes
hip39
hushutils
insync
jahway603
master
mvstuff
onryo
p2p_privacy
ramhash
relaytx
rx-largepages
setbestchain
warmup
witness_cache
wolfssl
wolfssl_win
z_createrawtransaction
z_importwallet
z_signmessage
v0.11.2.z0
v0.11.2.z1
v0.11.2.z2
v0.11.2.z3
v0.11.2.z4
v0.11.2.z5
v0.11.2.z6
v0.11.2.z7
v0.11.2.z8
v0.11.2.z9
v1.0.0
v1.0.0-beta1
v1.0.0-beta2
v1.0.0-rc1
v1.0.0-rc2
v1.0.0-rc3
v1.0.0-rc4
v1.0.1
v1.0.10
v1.0.10-1
v1.0.11
v1.0.11-rc1
v1.0.12
v1.0.12-rc1
v1.0.13
v1.0.13-rc1
v1.0.13-rc2
v1.0.14
v1.0.14-rc1
v1.0.15
v1.0.15-rc1
v1.0.2
v1.0.3
v1.0.4
v1.0.5
v1.0.6
v1.0.7-1
v1.0.8
v1.0.8-1
v1.0.9
v1.1.0
v1.1.0-rc1
v1.1.1
v1.1.1-rc1
v1.1.1-rc2
v1.1.2
v1.1.2-rc1
v2.0.0
v2.0.0-rc1
v2.0.1
v3.0.0
v3.1.0
v3.1.1
v3.10.0
v3.10.1
v3.10.2
v3.2.0
v3.2.1
v3.2.1-alpha
v3.2.1-beta
v3.2.2
v3.2.3
v3.3.0
v3.3.1
v3.3.2
v3.4.0
v3.4.1
v3.5.0
v3.5.1
v3.5.2
v3.6.0
v3.6.1
v3.6.2
v3.6.3
v3.7.0
v3.7.1
v3.8.0
v3.9.0
v3.9.1
v3.9.2
v3.9.3
v3.9.4
Labels
bounty up to 500 HUSH 2001-5000 bounty
bounty between 2001 and 5000 HUSH 501-2000 bounty
bounty between 501 and 2000 HUSH arm
something doesn't work on arm beginners
for new developers bug
may or may not be a bug build
problems building documentation
not enough information feature
new feature high priority
high priority i2p
related to i2p low priority
low priority medium priority
medium priority question
something is not clear release
release label or issue related to it testing
related to testing tor
related to tor wontfix
this won't be fixed
Apply labels
Clear labels
0-500 bounty
bounty up to 500 HUSH 2001-5000 bounty
bounty between 2001 and 5000 HUSH 501-2000 bounty
bounty between 501 and 2000 HUSH arm
something doesn't work on arm beginners
for new developers bug
may or may not be a bug build
problems building documentation
not enough information feature
new feature high priority
high priority i2p
related to i2p low priority
low priority medium priority
medium priority question
something is not clear release
release label or issue related to it testing
related to testing tor
related to tor wontfix
this won't be fixed
No Label
0-500 bounty
2001-5000 bounty
501-2000 bounty
arm
beginners
bug
build
documentation
feature
high priority
i2p
low priority
medium priority
question
release
testing
tor
wontfix
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.
No due date set.
Dependencies
This issue currently doesn't have any dependencies.
Reference in new issue
There is no content yet.
Delete Branch '%!s(MISSING)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
No
Yes
Describe the issue
Unable to compile/build on Ubuntu 22.04, which was released recently.
Can you reliably reproduce the issue?
If so, please list the steps to reproduce below:
Expected behaviour
For it to compile/build correctly.
Actual behaviour + errors
It fails to compile/build.
The version of Hush you were using:
latest master branch
Machine specs:
Any extra information that might be useful in the debugging process.
@jahway603 holy wow, that is a backtrace. It looks like maybe our version of Boost is incompatible with the compiler versions of 22.04, which seems to be gcc 11.2.0 . We can try to upgrade our boost dependency, but that also has the risk of requiring our code to change.
To fix this bug, we need to update info in
depends/packages/boost.mk
, which also has the bug of referring to our old Github(!) . We currently use boost 1.72 . Upstream Zcash uses 1.79 which is a good candidate to try in our code.https://github.com/zcash/zcash/blob/master/depends/packages/boost.mk
Easiest thing is probably to replace the current boost.mk in hush3.git with the latest boost.mk from zcash.git and see if that works.
@jahway603 is this something you can try?
After updating boost to 1.79 with minor tweaks instead of just using zcash's boost.mk I get
which doesn't make sense as the libgmp.tar.gz is downloaded in
hush3/built/x86_64-unknown-linux-gnu/libgmp/
Ok, I believe the "correct" fix is to force our compiling to use c++14 instead of c++17, which is the new default.
In zcutil/build.sh, we need to do this:
We might need to update some other Makefiles, but that should make the build mostly complete.
https://gcc.gnu.org/gcc-11/porting_to.html
Used update-alternatives and now have gcc-9 and g++-9 as Ubuntu 22.04 defaults for gcc/g++, but still bails.
Next thing I see different between the Ubuntu LTS are the version of make used, but not sure if that could be the issue or not.
Tried updating our boost.mk with lines 2 thru 5 (4 lines) so it downloads newer boost 1.79 instead of 1.72. It makes it past the rust compiling portion, but I get the same
checking for __gmpn_sub_n in -lgmp... no
&
configure: error: libgmp missing
I saw above that I initially reported; so maybe it's a boost thing with that version that must need newer version of libgmp? Idk.Checked against Zcash and Komodo; libgmp comes from KMD-upstream and not in zcash
Checked Zen and Zclassic and they use much older versions of boost, but same version of libgmp
Here's the Boost changelog & the Boost version histories as maybe we need a version somewhere between 1.72 and 1.79 for it to work on 22.04?
@jahway603 I wonder if this compiles under
clang
on Ubuntu 22.04 and that could be a workaround. Tell people to useclang
for now to compile on that version of Ubuntu.@jahway603 do you still see these same problems on the latest master branch?
@duke just tried it with latest master branch and it still chokes & dies. I don't know how to change it to try clang, so it's using gcc.
Tested more Ubu 22.04 fun! There's some magic happening in my branch right now, as it's working with gcc/g++ v9 (alternative) but still fails with the defaultly installed gcc/g++ v11
With gcc9/g++9 as the default compiler:
With gcc11/g++11 as the default compiler:
Taking note here of the update-alternative commands to switch between gcc/g++ versions
sudo update-alternatives --config gcc
sudo update-alternatives --config g++
Link with info how to change this
Just tried with gcc/g++ v10...
With gcc10/g++10 as the default compiler also had great success with latest jahway603 branch
Fixed by PR #282, so closing