bigchaindb / bigchaindb-driver

Official Python driver for BigchainDB
https://www.bigchaindb.com
Apache License 2.0
105 stars 104 forks source link

gcc: error: unrecognized command line option '-fstack-clash-protection' #468

Closed iamwizard closed 6 years ago

iamwizard commented 6 years ago

Description

I want to install the bigchaindb driver using the command- pip3 install -U bigchaindb-driver in order to run the command pip install -e .. This is one of the steps to do the benchmark tests for bigchaindb https://github.com/bigchaindb/benchmark, which I received from @ttmc on gitter. During the installation of bigchaindb driver I keep on getting the following error-

gcc: error: unrecognized command line option '-fstack-clash-protection' error: command 'gcc' failed with exit status 1

I am curently running GCC version 4.9, recently upgraded from 4.8. I came to know that this problem can only be solved with GCC version 4.9 or higher so I upgraded the version but could not solve the problem.

What I Did

git clone https://github.com/bigchaindb/benchmark.git
cd benchmark
pip install -e .
bigchaindb-benchmark -h
bigchaindb-benchmark send

Before step 3 I used the following command-
sudo pip3 install -U bigchaindb-driver
In this step I started getting the above mentioned error.

image

image

image

image

ttmc commented 6 years ago

The bigchaindb-benchmark tool is open source, so anyone can run it, but it has mostly been a tool for our own internal use (so far), so it doesn't have very detailed instructions yet. In particular, it doesn't say (but maybe it should):

I don't know if that will be enough for you to get it working. We plan to write more about benchmarking next week.

iamwizard commented 6 years ago

Thank you @ttmc for your suggestions. These recommendations are hard for me to follow:

  1. Using Ubuntu not an option for me, as it is being done at customer end who uses SUSE Linux.
  2. I was avoiding using V2 for now as I don't want to use Tendermint because of some connectivity issues. Eventually will be moving to V2 in some time. For the step involving installation of bigchain-driver, bigchain version is not that important, right?
  3. I updated version of Python today, it was the latest version available on SUSE.

I would be really grateful to you if you could help me in my situation with lots of restrictions(sorry). I thank you in advance and look forward to your reply and also the official benchmarking.

ttmc commented 6 years ago

It should be possible to get everything working on SUSE Linux, but I'm afraid you'll be on your own to get all the necessary dependencies installed. The trickiest one is the Python cryptography package. Maybe check out their documentation to see if they have any advice for SUSE Linux users.

https://cryptography.io/en/latest/

Version 2.x of BigchainDB Server is significantly different from the 1.x series, hence the change in the major version number. There are breaking changes. Transactions that were valid with 1.x (v1 transactions) are not valid with 2.x (v2 transactions).

BigchainDB Server only works with Python 3.6+. It should complain if you try to install it with Python 3.5 or lower.

iamwizard commented 6 years ago

Thank you @ttmc for your reply. I will try to install all the packages including cryptography package on SUSE and upgrade the Python Version. As you adviced will also upgrade the BichainDb version( Though I want to have benchmark results for both versions, I will try it) and contact you again in case I require assistance.

iamwizard commented 6 years ago

Hello @ttmc, I did manage to install bigchaindb driver and the benchmark tool and will start my tests for V1.4 and V2 today. As you mentioned yesterday on bichaindb driver gitter to follow some other solutions, I tried all, but none seem to be working. I had to consult SUSE for this and finally it works. Closing this issue for now, thanks a-lot for help.