-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why this happen in centos 6 ? #93
Comments
Facing same issue on Centos 7, looking into it, there appears to be a failure related to autogen.sh in the temporary dir that pip sets up. |
You probably will face same error output of:
|
Hmm, any idea why? |
Not sure, but I was able to run the build script from https://github.com/spesmilo/electrum just now and successfully built libsecp256k1.so.0 The script that was able to produce a working build is in contrib/make_libsecp256k1.sh in the https://github.com/spesmilo/electrum repo. The files built, but I'm having to move them by hand. No idea if this will fix the issue, but I'm going to try and install coincurve against those. |
When I attempt to build coincurve with Output here:
|
I've set the ENV variables as follows:
(Building on an Intel Xeon Phi 5110p) Manually copied to: Now executing python3 setup.py build in the coincurve dir, that failed. I manually copied the built
So something is triggering the working gcc compiler to fail, but this works fine with electrums contrib libsecp256k1. I'm surprised there isn't something checking to see if the libsecp256k1 libraries are installed already, instead of just building it. |
Interesting ... If you could do the same on your Centos 6 system - and preserve the files that get generated by I saved my cached copy, there may be a flag for that...
|
from verbose output - the location pip attempts the install will be after the
|
Here are the flags from the "working" libsecp256k1 compile:
|
the flags in coincurve from pip are: |
After hacking on it for some time, I have no idea if it's going to be stable, but I was able to build a weird version for my cpu on Centos 7: ` Build Options: asm = x86_64 valgrind = no (CDPATH="${ZSH_VERSION+.}:" && cd /var/volatile/tmp/test3/libsecp256k1 && /bin/sh /var/volatile/tmp/test3/libsecp256k1/build-aux/missing --run autoheader) ldconfig: /usr/local/lib/libsecp256k1.so.0 is for unknown machine 181. ldconfig: /usr/local/lib/libsecp256k1.so.0.0.0 is for unknown machine 181. ldconfig: /usr/local/lib/libexslt.so is for unknown machine 181. ldconfig: /usr/local/lib/libexslt.so.0 is for unknown machine 181. ldconfig: /usr/local/lib/libexslt.so.0.8.19 is for unknown machine 181. ldconfig: /usr/local/lib/libxslt.so is for unknown machine 181. ldconfig: /usr/local/lib/libxslt.so.1 is for unknown machine 181. ldconfig: /usr/local/lib/libxslt.so.1.1.31 is for unknown machine 181. Libraries have been installed in: If you ever happen to want to link against installed libraries
See any operating system documentation about shared libraries for
|
Python 3.6.6
CentOs 6.10
python3.6 -m pip install coincurve
Collecting coincurve
Using cached coincurve-15.0.0.tar.gz (219 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... done
Requirement already satisfied: cffi>=1.3.0 in /usr/local/lib/python3.6/site-packages (from coincurve) (1.3.0)
Requirement already satisfied: asn1crypto in /usr/local/lib/python3.6/site-packages (from coincurve) (1.4.0)
Requirement already satisfied: pycparser in /usr/local/lib/python3.6/site-packages (from cffi>=1.3.0->coincurve) (2.20)
Building wheels for collected packages: coincurve
Building wheel for coincurve (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3.6 /usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpgf834dif
cwd: /tmp/pip-install-2fm8b76q/coincurve_acc7c657b22b41cbb1caa277cfd64a45
Complete output (66 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/coincurve
copying coincurve/utils.py -> build/lib.linux-x86_64-3.6/coincurve
copying coincurve/flags.py -> build/lib.linux-x86_64-3.6/coincurve
copying coincurve/_windows_libsecp256k1.py -> build/lib.linux-x86_64-3.6/coincurve
copying coincurve/types.py -> build/lib.linux-x86_64-3.6/coincurve
copying coincurve/context.py -> build/lib.linux-x86_64-3.6/coincurve
copying coincurve/keys.py -> build/lib.linux-x86_64-3.6/coincurve
copying coincurve/init.py -> build/lib.linux-x86_64-3.6/coincurve
copying coincurve/ecdsa.py -> build/lib.linux-x86_64-3.6/coincurve
copying coincurve/py.typed -> build/lib.linux-x86_64-3.6/coincurve
running build_clib
configure.ac:407: error: AC_PROG_CC cannot be called after AM_PROG_CC_C_O
build-aux/m4/ax_prog_cc_for_build.m4:38: AX_PROG_CC_FOR_BUILD is expanded from...
configure.ac:407: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in
main()
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 205, in build_wheel
metadata_directory)
File "/tmp/pip-build-env-v6f3cuc2/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 222, in build_wheel
wheel_directory, config_settings)
File "/tmp/pip-build-env-v6f3cuc2/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 207, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-v6f3cuc2/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 259, in run_setup
self).run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-v6f3cuc2/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 150, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 309, in
**setup_kwargs
File "/tmp/pip-build-env-v6f3cuc2/overlay/lib/python3.6/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 95, in run
_bdist_wheel.run(self)
File "/tmp/pip-build-env-v6f3cuc2/overlay/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 152, in run
subprocess.check_call([autogen], cwd=absolute('libsecp256k1'))
File "/usr/local/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/tmp/pip-install-2fm8b76q/coincurve_acc7c657b22b41cbb1caa277cfd64a45/libsecp256k1/autogen.sh']' returned non-zero exit status 1.
ERROR: Failed building wheel for coincurve
Failed to build coincurve
ERROR: Could not build wheels for coincurve which use PEP 517 and cannot be installed directly
The text was updated successfully, but these errors were encountered: