Closed quinnkjones closed 6 years ago
╰─➤ sudo pip3 install bimpy 1 ↵ The directory '/home/quinn/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/quinn/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting bimpy Downloading bimpy-0.0.6.tar.gz (799kB) 100% |████████████████████████████████| 808kB 1.7MB/s Installing collected packages: bimpy Running setup.py install for bimpy ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9f792sty/bimpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-k6mjik9k-record/install-record.txt --single-version-externally-managed --compile: Reusing glcorearb.h from gl3w/include/GL... Parsing glcorearb.h header... Generating gl3w.h in gl3w/include/GL... Generating gl3w.c in gl3w/src... running install running build running build_py creating build creating build/lib.linux-x86_64-3.5 creating build/lib.linux-x86_64-3.5/bimpy copying bimpy/themes.py -> build/lib.linux-x86_64-3.5/bimpy copying bimpy/__init__.py -> build/lib.linux-x86_64-3.5/bimpy running build_ext building '_bimpy' extension creating build/temp.linux-x86_64-3.5 creating build/temp.linux-x86_64-3.5/glfw creating build/temp.linux-x86_64-3.5/glfw/src creating build/temp.linux-x86_64-3.5/gl3w creating build/temp.linux-x86_64-3.5/gl3w/src x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/context.c -o build/temp.linux-x86_64-3.5/glfw/src/context.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/context.c:28: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/init.c -o build/temp.linux-x86_64-3.5/glfw/src/init.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/init.c:28: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/input.c -o build/temp.linux-x86_64-3.5/glfw/src/input.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/input.c:28: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/monitor.c -o build/temp.linux-x86_64-3.5/glfw/src/monitor.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/monitor.c:28: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/vulkan.c -o build/temp.linux-x86_64-3.5/glfw/src/vulkan.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/vulkan.c:28: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/window.c -o build/temp.linux-x86_64-3.5/glfw/src/window.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/window.c:29: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/x11_init.c -o build/temp.linux-x86_64-3.5/glfw/src/x11_init.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/x11_init.c:28: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/x11_monitor.c -o build/temp.linux-x86_64-3.5/glfw/src/x11_monitor.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/x11_monitor.c:28: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/x11_window.c -o build/temp.linux-x86_64-3.5/glfw/src/x11_window.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/x11_window.c:28: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/xkb_unicode.c -o build/temp.linux-x86_64-3.5/glfw/src/xkb_unicode.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/xkb_unicode.c:28: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/posix_time.c -o build/temp.linux-x86_64-3.5/glfw/src/posix_time.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/posix_time.c:28: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/posix_thread.c -o build/temp.linux-x86_64-3.5/glfw/src/posix_thread.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/posix_thread.c:28: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/glx_context.c -o build/temp.linux-x86_64-3.5/glfw/src/glx_context.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/glx_context.c:28: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/egl_context.c -o build/temp.linux-x86_64-3.5/glfw/src/egl_context.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/egl_context.c:28: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/osmesa_context.c -o build/temp.linux-x86_64-3.5/glfw/src/osmesa_context.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/osmesa_context.c:32: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c glfw/src/linux_joystick.c -o build/temp.linux-x86_64-3.5/glfw/src/linux_joystick.o In file included from glfw/src/x11_platform.h:157:0, from glfw/src/internal.h:186, from glfw/src/linux_joystick.c:28: glfw/src/osmesa_context.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] typedef void (*OSMESAproc)(); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c gl3w/src/gl3w.c -o build/temp.linux-x86_64-3.5/gl3w/src/gl3w.o creating build/temp.linux-x86_64-3.5/imgui x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c imgui/imgui.cpp -o build/temp.linux-x86_64-3.5/imgui/imgui.o -std=c++11 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 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c imgui/imgui_demo.cpp -o build/temp.linux-x86_64-3.5/imgui/imgui_demo.o -std=c++11 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 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c imgui/imgui_draw.cpp -o build/temp.linux-x86_64-3.5/imgui/imgui_draw.o -std=c++11 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ imgui/imgui_draw.cpp: In function ‘bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas*)’: imgui/imgui_draw.cpp:92:54: warning: ‘spc.stbtt_pack_context::nodes’ may be used uninitialized in this function [-Wmaybe-uninitialized] #define STBTT_free(x,u) ((void)(u), ImGui::MemFree(x)) ^ imgui/imgui_draw.cpp:1452:24: note: ‘spc.stbtt_pack_context::nodes’ was declared here stbtt_pack_context spc; ^ In file included from imgui/imgui_draw.cpp:100:0: imgui/stb_truetype.h:3629:50: warning: ‘spc.stbtt_pack_context::padding’ may be used uninitialized in this function [-Wmaybe-uninitialized] stbrp_coord pad = (stbrp_coord) spc->padding; ^ imgui/imgui_draw.cpp:1452:24: note: ‘spc.stbtt_pack_context::padding’ was declared here stbtt_pack_context spc; ^ In file included from imgui/imgui_draw.cpp:100:0: imgui/stb_truetype.h:3652:60: warning: ‘spc.stbtt_pack_context::stride_in_bytes’ may be used uninitialized in this function [-Wmaybe-uninitialized] stbtt__h_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes, ^ imgui/imgui_draw.cpp:1452:24: note: ‘spc.stbtt_pack_context::stride_in_bytes’ was declared here stbtt_pack_context spc; ^ imgui/imgui_draw.cpp:1522:70: warning: ‘spc.stbtt_pack_context::pack_info’ may be used uninitialized in this function [-Wmaybe-uninitialized] stbrp_pack_rects((stbrp_context*)spc.pack_info, tmp.Rects, n); ^ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DGLFW_USE_OSMESA=0 -DGLFW_USE_WAYLAND=0 -DGLFW_USE_MIR=0 -D_GLFW_X11=1 -Iglfw/include -Iimgui -Ipybind11/include -Igl3w/include -I/usr/include/python3.5m -c bimpy.cpp -o build/temp.linux-x86_64-3.5/bimpy.o -std=c++11 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ bimpy.cpp: In lambda function: bimpy.cpp:529:54: error: format not a string literal and no format arguments [-Werror=format-security] m.def("text", [](const char* text){ ImGui::Text(text); }); ^ bimpy.cpp: In lambda function: bimpy.cpp:530:93: error: format not a string literal and no format arguments [-Werror=format-security] m.def("text_colored", [](const ImVec4& col, const char* text){ ImGui::TextColored(col, text); }); ^ bimpy.cpp: In lambda function: bimpy.cpp:531:71: error: format not a string literal and no format arguments [-Werror=format-security] m.def("text_disabled", [](const char* text){ ImGui::TextDisabled(text); }); ^ bimpy.cpp: In lambda function: bimpy.cpp:532:69: error: format not a string literal and no format arguments [-Werror=format-security] m.def("text_wrapped", [](const char* text){ ImGui::TextWrapped(text); }); ^ bimpy.cpp: In lambda function: bimpy.cpp:533:91: error: format not a string literal and no format arguments [-Werror=format-security] m.def("label_text", [](const char* label, const char* text){ ImGui::LabelText(label, text); }); ^ bimpy.cpp: In lambda function: bimpy.cpp:534:67: error: format not a string literal and no format arguments [-Werror=format-security] m.def("bullet_text", [](const char* text){ ImGui::BulletText(text); }); ^ cc1plus: some warnings being treated as errors error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9f792sty/bimpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-k6mjik9k-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-9f792sty/bimpy/ You are using pip version 9.0.1, however version 9.0.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
Oh god, its been 2 years and still we didn't get solution for this.
@waseemshariff126 this solution worked for me: https://github.com/go-gl/glfw/issues/158#issuecomment-216270979