Skip to content

Build failure: tic-80 on *-darwin #465083

@Rhys-T

Description

@Rhys-T

Nixpkgs version

  • Unstable (26.05)

Steps to reproduce

On Darwin/macOS:

nix build 'nixpkgs#tic-80'

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

x86_64: https://hydra.nixos.org/build/314546451; aarch64: https://hydra.nixos.org/build/314546449

Relevant log output

[…]
Running phase: buildPhase
build flags: -j4 SHELL=/nix/store/p0k9r5h8qs7220xdbdihhfgzwjcly70x-bash-5.3p3/bin/bash
[  0%] Building C object CMakeFiles/giflib.dir/vendor/giflib/dgif_lib.c.o
[  0%] Building C object CMakeFiles/blipbuf.dir/vendor/blip-buf/blip_buf.c.o
[  1%] Building C object CMakeFiles/luaapi.dir/src/api/luaapi.c.o
[  2%] Building C object CMakeFiles/png.dir/vendor/libpng/png.c.o
[  3%] Linking C static library lib/libblipbuf.a
[  4%] Building C object CMakeFiles/giflib.dir/vendor/giflib/egif_lib.c.o
[  4%] Building C object CMakeFiles/luaapi.dir/src/api/parse_note.c.o
[  4%] Building C object CMakeFiles/png.dir/vendor/libpng/pngerror.c.o
[  5%] Linking C static library lib/libluaapi.a
[  5%] Building C object CMakeFiles/giflib.dir/vendor/giflib/gif_err.c.o
[  6%] Building C object CMakeFiles/png.dir/vendor/libpng/pngget.c.o
[  7%] Building C object CMakeFiles/giflib.dir/vendor/giflib/gif_font.c.o
[  7%] Built target blipbuf
[  7%] Built target luaapi
[  7%] Building C object CMakeFiles/png.dir/vendor/libpng/pngmem.c.o
[  7%] Building C object CMakeFiles/giflib.dir/vendor/giflib/gif_hash.c.o
[  8%] Building C object CMakeFiles/lpeg.dir/vendor/lpeg/lpcap.c.o
[  9%] Building C object CMakeFiles/wren.dir/vendor/wren/src/optional/wren_opt_meta.c.o
[ 10%] Building C object CMakeFiles/png.dir/vendor/libpng/pngpread.c.o
[ 11%] Building C object CMakeFiles/giflib.dir/vendor/giflib/gifalloc.c.o
[ 11%] Building C object CMakeFiles/lpeg.dir/vendor/lpeg/lpcode.c.o
[ 11%] Building C object CMakeFiles/wren.dir/vendor/wren/src/optional/wren_opt_random.c.o
[ 11%] Building C object CMakeFiles/png.dir/vendor/libpng/pngread.c.o
[ 11%] Building C object CMakeFiles/giflib.dir/vendor/giflib/openbsd-reallocarray.c.o
[ 12%] Building C object CMakeFiles/wren.dir/vendor/wren/src/vm/wren_compiler.c.o
[ 13%] Building C object CMakeFiles/lpeg.dir/vendor/lpeg/lpprint.c.o
[ 14%] Linking C static library lib/libgiflib.a
[ 14%] Building C object CMakeFiles/lpeg.dir/vendor/lpeg/lptree.c.o
[ 14%] Built target giflib
[ 15%] Building C object CMakeFiles/png.dir/vendor/libpng/pngrio.c.o
CMakeFiles/mruby_vendor.dir/build.make:87: *** missing separator.  Stop.
make[1]: *** [CMakeFiles/Makefile2:533: CMakeFiles/mruby_vendor.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[…various other things building in parallel…]
make: *** [Makefile:156: all] Error 2

Additional context

The CMake file that TIC-80 uses to build mruby calls the xcrun command to find the macOS SDK, using the deprecated exec_program CMake command to do so. Nixpkgs is using a fake xcrun command from xcbuild, which outputs warning: unhandled Platform key FamilyDisplayName before returning the SDK path. exec_command captures both stdout and stderr in the same variable, causing the warning to end up in the Makefile and breaking things.

I've just submitted nesbox/TIC-80#2869 to replace the exec_command call with execute_process, the recommended replacement. execute_process handles stdout and stderr separately, so it doesn't have this problem.

System metadata

  • system: "x86_64-darwin"
  • host os: Darwin 24.5.0, macOS 15.5
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.31.2
  • channels(root): "nixpkgs"
  • nixpkgs: /nix/store/bypd23xzpxkjwf6zkp8clfik9r7c8pql-nixpkgs/nixpkgs

Notify maintainers

@blinry


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions