Skip to content

[Bug]: Can't compile Mac #30480

@jklymak

Description

@jklymak

Bug summary

When trying to build on a Mac (15.6.1), I get:

../../subprojects/freetype-2.6.1/src/gzip/infcodes.c:71:17: error: use of undeclared identifier 'Byte'
     71 |     c->dbits = (Byte)bd;
        |                 ^

This is in a micro mamba environment, made with environment.yml.

Matplotlib seems to run in dev mode, but I need to recompile to get pytest to work.

Code for reproduction

`python -m pip install --verbose --no-build-isolation --editable ".[dev]"`

Actual outcome

  In file included from ../../subprojects/freetype-2.6.1/src/gzip/ftgzip.c:65:
  In file included from ../../subprojects/freetype-2.6.1/src/gzip/zlib.h:34:
  ../../subprojects/freetype-2.6.1/src/gzip/zconf.h:228:12: error: unknown type name 'Byte'
    228 |    typedef Byte  FAR Bytef;
        |            ^
  In file included from ../../subprojects/freetype-2.6.1/src/gzip/ftgzip.c:83:
  ../../subprojects/freetype-2.6.1/src/gzip/inftrees.h:22:7: error: unknown type name 'Byte'
     22 |       Byte Exop;        /* number of extra bits or operation */
        |       ^

...etc

Expected outcome

dev install

Additional information

No response

Operating system

MacOS 15.6.1

Matplotlib Version

main

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

conda

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions