Skip to content

Doesn't build #11

@ghost

Description

Running pip install --user fbpy

Collecting fbpy
  Using cached fbpy-0.1.tar.gz (3.1 MB)
Using legacy 'setup.py install' for fbpy, since package 'wheel' is not installed.
Installing collected packages: fbpy
    Running setup.py install for fbpy: started
    Running setup.py install for fbpy: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wky15hdw/fbpy_387f5dc8b0c842719f7105b73407cc7e/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wky15hdw/fbpy_387f5dc8b0c842719f7105b73407cc7e/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-lp5ybbaq/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/user/.local/include/python3.10/fbpy
         cwd: /tmp/pip-install-wky15hdw/fbpy_387f5dc8b0c842719f7105b73407cc7e/
    Complete output (148 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.10
    creating build/lib.linux-x86_64-3.10/fbpy
    copying fbpy/sprite.py -> build/lib.linux-x86_64-3.10/fbpy
    copying fbpy/jack.py -> build/lib.linux-x86_64-3.10/fbpy
    copying fbpy/fb.py -> build/lib.linux-x86_64-3.10/fbpy
    copying fbpy/__init__.py -> build/lib.linux-x86_64-3.10/fbpy
    copying fbpy/audioscope.py -> build/lib.linux-x86_64-3.10/fbpy
    copying fbpy/obj.py -> build/lib.linux-x86_64-3.10/fbpy
    copying fbpy/svg.py -> build/lib.linux-x86_64-3.10/fbpy
    creating build/lib.linux-x86_64-3.10/fbpy/utils
    copying fbpy/utils/__init__.py -> build/lib.linux-x86_64-3.10/fbpy/utils
    copying fbpy/utils/svg.py -> build/lib.linux-x86_64-3.10/fbpy/utils
    running build_ext
    building 'fblib' extension
    creating build/temp.linux-x86_64-3.10
    creating build/temp.linux-x86_64-3.10/fbpy
    creating build/temp.linux-x86_64-3.10/fbpy/utils
    gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I./fbpy/utils -I/usr/include/python3.10 -c ./fbpy/utils/audio.c -o build/temp.linux-x86_64-3.10/./fbpy/utils/audio.o
    ./fbpy/utils/audio.c: In function ‘process’:
    ./fbpy/utils/audio.c:29:43: warning: unused variable ‘out’ [-Wunused-variable]
       29 |         jack_default_audio_sample_t *in, *out;
          |                                           ^~~
    ./fbpy/utils/audio.c: In function ‘mainz’:
    ./fbpy/utils/audio.c:203:9: warning: "/*" within comment [-Wcomment]
      203 |         /* this is never reached but if the program
          |
    ./fbpy/utils/audio.c: In function ‘readout’:
    ./fbpy/utils/audio.c:77:1: warning: control reaches end of non-void function [-Wreturn-type]
       77 | }
          | ^
    gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I./fbpy/utils -I/usr/include/python3.10 -c ./fbpy/utils/fblib.c -o build/temp.linux-x86_64-3.10/./fbpy/utils/fblib.o
    In file included from /usr/include/numpy/ndarraytypes.h:1969,
                     from /usr/include/numpy/ndarrayobject.h:12,
                     from /usr/include/numpy/arrayobject.h:4,
                     from ./fbpy/utils/fblib.c:648:
    /usr/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
       17 | #warning "Using deprecated NumPy API, disable it with " \
          |  ^~~~~~~
    In file included from ./fbpy/utils/fblib.c:656:
    ./fbpy/utils/test.h:10:1: warning: useless storage class specifier in empty declaration
       10 | };
          | ^
    In file included from ./fbpy/utils/fblib.c:658:
    ./fbpy/utils/fbutils.h:9:1: warning: useless storage class specifier in empty declaration
        9 | };
          | ^
    ./fbpy/utils/fbutils.h:17:1: warning: useless storage class specifier in empty declaration
       17 | };
          | ^
    ./fbpy/utils/fbutils.h:28:1: warning: useless storage class specifier in empty declaration
       28 | };
          | ^
    ./fbpy/utils/fbutils.h:43:1: warning: useless storage class specifier in empty declaration
       43 | };
          | ^
    ./fbpy/utils/fblib.c: In function ‘__pyx_pf_5fblib_78fbjackoff’:
    ./fbpy/utils/fblib.c:6767:3: warning: implicit declaration of function ‘kwit’ [-Wimplicit-function-declaration]
     6767 |   kwit();
          |   ^~~~
    ./fbpy/utils/fblib.c: In function ‘__pyx_pf_5fblib_80fbgetnframes’:
    ./fbpy/utils/fblib.c:6838:36: warning: implicit declaration of function ‘getnframes’ [-Wimplicit-function-declaration]
     6838 |   __pyx_t_1 = __Pyx_PyInt_From_int(getnframes()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 381, __pyx_L1_error)
          |                                    ^~~~~~~~~~
    ./fbpy/utils/fblib.c: In function ‘__pyx_pf_5fblib_82fbreadjack’:
    ./fbpy/utils/fblib.c:6979:10: warning: implicit declaration of function ‘readout’; did you mean ‘read’? [-Wimplicit-function-declaration]
     6979 |   (void)(readout(((double *)__pyx_v_audioL->data), ((double *)__pyx_v_audioR->data)));
          |          ^~~~~~~
          |          read
    gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I./fbpy/utils -I/usr/include/python3.10 -c ./fbpy/utils/fbutils.c -o build/temp.linux-x86_64-3.10/./fbpy/utils/fbutils.o
    In file included from ./fbpy/utils/fbutils.c:34:
    ./fbpy/utils/test.h:10:1: warning: useless storage class specifier in empty declaration
       10 | };
          | ^
    In file included from ./fbpy/utils/fbutils.c:36:
    ./fbpy/utils/fbutils.h:9:1: warning: useless storage class specifier in empty declaration
        9 | };
          | ^
    ./fbpy/utils/fbutils.h:17:1: warning: useless storage class specifier in empty declaration
       17 | };
          | ^
    ./fbpy/utils/fbutils.h:28:1: warning: useless storage class specifier in empty declaration
       28 | };
          | ^
    ./fbpy/utils/fbutils.h:43:1: warning: useless storage class specifier in empty declaration
       43 | };
          | ^
    ./fbpy/utils/fbutils.c: In function ‘plotalpha_’:
    ./fbpy/utils/fbutils.c:411:18: warning: unused variable ‘a’ [-Wunused-variable]
      411 |     float r,g,b, a;
          |                  ^
    ./fbpy/utils/fbutils.c: In function ‘snow’:
    ./fbpy/utils/fbutils.c:566:5: warning: implicit declaration of function ‘tvsnow’; did you mean ‘snow’? [-Wimplicit-function-declaration]
      566 |     tvsnow();
          |     ^~~~~~
          |     snow
    ./fbpy/utils/fbutils.c: In function ‘styledredraw’:
    ./fbpy/utils/fbutils.c:726:17: warning: implicit declaration of function ‘transform’ [-Wimplicit-function-declaration]
      726 |                 transform(&xr, &yr);
          |                 ^~~~~~~~~
    ./fbpy/utils/fbutils.c: In function ‘rotate’:
    ./fbpy/utils/fbutils.c:801:12: warning: type defaults to ‘int’ in declaration of ‘R’ [-Wimplicit-int]
      801 |     static R[27]={4,8,7,5,0,1,2,3,6,
          |            ^
    ./fbpy/utils/fbutils.c: In function ‘printxy’:
    ./fbpy/utils/fbutils.c:1186:18: warning: unused variable ‘backgrnd’ [-Wunused-variable]
     1186 |     struct Color backgrnd;
          |                  ^~~~~~~~
    ./fbpy/utils/fbutils.c: In function ‘graticule’:
    ./fbpy/utils/fbutils.c:1221:22: warning: unused variable ‘dummycolor’ [-Wunused-variable]
     1221 |         struct Color dummycolor;
          |                      ^~~~~~~~~~
    ./fbpy/utils/fbutils.c:1214:13: warning: unused variable ‘j’ [-Wunused-variable]
     1214 |         int j;
          |             ^
    ./fbpy/utils/fbutils.c: In function ‘read_PNG’:
    ./fbpy/utils/fbutils.c:1511:43: error: ‘png_infopp_NULL’ undeclared (first use in this function); did you mean ‘png_infopp’?
     1511 |         png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL);
          |                                           ^~~~~~~~~~~~~~~
          |                                           png_infopp
    ./fbpy/utils/fbutils.c:1511:43: note: each undeclared identifier is reported only once for each function it appears in
    ./fbpy/utils/fbutils.c:1544:25: error: ‘int_p_NULL’ undeclared (first use in this function)
     1544 |        &interlace_type, int_p_NULL, int_p_NULL);
          |                         ^~~~~~~~~~
    ./fbpy/utils/fbutils.c:1677:22: warning: comparison of integer expressions of different signedness: ‘png_uint_32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
     1677 |    int maxY = _height>height?height:_height;
          |                      ^
    ./fbpy/utils/fbutils.c:1677:30: warning: operand of ‘?:’ changes signedness from ‘int’ to ‘png_uint_32’ {aka ‘unsigned int’} due to unsignedness of other operand [-Wsign-compare]
     1677 |    int maxY = _height>height?height:_height;
          |                              ^~~~~~
    ./fbpy/utils/fbutils.c:1678:21: warning: comparison of integer expressions of different signedness: ‘png_uint_32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
     1678 |    int maxX = _width>width?finfo.line_length:_width;
          |                     ^
    ./fbpy/utils/fbutils.c:1681:19: warning: comparison of integer expressions of different signedness: ‘png_uint_32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
     1681 |    for (row=0; row<maxY;row++){
          |                   ^
    ./fbpy/utils/fbutils.c: In function ‘write_PNG’:
    ./fbpy/utils/fbutils.c:1724:22: warning: variable ‘color_type’ set but not used [-Wunused-but-set-variable]
     1724 |     int bit_depth=0, color_type;
          |                      ^~~~~~~~~~
    ./fbpy/utils/fbutils.c: In function ‘setblurrad’:
    ./fbpy/utils/fbutils.c:226:1: warning: control reaches end of non-void function [-Wreturn-type]
      226 | }
          | ^
    error: command '/usr/bin/gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wky15hdw/fbpy_387f5dc8b0c842719f7105b73407cc7e/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wky15hdw/fbpy_387f5dc8b0c842719f7105b73407cc7e/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-lp5ybbaq/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/user/.local/include/python3.10/fbpy Check the logs for full command output.

The compiler error extracted from the output is:

    ./fbpy/utils/fbutils.c:1511:43: error: ‘png_infopp_NULL’ undeclared (first use in this function); did you mean ‘png_infopp’?
     1511 |         png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions