BitShares Forum

Main => General Discussion => Topic started by: cryptosile on August 09, 2015, 04:34:44 pm

Title: Build issues with secp256k1-zkp
Post by: cryptosile on August 09, 2015, 04:34:44 pm
Submodule path 'libraries/fc/vendor/websocketpp': checked out 'c5510d6de04917812b910a8dd44735c1f17061d9'
Unable to checkout 'bd067945ead3b514fba884abd0de95fc4b5db9ae' in submodule path 'libraries/fc/vendor/secp256k1-zkp'
Failed to recurse into submodule path 'libraries/fc'

I can't get past the git commands.  These same commands have worked for me tons of times before but now I can't checkout head or even get older commits to work either. 

The tree seems to exist:
https://github.com/ElementsProject/secp256k1-zkp/tree/bd067945ead3b514fba884abd0de95fc4b5db9ae



Title: Re: Build issues with secp256k1-zkp
Post by: xeroc on August 09, 2015, 05:58:32 pm
Known .. nut sure the reason ..
https://github.com/cryptonomex/graphene/issues/226
have you tried a clean git clone/git submodule init .....
Title: Re: Build issues with secp256k1-zkp
Post by: cryptosile on August 10, 2015, 04:21:08 am
I've tried several times and from different computer and different networks... Thought GitHub might be rate limiting me or something but that didn't seem to work either. 
Title: Re: Build issues with secp256k1-zkp
Post by: cryptosile on August 10, 2015, 02:56:23 pm
So, it looks like this issue can occur from several reasons.

Lack of --depth on the clone.... not that
submodule not pushed.....not that
git push --force   .... looks like this is what happened, effectively deleting the tree bd067945ead3b514fba884abd0de95fc4b5db9ae from the commit history. 
Vikram cloned this repo into https://github.com/cryptonomex/secp256k1-zkp/commits/secp256k1-zkp, and you can see bd06794 in the commit history on May 29th.  This commit is no longer a part of the   https://github.com/ElementsProject/secp256k1-zkp/commits/secp256k1-zkp?page=2  history and can't be checked out.

Currently the submodules are setup like:
cryptonomex/graphene -> cryptonomex/FC -> ElementsProject/secp256k1-zkp


How to fix:
Since vikram has already cloned secp256, probably the best way is to just update the fc repo to point to cryptonomex/secp256k1-zkp rather than the ElementsProject/secp256k1-zkp

However, this doesn't fix historical builds which are not very nice unless you go in and manually git clone and checkout specifically to bd06794

Or maybe talk with ElementsProject and see if you can get them to agree to never git push -f again... so we can trust using their commit trees directly.

Workaround to get project to build:
git clone https://github.com/cryptonomex/graphene.git
cd graphene
git submodule update --init --recursive
cd libraries/fc/vendor/
rm -rf secp256k1-zkp/
git clone https://github.com/cryptonomex/secp256k1-zkp.git
cd secp256k1-zkp/
git checkout bd067945ead3b514fba884abd0de95fc4b5db9ae