Comment 1 for bug 953535

Revision history for this message
Diogo Baeder (diogobaeder) wrote :

Strangely, for me it installs successfully only out of a virtualenv. These are the truncated results for me:

Under a virtualenv:

(meliae)diogo@diogo-arch-desktop-home:~/Envs/meliae$ pip install --upgrade --force meliae
Downloading/unpacking meliae
  Downloading meliae-0.4.0.tar.gz (64Kb): 64Kb downloaded
  Running setup.py egg_info for package meliae

Installing collected packages: meliae
  Running setup.py install for meliae
    building 'meliae._scanner' extension
    gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python2.7 -c meliae/_scanner.c -o build/temp.linux-x86_64-2.7/meliae/_scanner.o
    gcc: error: meliae/_scanner.c: Arquivo ou diretório não encontrado
    gcc: fatal error: no input files
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    Complete output from command /home/diogo/Envs/meliae/bin/python2 -c "import setuptools;__file__='/home/diogo/Envs/meliae/build/meliae/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-Iqyl6R-record/install-record.txt --install-headers /home/diogo/Envs/meliae/include/site/python2.7:
    running install

But out of the virtualenv (global environment):

diogo@diogo-arch-desktop-home:~/applications/test/python/debug$ sudo pip install --upgrade --force meliae
Downloading/unpacking meliae
  Downloading meliae-0.4.0.tar.gz (64Kb): 64Kb downloaded
  Running setup.py egg_info for package meliae

Installing collected packages: meliae
  Found existing installation: meliae 0.4.0.final.0
    Uninstalling meliae:
      Successfully uninstalled meliae
  Running setup.py install for meliae
    cythoning meliae/_scanner.pyx to meliae/_scanner.c
    building 'meliae._scanner' extension
    gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python2.7 -c meliae/_scanner.c -o build/temp.linux-x86_64-2.7/meliae/_scanner.o
    meliae/_scanner.c: In function ‘__pyx_f_6meliae_8_scanner__file_io_callback’:
    meliae/_scanner.c:587:9: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result [-Wunused-result]
    gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python2.7 -c meliae/_scanner_core.c -o build/temp.linux-x86_64-2.7/meliae/_scanner_core.o
    gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu build/temp.linux-x86_64-2.7/meliae/_scanner.o build/temp.linux-x86_64-2.7/meliae/_scanner_core.o -L/usr/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/meliae/_scanner.so
    cythoning meliae/_loader.pyx to meliae/_loader.c
    building 'meliae._loader' extension
    gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python2.7 -c meliae/_loader.c -o build/temp.linux-x86_64-2.7/meliae/_loader.o
    meliae/_loader.c: In function ‘__pyx_pf_6meliae_7_loader_17_MOCValueIterator_2__next__’:
    meliae/_loader.c:9739:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu build/temp.linux-x86_64-2.7/meliae/_loader.o -L/usr/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/meliae/_loader.so
    cythoning meliae/_intset.pyx to meliae/_intset.c
    building 'meliae._intset' extension
    gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python2.7 -c meliae/_intset.c -o build/temp.linux-x86_64-2.7/meliae/_intset.o
    gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu build/temp.linux-x86_64-2.7/meliae/_intset.o -L/usr/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/meliae/_intset.so
    changing mode of build/scripts-2.7/strip_duplicates.py from 644 to 755

    changing mode of /usr/bin/strip_duplicates.py to 755
Successfully installed meliae
Cleaning up...

Somehow it seems that under the virtualenv it's unable to cython _scanner.pyx to _scanner.c, maybe it stops considering the existence of a Cython installation.

Sorry for not being able to find the exact problem, but I hope I gave some clue to where it might reside.

Cheers,

Diogo