RiecoinTeam / Riecoin

Riecoin Core repository. Riecoin Whitepaper: https://riecoin.xyz/Whitepaper
https://riecoin.xyz/Core/
MIT License
10 stars 5 forks source link

Fix failing Travis Builds #18

Open Pttn opened 5 years ago

Pttn commented 5 years ago

It is already well known that compiling using the libssl-dev from the Debian 9 repositories is not working, with BIGNUM errors, etc. A workaround is to use libssl1.0-dev instead. Now, in Debian Buster (testing), libssl1.0-dev is no longer in the repositories (Package 'libssl1.0-dev' has no installation candidate) so it will really be a pain to compile in recent Linuxes.

clo-prime commented 5 years ago

I was thinking about this recently. The fix is to eliminate BIGNUM entirely and switch to GMP. I don't think it will be too difficult. I will look into this.

Pttn commented 5 years ago

I think that finishing this GMP port would be a prerequisite for #20 . So far I did not encounter any issue with this GMP code so it should be good. Now we need to update the build system.

cryptapus commented 4 years ago

To include GMP in gitian as best I can tell this would be the place to start (win and osx descriptors needs looked at too obviously):

https://github.com/riecointeam/riecoin/blob/master/contrib/gitian-descriptors/gitian-linux.yml#L8

For travis, I would suggest this to be an area to look at, specifically the PACKAGES env variable:

https://github.com/riecointeam/riecoin/blob/master/.travis.yml#L26

Pttn commented 4 years ago

The compilation system should now work for Riecoin with Gmp, except for Mac Cross Compilation. I don't really know why Travis fails for this. Additionally, like said in #9, the Fuzz test fail, making the 00_setup_env_native_fuzz.sh test fail in Travis. Gitian should work fine to generate Linux and Windows binaries (I did not test Mac, but probably fails like for Travis). However I only did the basic compilation stuff, and did not touch the signature system.

Fyi, gitian-linux.yml only contains build packages (no things like Boost or Gmp), and for Travis, the interesting stuff was in ci/test. To make include Gmp in the builds, I added a dependency in depends/packages.

Help needed to fix the remaining problems.