Compilation error on Linux

36 views
Skip to first unread message

Alvaro

unread,
May 7, 2012, 9:40:04 AM5/7/12
to python...@googlegroups.com

Hi again,

I've just discovered that installing with pip fails on compiling the hiredis extension. The host machine is Ubuntu, and the python-stdnet version is 0.7c2...

$ ./bin/pip install -U  python-stdnet
Downloading/unpacking python-stdnet
  Downloading python-stdnet-0.7c2.tar.gz (172Kb): 172Kb downloaded
  Running setup.py egg_info for package python-stdnet
    
Installing collected packages: python-stdnet
  Running setup.py install for python-stdnet
    building 'stdnet.lib.hr' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I./local/lib/python2.7/site-packages/numpy/core/include -I./build/python-stdnet/lib/hiredis -I./build/python-stdnet/lib/src -I/usr/include/python2.7 -c lib/src/hr.c -o build/temp.linux-x86_64-2.7/lib/src/hr.o
    gcc: error: lib/src/hr.c: No such file or directory
    gcc: fatal error: no input files
    compilation terminated.
    ***************************************************************************
    command 'gcc' failed with exit status 4
    WARNING: The C extension could not be compiled, speedups are not enabled.
    Failure information, if any, is above.
    Retrying the build without the C extension now.
    ***************************************************************************
    
    ***************************************************************************
    WARNING: The C extension could not be compiled, speedups are not enabled.
    Plain-Python build succeeded.
    ***************************************************************************
Successfully installed python-stdnet
Cleaning up...


$ uname -a
Linux arnoia 3.2.0-24-generic #38-Ubuntu SMP Tue May 1 16:18:50 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux


$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)




Cheers


Alvaro




lsbardel

unread,
May 8, 2012, 4:49:45 AM5/8/12
to python...@googlegroups.com
The C extensions won't be part of the 0.7 release (they are not working properly yet).
You can disregard the message for now.

Alvaro Saurin

unread,
May 8, 2012, 4:48:46 AM5/8/12
to python...@googlegroups.com

Ok, thanks anyway...


Alvaro




-- 
Alvaro Saurin <alvaro...@gmail.com>






Reply all
Reply to author
Forward
0 new messages