Skip to content
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

Remix fails to install on Linux? #40

Open
PanMan opened this issue Jan 15, 2015 · 4 comments
Open

Remix fails to install on Linux? #40

PanMan opened this issue Jan 15, 2015 · 4 comments

Comments

@PanMan
Copy link

PanMan commented Jan 15, 2015

I have been trying for a bit now to install remix on linux. However, I get lots of warnings, then some errors, and then it install fails.
This is a pretty clean ubuntu install.
Anything I'm doing wrong?

Output:

Downloading/unpacking remix
  Running setup.py (path:/tmp/pip_build_root/remix/setup.py) egg_info for package remix

    no previously-included directories found matching 'flash'
    no previously-included directories found matching 'tests'
Installing collected packages: remix
  Running setup.py install for remix
    building 'soundtouch' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/AAFilter.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/AAFilter.o -O3 -Wno-unused
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/FIFOSampleBuffer.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/FIFOSampleBuffer.o -O3 -Wno-unused
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/FIRFilter.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/FIRFilter.o -O3 -Wno-unused
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/RateTransposer.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/RateTransposer.o -O3 -Wno-unused
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/SoundTouch.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/SoundTouch.o -O3 -Wno-unused
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/TDStretch.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/TDStretch.o -O3 -Wno-unused
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/BPMDetect.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/BPMDetect.o -O3 -Wno-unused
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    external/pysoundtouch14/libsoundtouch/BPMDetect.cpp: In destructor 'virtual BPMDetect::~BPMDetect()':
    external/pysoundtouch14/libsoundtouch/BPMDetect.cpp:114:12: warning: deleting object of polymorphic class type 'soundtouch::FIFOSampleBuffer' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
         delete buffer;
                ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/PeakFinder.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/PeakFinder.o -O3 -Wno-unused
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/mmx_optimized.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/mmx_optimized.o -O3 -Wno-unused
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/sse_optimized.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/sse_optimized.o -O3 -Wno-unused
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/cpu_detect_x86_gcc.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/cpu_detect_x86_gcc.o -O3 -Wno-unused
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/soundtouchmodule.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/soundtouchmodule.o -O3 -Wno-unused
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    In file included from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0,
                     from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
                     from external/pysoundtouch14/soundtouchmodule.cpp:26:
    /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
     #warning "Using deprecated NumPy API, disable it by " \
      ^
    external/pysoundtouch14/soundtouchmodule.cpp: In function 'PyObject* SoundTouch_setChannels(SoundTouch*, PyObject*)':
    external/pysoundtouch14/soundtouchmodule.cpp:190:52: error: format not a string literal and no format arguments [-Werror=format-security]
           PyErr_Format(PyExc_RuntimeError, error.what());
                                                        ^
    external/pysoundtouch14/soundtouchmodule.cpp: In function 'PyObject* SoundTouch_putSamples(SoundTouch*, PyObject*)':
    external/pysoundtouch14/soundtouchmodule.cpp:279:52: error: format not a string literal and no format arguments [-Werror=format-security]
           PyErr_Format(PyExc_RuntimeError, error.what());
                                                        ^
    external/pysoundtouch14/soundtouchmodule.cpp: At global scope:
    external/pysoundtouch14/soundtouchmodule.cpp:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
     " - clear()          : Clears all samples from ready/processing buffers.\n";
     ^
    external/pysoundtouch14/soundtouchmodule.cpp: In function 'void initsoundtouch()':
    external/pysoundtouch14/soundtouchmodule.cpp:687:70: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
       SoundTouchError = PyErr_NewException("soundtouch.error", NULL, NULL);
                                                                          ^
    cc1plus: some warnings being treated as errors
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/remix/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-84Bm4w-record/install-record.txt --single-version-externally-managed --compile:
    running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.7

creating build/lib.linux-x86_64-2.7/echonest

copying src/echonest/__init__.py -> build/lib.linux-x86_64-2.7/echonest

creating build/lib.linux-x86_64-2.7/echonest/remix

copying src/echonest/remix/__init__.py -> build/lib.linux-x86_64-2.7/echonest/remix

copying src/echonest/remix/video.py -> build/lib.linux-x86_64-2.7/echonest/remix

copying src/echonest/remix/audio.py -> build/lib.linux-x86_64-2.7/echonest/remix

copying src/echonest/remix/modify.py -> build/lib.linux-x86_64-2.7/echonest/remix

copying src/echonest/remix/action.py -> build/lib.linux-x86_64-2.7/echonest/remix

creating build/lib.linux-x86_64-2.7/echonest/remix/support

copying src/echonest/remix/support/__init__.py -> build/lib.linux-x86_64-2.7/echonest/remix/support

copying src/echonest/remix/support/ffmpeg.py -> build/lib.linux-x86_64-2.7/echonest/remix/support

copying src/echonest/remix/support/exceptionthread.py -> build/lib.linux-x86_64-2.7/echonest/remix/support

creating build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/RawInstreamFile.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/example_print_channel_0.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/__init__.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/constants.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/DataTypeConverters.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/EventDispatcher.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/MidiToText.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/MidiInStream.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/MidiOutFile.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/example_transpose_octave.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/example_print_file.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/MidiInFile.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/MidiOutStream.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/example_mimimal_type0.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/MidiFileParser.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/RawOutstreamFile.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

copying src/echonest/remix/support/midi/example_print_events.py -> build/lib.linux-x86_64-2.7/echonest/remix/support/midi

creating build/lib.linux-x86_64-2.7/pyechonest

copying pyechonest/pyechonest/__init__.py -> build/lib.linux-x86_64-2.7/pyechonest

copying pyechonest/pyechonest/util.py -> build/lib.linux-x86_64-2.7/pyechonest

copying pyechonest/pyechonest/track.py -> build/lib.linux-x86_64-2.7/pyechonest

copying pyechonest/pyechonest/config.py -> build/lib.linux-x86_64-2.7/pyechonest

copying pyechonest/pyechonest/sandbox.py -> build/lib.linux-x86_64-2.7/pyechonest

copying pyechonest/pyechonest/proxies.py -> build/lib.linux-x86_64-2.7/pyechonest

copying pyechonest/pyechonest/artist.py -> build/lib.linux-x86_64-2.7/pyechonest

copying pyechonest/pyechonest/playlist.py -> build/lib.linux-x86_64-2.7/pyechonest

copying pyechonest/pyechonest/song.py -> build/lib.linux-x86_64-2.7/pyechonest

copying pyechonest/pyechonest/results.py -> build/lib.linux-x86_64-2.7/pyechonest

copying pyechonest/pyechonest/catalog.py -> build/lib.linux-x86_64-2.7/pyechonest

running build_ext

building 'soundtouch' extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/external

creating build/temp.linux-x86_64-2.7/external/pysoundtouch14

creating build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/AAFilter.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/AAFilter.o -O3 -Wno-unused

cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/FIFOSampleBuffer.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/FIFOSampleBuffer.o -O3 -Wno-unused

cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/FIRFilter.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/FIRFilter.o -O3 -Wno-unused

cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/RateTransposer.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/RateTransposer.o -O3 -Wno-unused

cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/SoundTouch.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/SoundTouch.o -O3 -Wno-unused

cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/TDStretch.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/TDStretch.o -O3 -Wno-unused

cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/BPMDetect.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/BPMDetect.o -O3 -Wno-unused

cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++

external/pysoundtouch14/libsoundtouch/BPMDetect.cpp: In destructor 'virtual BPMDetect::~BPMDetect()':

external/pysoundtouch14/libsoundtouch/BPMDetect.cpp:114:12: warning: deleting object of polymorphic class type 'soundtouch::FIFOSampleBuffer' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]

     delete buffer;

            ^

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/PeakFinder.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/PeakFinder.o -O3 -Wno-unused

cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/mmx_optimized.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/mmx_optimized.o -O3 -Wno-unused

cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/sse_optimized.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/sse_optimized.o -O3 -Wno-unused

cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/libsoundtouch/cpu_detect_x86_gcc.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/libsoundtouch/cpu_detect_x86_gcc.o -O3 -Wno-unused

cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c external/pysoundtouch14/soundtouchmodule.cpp -o build/temp.linux-x86_64-2.7/external/pysoundtouch14/soundtouchmodule.o -O3 -Wno-unused

cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++

In file included from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0,

                 from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,

                 from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4,

                 from external/pysoundtouch14/soundtouchmodule.cpp:26:

/usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]

 #warning "Using deprecated NumPy API, disable it by " \

  ^

external/pysoundtouch14/soundtouchmodule.cpp: In function 'PyObject* SoundTouch_setChannels(SoundTouch*, PyObject*)':

external/pysoundtouch14/soundtouchmodule.cpp:190:52: error: format not a string literal and no format arguments [-Werror=format-security]

       PyErr_Format(PyExc_RuntimeError, error.what());

                                                    ^

external/pysoundtouch14/soundtouchmodule.cpp: In function 'PyObject* SoundTouch_putSamples(SoundTouch*, PyObject*)':

external/pysoundtouch14/soundtouchmodule.cpp:279:52: error: format not a string literal and no format arguments [-Werror=format-security]

       PyErr_Format(PyExc_RuntimeError, error.what());

                                                    ^

external/pysoundtouch14/soundtouchmodule.cpp: At global scope:

external/pysoundtouch14/soundtouchmodule.cpp:533:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

 " - clear()          : Clears all samples from ready/processing buffers.\n";

 ^

external/pysoundtouch14/soundtouchmodule.cpp: In function 'void initsoundtouch()':

external/pysoundtouch14/soundtouchmodule.cpp:687:70: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   SoundTouchError = PyErr_NewException("soundtouch.error", NULL, NULL);

                                                                      ^

cc1plus: some warnings being treated as errors

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/remix/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-84Bm4w-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/remix
Storing debug log for failure in /root/.pip/pip.log
@PanMan
Copy link
Author

PanMan commented Jan 16, 2015

I got this compiling myself. Probably not in a way it should be done :). I commented some lines that errored on compiling (above). See my commit at PanMan@18b1f95
So now it compiles, but I guess the input of PyErr_Format changed?

@monkpit
Copy link

monkpit commented May 12, 2015

This error still has not been resolved. I am getting the same errors as @PanManAms.

Using Ubuntu 14.10, python 2.7, pip 6, numpy 1.9.2.

My solution to this problem is to override the possibility of having a default gcc flag of "-Werror=format-security". For the affected setup modules we just add the compiler argument: "-Wno-error=format-security" and the setup script runs fine.

"-Werror=format-security" throws an error when PyErr_Format is called with a (potentially) unsafe argument like error.what() in the log that was posted.

See pull request (#43).

Hope this helps.

@Rosuav
Copy link
Contributor

Rosuav commented May 26, 2015

I'm also having this problem. Ideally, it'd be worth making this compile with -Werror=format-security, but otherwise, leaving them as warnings will at least allow compilation to proceed.

@Rosuav
Copy link
Contributor

Rosuav commented May 26, 2015

The simplest way to make this safe, incidentally, is to add another parameter "%s" before the message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants