sigkill
sigkill
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: `/var/volatile/tmp/test/libsecp256k1# ./autogen.sh 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/env failed...
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...
When I attempt to build coincurve with `python3 setup.py build` which calls: `autogen.sh` Output here: `running build_clib downloading libsecp256k1 source code 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:...
I've set the ENV variables as follows: ` export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/micNfs/tools/tmp/electrum/contrib/secp256k1/dist/lib" export LIBDIR="$LIBDIR:/micNfs/tools/tmp/electrum/contrib/secp256k1/dist/lib" echo /micNfs/tools/tmp/electrum/contrib/secp256k1/dist/lib >> /etc/ld.so.conf ` (Building on an Intel Xeon Phi 5110p) Manually copied to: ` ./include/secp256k1.h ./include/secp256k1_preallocated.h...
> Hmm, any idea why? Interesting ... If you could do the same on your Centos 6 system - and preserve the files that get generated by `python3.6 -m pip...
from verbose output - the location pip attempts the install will be after the `--prefix` flag: `--prefix /var/volatile/tmp/pip-build-env-skxkqr4l/overlay` on my most recent failure. 😆
Here are the flags from the "working" libsecp256k1 compile: `./configure --prefix=/micNfs/tools/tmp/electrum/contrib/secp256k1/dist --enable-module-recovery --enable-experimental --enable-module-ecdh --disable-benchmark --disable-tests --disable-exhaustive-tests --disable-static --enable-shared`
the flags in coincurve from pip are: ` cmd = [ absolute('libsecp256k1/configure'), '--disable-shared', '--enable-static', '--disable-dependency-tracking', '--with-pic', '--enable-module-recovery', '--prefix', os.path.abspath(self.build_clib), '--enable-experimental', '--enable-module-ecdh', '--enable-benchmark=no', '--enable-tests=no', '--enable-openssl-tests=no', '--enable-exhaustive-tests=no', `
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...