Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: allegro5 on x86_64-darwin (upstream; fix submitted) #365936

Open
Rhys-T opened this issue Dec 17, 2024 · 0 comments
Open

Build failure: allegro5 on x86_64-darwin (upstream; fix submitted) #365936

Rhys-T opened this issue Dec 17, 2024 · 0 comments
Labels
0.kind: build failure A package fails to build

Comments

@Rhys-T
Copy link

Rhys-T commented Dec 17, 2024

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build nixpkgs\#allegro5 on x86_64-darwin

Build log

Build Log
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/kyaqglsiwskzqyndqd5z2lligmnr0hdh-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/87sfv7fh14926ild9gcdddxyzxrffj1h-allegro-5.2.10.0/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/87sfv7fh14926ild9gcdddxyzxrffj1h-allegro-5.2.10.0/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/87sfv7fh14926ild9gcdddxyzxrffj1h-allegro-5.2.10.0/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/87sfv7fh14926ild9gcdddxyzxrffj1h-allegro-5.2.10.0/share/doc/allegro -DCMAKE_INSTALL_INFODIR=/nix/store/87sfv7fh14926ild9gcdddxyzxrffj1h-allegro-5.2.10.0/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/87sfv7fh14926ild9gcdddxyzxrffj1h-allegro-5.2.10.0/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/87sfv7fh14926ild9gcdddxyzxrffj1h-allegro-5.2.10.0/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/87sfv7fh14926ild9gcdddxyzxrffj1h-allegro-5.2.10.0/include -DCMAKE_INSTALL_SBINDIR=/nix/store/87sfv7fh14926ild9gcdddxyzxrffj1h-allegro-5.2.10.0/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/87sfv7fh14926ild9gcdddxyzxrffj1h-allegro-5.2.10.0/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/87sfv7fh14926ild9gcdddxyzxrffj1h-allegro-5.2.10.0/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/raqax5qp65an4jcwj1bzd5lq589ywpg0-clang-wrapper-16.0.6/bin/strip -DCMAKE_RANLIB=/nix/store/raqax5qp65an4jcwj1bzd5lq589ywpg0-clang-wrapper-16.0.6/bin/ranlib -DCMAKE_AR=/nix/store/raqax5qp65an4jcwj1bzd5lq589ywpg0-clang-wrapper-16.0.6/bin/ar -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=/nix/store/87sfv7fh14926ild9gcdddxyzxrffj1h-allegro-5.2.10.0 -DCMAKE_SKIP_RPATH=ON
CMake Deprecation Warning at CMakeLists.txt:8 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- [Allegro] Allegro Version: [5.2.10]
-- The C compiler identification is Clang 16.0.6
-- The CXX compiler identification is Clang 16.0.6
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/raqax5qp65an4jcwj1bzd5lq589ywpg0-clang-wrapper-16.0.6/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/raqax5qp65an4jcwj1bzd5lq589ywpg0-clang-wrapper-16.0.6/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Allowing GCC/Clang to use SSE instructions
-- Found PkgConfig: /nix/store/d6facgfz0viwyd8r0z2iwmzqvcj4v2fp-pkg-config-wrapper-0.29.2/bin/pkg-config (found version "0.29.2")
-- Looking for include file dirent.h
-- Looking for include file dirent.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file linux/input.h
-- Looking for include file linux/input.h - not found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file sys/io.h
-- Looking for include file sys/io.h - not found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file time.h
-- Looking for include file time.h - found
-- Looking for include file sys/utsname.h
-- Looking for include file sys/utsname.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file soundcard.h
-- Looking for include file soundcard.h - not found
-- Looking for include file sys/soundcard.h
-- Looking for include file sys/soundcard.h - not found
-- Looking for include file machine/soundcard.h
-- Looking for include file machine/soundcard.h - not found
-- Looking for include file linux/soundcard.h
-- Looking for include file linux/soundcard.h - not found
-- Looking for include file libkern/OSAtomic.h
-- Looking for include file libkern/OSAtomic.h - found
-- Looking for include file sys/inotify.h
-- Looking for include file sys/inotify.h - not found
-- Looking for include file sal.h
-- Looking for include file sal.h - not found
-- Looking for getexecname
-- Looking for getexecname - not found
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for mprotect
-- Looking for mprotect - found
-- Looking for sched_yield
-- Looking for sched_yield - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for ftello
-- Looking for ftello - found
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Looking for strerror_s
-- Looking for strerror_s - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of _Bool
-- Check size of _Bool - done
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV - Failed
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H - Failed
-- Performing Test ALLEGRO_HAVE_VA_COPY
-- Performing Test ALLEGRO_HAVE_VA_COPY - Success
-- Found OpenGL: /nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
WARNING: FreeImage not found, disabling support
-- Found WebP: /nix/store/f86v0c1jyn51aqag81ab469gc3rihr67-libwebp-1.4.0/include
-- Found OpenAL: /nix/store/4nxk1nwp0nnxzij4m3n7pjlilb2lwxar-openal-soft-1.23.1/lib/libopenal.dylib
-- Could NOT find OPENSL (missing: OPENSL_INCLUDE_DIR OPENSL_LIBRARY) 
-- Found FLAC: /nix/store/42ks0hvnwlrd0kf4gg25wl5c0y7phpbi-flac-1.4.3-dev/include
-- Performing Test FLAC_COMPILES
-- Performing Test FLAC_COMPILES - Success
-- Could NOT find DUMB (missing: DUMB_INCLUDE_DIR DUMB_LIBRARY) 
WARNING: libdumb >= 2.0 or <= 0.9.3 not found or compile test failed, disabling support. See <https://github.com/kode54/dumb> for 2.0 or <http://dumb.sourceforge.net/> for 0.9.3.
-- Could NOT find OPENMPT (missing: OPENMPT_INCLUDE_DIR OPENMPT_LIBRARY) 
-- Found OGG: /nix/store/8ijq22649wfm75wlz43axz05xrlp5a1i-libogg-1.3.5-dev/include
-- Found VORBIS: /nix/store/3bl5sprqh5d8ii0i6awx0i377hz7j006-libvorbis-1.3.7-dev/include
-- Performing Test VORBIS_COMPILES
-- Performing Test VORBIS_COMPILES - Success
-- Could NOT find OPUS (missing: OPUS_INCLUDE_DIR OPUSFILE_LIBRARY) 
WARNING: libopus not found or compile test failed, disabling support.
-- Could NOT find MiniMP3 (missing: MINIMP3_INCLUDE_DIRS) 
WARNING: minimp3 was not found
-- Found Freetype: /nix/store/nw8fkr8bs000d74xq15xmhfl0kfq51mz-freetype-2.13.3/lib/libfreetype.dylib (found version "2.13.3")
-- Performing Test TTF_COMPILES
-- Performing Test TTF_COMPILES - Success
-- Found PhysFS: /nix/store/a3h7mxk13l3df2z79ymzr50wlqx12yr6-physfs-3.2.0/lib/libphysfs.dylib
-- Found PHYSFS: /nix/store/a3h7mxk13l3df2z79ymzr50wlqx12yr6-physfs-3.2.0/lib/libphysfs.dylib
-- Found ZLIB: /nix/store/m1ycgljx741xjscr110pl022qb181gzd-zlib-1.3.1/lib/libz.dylib (found version "1.3.1")
-- Performing Test PHYSFS_IMPLICIT_ZLIB
-- Performing Test PHYSFS_IMPLICIT_ZLIB - Success
-- Found THEORA: /nix/store/bvr9l6ql1488sl0yp9zygzxl0mhm4qhm-libtheora-1.1.1-dev/include
-- Found ENET: /nix/store/505m4knbhhw3aw3sar8wymrlcjp6dc00-enet-1.3.18/include
-- Could NOT find LATEX (missing: LATEX_COMPILER) 
-- Could NOT find Git (missing: GIT_EXECUTABLE) 
-- Using master as the git ref for source links in the documentation.
===========================
Configuration summary
===========================
- OpenGL: Desktop
- Primitives addon: yes
- Image addon: yes
 - Native image loader: yes
 - FreeImage: NO
 - libpng: NO
 - libjpeg: NO
 - libwebp: yes
- Font addon: yes
- Audio addon: yes
 - AudioQueue: yes
 - OpenAL: yes
 - OpenSL: NO
- Acodec addon: yes
 - FLAC: yes
 - DUMB: NO
 - OpenMPT: NO
 - Ogg/Vorbis: yes
 - Opus: NO
 - MP3: NO
- TTF addon: yes
- Color addon: yes
- Memfile addon: yes
- PhysFS addon: yes
- Native Dialog addon: yes
- Video addon: yes
===========================

-- Configuring done (13.9s)
CMake Warning (dev):
  Policy CMP0068 is not set: RPATH settings on macOS do not affect
  install_name.  Run "cmake --help-policy CMP0068" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  For compatibility with older versions of CMake, the install_name fields for
  the following targets are still affected by RPATH settings:

   allegro
   allegro_acodec
   allegro_audio
   allegro_color
   allegro_dialog
   allegro_font
   allegro_image
   allegro_main
   allegro_memfile
   allegro_physfs
   allegro_primitives
   allegro_ttf
   allegro_video

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done (1.1s)
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_TESTING
    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_POLICY_DEFAULT_CMP0025


-- Build files have been written to: /tmp/nix-build-allegro-5.2.10.0.drv-0/source/build
cmake: enabled parallel building
cmake: enabled parallel installing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
build flags: -j1 SHELL=/nix/store/7ka6l083nbz2q7p9x8xi1nf9s83sa6w4-bash-5.2p37/bin/bash
[  0%] Building C object CMakeFiles/allegro.dir/src/allegro.c.o
[  0%] Building C object CMakeFiles/allegro.dir/src/bitmap.c.o
[  0%] Building C object CMakeFiles/allegro.dir/src/bitmap_draw.c.o
[  0%] Building C object CMakeFiles/allegro.dir/src/bitmap_io.c.o
[  0%] Building C object CMakeFiles/allegro.dir/src/bitmap_lock.c.o
[  0%] Building C object CMakeFiles/allegro.dir/src/bitmap_pixel.c.o
[  0%] Building C object CMakeFiles/allegro.dir/src/bitmap_type.c.o
[  1%] Building C object CMakeFiles/allegro.dir/src/blenders.c.o
[  1%] Building C object CMakeFiles/allegro.dir/src/clipboard.c.o
[  1%] Building C object CMakeFiles/allegro.dir/src/config.c.o
[  1%] Building C object CMakeFiles/allegro.dir/src/convert.c.o
[  1%] Building C object CMakeFiles/allegro.dir/src/cpu.c.o
[  1%] Building C object CMakeFiles/allegro.dir/src/debug.c.o
[  1%] Building C object CMakeFiles/allegro.dir/src/display.c.o
[  2%] Building C object CMakeFiles/allegro.dir/src/display_settings.c.o
[  2%] Building C object CMakeFiles/allegro.dir/src/drawing.c.o
[  2%] Building C object CMakeFiles/allegro.dir/src/dtor.c.o
[  2%] Building C object CMakeFiles/allegro.dir/src/events.c.o
[  2%] Building C object CMakeFiles/allegro.dir/src/evtsrc.c.o
[  2%] Building C object CMakeFiles/allegro.dir/src/exitfunc.c.o
[  2%] Building C object CMakeFiles/allegro.dir/src/file.c.o
[  3%] Building C object CMakeFiles/allegro.dir/src/file_slice.c.o
[  3%] Building C object CMakeFiles/allegro.dir/src/file_stdio.c.o
[  3%] Building C object CMakeFiles/allegro.dir/src/fshook.c.o
[  3%] Building C object CMakeFiles/allegro.dir/src/fshook_stdio.c.o
[  3%] Building C object CMakeFiles/allegro.dir/src/fullscreen_mode.c.o
[  3%] Building C object CMakeFiles/allegro.dir/src/haptic.c.o
[  3%] Building C object CMakeFiles/allegro.dir/src/inline.c.o
[  4%] Building C object CMakeFiles/allegro.dir/src/joynu.c.o
[  4%] Building C object CMakeFiles/allegro.dir/src/keybdnu.c.o
[  4%] Building C object CMakeFiles/allegro.dir/src/libc.c.o
[  4%] Building C object CMakeFiles/allegro.dir/src/math.c.o
[  4%] Building C object CMakeFiles/allegro.dir/src/memblit.c.o
[  4%] Building C object CMakeFiles/allegro.dir/src/memdraw.c.o
[  4%] Building C object CMakeFiles/allegro.dir/src/memory.c.o
[  5%] Building C object CMakeFiles/allegro.dir/src/monitor.c.o
[  5%] Building C object CMakeFiles/allegro.dir/src/mousenu.c.o
[  5%] Building C object CMakeFiles/allegro.dir/src/mouse_cursor.c.o
[  5%] Building C object CMakeFiles/allegro.dir/src/path.c.o
[  5%] Building C object CMakeFiles/allegro.dir/src/pixels.c.o
[  5%] Building C object CMakeFiles/allegro.dir/src/shader.c.o
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/shader.c:216:38: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
ALLEGRO_SHADER *al_get_current_shader()
                                     ^
                                      void
1 warning generated.
[  5%] Building C object CMakeFiles/allegro.dir/src/system.c.o
[  6%] Building C object CMakeFiles/allegro.dir/src/threads.c.o
[  6%] Building C object CMakeFiles/allegro.dir/src/timernu.c.o
[  6%] Building C object CMakeFiles/allegro.dir/src/tls.c.o
[  6%] Building C object CMakeFiles/allegro.dir/src/touch_input.c.o
[  6%] Building C object CMakeFiles/allegro.dir/src/transformations.c.o
[  6%] Building C object CMakeFiles/allegro.dir/src/tri_soft.c.o
[  6%] Building C object CMakeFiles/allegro.dir/src/utf8.c.o
[  7%] Building C object CMakeFiles/allegro.dir/src/misc/aatree.c.o
[  7%] Building C object CMakeFiles/allegro.dir/src/misc/bstrlib.c.o
[  7%] Building C object CMakeFiles/allegro.dir/src/misc/list.c.o
[  7%] Building C object CMakeFiles/allegro.dir/src/misc/vector.c.o
[  7%] Building C object CMakeFiles/allegro.dir/src/macosx/hidjoy.m.o
[  7%] Building C object CMakeFiles/allegro.dir/src/macosx/hidjoy-10.4.m.o
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/hidjoy-10.4.m:92:13: warning: variable 'err' set but not used [-Wunused-but-set-variable]
   IOReturn err = IOObjectGetClass(device,class_name);
            ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/hidjoy-10.4.m:208:49: warning: cast to smaller integer type 'IOHIDElementCookie' (aka 'unsigned int') from 'void * _Nullable' [-Wvoid-pointer-to-int-cast]
         joy->button_link[num_buttons].cookie = (IOHIDElementCookie) [((NSNumber*) [element objectForKey: (NSString*) CFSTR(kIOHIDElementCookieKey)]) pointerValue];
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/hidjoy-10.4.m:234:40: warning: cast to smaller integer type 'IOHIDElementCookie' (aka 'unsigned int') from 'void * _Nullable' [-Wvoid-pointer-to-int-cast]
            joy->axis_link[0].cookie = (IOHIDElementCookie) [((NSNumber*) [element objectForKey: (NSString*) CFSTR(kIOHIDElementCookieKey)]) pointerValue];
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/hidjoy-10.4.m:257:40: warning: cast to smaller integer type 'IOHIDElementCookie' (aka 'unsigned int') from 'void * _Nullable' [-Wvoid-pointer-to-int-cast]
            joy->axis_link[1].cookie = (IOHIDElementCookie) [((NSNumber*) [element objectForKey: (NSString*) CFSTR(kIOHIDElementCookieKey)]) pointerValue];
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
[  7%] Building C object CMakeFiles/allegro.dir/src/macosx/hidman.m.o
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/hidman.m:197:6: warning: variable 'type' set but not used [-Wunused-but-set-variable]
        int type, usage_page, usage;
            ^
1 warning generated.
[  8%] Building C object CMakeFiles/allegro.dir/src/macosx/keybd.m.o
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/keybd.m:40:6: warning: 'NSAlphaShiftKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
   { NSAlphaShiftKeyMask, ALLEGRO_KEYMOD_CAPSLOCK, ALLEGRO_KEY_CAPSLOCK },
     ^~~~~~~~~~~~~~~~~~~
     NSEventModifierFlagCapsLock
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:181:35: note: 'NSAlphaShiftKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSAlphaShiftKeyMask         API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagCapsLock", macosx(10.0, 10.12)) = NSEventModifierFlagCapsLock;
                                  ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/keybd.m:41:6: warning: 'NSShiftKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
   { NSShiftKeyMask,      ALLEGRO_KEYMOD_SHIFT,    ALLEGRO_KEY_LSHIFT   },
     ^~~~~~~~~~~~~~
     NSEventModifierFlagShift
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:182:35: note: 'NSShiftKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSShiftKeyMask              API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagShift", macosx(10.0, 10.12)) = NSEventModifierFlagShift;
                                  ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/keybd.m:42:6: warning: 'NSControlKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
   { NSControlKeyMask,    ALLEGRO_KEYMOD_CTRL,     ALLEGRO_KEY_LCTRL    },
     ^~~~~~~~~~~~~~~~
     NSEventModifierFlagControl
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:183:35: note: 'NSControlKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSControlKeyMask            API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagControl", macosx(10.0, 10.12)) = NSEventModifierFlagControl;
                                  ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/keybd.m:43:6: warning: 'NSAlternateKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
   { NSAlternateKeyMask,  ALLEGRO_KEYMOD_ALT,      ALLEGRO_KEY_ALT      },
     ^~~~~~~~~~~~~~~~~~
     NSEventModifierFlagOption
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:184:35: note: 'NSAlternateKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSAlternateKeyMask          API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagOption", macosx(10.0, 10.12)) = NSEventModifierFlagOption;
                                  ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/keybd.m:44:6: warning: 'NSCommandKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
   { NSCommandKeyMask,    ALLEGRO_KEYMOD_COMMAND,  ALLEGRO_KEY_COMMAND  }
     ^~~~~~~~~~~~~~~~
     NSEventModifierFlagCommand
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:185:35: note: 'NSCommandKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSCommandKeyMask            API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagCommand", macosx(10.0, 10.12)) = NSEventModifierFlagCommand;
                                  ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/keybd.m:284:40: warning: implicit conversion from enumeration type 'NSEventModifierFlags' (aka 'enum NSEventModifierFlags') to different enumeration type 'CGEventFlags' (aka 'enum CGEventFlags') [-Wenum-conversion]
         CGEventFlags modifier_flags = [event modifierFlags];
                      ~~~~~~~~~~~~~~   ^~~~~~~~~~~~~~~~~~~~~
6 warnings generated.
[  8%] Building C object CMakeFiles/allegro.dir/src/macosx/qzmouse.m.o
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/qzmouse.m:98:12: warning: 'NSMouseMoved' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
      case NSMouseMoved:
           ^~~~~~~~~~~~
           NSEventTypeMouseMoved
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:69:26: note: 'NSMouseMoved' has been explicitly marked deprecated here
static const NSEventType NSMouseMoved           API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeMouseMoved", macosx(10.0, 10.12)) = NSEventTypeMouseMoved;
                         ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/qzmouse.m:104:12: warning: 'NSLeftMouseDragged' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
      case NSLeftMouseDragged:
           ^~~~~~~~~~~~~~~~~~
           NSEventTypeLeftMouseDragged
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:70:26: note: 'NSLeftMouseDragged' has been explicitly marked deprecated here
static const NSEventType NSLeftMouseDragged     API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeLeftMouseDragged", macosx(10.0, 10.12)) = NSEventTypeLeftMouseDragged;
                         ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/qzmouse.m:105:12: warning: 'NSRightMouseDragged' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
      case NSRightMouseDragged:
           ^~~~~~~~~~~~~~~~~~~
           NSEventTypeRightMouseDragged
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:71:26: note: 'NSRightMouseDragged' has been explicitly marked deprecated here
static const NSEventType NSRightMouseDragged    API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeRightMouseDragged", macosx(10.0, 10.12)) = NSEventTypeRightMouseDragged;
                         ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/qzmouse.m:106:12: warning: 'NSOtherMouseDragged' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
      case NSOtherMouseDragged:
           ^~~~~~~~~~~~~~~~~~~
           NSEventTypeOtherMouseDragged
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:87:26: note: 'NSOtherMouseDragged' has been explicitly marked deprecated here
static const NSEventType NSOtherMouseDragged    API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeOtherMouseDragged", macosx(10.0, 10.12)) = NSEventTypeOtherMouseDragged;
                         ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/qzmouse.m:113:12: warning: 'NSLeftMouseDown' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
      case NSLeftMouseDown:
           ^~~~~~~~~~~~~~~
           NSEventTypeLeftMouseDown
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:65:26: note: 'NSLeftMouseDown' has been explicitly marked deprecated here
static const NSEventType NSLeftMouseDown        API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeLeftMouseDown", macosx(10.0, 10.12)) = NSEventTypeLeftMouseDown;
                         ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/qzmouse.m:114:12: warning: 'NSRightMouseDown' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
      case NSRightMouseDown:
           ^~~~~~~~~~~~~~~~
           NSEventTypeRightMouseDown
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:67:26: note: 'NSRightMouseDown' has been explicitly marked deprecated here
static const NSEventType NSRightMouseDown       API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeRightMouseDown", macosx(10.0, 10.12)) = NSEventTypeRightMouseDown;
                         ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/qzmouse.m:115:12: warning: 'NSOtherMouseDown' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
      case NSOtherMouseDown:
           ^~~~~~~~~~~~~~~~
           NSEventTypeOtherMouseDown
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:85:26: note: 'NSOtherMouseDown' has been explicitly marked deprecated here
static const NSEventType NSOtherMouseDown       API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeOtherMouseDown", macosx(10.0, 10.12)) = NSEventTypeOtherMouseDown;
                         ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/qzmouse.m:122:12: warning: 'NSLeftMouseUp' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
      case NSLeftMouseUp:
           ^~~~~~~~~~~~~
           NSEventTypeLeftMouseUp
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:66:26: note: 'NSLeftMouseUp' has been explicitly marked deprecated here
static const NSEventType NSLeftMouseUp          API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeLeftMouseUp", macosx(10.0, 10.12)) = NSEventTypeLeftMouseUp;
                         ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/qzmouse.m:123:12: warning: 'NSRightMouseUp' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
      case NSRightMouseUp:
           ^~~~~~~~~~~~~~
           NSEventTypeRightMouseUp
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:68:26: note: 'NSRightMouseUp' has been explicitly marked deprecated here
static const NSEventType NSRightMouseUp         API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeRightMouseUp", macosx(10.0, 10.12)) = NSEventTypeRightMouseUp;
                         ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/qzmouse.m:124:12: warning: 'NSOtherMouseUp' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
      case NSOtherMouseUp:
           ^~~~~~~~~~~~~~
           NSEventTypeOtherMouseUp
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:86:26: note: 'NSOtherMouseUp' has been explicitly marked deprecated here
static const NSEventType NSOtherMouseUp         API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeOtherMouseUp", macosx(10.0, 10.12)) = NSEventTypeOtherMouseUp;
                         ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/qzmouse.m:131:12: warning: 'NSScrollWheel' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
      case NSScrollWheel:
           ^~~~~~~~~~~~~
           NSEventTypeScrollWheel
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:82:26: note: 'NSScrollWheel' has been explicitly marked deprecated here
static const NSEventType NSScrollWheel          API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeScrollWheel", macosx(10.0, 10.12)) = NSEventTypeScrollWheel;
                         ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/qzmouse.m:140:12: warning: 'NSMouseEntered' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
      case NSMouseEntered:
           ^~~~~~~~~~~~~~
           NSEventTypeMouseEntered
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:72:26: note: 'NSMouseEntered' has been explicitly marked deprecated here
static const NSEventType NSMouseEntered         API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeMouseEntered", macosx(10.0, 10.12)) = NSEventTypeMouseEntered;
                         ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/qzmouse.m:146:12: warning: 'NSMouseExited' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
      case NSMouseExited:
           ^~~~~~~~~~~~~
           NSEventTypeMouseExited
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:73:26: note: 'NSMouseExited' has been explicitly marked deprecated here
static const NSEventType NSMouseExited          API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeMouseExited", macosx(10.0, 10.12)) = NSEventTypeMouseExited;
                         ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/qzmouse.m:225:4: warning: 'CGSetLocalEventsSuppressionInterval' is deprecated: first deprecated in macOS 10.6 [-Wdeprecated-declarations]
   CGSetLocalEventsSuppressionInterval(0.0);
   ^
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGRemoteOperation.h:386:19: note: 'CGSetLocalEventsSuppressionInterval' has been explicitly marked deprecated here
CG_EXTERN CGError CGSetLocalEventsSuppressionInterval(CFTimeInterval seconds)
                  ^
14 warnings generated.
[  8%] Building C object CMakeFiles/allegro.dir/src/macosx/system.m.o
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/system.m:186:17: warning: cast to smaller integer type 'CGDirectDisplayID' (aka 'unsigned int') from 'void * _Nullable' [-Wvoid-pointer-to-int-cast]
      display = (CGDirectDisplayID) [display_id pointerValue];
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/system.m:249:36: warning: 'CGDisplayModeCopyPixelEncoding' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations]
      CFStringRef pixel_encoding = CGDisplayModeCopyPixelEncoding(mode);
                                   ^
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:174:34: note: 'CGDisplayModeCopyPixelEncoding' has been explicitly marked deprecated here
CG_EXTERN CFStringRef __nullable CGDisplayModeCopyPixelEncoding(
                                 ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/system.m:558:45: warning: unused parameter 'thread' [-Wunused-parameter]
static void osx_thread_init(ALLEGRO_THREAD *thread)
                                            ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/system.m:562:45: warning: unused parameter 'thread' [-Wunused-parameter]
static void osx_thread_exit(ALLEGRO_THREAD *thread)
                                            ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/system.m:604:36: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void _al_register_system_interfaces()
                                   ^
                                    void
5 warnings generated.
[  8%] Building C object CMakeFiles/allegro.dir/src/macosx/osxclipboard.m.o
[  8%] Building C object CMakeFiles/allegro.dir/src/macosx/osxgl.m.o
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/osxgl.m:109:34: warning: 'NSOpenGLPFAStereo' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
   { ALLEGRO_STEREO,             NSOpenGLPFAStereo, 0},
                                 ^
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:85:2: note: 'NSOpenGLPFAStereo' has been explicitly marked deprecated here
        NSOpenGLPFAStereo NS_ENUM_DEPRECATED_MAC(10_0, 10_12)        =   6,
        ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/osxgl.m:801:12: warning: 'NSOpenGLPFAFullScreen' is deprecated: first deprecated in macOS 10.6 [-Wdeprecated-declarations]
      *a = NSOpenGLPFAFullScreen; a++;
           ^
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:87:2: note: 'NSOpenGLPFAFullScreen' has been explicitly marked deprecated here
        NSOpenGLPFAFullScreen NS_ENUM_DEPRECATED_MAC(10_0, 10_6)       =  54,
        ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/osxgl.m:806:12: warning: 'NSOpenGLPFAWindow' is deprecated: first deprecated in macOS 10.9 [-Wdeprecated-declarations]
      *a = NSOpenGLPFAWindow; a++;
           ^
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:89:2: note: 'NSOpenGLPFAWindow' has been explicitly marked deprecated here
        NSOpenGLPFAWindow NS_ENUM_DEPRECATED_MAC(10_0, 10_9)           =  80,
        ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/osxgl.m:1250:36: warning: 'CGDisplayModeCopyPixelEncoding' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations]
      CFStringRef pixel_encoding = CGDisplayModeCopyPixelEncoding(try_mode);
                                   ^
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:174:34: note: 'CGDisplayModeCopyPixelEncoding' has been explicitly marked deprecated here
CG_EXTERN CFStringRef __nullable CGDisplayModeCopyPixelEncoding(
                                 ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/osxgl.m:2209:22: warning: 'CGDisplayModeCopyPixelEncoding' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations]
   CFStringRef bps = CGDisplayModeCopyPixelEncoding(current);
                     ^
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:174:34: note: 'CGDisplayModeCopyPixelEncoding' has been explicitly marked deprecated here
CG_EXTERN CFStringRef __nullable CGDisplayModeCopyPixelEncoding(
                                 ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/osxgl.m:2220:36: warning: 'CGDisplayModeCopyPixelEncoding' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations]
      CFStringRef pixel_encoding = CGDisplayModeCopyPixelEncoding(try_mode);
                                   ^
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:174:34: note: 'CGDisplayModeCopyPixelEncoding' has been explicitly marked deprecated here
CG_EXTERN CFStringRef __nullable CGDisplayModeCopyPixelEncoding(
                                 ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/osxgl.m:2249:14: warning: 'setFullScreen' is deprecated: first deprecated in macOS 10.7 - Use a fullscreen NSOpenGLView instead [-Wdeprecated-declarations]
   [dpy->ctx setFullScreen];
             ^
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:217:1: note: 'setFullScreen' has been explicitly marked deprecated here
- (void)setFullScreen NS_DEPRECATED_MAC(10_0, 10_7, "Use a fullscreen NSOpenGLView instead");
^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/osxgl.m:1128:13: warning: unused function 'init_new_vsync' [-Wunused-function]
static void init_new_vsync(ALLEGRO_DISPLAY_OSX_WIN *dpy)
            ^
8 warnings generated.
[  8%] Building C object CMakeFiles/allegro.dir/src/macosx/osx_app_delegate.m.o
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/osx_app_delegate.m:50:5: warning: 'GetProcessBundleLocation' is deprecated: first deprecated in macOS 10.9 [-Wdeprecated-declarations]
    GetProcessBundleLocation(&psn, &processRef);
    ^
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:815:1: note: 'GetProcessBundleLocation' has been explicitly marked deprecated here
GetProcessBundleLocation(
^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/osx_app_delegate.m:51:5: warning: 'FSGetCatalogInfo' is deprecated: first deprecated in macOS 10.8 [-Wdeprecated-declarations]
    FSGetCatalogInfo(&processRef, kFSCatInfoNodeFlags, &processInfo, NULL, NULL, NULL);
    ^
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:2620:15: note: 'FSGetCatalogInfo' has been explicitly marked deprecated here
extern OSErr  FSGetCatalogInfo(const FSRef *ref, FSCatalogInfoBitmap whichInfo, FSCatalogInfo *catalogInfo, HFSUniStr255 *outName, FSSpecPtr fsSpec, FSRef *parentRef) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
              ^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/osx_app_delegate.m:116:5: warning: 'UpdateSystemActivity' is deprecated: first deprecated in macOS 10.8 [-Wdeprecated-declarations]
    UpdateSystemActivity(UsrActivity);
    ^
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/Power.h:367:1: note: 'UpdateSystemActivity' has been explicitly marked deprecated here
UpdateSystemActivity(UInt8 activity)                          __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_8,__IPHONE_NA,__IPHONE_NA);
^
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/src/macosx/osx_app_delegate.m:283:38: warning: 'loadNibNamed:owner:' is deprecated: first deprecated in macOS 10.8 [-Wdeprecated-declarations]
    if ((!in_bundle()) || ([NSBundle loadNibNamed: @"MainMenu"
                                     ^
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibLoading.h:30:1: note: 'loadNibNamed:owner:' has been explicitly marked deprecated here
+ (BOOL)loadNibNamed:(null_unspecified NSString *)nibName owner:(null_unspecified id)owner NS_DEPRECATED_MAC(10_0, 10_8); // Deprecated in Mac OS X 10.8
^
4 warnings generated.
[  8%] Building C object CMakeFiles/allegro.dir/src/unix/utime.c.o
[  9%] Building C object CMakeFiles/allegro.dir/src/unix/uxthread.c.o
[  9%] Building C object CMakeFiles/allegro.dir/src/opengl/extensions.c.o
[  9%] Building C object CMakeFiles/allegro.dir/src/opengl/ogl_bitmap.c.o
[  9%] Building C object CMakeFiles/allegro.dir/src/opengl/ogl_display.c.o
[  9%] Building C object CMakeFiles/allegro.dir/src/opengl/ogl_draw.c.o
[  9%] Building C object CMakeFiles/allegro.dir/src/opengl/ogl_fbo.c.o
[  9%] Building C object CMakeFiles/allegro.dir/src/opengl/ogl_lock.c.o
[ 10%] Building C object CMakeFiles/allegro.dir/src/opengl/ogl_lock_es.c.o
[ 10%] Building C object CMakeFiles/allegro.dir/src/opengl/ogl_render_state.c.o
[ 10%] Building C object CMakeFiles/allegro.dir/src/opengl/ogl_shader.c.o
[ 10%] Linking C shared library lib/liballegro.dylib
[ 10%] Built target allegro
[ 10%] Building C object addons/primitives/CMakeFiles/allegro_primitives.dir/high_primitives.c.o
[ 10%] Building C object addons/primitives/CMakeFiles/allegro_primitives.dir/line_soft.c.o
[ 10%] Building C object addons/primitives/CMakeFiles/allegro_primitives.dir/point_soft.c.o
[ 11%] Building C object addons/primitives/CMakeFiles/allegro_primitives.dir/polygon.c.o
[ 11%] Building C object addons/primitives/CMakeFiles/allegro_primitives.dir/polyline.c.o
[ 11%] Building CXX object addons/primitives/CMakeFiles/allegro_primitives.dir/prim_directx.cpp.o
[ 11%] Building C object addons/primitives/CMakeFiles/allegro_primitives.dir/prim_opengl.c.o
[ 11%] Building C object addons/primitives/CMakeFiles/allegro_primitives.dir/prim_soft.c.o
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/addons/primitives/prim_soft.c:122:11: warning: variable 'n' set but not used [-Wunused-but-set-variable]
      int n = 0;
          ^
1 warning generated.
[ 11%] Building C object addons/primitives/CMakeFiles/allegro_primitives.dir/prim_util.c.o
[ 11%] Building C object addons/primitives/CMakeFiles/allegro_primitives.dir/primitives.c.o
[ 12%] Building C object addons/primitives/CMakeFiles/allegro_primitives.dir/triangulator.c.o
[ 12%] Linking CXX shared library ../../lib/liballegro_primitives.dylib
[ 12%] Built target allegro_primitives
[ 12%] Building C object addons/image/CMakeFiles/allegro_image.dir/bmp.c.o
[ 12%] Building C object addons/image/CMakeFiles/allegro_image.dir/iio.c.o
[ 12%] Building C object addons/image/CMakeFiles/allegro_image.dir/pcx.c.o
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/addons/image/pcx.c:141:29: warning: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Wconstant-conversion]
            dest[x*4 + 3] = 255;
                          ~ ^~~
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/addons/image/pcx.c:168:32: warning: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Wconstant-conversion]
               dest[x*4 + 3] = 255;
                             ~ ^~~
2 warnings generated.
[ 12%] Building C object addons/image/CMakeFiles/allegro_image.dir/tga.c.o
[ 12%] Building C object addons/image/CMakeFiles/allegro_image.dir/dds.c.o
[ 13%] Building C object addons/image/CMakeFiles/allegro_image.dir/identify.c.o
[ 13%] Building C object addons/image/CMakeFiles/allegro_image.dir/macosx.m.o
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/addons/image/macosx.m:263:35: warning: 'imageFileTypes' is deprecated: first deprecated in macOS 10.10 - Use +imageTypes instead [-Wdeprecated-declarations]
   NSArray *file_types = [NSImage imageFileTypes];
                                  ^
/nix/store/6fb3yzhx0dlhzjk8s1mwkmn505yqbmmb-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:145:1: note: 'imageFileTypes' has been explicitly marked deprecated here
+ (NSArray<NSString *> *)imageFileTypes NS_DEPRECATED_MAC(10_0, 10_10, "Use +imageTypes instead");
^
1 warning generated.
[ 13%] Building C object addons/image/CMakeFiles/allegro_image.dir/webp.c.o
[ 13%] Linking C shared library ../../lib/liballegro_image.dylib
[ 13%] Built target allegro_image
[ 13%] Building C object addons/font/CMakeFiles/allegro_font.dir/font.c.o
[ 13%] Building C object addons/font/CMakeFiles/allegro_font.dir/fontbmp.c.o
[ 13%] Building C object addons/font/CMakeFiles/allegro_font.dir/stdfont.c.o
[ 13%] Building C object addons/font/CMakeFiles/allegro_font.dir/text.c.o
[ 13%] Building C object addons/font/CMakeFiles/allegro_font.dir/bmfont.c.o
[ 14%] Building C object addons/font/CMakeFiles/allegro_font.dir/xml.c.o
[ 14%] Linking C shared library ../../lib/liballegro_font.dylib
[ 14%] Built target allegro_font
[ 14%] Building C object addons/audio/CMakeFiles/allegro_audio.dir/audio.c.o
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/addons/audio/audio.c:201:36: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int al_get_num_audio_output_devices()
                                   ^
                                    void
1 warning generated.
[ 14%] Building C object addons/audio/CMakeFiles/allegro_audio.dir/audio_io.c.o
[ 14%] Building C object addons/audio/CMakeFiles/allegro_audio.dir/kcm_dtor.c.o
[ 15%] Building C object addons/audio/CMakeFiles/allegro_audio.dir/kcm_instance.c.o
[ 15%] Building C object addons/audio/CMakeFiles/allegro_audio.dir/kcm_mixer.c.o
[ 15%] Building C object addons/audio/CMakeFiles/allegro_audio.dir/kcm_sample.c.o
[ 15%] Building C object addons/audio/CMakeFiles/allegro_audio.dir/kcm_stream.c.o
[ 15%] Building C object addons/audio/CMakeFiles/allegro_audio.dir/kcm_voice.c.o
[ 15%] Building C object addons/audio/CMakeFiles/allegro_audio.dir/recorder.c.o
[ 15%] Building C object addons/audio/CMakeFiles/allegro_audio.dir/aqueue.m.o
[ 16%] Building C object addons/audio/CMakeFiles/allegro_audio.dir/openal.c.o
[ 16%] Linking C shared library ../../lib/liballegro_audio.dylib
[ 16%] Built target allegro_audio
[ 16%] Building C object addons/acodec/CMakeFiles/allegro_acodec.dir/acodec.c.o
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/addons/acodec/acodec.c:23:9: warning: variable 'acodec_prefer_dumb' set but not used [-Wunused-but-set-variable]
   bool acodec_prefer_dumb = false;
        ^
1 warning generated.
[ 16%] Building C object addons/acodec/CMakeFiles/allegro_acodec.dir/wav.c.o
[ 16%] Building C object addons/acodec/CMakeFiles/allegro_acodec.dir/helper.c.o
[ 17%] Building C object addons/acodec/CMakeFiles/allegro_acodec.dir/voc.c.o
[ 17%] Building C object addons/acodec/CMakeFiles/allegro_acodec.dir/flac.c.o
[ 17%] Building C object addons/acodec/CMakeFiles/allegro_acodec.dir/ogg.c.o
[ 17%] Linking C shared library ../../lib/liballegro_acodec.dylib
[ 17%] Built target allegro_acodec
[ 17%] Building C object addons/ttf/CMakeFiles/allegro_ttf.dir/ttf.c.o
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/addons/ttf/ttf.c:314:25: warning: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Wconstant-conversion]
               *ptr++ = 255;
                      ~ ^~~
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/addons/ttf/ttf.c:315:25: warning: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Wconstant-conversion]
               *ptr++ = 255;
                      ~ ^~~
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/addons/ttf/ttf.c:316:25: warning: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Wconstant-conversion]
               *ptr++ = 255;
                      ~ ^~~
3 warnings generated.
[ 17%] Linking C shared library ../../lib/liballegro_ttf.dylib
[ 17%] Built target allegro_ttf
[ 17%] Building C object addons/color/CMakeFiles/allegro_color.dir/color.c.o
[ 17%] Linking C shared library ../../lib/liballegro_color.dylib
[ 17%] Built target allegro_color
[ 17%] Building C object addons/memfile/CMakeFiles/allegro_memfile.dir/memfile.c.o
[ 18%] Linking C shared library ../../lib/liballegro_memfile.dylib
[ 18%] Built target allegro_memfile
[ 18%] Building C object addons/physfs/CMakeFiles/allegro_physfs.dir/a5_physfs.c.o
[ 18%] Building C object addons/physfs/CMakeFiles/allegro_physfs.dir/a5_physfs_dir.c.o
[ 18%] Linking C shared library ../../lib/liballegro_physfs.dylib
[ 18%] Built target allegro_physfs
[ 18%] Building C object addons/native_dialog/CMakeFiles/allegro_dialog.dir/dialog.c.o
[ 18%] Building C object addons/native_dialog/CMakeFiles/allegro_dialog.dir/textlog.c.o
[ 18%] Building C object addons/native_dialog/CMakeFiles/allegro_dialog.dir/menu.c.o
[ 19%] Building C object addons/native_dialog/CMakeFiles/allegro_dialog.dir/osx_dialog.m.o
/tmp/nix-build-allegro-5.2.10.0.drv-0/source/addons/native_dialog/osx_dialog.m:5:10: fatal error: 'UniformTypeIdentifiers/UniformTypeIdentifiers.h' file not found
#include <UniformTypeIdentifiers/UniformTypeIdentifiers.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [addons/native_dialog/CMakeFiles/allegro_dialog.dir/build.make:118: addons/native_dialog/CMakeFiles/allegro_dialog.dir/osx_dialog.m.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1002: addons/native_dialog/CMakeFiles/allegro_dialog.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Note that this is actually from nix build nixpkgs\#allegro5 --option cores 1, to keep the errors from getting interleaved with other messages. The error is the same with a normal build, though - it just happens closer to the 50% mark. Here's an example from the Hydra server.

Additional context

This is actually an upstream problem. Allegro recently added some code that depends on macOS 11, and #ifdef'd it to only get built when the minimum macOS version being built against was at least 11.0. Or at least that was the intent - the code incorrectly compares MAC_OS_X_VERSION_MIN_REQUIRED against 1100 instead of 110000, so it tries to pull in UniformTypeIdentifiers/UniformTypeIdentifiers.h even on older systems that don't have it. I've submitted a pull request (liballeg/allegro5#1602) to fix this, and can successfully build Allegro by adding that to its patches. I'm not sure what Nixpkgs' policy is here - do you want to add that patch, or should Nixpkgs wait for an upstream fix? (Bumping its minimum macOS version would also let it build - that's why the aarch64-darwin build is working - but would exclude a lot of systems that are supported by the current derivation.)

Metadata

  • system: "x86_64-darwin"
  • host os: Darwin 19.6.0, macOS 10.15.7
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.24.10
  • channels(root): "nixpkgs"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixpkgs

(Note: The nixpkgs channel on this machine is behind a bit, and isn't having the problem yet. I was testing with the Nixpkgs flake instead.)

Notify maintainers

@7c6f434c


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@Rhys-T Rhys-T added the 0.kind: build failure A package fails to build label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

No branches or pull requests

1 participant