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

Cannot install Pillow in macOS Mojave using brew #3438

Open
benjamin-yin001 opened this issue Oct 25, 2018 · 29 comments

Comments

@benjamin-yin001
Copy link

commented Oct 25, 2018

zlib in home brew is key only
when install pillow, installer cannot find lib path of zlib:

$ pip install pillow --global-option="build_ext" --global-option="--debug"
/Users/apple/Workspace/rrystt/venv/site-packages/pip/_internal/commands/install.py:211: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
  cmdoptions.check_install_build_global(options)
Collecting pillow
  Using cached https://files.pythonhosted.org/packages/1b/e1/1118d60e9946e4e77872b69c58bc2f28448ec02c99a2ce456cd1a272c5fd/Pillow-5.3.0.tar.gz
Skipping bdist_wheel for pillow, due to binaries being disabled for it.
Installing collected packages: pillow
  Running setup.py install for pillow ... error
    Complete output from command /Users/apple/Workspace/rrystt/venv/bin/pypy3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/zk/j8wb8sgs7gdbqg994brgqqmh0000gn/T/pip-install-ykoel31_/pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" build_ext --debug install --record /private/var/folders/zk/j8wb8sgs7gdbqg994brgqqmh0000gn/T/pip-record-v1hmqktz/install-record.txt --single-version-externally-managed --compile --install-headers /Users/apple/Workspace/rrystt/venv/include/site/python3.5/pillow:
    running build_ext
    Appending path /private/var/folders/zk/j8wb8sgs7gdbqg994brgqqmh0000gn/T/pip-install-ykoel31_/pillow/src/libImaging
    Appending path /usr/local/Cellar/zlib/1.2.11/lib
    Appending path /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Appending path /usr/local/lib
    Appending path /usr/local/include
    Appending path /usr/lib
    Looking for zlib
    Checking for include file zlib.h in /private/var/folders/zk/j8wb8sgs7gdbqg994brgqqmh0000gn/T/pip-install-ykoel31_/pillow/src/libImaging
    Checking for include file zlib.h in /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Checking for include file zlib.h in /usr/local/include
    Checking for include file zlib.h in /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Looking for jpeg
    Checking for include file jpeglib.h in /private/var/folders/zk/j8wb8sgs7gdbqg994brgqqmh0000gn/T/pip-install-ykoel31_/pillow/src/libImaging
    Checking for include file jpeglib.h in /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Checking for include file jpeglib.h in /usr/local/include
    Checking for include file jpeglib.h in /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Looking for jpeg2000
    Checking for openjpeg-#.# in /private/var/folders/zk/j8wb8sgs7gdbqg994brgqqmh0000gn/T/pip-install-ykoel31_/pillow/src/libImaging
    Checking for openjpeg-#.# in /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Checking for openjpeg-#.# in /usr/local/include
    Checking for openjpeg-#.# in /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Looking for imagequant
    Checking for include file libimagequant.h in /private/var/folders/zk/j8wb8sgs7gdbqg994brgqqmh0000gn/T/pip-install-ykoel31_/pillow/src/libImaging
    Checking for include file libimagequant.h in /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Checking for include file libimagequant.h in /usr/local/include
    Checking for include file libimagequant.h in /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Looking for tiff
    Checking for include file tiff.h in /private/var/folders/zk/j8wb8sgs7gdbqg994brgqqmh0000gn/T/pip-install-ykoel31_/pillow/src/libImaging
    Checking for include file tiff.h in /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Checking for include file tiff.h in /usr/local/include
    Checking for include file tiff.h in /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Looking for freetype
    Couldn't find library freetype in ['/usr/local/Cellar/zlib/1.2.11/lib', '/usr/local/lib', '/usr/lib']
    Looking for lcms
    Checking for include file lcms2.h in /private/var/folders/zk/j8wb8sgs7gdbqg994brgqqmh0000gn/T/pip-install-ykoel31_/pillow/src/libImaging
    Checking for include file lcms2.h in /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Checking for include file lcms2.h in /usr/local/include
    Checking for include file lcms2.h in /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Looking for webp
    Checking for include file webp/encode.h in /private/var/folders/zk/j8wb8sgs7gdbqg994brgqqmh0000gn/T/pip-install-ykoel31_/pillow/src/libImaging
    Checking for include file webp/encode.h in /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Checking for include file webp/encode.h in /usr/local/include
    Checking for include file webp/encode.h in /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Looking for webpmux
    Checking for include file webp/mux.h in /private/var/folders/zk/j8wb8sgs7gdbqg994brgqqmh0000gn/T/pip-install-ykoel31_/pillow/src/libImaging
    Checking for include file webp/mux.h in /usr/local/Cellar/pypy3/6.0.0/libexec/include
    Checking for include file webp/mux.h in /usr/local/include
    Checking for include file webp/mux.h in /usr/local/Cellar/pypy3/6.0.0/libexec/include


    The headers or library files could not be found for zlib,
    a required dependency when compiling Pillow from source.

    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html

    Traceback (most recent call last):
      File "/private/var/folders/zk/j8wb8sgs7gdbqg994brgqqmh0000gn/T/pip-install-ykoel31_/pillow/setup.py", line 802, in <module>
        zip_safe=not (debug_build() or PLATFORM_MINGW), )
      File "/Users/apple/Workspace/rrystt/venv/site-packages/setuptools/__init__.py", line 140, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/Cellar/pypy3/6.0.0/libexec/lib-python/3/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/Cellar/pypy3/6.0.0/libexec/lib-python/3/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/local/Cellar/pypy3/6.0.0/libexec/lib-python/3/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/local/Cellar/pypy3/6.0.0/libexec/lib-python/3/distutils/command/build_ext.py", line 347, in run
        self.build_extensions()
      File "/private/var/folders/zk/j8wb8sgs7gdbqg994brgqqmh0000gn/T/pip-install-ykoel31_/pillow/setup.py", line 589, in build_extensions
        raise RequiredDependencyException(f)
    RequiredDependencyException: zlib

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/zk/j8wb8sgs7gdbqg994brgqqmh0000gn/T/pip-install-ykoel31_/pillow/setup.py", line 814, in <module>
        raise RequiredDependencyException(msg)
    RequiredDependencyException:

    The headers or library files could not be found for zlib,
    a required dependency when compiling Pillow from source.

    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html



    ----------------------------------------
@radarhere

This comment has been minimized.

Copy link
Member

commented Oct 25, 2018

To be clear, I'm guessing that 'key only' should be 'keg only'.

Were you able to install this fine prior to Mojave, or is this the first time that you have tried?

@radarhere radarhere changed the title cannot install pillow in macOS mojave using brew Cannot install pillow in macOS mojave using brew Oct 25, 2018

@radarhere radarhere changed the title Cannot install pillow in macOS mojave using brew Cannot install Pillow in macOS mojave using brew Oct 25, 2018

@radarhere radarhere changed the title Cannot install Pillow in macOS mojave using brew Cannot install Pillow in macOS Mojave using brew Oct 25, 2018

@radarhere

This comment has been minimized.

Copy link
Member

commented Oct 26, 2018

@choilive

This comment has been minimized.

Copy link

commented Nov 1, 2018

FWIW - I'm having same the issue -
Xcode CLI tools installed, Zlib installed from home-brew.
Mojave, Python 3.7

  The headers or library files could not be found for zlib,
  a required dependency when compiling Pillow from source.

  Please see the install instructions at:
     http://pillow.readthedocs.io/en/latest/installation.html

  Traceback (most recent call last):
    File "/private/var/folders/p8/6cj_vj7j5yv0j52gvvn61s1c0000gq/T/pip-install-mrleg713/Pillow/setup.py", line 779, in <module>
      zip_safe=not debug_build(), )
    File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 140, in setup
      return distutils.core.setup(**attrs)
    File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 188, in run
      self.run_command('build')
    File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 339, in run
      self.build_extensions()
    File "/private/var/folders/p8/6cj_vj7j5yv0j52gvvn61s1c0000gq/T/pip-install-mrleg713/Pillow/setup.py", line 549, in build_extensions
      raise RequiredDependencyException(f)
  __main__.RequiredDependencyException: zlib

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/p8/6cj_vj7j5yv0j52gvvn61s1c0000gq/T/pip-install-mrleg713/Pillow/setup.py", line 791, in <module>
      raise RequiredDependencyException(msg)
  __main__.RequiredDependencyException:

  The headers or library files could not be found for zlib,
  a required dependency when compiling Pillow from source.

  Please see the install instructions at:
     http://pillow.readthedocs.io/en/latest/installation.html



  ----------------------------------------
  Failed building wheel for Pillow
  Running setup.py clean for Pillow
Failed to build Pillow
Installing collected packages: Pillow, psutil, psycopg2, pyparsing, pydot, pyldap, PyPDF2, pyserial, python-dateutil, pyusb, qrcode, reportlab, suds-jurko, python-stdnum, vatnumber, vobject, Werkzeug, XlsxWriter, xlwt, xlrd
  Running setup.py install for Pillow ... error
    Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/p8/6cj_vj7j5yv0j52gvvn61s1c0000gq/T/pip-install-mrleg713/Pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/p8/6cj_vj7j5yv0j52gvvn61s1c0000gq/T/pip-record-s0ix7mnq/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.13-x86_64-3.7
    creating build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/MpoImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageMode.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/PngImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/XbmImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/PcxImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/SunImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageFile.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/SpiderImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/TarIO.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/FitsStubImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/MpegImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/BdfFontFile.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/GribStubImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageStat.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/PixarImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/GimpPaletteFile.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageColor.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ContainerIO.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/MspImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/MicImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImtImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/GifImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/PalmImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageQt.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageMath.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/PaletteFile.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/FontFile.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ExifTags.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageCms.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/FpxImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageChops.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/BufrStubImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/PSDraw.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/PcdImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageFilter.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageDraw2.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImagePath.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/DcxImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/JpegPresets.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/Hdf5StubImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/features.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageDraw.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/GimpGradientFile.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageWin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/IcoImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/_tkinter_finder.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/EpsImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/TgaImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageMorph.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/Jpeg2KImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/WalImageFile.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/PcfFontFile.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageTk.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/GbrImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageOps.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/PdfImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageShow.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageEnhance.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/WmfImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageGrab.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/WebPImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/FliImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/TiffTags.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/CurImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/_util.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/GdImageFile.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/TiffImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/IptcImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImagePalette.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/BmpImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageTransform.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/IcnsImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/McIdasImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/XpmImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/OleFileIO.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/DdsImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageSequence.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/PyAccess.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/_binary.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/Image.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/XVThumbImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/SgiImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/PsdImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/JpegImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/ImageFont.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/PpmImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    copying PIL/FtexImagePlugin.py -> build/lib.macosx-10.13-x86_64-3.7/PIL
    running egg_info
    writing Pillow.egg-info/PKG-INFO
    writing dependency_links to Pillow.egg-info/dependency_links.txt
    writing requirements to Pillow.egg-info/requires.txt
    writing top-level names to Pillow.egg-info/top_level.txt
    reading manifest file 'Pillow.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching '*.sh'
    no previously-included directories found matching 'docs/_static'
    warning: no previously-included files found matching '.coveragerc'
    warning: no previously-included files found matching '.editorconfig'
    warning: no previously-included files found matching '.landscape.yaml'
    warning: no previously-included files found matching 'appveyor.yml'
    warning: no previously-included files found matching 'build_children.sh'
    warning: no previously-included files found matching 'tox.ini'
    warning: no previously-included files matching '.git*' found anywhere in distribution
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files matching '*.so' found anywhere in distribution
    writing manifest file 'Pillow.egg-info/SOURCES.txt'
    running build_ext


    The headers or library files could not be found for zlib,
    a required dependency when compiling Pillow from source.

    Please see the install instructions at:
       http://pillow.readthedocs.io/en/latest/installation.html

    Traceback (most recent call last):
      File "/private/var/folders/p8/6cj_vj7j5yv0j52gvvn61s1c0000gq/T/pip-install-mrleg713/Pillow/setup.py", line 779, in <module>
        zip_safe=not debug_build(), )
      File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 140, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/local/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 339, in run
        self.build_extensions()
      File "/private/var/folders/p8/6cj_vj7j5yv0j52gvvn61s1c0000gq/T/pip-install-mrleg713/Pillow/setup.py", line 549, in build_extensions
        raise RequiredDependencyException(f)
    __main__.RequiredDependencyException: zlib

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/p8/6cj_vj7j5yv0j52gvvn61s1c0000gq/T/pip-install-mrleg713/Pillow/setup.py", line 791, in <module>
        raise RequiredDependencyException(msg)
    __main__.RequiredDependencyException:

    The headers or library files could not be found for zlib,
    a required dependency when compiling Pillow from source.

    Please see the install instructions at:
       http://pillow.readthedocs.io/en/latest/installation.html



    ----------------------------------------
Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/p8/6cj_vj7j5yv0j52gvvn61s1c0000gq/T/pip-install-mrleg713/Pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/p8/6cj_vj7j5yv0j52gvvn61s1c0000gq/T/pip-record-s0ix7mnq/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/p8/6cj_vj7j5yv0j52gvvn61s1c0000gq/T/pip-install-mrleg713/Pillow/
@choilive

This comment has been minimized.

Copy link

commented Nov 1, 2018

This appears to be a Mojave Issue, I was able to resolve with:
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

@dmitrybelyakov

This comment has been minimized.

Copy link

commented Nov 5, 2018

@choilive can you elaborate on this please? why is this a mojave issue?

@postace

This comment has been minimized.

Copy link

commented Nov 6, 2018

don't know why but it works for me :) Thank @choilive for your suggestions.

@choilive

This comment has been minimized.

Copy link

commented Nov 6, 2018

@dmitrybelyakov
I am not actually sure why but it appears that installing Xcode CLI Tools on Mojave does not actually install the Zlib headers - at least on the machines I have tested. Doesn't seem to be have been an issue on macOS 10.13 at least.

Manually installing the macOS SDK headers seem to add those headers.

@dmitrybelyakov

This comment has been minimized.

Copy link

commented Nov 7, 2018

@choilive
Yeah, that makes sense, thanks!

@radarhere

This comment has been minimized.

Copy link
Member

commented Nov 7, 2018

@benjamin-yin001 does the suggestion from @choilive help you?

@petschki

This comment has been minimized.

Copy link

commented Nov 9, 2018

I can confirm the issue in Mojave ... the command from @choilive works here too

@freemanbot

This comment has been minimized.

Copy link

commented Dec 8, 2018

I too can confirm the issue in Mojave ... the command from @choilive works here too. Thanks dude.

@pankajr

This comment has been minimized.

Copy link

commented Dec 17, 2018

Same... Had it worked in 10.13, fresh installed 10.14, and my set up script failed at pip install pillow with the error Could not find a version that satisfies the requirement zlib (from versions: ), even though i had zlib installed via homebrew.
Ran the command that @choilive posted, and ran pip install pillow and voila!
Thanks @choilive

@Jouy

This comment has been minimized.

Copy link

commented Jan 29, 2019

I had the same problem. the command from @choilive works here too

@koliber

This comment has been minimized.

Copy link

commented Feb 8, 2019

I ran into the issue just now. MacOS 10.14.2. Setting up a new machine and ran into the issue while installing Pillow==5.1.0.

I ran the command from @choilive and it did not fix the issue.

I was able to install Pillow==5.2.0.

@gvammer

This comment has been minimized.

Copy link

commented Feb 11, 2019

I can confirm the problem Mojave 10.14.3

@bialecki

This comment has been minimized.

Copy link

commented Mar 4, 2019

For 10.14.3, @choilive's solution of running:

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

fixed the issue for me. My root issue was couldn't find an x11 header file.

@WilsonOne

This comment has been minimized.

Copy link

commented Mar 9, 2019

For 10.14.3, @choilive's solution is useful. Thanks.

@mgraupner

This comment has been minimized.

Copy link

commented Mar 26, 2019

Had the same issues after upgrading an application from python2.7 to 3. @choilive command helped but upgrading pillow to the current version was also necessary (5.4.1), otherwise an error about a missing JPEG library occurred. Previously installed pillow version was 4.1.1 which seemed not to be compatible with macOS 10.14.x and python3.

@auraz

This comment has been minimized.

Copy link

commented Mar 31, 2019

Same solution worked for me, thanks.

@hugovk

This comment has been minimized.

Copy link
Member

commented Apr 8, 2019

I've just updated from macOS High Sierra to Mojave and get a similar thing building from source:

$ python setup.py develop
running develop
running egg_info
writing src/Pillow.egg-info/PKG-INFO
writing dependency_links to src/Pillow.egg-info/dependency_links.txt
writing top-level names to src/Pillow.egg-info/top_level.txt
reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.c'
warning: no files found matching '*.h'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.codecov.yml'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'azure-pipelines.yml'
warning: no previously-included files found matching 'tox.ini'
no previously-included directories found matching '.azure-pipelines'
no previously-included directories found matching '.travis'
writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
running build_ext


The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.

Please see the install instructions at:
   https://pillow.readthedocs.io/en/latest/installation.html

Traceback (most recent call last):
  File "setup.py", line 792, in <module>
    zip_safe=not (debug_build() or PLATFORM_MINGW), )
  File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/develop.py", line 38, in run
    self.install_for_development()
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/develop.py", line 140, in install_for_development
    self.run_command('build_ext')
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "setup.py", line 606, in build_extensions
    raise RequiredDependencyException(f)
__main__.RequiredDependencyException: zlib

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 804, in <module>
    raise RequiredDependencyException(msg)
__main__.RequiredDependencyException:

The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.

Please see the install instructions at:
   https://pillow.readthedocs.io/en/latest/installation.html

The same solution (#3438 (comment)) fixed it:

$ sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
Password:
installer: Package name is macOS_SDK_headers_for_macOS_10.14
installer: Installing at base path /
installer: The install was successful.
$ python setup.py develop
running develop
running egg_info
writing src/Pillow.egg-info/PKG-INFO
writing dependency_links to src/Pillow.egg-info/dependency_links.txt
writing top-level names to src/Pillow.egg-info/top_level.txt
reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.c'
warning: no files found matching '*.h'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.codecov.yml'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'azure-pipelines.yml'
warning: no previously-included files found matching 'tox.ini'
no previously-included directories found matching '.azure-pipelines'
no previously-included directories found matching '.travis'
writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
running build_ext
building 'PIL._imaging' extension
creating build/temp.macosx-10.14-x86_64-3.7
creating build/temp.macosx-10.14-x86_64-3.7/src
creating build/temp.macosx-10.14-x86_64-3.7/src/libImaging
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/_imaging.c -o build/temp.macosx-10.14-x86_64-3.7/src/_imaging.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/decode.c -o build/temp.macosx-10.14-x86_64-3.7/src/decode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/encode.c -o build/temp.macosx-10.14-x86_64-3.7/src/encode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/map.c -o build/temp.macosx-10.14-x86_64-3.7/src/map.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/display.c -o build/temp.macosx-10.14-x86_64-3.7/src/display.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/outline.c -o build/temp.macosx-10.14-x86_64-3.7/src/outline.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/path.c -o build/temp.macosx-10.14-x86_64-3.7/src/path.o
src/path.c:61:15: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'unsigned long'
      [-Wsign-compare]
    if (count > (SIZE_MAX / (2 * sizeof(double))) - 1 ) {
        ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Access.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Access.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/AlphaComposite.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/AlphaComposite.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Resample.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Resample.o
src/libImaging/Resample.c:200:17: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
    if (outSize > INT_MAX / (ksize * sizeof(double))) {
        ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Bands.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Bands.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/BcnDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/BcnDecode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/BitDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/BitDecode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Blend.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Blend.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Chops.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Chops.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/ColorLUT.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/ColorLUT.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Convert.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Convert.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/ConvertYCbCr.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/ConvertYCbCr.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Copy.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Copy.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Crop.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Crop.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Dib.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Dib.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Draw.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Draw.o
src/libImaging/Draw.c:973:31: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
            if (outline->size > INT_MAX / sizeof(Edge)) {
                ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Effects.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Effects.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/EpsEncode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/EpsEncode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/File.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/File.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Fill.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Fill.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Filter.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Filter.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/FliDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/FliDecode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Geometry.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Geometry.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/GetBBox.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/GetBBox.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/GifDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/GifDecode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/GifEncode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/GifEncode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/HexDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/HexDecode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Histo.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Histo.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/JpegDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/JpegDecode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/JpegEncode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/JpegEncode.o
src/libImaging/JpegEncode.c:248:37: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long')
      [-Wsign-compare]
        if (context->rawExifLen + 5 >  context->destination.pub.free_in_buffer){
            ~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Matrix.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Matrix.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/ModeFilter.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/ModeFilter.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Negative.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Negative.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Offset.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Offset.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Pack.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Pack.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/PackDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/PackDecode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Palette.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Palette.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Paste.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Paste.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Quant.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Quant.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/QuantOctree.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/QuantOctree.o
src/libImaging/QuantOctree.c:173:19: warning: comparison of integers of different signs: 'long' and 'unsigned long'
      [-Wsign-compare]
   if (cube->size > LONG_MAX / sizeof(struct _ColorBucket)) {
       ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/libImaging/QuantOctree.c:208:20: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
   if (cube->rBits > rBits) {
       ~~~~~~~~~~~ ^ ~~~~~
src/libImaging/QuantOctree.c:215:20: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
   if (cube->gBits > gBits) {
       ~~~~~~~~~~~ ^ ~~~~~
src/libImaging/QuantOctree.c:222:20: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
   if (cube->bBits > bBits) {
       ~~~~~~~~~~~ ^ ~~~~~
src/libImaging/QuantOctree.c:229:20: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
   if (cube->aBits > aBits) {
       ~~~~~~~~~~~ ^ ~~~~~
src/libImaging/QuantOctree.c:308:30: warning: comparison of integers of different signs: 'long' and 'unsigned long'
      [-Wsign-compare]
       (nBucketsA+nBucketsB) > LONG_MAX / sizeof(struct _ColorBucket)) {
        ~~~~~~~~~~~~~~~~~~~  ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 warnings generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/QuantHash.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/QuantHash.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/QuantHeap.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/QuantHeap.o
src/libImaging/QuantHeap.c:51:16: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
   if (newsize > INT_MAX / sizeof(void *)){
       ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/PcdDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/PcdDecode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/PcxDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/PcxDecode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/PcxEncode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/PcxEncode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Point.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Point.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/RankFilter.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/RankFilter.o
src/libImaging/RankFilter.c:65:14: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
        size > INT_MAX / (size * sizeof(FLOAT32))) {
        ~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/RawDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/RawDecode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/RawEncode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/RawEncode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Storage.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Storage.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/SgiRleDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/SgiRleDecode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/SunRleDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/SunRleDecode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/TgaRleDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/TgaRleDecode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/TgaRleEncode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/TgaRleEncode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Unpack.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Unpack.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/UnpackYCC.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/UnpackYCC.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/UnsharpMask.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/UnsharpMask.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/XbmDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/XbmDecode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/XbmEncode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/XbmEncode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/ZipDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/ZipDecode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/ZipEncode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/ZipEncode.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/TiffDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/TiffDecode.o
src/libImaging/TiffDecode.c:374:33: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
        for (y = state->yoff; y < state->ysize; y += tile_length) {
                              ~ ^ ~~~~~~~~~~~~
src/libImaging/TiffDecode.c:375:37: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
            for (x = state->xoff; x < state->xsize; x += tile_width) {
                                  ~ ^ ~~~~~~~~~~~~
src/libImaging/TiffDecode.c:436:45: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
            for (strip_row = 0; strip_row < min(rows_per_strip, state->ysize - state->y); strip_row++) {
                                            ^   ~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~
/Users/hugo/github/Pillow/src/libImaging/TiffDecode.h:23:23: note: expanded from macro 'min'
#define min(x,y) (( x > y ) ? y : x )
                    ~ ^ ~
3 warnings generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Jpeg2KDecode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Jpeg2KDecode.o
src/libImaging/Jpeg2KDecode.c:733:29: warning: comparison of integers of different signs: 'OPJ_INT32' (aka 'int') and 'OPJ_UINT32'
      (aka 'unsigned int') [-Wsign-compare]
            || tile_info.x0 < image->x0
               ~~~~~~~~~~~~ ^ ~~~~~~~~~
src/libImaging/Jpeg2KDecode.c:734:29: warning: comparison of integers of different signs: 'OPJ_INT32' (aka 'int') and 'OPJ_UINT32'
      (aka 'unsigned int') [-Wsign-compare]
            || tile_info.y0 < image->y0
               ~~~~~~~~~~~~ ^ ~~~~~~~~~
src/libImaging/Jpeg2KDecode.c:735:41: warning: comparison of integers of different signs: 'unsigned int' and 'int'
      [-Wsign-compare]
            || tile_info.x1 - image->x0 > im->xsize
               ~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~
src/libImaging/Jpeg2KDecode.c:736:41: warning: comparison of integers of different signs: 'unsigned int' and 'int'
      [-Wsign-compare]
            || tile_info.y1 - image->y0 > im->ysize) {
               ~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~
4 warnings generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/Jpeg2KEncode.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Jpeg2KEncode.o
src/libImaging/Jpeg2KEncode.c:236:23: warning: comparison of integers of different signs: 'unsigned int' and 'int'
      [-Wsign-compare]
        for (n = 0; n < params->tcp_numlayers; ++n) {
                    ~ ^ ~~~~~~~~~~~~~~~~~~~~~
src/libImaging/Jpeg2KEncode.c:253:23: warning: comparison of integers of different signs: 'unsigned int' and 'int'
      [-Wsign-compare]
        for (n = 0; n < params->tcp_numlayers; ++n) {
                    ~ ^ ~~~~~~~~~~~~~~~~~~~~~
src/libImaging/Jpeg2KEncode.c:400:21: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and
      'unsigned long' [-Wsign-compare]
            if (len > sizeof(params.tcp_rates) / sizeof(params.tcp_rates[0]))
                ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/libImaging/Jpeg2KEncode.c:529:17: warning: comparison of integers of different signs: 'unsigned int' and 'int'
      [-Wsign-compare]
        if (ty0 < params.image_offset_y0)
            ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
src/libImaging/Jpeg2KEncode.c:543:21: warning: comparison of integers of different signs: 'unsigned int' and 'int'
      [-Wsign-compare]
            if (tx0 < params.image_offset_x0)
                ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
5 warnings generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/BoxBlur.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/BoxBlur.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/QuantPngQuant.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/QuantPngQuant.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.1.0.dev0" -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -I/Users/hugo/github/Pillow/src/libImaging -I/usr/local/Cellar/jpeg/9c/include -I/usr/local/Cellar/libtiff/4.0.10_1/include -I/Users/hugo/github/Pillow -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/little-cms2/2.9/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include -I/usr/local/include -I/usr/local/Cellar/freetype/2.10.0/include -I/usr/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/libImaging/codec_fd.c -o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/codec_fd.o
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.14-x86_64-3.7/src/_imaging.o build/temp.macosx-10.14-x86_64-3.7/src/decode.o build/temp.macosx-10.14-x86_64-3.7/src/encode.o build/temp.macosx-10.14-x86_64-3.7/src/map.o build/temp.macosx-10.14-x86_64-3.7/src/display.o build/temp.macosx-10.14-x86_64-3.7/src/outline.o build/temp.macosx-10.14-x86_64-3.7/src/path.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Access.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/AlphaComposite.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Resample.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Bands.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/BcnDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/BitDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Blend.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Chops.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/ColorLUT.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Convert.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/ConvertYCbCr.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Copy.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Crop.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Dib.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Draw.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Effects.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/EpsEncode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/File.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Fill.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Filter.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/FliDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Geometry.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/GetBBox.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/GifDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/GifEncode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/HexDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Histo.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/JpegDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/JpegEncode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Matrix.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/ModeFilter.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Negative.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Offset.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Pack.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/PackDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Palette.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Paste.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Quant.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/QuantOctree.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/QuantHash.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/QuantHeap.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/PcdDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/PcxDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/PcxEncode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Point.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/RankFilter.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/RawDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/RawEncode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Storage.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/SgiRleDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/SunRleDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/TgaRleDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/TgaRleEncode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Unpack.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/UnpackYCC.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/UnsharpMask.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/XbmDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/XbmEncode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/ZipDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/ZipEncode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/TiffDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Jpeg2KDecode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/Jpeg2KEncode.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/BoxBlur.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/QuantPngQuant.o build/temp.macosx-10.14-x86_64-3.7/src/libImaging/codec_fd.o -L/usr/local/Cellar/jpeg/9c/lib -L/usr/local/Cellar/openjpeg/2.3.0/lib -L/usr/local/Cellar/libtiff/4.0.10_1/lib -L/Users/hugo/github/Pillow -L/usr/local/Cellar/freetype/2.10.0/lib -L/usr/local/Cellar/little-cms2/2.9/lib -L/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib -L/usr/local/lib -L/usr/lib -ljpeg -lopenjp2 -lz -ltiff -o /Users/hugo/github/Pillow/src/PIL/_imaging.cpython-37m-darwin.so
--------------------------------------------------------------------
PIL SETUP SUMMARY
--------------------------------------------------------------------
version      Pillow 6.1.0.dev0
platform     darwin 3.7.3 (default, Mar 27 2019, 09:23:15)
             [Clang 10.0.1 (clang-1001.0.46.3)]
--------------------------------------------------------------------
--- JPEG support available
--- OPENJPEG (JPEG2000) support available (2.3)
--- ZLIB (PNG/ZIP) support available
*** LIBIMAGEQUANT support not available
--- LIBTIFF support available
--- FREETYPE2 support available
--- LITTLECMS2 support available
--- WEBP support available
--- WEBPMUX support available
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library and headers.
See https://pillow.readthedocs.io/en/latest/installation.html#building-from-source

To check the build, run the selftest.py script.

Creating /usr/local/lib/python3.7/site-packages/Pillow.egg-link (link to src)
Adding Pillow 6.1.0.dev0 to easy-install.pth file

Installed /Users/hugo/github/Pillow/src
Processing dependencies for Pillow==6.1.0.dev0
Finished processing dependencies for Pillow==6.1.0.dev0

Let's include a note in the installation docs. For Homebrew, is this something that can be included via brew? If so, please could someone report/PR that to them?

@brendo10x

This comment has been minimized.

Copy link

commented May 1, 2019

Este parece ser um problema do Mojave. Consegui resolver com:

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

@mhomidi

This comment has been minimized.

Copy link

commented May 4, 2019

this answer solved my problem:
#3438 (comment)

but now, I have a another problem:((

@aclark4life aclark4life added this to Backlog in Pillow May 11, 2019

@aclark4life aclark4life moved this from Backlog to In progress in Pillow May 11, 2019

@russlbrown

This comment has been minimized.

Copy link

commented May 22, 2019

This appears to be a Mojave Issue, I was able to resolve with:
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

I'm using macos Mohave.
pipenv install psycopg2 was failing with error: command 'gcc' failed with exit status 1 but the the above solution fixed the problem for me. Thanks choilive!

@linsonzhao

This comment has been minimized.

Copy link

commented May 31, 2019

This appears to be a Mojave Issue, I was able to resolve with:
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

@choilive Thanks a lot! It fixed my problem.

@SEAPUNK

This comment has been minimized.

Copy link

commented Jul 2, 2019

The macOS_SDK_headers_for_macOS_10.14.pkg install fix won't work on Catalina.

I did a bit of digging, and found this:
https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes#3035623

However, some software may fail to build correctly against the SDK and require macOS headers to be installed in the base system under /usr/include. If you are the maintainer of such software, we encourage you to update your project to work with the SDK or file a bug report for issues that are preventing you from doing so.

Where the /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg is a temporary workaround they're providing for macOS Mojave only:

As a workaround, an extra package is provided which will install the headers to the base system. In a future release, this package will no longer be provided

pyenv has a workaround that adds SDK headers to the lookup path: pyenv/pyenv#1219 (comment)

and pyenv eventually added formal support for the SDK: pyenv/pyenv#1353

So I think this is an issue where Pillow will need to add the SDK path to the includes list when building from source.

@hugovk

This comment has been minimized.

Copy link
Member

commented Jul 27, 2019

Ran into this after a recent Xcode update on macOS Mojave 10.14.6. This time I did this, which also worked:

Installing the package file at /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg also works. IMO it’s cleaner - it puts the headers files where they belong, and prevents you from running into this in the future

https://twitter.com/FoleyDiver/status/1125477518998429697

open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg and then follow the dialogs to install.

@Ibouch

This comment has been minimized.

Copy link

commented Aug 6, 2019

With Mojave 10.14.6 I had compilation and linkage errors and I followed this article to fix them https://donatstudios.com/MojaveMissingHeaderFiles

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

If you get an error about that file not existing, you probably simply don't have the Xcode command line tools installed which can be remedied simply as follows:

xcode-select --install
@kodevyas

This comment has been minimized.

Copy link

commented Aug 16, 2019

@choilive Thanks man, It solved the problem.

@markoke

This comment has been minimized.

Copy link

commented Aug 19, 2019

This saved me too after 2 days of googling. I had this issue on Mac
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.