Pillow: Cannot install Pillow in macOS Mojave using brew

Created on 25 Oct 2018  Â·  62Comments  Â·  Source: python-pillow/Pillow

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



    ----------------------------------------
Installation Packaging Platform macOS

Most helpful comment

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 /

All 62 comments

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?

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/

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 can you elaborate on this please? why is this a mojave issue?

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

@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.

@choilive
Yeah, that makes sense, thanks!

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

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

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

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

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

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.

I can confirm the problem Mojave 10.14.3

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.

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

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.

Same solution worked for me, thanks.

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 (https://github.com/python-pillow/Pillow/issues/3438#issuecomment-435169249) 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?

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 /

this answer solved my problem:
https://github.com/python-pillow/Pillow/issues/3438#issuecomment-435169249

but now, I have a another problem:((

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!

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.

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: https://github.com/pyenv/pyenv/issues/1219#issuecomment-429331397

and pyenv eventually added formal support for the SDK: https://github.com/pyenv/pyenv/pull/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.

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.

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

@choilive Thanks man, It solved the problem.

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

I solved this where the above approaches didn't work for me.

if using Tox like we are this is what I had to do (on a Mac):

Install openssl:
brew install openssl

add the exports to your shell e.g ~/.zshrc:

export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"

Then in your tox.ini under [testenv] you might find something that looks like this:

passenv=...

Include here the environment variables you want to pass to Tox e.g

passenv=
MYENV1
MYENV2
...
LDFLAGS
CPPFLAGS

And you're good to go. Just including the LDFLAGS and CPPFLAGS to your shell config should be fine if you're installing this to say a global python environment but the above is what I had to do for our local testing in with tox and pytest

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 /

Solved my problem! Thanks!

Apple removed Packages/macOS_SDK_headers_for_macOS_10.14.pkg in macOS 10.14.6, so I still can't install psycopg2.

Apple removed Packages/macOS_SDK_headers_for_macOS_10.14.pkg in macOS 10.14.6, so I still can't install psycopg2.

I have 10.14.6 and can see it:

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.14.6
BuildVersion:   18G87
$ ls -l /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
-rw-r--r--  1 root  admin  15997942 15 Jul 18:34 /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
$

Apple removed Packages/macOS_SDK_headers_for_macOS_10.14.pkg in macOS 10.14.6, so I still can't install psycopg2.

I have 10.14.6 and can see it:

$ sw_vers
ProductName:  Mac OS X
ProductVersion:   10.14.6
BuildVersion: 18G87
$ ls -l /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
-rw-r--r--  1 root  admin  15997942 15 Jul 18:34 /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
$

That's strange, I have installed xcode-select, but don't even have Packages folder.

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.14.6
BuildVersion:   18G87
$ ls -l /Library/Developer/CommandLineTools 
total 0
drwxr-xr-x  6 root  admin  192  4 июн 16:20 Library
drwxr-xr-x  6 root  wheel  192  4 июн 16:20 SDKs
drwxr-xr-x  7 root  admin  224 20 окт  2018 usr

Okay, so I installed XCode command-line tools (macOS 10.14) for Xcode 10.3 from https://developer.apple.com/download/more/ and it created Packages folder with macOS_SDK_headers_for_macOS_10.14.pkg

I have the same problem with Majove, I am trying to install fbprophet, but the code did not solve my problem.
I am still getting the following error;

 Using cached https://files.pythonhosted.org/packages/33/fb/ad98d46773929079657706e6b2b6e366ba6c282bc2397d8f9b0ea8e5614c/fbprophet-0.5.tar.gz
Requirement already satisfied: Cython>=0.22 in ./anaconda3/lib/python3.7/site-packages (from fbprophet) (0.28.5)
Requirement already satisfied: pystan>=2.14 in ./anaconda3/lib/python3.7/site-packages (from fbprophet) (2.19.0.1.dev0)
Requirement already satisfied: numpy>=1.10.0 in ./anaconda3/lib/python3.7/site-packages (from fbprophet) (1.15.1)
Requirement already satisfied: pandas>=0.23.4 in ./anaconda3/lib/python3.7/site-packages (from fbprophet) (0.23.4)
Requirement already satisfied: matplotlib>=2.0.0 in ./anaconda3/lib/python3.7/site-packages (from fbprophet) (2.2.3)
Requirement already satisfied: lunardate>=0.1.5 in ./anaconda3/lib/python3.7/site-packages (from fbprophet) (0.2.0)
Requirement already satisfied: convertdate>=2.1.2 in ./anaconda3/lib/python3.7/site-packages (from fbprophet) (2.1.3)
Requirement already satisfied: holidays>=0.9.5 in ./anaconda3/lib/python3.7/site-packages (from fbprophet) (0.9.11)
Requirement already satisfied: setuptools-git>=1.2 in ./anaconda3/lib/python3.7/site-packages (from fbprophet) (1.2)
Requirement already satisfied: python-dateutil>=2.5.0 in ./anaconda3/lib/python3.7/site-packages (from pandas>=0.23.4->fbprophet) (2.7.3)
Requirement already satisfied: pytz>=2011k in ./anaconda3/lib/python3.7/site-packages (from pandas>=0.23.4->fbprophet) (2018.5)
Requirement already satisfied: cycler>=0.10 in ./anaconda3/lib/python3.7/site-packages (from matplotlib>=2.0.0->fbprophet) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in ./anaconda3/lib/python3.7/site-packages (from matplotlib>=2.0.0->fbprophet) (2.2.0)
Requirement already satisfied: six>=1.10 in ./anaconda3/lib/python3.7/site-packages (from matplotlib>=2.0.0->fbprophet) (1.11.0)
Requirement already satisfied: kiwisolver>=1.0.1 in ./anaconda3/lib/python3.7/site-packages (from matplotlib>=2.0.0->fbprophet) (1.0.1)
Requirement already satisfied: ephem<3.8,>=3.7.5.3 in ./anaconda3/lib/python3.7/site-packages (from convertdate>=2.1.2->fbprophet) (3.7.7.0)
Requirement already satisfied: setuptools in ./anaconda3/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib>=2.0.0->fbprophet) (40.2.0)
Building wheels for collected packages: fbprophet
  Building wheel for fbprophet (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/kaan/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/v0/shz6wz0n6dbgqdzhz_c42hpm0000gp/T/pip-install-4tbibfo1/fbprophet/setup.py'"'"'; __file__='"'"'/private/var/folders/v0/shz6wz0n6dbgqdzhz_c42hpm0000gp/T/pip-install-4tbibfo1/fbprophet/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/v0/shz6wz0n6dbgqdzhz_c42hpm0000gp/T/pip-wheel-ozp_l350 --python-tag cp37
       cwd: /private/var/folders/v0/shz6wz0n6dbgqdzhz_c42hpm0000gp/T/pip-install-4tbibfo1/fbprophet/
  Complete output (9 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib
  creating build/lib/fbprophet
  creating build/lib/fbprophet/stan_model
  INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_861b75c6337e237650a61ae58c4385ef NOW.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for fbprophet
  Running setup.py clean for fbprophet
Failed to build fbprophet
Installing collected packages: fbprophet
  Running setup.py install for fbprophet ... error
    ERROR: Command errored out with exit status 1:
     command: /Users/kaan/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/v0/shz6wz0n6dbgqdzhz_c42hpm0000gp/T/pip-install-4tbibfo1/fbprophet/setup.py'"'"'; __file__='"'"'/private/var/folders/v0/shz6wz0n6dbgqdzhz_c42hpm0000gp/T/pip-install-4tbibfo1/fbprophet/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/v0/shz6wz0n6dbgqdzhz_c42hpm0000gp/T/pip-record-gnhaw83z/install-record.txt --single-version-externally-managed --compile
         cwd: /private/var/folders/v0/shz6wz0n6dbgqdzhz_c42hpm0000gp/T/pip-install-4tbibfo1/fbprophet/
    Complete output (9 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib
    creating build/lib/fbprophet
    creating build/lib/fbprophet/stan_model
    INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_861b75c6337e237650a61ae58c4385ef NOW.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/kaan/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/v0/shz6wz0n6dbgqdzhz_c42hpm0000gp/T/pip-install-4tbibfo1/fbprophet/setup.py'"'"'; __file__='"'"'/private/var/folders/v0/shz6wz0n6dbgqdzhz_c42hpm0000gp/T/pip-install-4tbibfo1/fbprophet/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/v0/shz6wz0n6dbgqdzhz_c42hpm0000gp/T/pip-record-gnhaw83z/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

@fcamuz This repo is for Pillow, please see here for Prophet installation info and here for Prophet help.

Whats about py38 and mac 10.15? I have installed dev tools, but "Packages" folder seems to be erased on 10.15

(.venv) ➜  gallery ll /Library/Developer/CommandLineTools
total 0
drwxr-xr-x  6 root  wheel   192B  6 sep 06:47 Library
drwxr-xr-x  6 root  wheel   192B 16 oct 23:39 SDKs
drwxr-xr-x  7 root  admin   224B  8 oct 09:53 

The solution in this post worked for me:

export CPATH=`xcrun --show-sdk-path`/usr/include

@DevanR That worked for me too. I use OS X Catalina Beta.

@DevanR its also worked for me. Thanks, I use OS X Catalina

https://github.com/python-pillow/Pillow/issues/3438#issuecomment-543812237 also works on macOS Mojave 10.14.6.

@choilive
How do I "undo" this ? Uninstall this package you mentioned below, and revert back? Cuz this step won't work for my machine.
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

The solution in this post worked for me:

export CPATH=`xcrun --show-sdk-path`/usr/include

This one works for me on macOS 10.14 with pillow-simd-6.0.0.post0 (using pip install pillow-simd). Thank you

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 /

that's work for me ! macos 10.14.16

mwjdeMac:~ mwj$ sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
Password:
Sorry, try again.
Password:
installer: Package name is macOS_SDK_headers_for_macOS_10.14
installer: Certificate used to sign package is not trusted. Use -allowUntrusted to override.
anyone can help?

This solution no longer seems to work

@halorium I'm in the same boat. The solution from @DevanR is not working anymore.

Issue still exists on Catalina 10.15.2, above solutions are not working for me

https://github.com/python-pillow/Pillow/issues/3438#issuecomment-523831923 works for me on Catalina 10.15.2 @JurajVajdaDeckers just skip the tox.ini config if not used, also use the correct rc file for your terminal interpreter e.g. ~/.bashrc vs ~/.zshrc or just export the variables before pip install ...

export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"

Also make sure to have installed openssl brew install openssl as @gigatexal solution mentioned

This worked for me on Catalina before pip install ...

export CPATH='xcrun --show-sdk-path' /usr/include

I solved this where the above approaches didn't work for me.

if using Tox like we are this is what I had to do (on a Mac):

Install openssl:
brew install openssl

add the exports to your shell e.g ~/.zshrc:

export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"

Then in your tox.ini under [testenv] you might find something that looks like this:

passenv=...

Include here the environment variables you want to pass to Tox e.g

passenv=
MYENV1
MYENV2
...
LDFLAGS
CPPFLAGS

And you're good to go. Just including the LDFLAGS and CPPFLAGS to your shell config should be fine if you're installing this to say a global python environment but the above is what I had to do for our local testing in with tox and pytest

This solution worked for me on Mac Mojave 10.14.6. The solution using sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / no longer worked.

on Catalina 10.15.3,
errored with with the hint of zlib

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/nr/2lrdt7s12wb19y48prs171980000gp/T/pip-install-454918fa/Pillow-SIMD/setup.py", line 915, 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


    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/robertwen/virtualenv/v1/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/nr/2lrdt7s12wb19y48prs171980000gp/T/pip-install-454918fa/Pillow-SIMD/setup.py'"'"'; __file__='"'"'/private/var/folders/nr/2lrdt7s12wb19y48prs171980000gp/T/pip-install-454918fa/Pillow-SIMD/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/nr/2lrdt7s12wb19y48prs171980000gp/T/pip-record-8va4lhoa/install-record.txt --single-version-externally-managed --compile --install-headers /Users/robertwen/virtualenv/v1/include/site/python3.7/Pillow-SIMD Check the logs for full command output.

solved by

$ brew install zlib
$ export PKG_CONFIG_PATH="/usr/local/opt/zlib/lib/pkgconfig"
$ pip install Pillow-SIMD

Also solved by this one
https://github.com/python-pillow/Pillow/issues/3438#issuecomment-543812237

Would use that without installing an extra package.

If you get from Google trying to install pandas, try using a newer version (if you can). I tried all of the above and it didn't work, moved to pandas==1.0.3 and it worked right away.

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 /

This solved my problem, thankies!

In case anyone get the below error while running the command:

(base) MNG**:~ nitish_ghosh$ sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
Password:
installer: Error - the package path specified was invalid: '/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg'.

Fix:

(base) MNG**:Library nitish_ghosh$ xcode-select --install

#3438 (comment) works for me on Catalina 10.15.2 @JurajVajdaDeckers just skip the tox.ini config if not used, also use the correct rc file for your terminal interpreter e.g. ~/.bashrc vs ~/.zshrc or just export the variables before pip install ...

export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"

Also make sure to have installed openssl brew install openssl as @gigatexal solution mentioned

Thanks, It's work for me!

what about in linux system I am facing same issue.

what about in linux system I am facing same issue.

Please create a new issue. Thanks!

Many people have posted in this issue, so I'll ask - are there problems in here unrelated to Homebrew? If not, then this issue should be resolved by #4842, and will be fixed with the release of Pillow 8.0 on October 15.

4974 has also been merged, so https://github.com/python-pillow/Pillow/issues/3438#issuecomment-543812237 should be automatic now as well.

Closing, let us know if there are problems with Pillow >= 8.0.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thinrhino picture thinrhino  Â·  3Comments

mmalenta picture mmalenta  Â·  3Comments

edowson picture edowson  Â·  3Comments

damianmoore picture damianmoore  Â·  4Comments

nomarek picture nomarek  Â·  3Comments