title: Error (command 'gcc' failed with exit status 1) when trying to install OpenDR
body: <p>I am a python beginner and I'm currently trying to run smpl, however I need to download OpenDR to do so. I have installed homebrew and command line tools and checked that I have gcc downloaded. I am pretty stumped at this point on how to proceed. I attached the full error code I am receiving. Any help at this point would really be appreciated.</p>
  <pre><code>ERROR: Command errored out with exit status 1:
     command: /Users/jonasdixon/opt/anaconda3/envs/py27/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'/private/var/folders/bl/vpm7gmwx2zqdqf04vddhv6180000gn/T/pip-install-G9YeQJ/opendr/setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'/private/var/folders/bl/vpm7gmwx2zqdqf04vddhv6180000gn/T/pip-install-G9YeQJ/opendr/setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' bdist_wheel -d /private/var/folders/bl/vpm7gmwx2zqdqf04vddhv6180000gn/T/pip-wheel-CZsgRX --python-tag cp27
         cwd: /private/var/folders/bl/vpm7gmwx2zqdqf04vddhv6180000gn/T/pip-install-G9YeQJ/opendr/
    Complete output (87 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.7-x86_64-2.7
    creating build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/test_renderer.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/test_camera.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/version.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/cvwrap.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/slider_demo.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/renderer.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/__init__.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/everything.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/test_sh.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/util_tests.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/lighting.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/camera.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/occlusion_test.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/common.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/utils.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/geometry.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/topology.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/test_depth_renderer.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/simple.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/dummy.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/test_geometry.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/serialization.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    copying opendr/filters.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
    creating build/lib.macosx-10.7-x86_64-2.7/opendr/contexts
    copying opendr/contexts/_constants.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr/contexts
    copying opendr/contexts/draw_triangle_shaders_3_2.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr/contexts
    copying opendr/contexts/fix_warnings.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr/contexts
    copying opendr/contexts/__init__.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr/contexts
    copying opendr/contexts/autogen.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr/contexts
    copying opendr/contexts/draw_triangle_shaders_2_1.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr/contexts
    creating build/lib.macosx-10.7-x86_64-2.7/opendr/test_dr
    copying opendr/test_dr/__init__.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr/test_dr
    running build_ext
    building 'opendr.contexts.ctx_mac' extension
    creating build/temp.macosx-10.7-x86_64-2.7
    creating build/temp.macosx-10.7-x86_64-2.7/opendr
    creating build/temp.macosx-10.7-x86_64-2.7/opendr/contexts
    gcc -fno-strict-aliasing -I/Users/jonasdixon/opt/anaconda3/envs/py27/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Iopendr/contexts -I. -I/Users/jonasdixon/opt/anaconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include -I/Users/jonasdixon/opt/anaconda3/envs/py27/include/python2.7 -c opendr/contexts/ctx_mac.c -o build/temp.macosx-10.7-x86_64-2.7/opendr/contexts/ctx_mac.o -Qunused-arguments
    In file included from opendr/contexts/ctx_mac.c:630:
    In file included from /Users/jonasdixon/opt/anaconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
    In file included from /Users/jonasdixon/opt/anaconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
    In file included from /Users/jonasdixon/opt/anaconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1824:
    /Users/jonasdixon/opt/anaconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: &quot;Using deprecated NumPy API, disable it with &quot;          &quot;#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION&quot; [-W#warnings]
    #warning &quot;Using deprecated NumPy API, disable it with &quot; \
     ^
    opendr/contexts/ctx_mac.c:3498:3: error: implicit declaration of function 'glGenVertexArrays' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      glGenVertexArrays(__pyx_v_n, (&amp;(*__Pyx_BufPtrStrided1d(unsigned int *, __pyx_pybuffernd_arr.rcbuffer-&gt;pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_arr.diminfo[0].strides))));
      ^
    opendr/contexts/ctx_mac.c:3498:3: note: did you mean 'glGenVertexArraysAPPLE'?
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/glext.h:3407:13: note: 'glGenVertexArraysAPPLE' declared here
    extern void glGenVertexArraysAPPLE(GLsizei n, GLuint *ids);
                ^
    opendr/contexts/ctx_mac.c:3637:3: error: implicit declaration of function 'glBindFragDataLocation' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      glBindFragDataLocation(__pyx_v_program, __pyx_v_color, __pyx_v_name);
      ^
    opendr/contexts/ctx_mac.c:3637:3: note: did you mean 'glBindFragDataLocationEXT'?
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/glext.h:3075:13: note: 'glBindFragDataLocationEXT' declared here
    extern void glBindFragDataLocationEXT(GLuint program, GLuint colorNumber, const GLchar *name);
                ^
    opendr/contexts/ctx_mac.c:4149:3: error: implicit declaration of function 'glClearBufferfv' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      glClearBufferfv(__pyx_v_buffer, __pyx_v_drawbuffer, ((GLfloat *)__pyx_v_value-&gt;data));
      ^
    opendr/contexts/ctx_mac.c:4149:3: note: did you mean 'glReadBuffer'?
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2651:13: note: 'glReadBuffer' declared here
    extern void glReadBuffer (GLenum mode) OPENGL_DEPRECATED(10.0, 10.14);
                ^
    opendr/contexts/ctx_mac.c:12787:49: warning: passing 'char **' to parameter of type 'const GLchar *const *' (aka 'const char *const *') discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
      glShaderSource(__pyx_v_shader, __pyx_v_count, (&amp;__pyx_v_s), (&amp;__pyx_v_len));
                                                    ^~~~~~~~~~~~
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2926:80: note: passing argument to parameter 'string' here
    extern void glShaderSource (GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length) OPENGL_DEPRECATED(10.0, 10.14);
                                                                                   ^
    opendr/contexts/ctx_mac.c:13017:3: error: implicit declaration of function 'glBindVertexArray' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      glBindVertexArray(__pyx_v_array);
      ^
    opendr/contexts/ctx_mac.c:13017:3: note: did you mean 'glBindVertexArrayAPPLE'?
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/glext.h:3405:13: note: 'glBindVertexArrayAPPLE' declared here
    extern void glBindVertexArrayAPPLE(GLuint id);
                ^
    2 warnings and 4 errors generated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for opendr
    Running setup.py clean for opendr
  Failed to build opendr
  Installing collected packages: opendr
    Running setup.py install for opendr ... error
      ERROR: Command errored out with exit status 1:
       command: /Users/jonasdixon/opt/anaconda3/envs/py27/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'/private/var/folders/bl/vpm7gmwx2zqdqf04vddhv6180000gn/T/pip-install-G9YeQJ/opendr/setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'/private/var/folders/bl/vpm7gmwx2zqdqf04vddhv6180000gn/T/pip-install-G9YeQJ/opendr/setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record /private/var/folders/bl/vpm7gmwx2zqdqf04vddhv6180000gn/T/pip-record-FyeaO3/install-record.txt --single-version-externally-managed --compile
           cwd: /private/var/folders/bl/vpm7gmwx2zqdqf04vddhv6180000gn/T/pip-install-G9YeQJ/opendr/
      Complete output (87 lines):
      running install
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.7-x86_64-2.7
      creating build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/test_renderer.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/test_camera.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/version.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/cvwrap.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/slider_demo.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/renderer.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/__init__.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/everything.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/test_sh.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/util_tests.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/lighting.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/camera.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/occlusion_test.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/common.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/utils.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/geometry.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/topology.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/test_depth_renderer.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/simple.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/dummy.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/test_geometry.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/serialization.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      copying opendr/filters.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr
      creating build/lib.macosx-10.7-x86_64-2.7/opendr/contexts
      copying opendr/contexts/_constants.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr/contexts
      copying opendr/contexts/draw_triangle_shaders_3_2.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr/contexts
      copying opendr/contexts/fix_warnings.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr/contexts
      copying opendr/contexts/__init__.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr/contexts
      copying opendr/contexts/autogen.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr/contexts
      copying opendr/contexts/draw_triangle_shaders_2_1.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr/contexts
      creating build/lib.macosx-10.7-x86_64-2.7/opendr/test_dr
      copying opendr/test_dr/__init__.py -&gt; build/lib.macosx-10.7-x86_64-2.7/opendr/test_dr
      running build_ext
      building 'opendr.contexts.ctx_mac' extension
      creating build/temp.macosx-10.7-x86_64-2.7
      creating build/temp.macosx-10.7-x86_64-2.7/opendr
      creating build/temp.macosx-10.7-x86_64-2.7/opendr/contexts
      gcc -fno-strict-aliasing -I/Users/jonasdixon/opt/anaconda3/envs/py27/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Iopendr/contexts -I. -I/Users/jonasdixon/opt/anaconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include -I/Users/jonasdixon/opt/anaconda3/envs/py27/include/python2.7 -c opendr/contexts/ctx_mac.c -o build/temp.macosx-10.7-x86_64-2.7/opendr/contexts/ctx_mac.o -Qunused-arguments
      In file included from opendr/contexts/ctx_mac.c:630:
      In file included from /Users/jonasdixon/opt/anaconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
      In file included from /Users/jonasdixon/opt/anaconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
      In file included from /Users/jonasdixon/opt/anaconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1824:
      /Users/jonasdixon/opt/anaconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: &quot;Using deprecated NumPy API, disable it with &quot;          &quot;#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION&quot; [-W#warnings]
      #warning &quot;Using deprecated NumPy API, disable it with &quot; \
       ^
      opendr/contexts/ctx_mac.c:3498:3: error: implicit declaration of function 'glGenVertexArrays' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        glGenVertexArrays(__pyx_v_n, (&amp;(*__Pyx_BufPtrStrided1d(unsigned int *, __pyx_pybuffernd_arr.rcbuffer-&gt;pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_arr.diminfo[0].strides))));
        ^
      opendr/contexts/ctx_mac.c:3498:3: note: did you mean 'glGenVertexArraysAPPLE'?
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/glext.h:3407:13: note: 'glGenVertexArraysAPPLE' declared here
      extern void glGenVertexArraysAPPLE(GLsizei n, GLuint *ids);
                  ^
      opendr/contexts/ctx_mac.c:3637:3: error: implicit declaration of function 'glBindFragDataLocation' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        glBindFragDataLocation(__pyx_v_program, __pyx_v_color, __pyx_v_name);
        ^
      opendr/contexts/ctx_mac.c:3637:3: note: did you mean 'glBindFragDataLocationEXT'?
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/glext.h:3075:13: note: 'glBindFragDataLocationEXT' declared here
      extern void glBindFragDataLocationEXT(GLuint program, GLuint colorNumber, const GLchar *name);
                  ^
      opendr/contexts/ctx_mac.c:4149:3: error: implicit declaration of function 'glClearBufferfv' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        glClearBufferfv(__pyx_v_buffer, __pyx_v_drawbuffer, ((GLfloat *)__pyx_v_value-&gt;data));
        ^
      opendr/contexts/ctx_mac.c:4149:3: note: did you mean 'glReadBuffer'?
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2651:13: note: 'glReadBuffer' declared here
      extern void glReadBuffer (GLenum mode) OPENGL_DEPRECATED(10.0, 10.14);
                  ^
      opendr/contexts/ctx_mac.c:12787:49: warning: passing 'char **' to parameter of type 'const GLchar *const *' (aka 'const char *const *') discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
        glShaderSource(__pyx_v_shader, __pyx_v_count, (&amp;__pyx_v_s), (&amp;__pyx_v_len));
                                                      ^~~~~~~~~~~~
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2926:80: note: passing argument to parameter 'string' here
      extern void glShaderSource (GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length) OPENGL_DEPRECATED(10.0, 10.14);
                                                                                     ^
      opendr/contexts/ctx_mac.c:13017:3: error: implicit declaration of function 'glBindVertexArray' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        glBindVertexArray(__pyx_v_array);
        ^
      opendr/contexts/ctx_mac.c:13017:3: note: did you mean 'glBindVertexArrayAPPLE'?
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/glext.h:3405:13: note: 'glBindVertexArrayAPPLE' declared here
      extern void glBindVertexArrayAPPLE(GLuint id);
                  ^
      2 warnings and 4 errors generated.
      error: command 'gcc' failed with exit status 1
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /Users/jonasdixon/opt/anaconda3/envs/py27/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'/private/var/folders/bl/vpm7gmwx2zqdqf04vddhv6180000gn/T/pip-install-G9YeQJ/opendr/setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'/private/var/folders/bl/vpm7gmwx2zqdqf04vddhv6180000gn/T/pip-install-G9YeQJ/opendr/setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record /private/var/folders/bl/vpm7gmwx2zqdqf04vddhv6180000gn/T/pip-record-FyeaO3/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
  </code></pre>
  <p>Thank you!</p>