Change:
./use-dynamic-system-antlr4-runtime.patch ]; <ins> env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang (toString [ "-Wno-error=incompatible-function-pointer-types" "-Wno-error=int-conversion" ]); </ins> # setup.py will always (re-)execute cmake in buildPhase dontConfigure = true;

Discussion:
Steps to reproduce the behavior: Sourcing python-remove-tests-dir-hook Sourcing python-catch-conflicts- Sourcing python-remove-bin-bytecode- Sourcing pypa-build-hook Using pypaBuildPhase Sourcing pypa-install-hook Using pypaInstallPhase Sourcing python-imports-check- Using pythonImportsCheckPhase Sourcing python-namespaces-hook Sourcing python-catch-conflicts- Sourcing pytest-check-hook Using pytestCheckPhase { "action": "setPhase", "phase": "unpackPhase" } unpacking sources unpacking source archive /nix/store/52v9hha28zx91x4qxza3602alprh6jla-afdko- source root is afdko-4.0.0 setting SOURCEDATEEPOCH to timestamp of file afdko- { "action": "setPhase", "phase": "patchPhase" } patching sources applying patch /nix/store/0icrfhj3wrwrvcvfl7kx09psligvrzqk-no-pypi-build- patching file Hunk succeeded at 198 (offset 2 lines). applying patch /nix/store/00r3wz6naq0nmrg7jnf2bgsppkf1ia6f-use-dynamic-system-antlr4- patching file Hunk succeeded at 36 with fuzz 2. patching file Hunk succeeded at 8 with fuzz 1 (offset -5 lines). patching file Hunk succeeded at 69 with fuzz 2. { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" } updateAutotoolsGnuConfigScriptsPhase { "action": "setPhase", "phase": "buildPhase" } building Executing pypaBuildPhase Creating a wheel... [1m Getting build dependencies for wheel...[0m /nix/store/2hkxasw90q7sp97jzqxnhwcv829xgklq-python3.11-setuptools-68.2.2/lib/python3.11/site- DeprecatedConfig: Deprecated config in !! The licensefile parameter is deprecated, use licensefiles instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See for details. !!

parsed = (optionname, lambda x: x)(value) [1m Building wheel...[0m /nix/store/2hkxasw90q7sp97jzqxnhwcv829xgklq-python3.11-setuptools-68.2.2/lib/python3.11/site- DeprecatedConfig: Deprecated config in !! The licensefile parameter is deprecated, use licensefiles instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See for details. !! parsed = (optionname, lambda x: x)(value)
-- Trying 'Ninja' generator Not searching for unused variables given on the command line. [0mCMake Deprecation Warning at (cmakeminimumrequired): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument <minvalue or use a ...<maxsuffix to tell CMake that the project does not need compatibility with older versions. [0m sh: ps: command not found sh: ps: command not found sh: ps: command not found -- The C compiler identification is Clang 16.0.6 sh: ps: command not found -- Detecting C compiler ABI info sh: ps: command not found sh: ps: command not found sh: ps: command not found -- Detecting C compiler ABI info - done -- Check for working C compiler: /nix/store/3fpl3hs6ii820yxp0rbafx5phnmj8ng7-clang-wrapper-16.0.6/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- The CXX compiler identification is Clang 16.0.6 sh: ps: command not found -- Detecting CXX compiler ABI info sh: ps: command not found sh: ps: command not found sh: ps: command not found -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /nix/store/3fpl3hs6ii820yxp0rbafx5phnmj8ng7-clang-wrapper-16.0.6/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done (1.

5s) -- Generating done (0.0s) -- Build files have been written to: /tmp/nix-build-python3.11-afdko- -- Trying 'Ninja' generator - success
Configuring Project Working directory: /private/tmp/nix-build-python3.11-afdko- Command: /nix/store/xckcwsyrgm5jwlwqgng19j8r0gy4w8ar-cmake-3.27.7/bin/cmake /private/tmp/nix-build-python3.11-afdko- -G Ninja -DCMAKEMAKEPROGRAM:FILEPATH=/nix/store/r55dr1zqvhhq32axn0hgvyv9qv5c9wsf-ninja-1.11.1/bin/ninja --no-warn-unused-cli -DCMAKEINSTALLPREFIX:PATH=/private/tmp/nix-build-python3.11-afdko- -DPYTHONVERSIONSTRING:STRING=3.11.6 -DSKBUILD:INTERNAL=TRUE -DCMAKEMODULEPATH:PATH=/nix/store/rjggdqc6xvcznjpds28rfzib6rpq2njw-python3.11-scikit-build-0.17.6/lib/python3.11/site-packages/skbuild/resources/cmake -DPYTHONEXECUTABLE:PATH=/nix/store/ai4hd8f1xhr0rfjdr17bxx1rwi42sx97-python3-3.11.6/bin/python3.11 -DPYTHONINCLUDEDIR:PATH=/nix/store/ai4hd8f1xhr0rfjdr17bxx1rwi42sx97-python3-3.11.6/include/python3.11 -DPYTHONLIBRARY:PATH=/nix/store/ai4hd8f1xhr0rfjdr17bxx1rwi42sx97-python3- -DPythonEXECUTABLE:PATH=/nix/store/ai4hd8f1xhr0rfjdr17bxx1rwi42sx97-python3-3.11.6/bin/python3.11 -DPythonROOTDIR:PATH=/nix/store/ai4hd8f1xhr0rfjdr17bxx1rwi42sx97-python3-3.11.

6 -DPythonFINDREGISTRY:STRING=NEVER -DPythonINCLUDEDIR:PATH=/nix/store/ai4hd8f1xhr0rfjdr17bxx1rwi42sx97-python3-3.11.6/include/python3.11 -DPython3EXECUTABLE:PATH=/nix/store/ai4hd8f1xhr0rfjdr17bxx1rwi42sx97-python3-3.11.6/bin/python3.11 -DPython3ROOTDIR:PATH=/nix/store/ai4hd8f1xhr0rfjdr17bxx1rwi42sx97-python3-3.11.6 -DPython3FINDREGISTRY:STRING=NEVER -DPython3INCLUDEDIR:PATH=/nix/store/ai4hd8f1xhr0rfjdr17bxx1rwi42sx97-python3-3.11.6/include/python3.11 -DCMAKEMAKEPROGRAM:FILEPATH=/nix/store/r55dr1zqvhhq32axn0hgvyv9qv5c9wsf-ninja-1.11.1/bin/ninja -DCMAKEOSXDEPLOYMENTTARGET:STRING=11.0 -DCMAKEOSXARCHITECTURES:STRING=arm64 -DCMAKEBUILDTYPE:STRING=Release Not searching for unused variables given on the command line.

sh: ps: command not found sh: ps: command not found sh: ps: command not found -- The C compiler identification is Clang 16.0.6 sh: ps: command not found -- The CXX compiler identification is Clang 16.0.6 sh: ps: command not found -- Detecting C compiler ABI info sh: ps: command not found sh: ps: command not found sh: ps: command not found -- Detecting C compiler ABI info - done -- Check for working C compiler: /nix/store/3fpl3hs6ii820yxp0rbafx5phnmj8ng7-clang-wrapper-16.0.6/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info sh: ps: command not found sh: ps: command not found sh: ps: command not found -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /nix/store/3fpl3hs6ii820yxp0rbafx5phnmj8ng7-clang-wrapper-16.0.6/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Build type is Release [33mCMake Warning (dev) at /nix/store/rjggdqc6xvcznjpds28rfzib6rpq2njw-python3.11-scikit-build-0.17.6/lib/python3.11/site- (findpackage): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmakepolicy command to set the policy and suppress this warning. Call Stack (most recent call first): (findpackage) This warning is for project developers. Use -Wno-dev to suppress it.

[0m -- Found PythonInterp: /nix/store/ai4hd8f1xhr0rfjdr17bxx1rwi42sx97-python3-3.11.6/bin/python3.11 (found version "3.11.6") [33mCMake Warning (dev) at /nix/store/rjggdqc6xvcznjpds28rfzib6rpq2njw-python3.11-scikit-build-0.17.6/lib/python3.11/site- (findpackage): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmakepolicy command to set the policy and suppress this warning. Call Stack (most recent call first): (findpackage) This warning is for project developers. Use -Wno-dev to suppress it. [0m -- Found PythonLibs: /nix/store/ai4hd8f1xhr0rfjdr17bxx1rwi42sx97-python3- (found version "3.11.6") <string:2: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives <string:2: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead -- Found LibXml2: /nix/store/yy7jhlyq2hhcgb47lzvygvjvckm906x9-libxml2- (found version "2.11.5") -- Looking for floor in m sh: ps: command not found sh: ps: command not found sh: ps: command not found -- Looking for floor in m - found sh: ps: command not found Error: Could not run swvers: No such file or directory sh: ps: command not found Error: Could not run swvers: No such file or directory sh: ps: command not found Error: Could not run swvers: No such file or directory -- Found Python3: /nix/store/ai4hd8f1xhr0rfjdr17bxx1rwi42sx97-python3-3.11.6/bin/python3.11 (found version "3.

11.6") found components: Interpreter sh: ps: command not found -- Configuring done (1.5s) -- Generating done (0.1s) -- Build files have been written to: /tmp/nix-build-python3.11-afdko- [0/209] Building C object [K [0/209] Building C object [K [0/209] Building C object [K [0/209] Building C object [K [0/209] Building C object [K [0/209] Building C object [K [0/209] Building C object [K [0/209] Building C object [K [0/209] Building C object [K [0/209] Building C object [K [1/209] Building C object [K [1/209] Building C object [K [2/209] Building C object [K [2/209] Building C object [K [3/209] Building C object [K [3/209] Building C object [K [4/209] Building C object [K [4/209] Building C object [K [5/209] Building C object [K [5/209] Building C object [K [6/209] Building C object [K [6/209] Building C object [K [7/209] Building C object [K /tmp/nix-build-python3.11-afdko- warning: implicit conversion from 'long' to 'float' changes value from to [-Wimplicit-const-int-float-conversion] if ((fabs(value - roundf(value)) < TXEPSILON) && (value LONGMIN) && (value < LONGMAX)) ~ ^~ /nix/store/3fpl3hs6ii820yxp0rbafx5phnmj8ng7-clang-wrapper-16.0.6/resource-root/include/limits.h:47:19: note: expanded from macro 'LONGMAX' #define LONGMAX LONGMAX ^ /tmp/nix-build-python3.11-afdko- error: incompatible function pointer types assigning to 'sizet ()(ctlStreamCallbacks , void , xmlDocPtr )' (aka 'unsigned long ()(struct ctlStreamCallbacks , void ,

struct xmlDoc )') from 'sizet (ctlStreamCallbacks , Stream , xmlDocPtr )' (aka 'unsigned long (struct ctlStreamCallbacks , Stream , struct xmlDoc )') [-Wincompatible-function-pointer-types] h- = stmxmlread; ^ 2 errors generated. [47/209] Building C object [K [31mFAILED: [ /nix/store/3fpl3hs6ii820yxp0rbafx5phnmj8ng7-clang-wrapper-16.0.6/bin/clang -I/nix/store/5qsssc7jh0ffgw86difvpi3i24kd8pj0-libxml2-2.11.5-dev/include/libxml2 -I/tmp/nix-build-python3.11-afdko- -I/tmp/nix-build-python3.11-afdko- -O3 -DNDEBUG -arch arm64 -mmacosx-version-min=11.0 -MD -MT -MF -o -c /tmp/nix-build-python3.11-afdko- /tmp/nix-build-python3.11-afdko- error: incompatible integer to pointer conversion passing 'int' to parameter of type 'char ' [-Wint-conversion] message(h, ufoErrParse, "Encountered glyph reference %s in alternate layer's with an empty file path.

", glyphName); ^ /nix/store/3fpl3hs6ii820yxp0rbafx5phnmj8ng7-clang-wrapper-16.0.6/resource-root/include/stddef.h:89:16: note: expanded from macro 'NULL' ^ /nix/store/3fpl3hs6ii820yxp0rbafx5phnmj8ng7-clang-wrapper-16.0.6/resource-root/include/stddef.h:89:16: note: expanded from macro 'NULL' ^~~ <built-in:48:22: note: expanded from macro 'LONGMAX' #define LONGMAX 9223372036854775807L ^~ /tmp/nix-build-python3.11-afdko- warning: floating-point comparison is always true; constant cannot be represented exactly in type 'float' [-Wliteral-range] if (privateDict-ExpansionFactor != cffDFLTExpansionFactor){ /tmp/nix-build-python3.11-afdko- note: passing argument to parameter 'ptr' here static int writeTmp(t1wCtx h, long cnt, unsigned char ptr) { ^ 1 warning generated. [54/209] Building C object [K /tmp/nix-build-python3.11-afdko- warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ 1 warning generated. [55/209] Building C object [K ninja: build stopped: subcommand failed.

Traceback (most recent call last): File "/nix/store/rjggdqc6xvcznjpds28rfzib6rpq2njw-python3.11-scikit-build-0.17.6/lib/python3.11/site-", line 674, in setup (makeargs, installtarget=cmakeinstalltarget, env=env) File "/nix/store/rjggdqc6xvcznjpds28rfzib6rpq2njw-python3.11-scikit-build-0.17.6/lib/python3.11/site-", line 697, in make self.makeimpl(clargs=clargs, config=config, sourcedir=sourcedir, installtarget=installtarget, env=env) File "/nix/store/rjggdqc6xvcznjpds28rfzib6rpq2njw-python3.11-scikit-build-0.17.6/lib/python3.11/site-", line 742, in makeimpl raise SKBuildError(msg) An error occurred while building with CMake. Command: /nix/store/xckcwsyrgm5jwlwqgng19j8r0gy4w8ar-cmake-3.27.7/bin/cmake --build . --target install --config Release -- Install target: install Source directory: /private/tmp/nix-build-python3.11-afdko- Working directory: /private/tmp/nix-build-python3.11-afdko- Please check the install target is valid and see CMake's output for more information. [91mERROR[0m Backend subprocess exited when trying to invoke buildwheel console ~ via C v15.0.0-clang via λ 9.4.7 via via v18.18.2 nix-shell -p nix-info --run "nix-info -m" system: host os: multi-user?: sandbox: version: channels(root): channels(rocko): nixpkgs: Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
Let's not assign people unless they're actually working on the issue.