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

retroarch: fix build on Darwin #102230

Closed
wants to merge 7 commits into from

Conversation

AluisioASG
Copy link
Contributor

Motivation for this change

The newer MAME cores for libretro don't seem to build on Darwin (probably not on BSD either). See comments in #102078.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Oct 31, 2020
@AluisioASG
Copy link
Contributor Author

@SuperSandro2000 can you give these a try?

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Oct 31, 2020

Result of nixpkgs-review pr 102230 run on x86_64-darwin 1

Currently looking why wayland is pulled in.

@AluisioASG
Copy link
Contributor Author

Currently looking why wayland is pulled in.

I didn't add that change yet, only the ones in the libretro cores.

@SuperSandro2000
Copy link
Member

diff --git a/pkgs/misc/emulators/retroarch/default.nix b/pkgs/misc/emulators/retroarch/default.nix
index bfc2c338769..669ffd7e79b 100644
--- a/pkgs/misc/emulators/retroarch/default.nix
+++ b/pkgs/misc/emulators/retroarch/default.nix
@@ -32,8 +32,9 @@ stdenv.mkDerivation rec {
     rev = "v${version}";
   };

-  nativeBuildInputs = [ pkgconfig wayland ]
-                      ++ optional withVulkan makeWrapper;
+  nativeBuildInputs = [ pkgconfig ]
+                      ++ optional withVulkan makeWrapper
+                      ++ optional stdenv.isLinux wayland;

   buildInputs = [ ffmpeg_3 freetype libxml2 libGLU libGL python3 SDL2 which ]
                 ++ optional enableNvidiaCgToolkit nvidia_cg_toolkit

but then it still fails with:

mkdir -p "obj/Release"
Converting translation language/Afrikaans/strings.po...
python scripts/build/msgfmt.py --output-file language/Afrikaans/strings.mo language/Afrikaans/strings.po
Converting translation language/Albanian/strings.po...
python scripts/build/msgfmt.py --output-file language/Albanian/strings.mo language/Albanian/strings.po
Converting translation language/Arabic/strings.po...
python scripts/build/msgfmt.py --output-file language/Arabic/strings.mo language/Arabic/strings.po
Creating obj/Release/src/host
mkdir -p "obj/Release/src/host"
Creating obj/Release/src/host/lua-5.3.0/src
mkdir -p "obj/Release/src/host/lua-5.3.0/src"
Creating ../../bin/darwin
mkdir -p "../../bin/darwin"
lapi.c
gcc   -MMD -MP -MP -DNDEBUG -DLUA_COMPAT_MODULE -DLUA_USE_MACOSX -I"../../src/host/lua-5.3.0/src"  -Wall -Wextra -Os -mmacosx-version-min=10.6  -o "obj/Release/src/host/lua-5.3.0/src/lapi.o" -c "../../src/host/lua-5.3.0/src/lapi.c"
/nix/store/8i9kyqfxhk2s9dzx32x0sgdk7kyx9wjc-bash-4.4-p23/bin/bash: gcc: command not found
make[2]: *** [genie.make:478: obj/Release/src/host/lua-5.3.0/src/lapi.o] Error 127
make[2]: Leaving directory '/private/tmp/nix-build-libretro-mame-2020-03-06.drv-0/mame-ed987ad/3rdparty/genie/build/gmake.darwin'
make[1]: *** [makefile:1675: 3rdparty/genie/bin/darwin/genie] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/private/tmp/nix-build-libretro-mame-2020-03-06.drv-0/mame-ed987ad'
make: *** [Makefile.libretro:175: build] Error 2
builder for '/nix/store/4x9grac5ba122rv810j7rhgs87ikd6yq-libretro-mame-2020-03-06.drv' failed with exit code 2
error: build of '/nix/store/4x9grac5ba122rv810j7rhgs87ikd6yq-libretro-mame-2020-03-06.drv' failed

@AluisioASG
Copy link
Contributor Author

Ok, looks like I forgot the current MAME core. Meanwhile can you try to build retroarchBare with your patch applied? I can't on Linux but it seems to be due to glibc.

@SuperSandro2000
Copy link
Member

Result of nixpkgs-review pr 102230 run on x86_64-linux 1

4 packages built:
  • libretro.mame
  • libretro.mame2010
  • libretro.mame2015
  • libretro.mame2016

@SuperSandro2000
Copy link
Member

Ok, looks like I forgot the current MAME core. Meanwhile can you try to build retroarchBare with your patch applied? I can't on Linux but it seems to be due to glibc.

Builds for me with my change.

It was found out in the course of NixOS#102078 that the libretro.mame*
packages did not build on macOS, both because of an unconditional
dependency on alsa-lib (which is exclusive to Linux) and references
to GCC scattered across makefiles.

This commit makes alsa-lib a dependency only on Linux, and tries to
force usage of the generic `cc`/`c++` commands.  Ideally we'd refer
to the `$CC` and `$CXX` environment variables, but that seems to
introduce recursive expansion problems for make.

Thanks to @SuperSandro2000 for suggestions and actual testing.
Wayland is not used or supported in other platforms.
@AluisioASG AluisioASG force-pushed the aasg/retroarch-darwin branch from a2049b5 to 34fe576 Compare October 31, 2020 17:19
@AluisioASG AluisioASG changed the title libretro.mame*: fix build on Darwin retroarch: fix build on Darwin Oct 31, 2020
@AluisioASG
Copy link
Contributor Author

The latest push should make it all work.

@AluisioASG
Copy link
Contributor Author

Result of nixpkgs-review pr 102230 1

76 packages built:
  • libretro.atari800
  • libretro.beetle-gba
  • libretro.beetle-lynx
  • libretro.beetle-ngp
  • libretro.beetle-pce-fast
  • libretro.beetle-pcfx
  • libretro.beetle-psx
  • libretro.beetle-psx-hw
  • libretro.beetle-saturn
  • libretro.beetle-saturn-hw
  • libretro.beetle-snes
  • libretro.beetle-supergrafx
  • libretro.beetle-vb
  • libretro.beetle-wswan
  • libretro.bluemsx
  • libretro.bsnes-mercury
  • libretro.citra
  • libretro.desmume
  • libretro.desmume2015
  • libretro.dolphin
  • libretro.dosbox
  • libretro.eightyone
  • libretro.fbalpha2012
  • libretro.fbneo
  • libretro.fceumm
  • libretro.flycast
  • libretro.fmsx
  • libretro.freeintv
  • libretro.gambatte
  • libretro.genesis-plus-gx
  • libretro.gpsp
  • libretro.gw
  • libretro.handy
  • libretro.hatari
  • libretro.mame
  • libretro.mame2000
  • libretro.mame2003
  • libretro.mame2003-plus
  • libretro.mame2010
  • libretro.mame2015
  • libretro.mame2016
  • libretro.mesen
  • libretro.meteor
  • libretro.mgba
  • libretro.mupen64plus
  • libretro.neocd
  • libretro.nestopia
  • libretro.np2kai
  • libretro.o2em
  • libretro.opera
  • libretro.parallel-n64
  • libretro.pcsx_rearmed
  • libretro.picodrive
  • libretro.play
  • libretro.ppsspp
  • libretro.prboom
  • libretro.prosystem
  • libretro.quicknes
  • libretro.sameboy
  • libretro.scummvm
  • libretro.smsplus-gx
  • libretro.snes9x
  • libretro.snes9x2002
  • libretro.snes9x2005
  • libretro.snes9x2010
  • libretro.stella
  • libretro.stella2014
  • libretro.tgbdual
  • libretro.tic80
  • libretro.vba-m
  • libretro.vba-next
  • libretro.vecx
  • libretro.virtualjaguar
  • libretro.yabause
  • retroarch
  • retroarchBare

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Nov 1, 2020

Result of nixpkgs-review pr 102230 run on x86_64-darwin 1

1 package marked as broken and skipped:
  • libretro.dolphin
12 packages failed to build:
  • libretro.atari800
  • libretro.beetle-psx-hw
  • libretro.citra
  • libretro.fbalpha2012
  • libretro.fbneo
  • libretro.mame
  • libretro.mame2016
  • libretro.mupen64plus
  • libretro.picodrive
  • libretro.play
  • libretro.ppsspp
  • libretro.vecx
60 packages built:
  • libretro.beetle-gba
  • libretro.beetle-lynx
  • libretro.beetle-ngp
  • libretro.beetle-pce-fast
  • libretro.beetle-pcfx
  • libretro.beetle-psx
  • libretro.beetle-snes
  • libretro.beetle-supergrafx
  • libretro.beetle-vb
  • libretro.beetle-wswan
  • libretro.bluemsx
  • libretro.bsnes-mercury
  • libretro.desmume
  • libretro.desmume2015
  • libretro.dosbox
  • libretro.eightyone
  • libretro.fceumm
  • libretro.fmsx
  • libretro.freeintv
  • libretro.gambatte
  • libretro.genesis-plus-gx
  • libretro.gpsp
  • libretro.gw
  • libretro.handy
  • libretro.hatari
  • libretro.mame2000
  • libretro.mame2003
  • libretro.mame2003-plus
  • libretro.mame2010
  • libretro.mame2015
  • libretro.mesen
  • libretro.meteor
  • libretro.mgba
  • libretro.neocd
  • libretro.nestopia
  • libretro.np2kai
  • libretro.o2em
  • libretro.opera
  • libretro.parallel-n64
  • libretro.pcsx_rearmed
  • libretro.prboom
  • libretro.prosystem
  • libretro.quicknes
  • libretro.sameboy
  • libretro.scummvm
  • libretro.smsplus-gx
  • libretro.snes9x
  • libretro.snes9x2002
  • libretro.snes9x2005
  • libretro.snes9x2010
  • libretro.stella
  • libretro.stella2014
  • libretro.tgbdual
  • libretro.tic80
  • libretro.vba-m
  • libretro.vba-next
  • libretro.virtualjaguar
  • libretro.yabause
  • retroarch
  • retroarchBare

atari800

ld: warning: passed two min versions (10.12.0, 10.12) for platform macOS. Using 10.12.
Undefined symbols for architecture x86_64:
  "_fmemopen", referenced from:
      _StateSav_ReadAtariStateMem in statesav.o
  "_open_memstream", referenced from:
      _StateSav_SaveAtariStateMem in statesav.o
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:547: atari800_libretro.dylib] Error 1

beetle-psx-hw

CXX parallel-psx/vulkan/vulkan.cpp
CXX parallel-psx/vulkan/shader.cpp
CXX parallel-psx/vulkan/wsi.cpp
clang-7: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
clang-7: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
clang-7: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
parallel-psx/vulkan/wsi_timing.cpp:241:35: error: use of undeclared identifier 'TIMER_ABSTIME'
        clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &ts, nullptr);
                                         ^
1 error generated.
make: *** [Makefile:654: parallel-psx/vulkan/wsi_timing.o] Error 1
make: *** Waiting for unfinished jobs....
CXX parallel-psx/SPIRV-Cross/spirv_cfg.cpp
CXX parallel-psx/SPIRV-Cross/spirv_cross.cpp
1 warning generated.
CXX mednafen/psx/gpu.cpp

citra

[ 42%] Building CXX object externals/dynarmic/src/CMakeFiles/dynarmic.dir/backend/x64/emit_x64_vector_floating_point.cpp.o
[ 42%] Building CXX object externals/dynarmic/src/CMakeFiles/dynarmic.dir/backend/x64/hostloc.cpp.o
[ 42%] Building CXX object externals/dynarmic/src/CMakeFiles/dynarmic.dir/backend/x64/perf_map.cpp.o
[ 42%] Building CXX object externals/dynarmic/src/CMakeFiles/dynarmic.dir/backend/x64/reg_alloc.cpp.o
[ 43%] Building CXX object externals/dynarmic/src/CMakeFiles/dynarmic.dir/backend/x64/exception_handler_generic.cpp.o
[ 43%] Linking CXX static library libdynarmic.a
[ 43%] Built target dynarmic
make: *** [Makefile:114: all] Error 2

fbneo

/drv/toaplan -I../../burn/drv/taito -I../../burn/drv/irem -I../../dep/generated -I../../dep/libs
clang-7: error: unsupported argument '4' to option 'flto='
clang-7: warning: -Wl,--gc-sections: 'linker' input unused [-Wunused-command-line-argument]
clang-7: warning: optimization flag '-frounding-math' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-fwhole-program' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-fuse-linker-plugin' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-falign-jumps=1' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-falign-loops=1' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-ffloat-store' is not supported [-Wignored-optimization-argument]
make: *** [Makefile:672: ../../burner/libretro/libretro-common/file/file_path.o] Error 1
make: *** Waiting for unfinished jobs....
clang-7: error: unsupported argument '4' to option 'flto='
clang-7: warning: -Wl,--gc-sections: 'linker' input unused [-Wunused-command-line-argument]
clang-7: warning: optimization flag '-frounding-math' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-fwhole-program' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-fuse-linker-plugin' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-falign-jumps=1' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-falign-loops=1' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-ffloat-store' is not supported [-Wignored-optimization-argument]
clang-7: error: unsupported argument '4' to option 'flto='
clang-7: warning: -Wl,--gc-sections: 'linker' input unused [-Wunused-command-line-argument]
clang-7: warning: optimization flag '-frounding-math' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-fwhole-program' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-fuse-linker-plugin' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-falign-jumps=1' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-falign-loops=1' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-ffloat-store' is not supported [-Wignored-optimization-argument]
make: *** [Makefile:672: ../../burner/libretro/libretro-common/compat/compat_posix_string.o] Error 1
make: *** [Makefile:672: ../../burner/libretro/libretro-common/encodings/encoding_utf.o] Error 1
clang-7: error: unsupported argument '4' to option 'flto='
clang-7: warning: -Wl,--gc-sections: 'linker' input unused [-Wunused-command-line-argument]
clang-7: warning: optimization flag '-frounding-math' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-fwhole-program' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-fuse-linker-plugin' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-falign-jumps=1' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-falign-loops=1' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-ffloat-store' is not supported [-Wignored-optimization-argument]
make: *** [Makefile:672: ../../burner/libretro/libretro-common/compat/compat_strcasestr.o] Error 1

mame

/obj/x64/libretro/src/mame/video/nitedrvr.o ../../../../libretro/obj/x64/libretro/src/mame/video/offtwall.o ../../../../libretro/obj/x64/libretro/src/mame/video/orbit.o ../../../../libretro/obj/x64/libretro/src/mame/video/poolshrk.o ../../../../libretro/obj/x64/libretro/src/mame/video/rampart.o ../../../../libretro/obj/x64/libretro/src/mame/video/relief.o ../../../../libretro/obj/x64/libretro/src/mame/video/runaway.o ../../../../libretro/obj/x64/libretro/src/mame/video/shuuz.o ../../../../libretro/obj/x64/libretro/src/mame/video/skullxbo.o ../../../../libretro/obj/x64/libretro/src/mame/video/skydiver.o ../../../../libretro/obj/x64/libretro/src/mame/video/skyraid.o ../../../../libretro/obj/x64/libretro/src/mame/video/sprint2.o ../../../../libretro/obj/x64/libretro/src/mame/video/sprint4.o ../../../../libretro/obj/x64/libretro/src/mame/video/sprint8.o ../../../../libretro/obj/x64/libretro/src/mame/video/starshp1.o ../../../../libretro/obj/x64/libretro/src/mame/video/subs.o ../../../../libretro/obj/x64/libretro/src/mame/video/tank8.o ../../../../libretro/obj/x64/libretro/src/mame/video/thunderj.o ../../../../libretro/obj/x64/libretro/src/mame/video/tia.o ../../../../libretro/obj/x64/libretro/src/mame/video/toobin.o ../../../../libretro/obj/x64/libretro/src/mame/video/triplhnt.o ../../../../libretro/obj/x64/libretro/src/mame/video/tunhunt.o ../../../../libretro/obj/x64/libretro/src/mame/video/ultratnk.o ../../../../libretro/obj/x64/libretro/src/mame/video/videopin.o ../../../../libretro/obj/x64/libretro/src/mame/video/vindictr.o ../../../../libretro/obj/x64/libretro/src/mame/video/wolfpack.o ../../../../libretro/obj/x64/libretro/src/mame/video/xybots.o  2>&1 > /dev/null | sed -e '/.o) has no symbols$/d'
make[2]: Leaving directory '/private/tmp/nix-build-libretro-mame-2020-03-06.drv-0/mame-ed987ad/build/projects/retro/mame/gmake-osx-clang'
make[1]: *** [makefile:1432: macosx_x64_clang] Error 2
make[1]: Leaving directory '/private/tmp/nix-build-libretro-mame-2020-03-06.drv-0/mame-ed987ad'
make: *** [Makefile.libretro:175: build] Error 2

mame2016

python scripts/build/complay.py src/mame/layout/18w.lay build/generated/mame/layout/18w.lh layout_18w
Compressing src/mame/layout/24cdjuke.lay...
python scripts/build/complay.py src/mame/layout/24cdjuke.lay build/generated/mame/layout/24cdjuke.lh layout_24cdjuke
ld: warning: passed two min versions (10.4.0, 10.12) for platform macOS. Using 10.12.
ld: framework not found CoreServices
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [genie.make:369: ../../bin/darwin/genie] Error 1
make[2]: Leaving directory '/private/tmp/nix-build-libretro-mame2016-2020-03-06.drv-0/mame2016-libretro-02987af/3rdparty/genie/build/gmake.darwin'
make[1]: *** [makefile:1447: 3rdparty/genie/bin/darwin/genie] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/private/tmp/nix-build-libretro-mame2016-2020-03-06.drv-0/mame2016-libretro-02987af'
make: *** [Makefile.libretro:197: build] Error 2

mupen64plus

ACROS -D__LIBRETRO__ -DUSE_FILE32API -DM64P_PLUGIN_API -DM64P_CORE_PROTOTYPES -D_ENDUSER_RELEASE -DSINC_LOWER_QUALITY -DTXFILTER_LIB -D__VEC4_OPT -DMUPENPLUSAPI -I./custom -I./custom/mupen64plus-core -I./custom/android/include -I./custom/GLideN64 -I./GLideN64/src -I./GLideN64/src/osal -I./mupen64plus-core/src -I./mupen64plus-core/src/api -I./custom/mupen64plus-core/plugin/audio_libretro -I./libretro-common/include -I./libretro -I./GLideN64/src/inc -I./xxHash -I./custom/dependencies/libpng -I./custom/dependencies/libzlib -D__MACOSX__ -DOSX -DOS_MAC_OS_X -fPIC  -DCORE -DHAVE_OPENGL -DNEW_DYNAREC=2 -DDYNAREC -I./mupen64plus-core/src/asm_defines/ -c GLideN64/src/PostProcessor.cpp -o GLideN64/src/PostProcessor.o
In file included from GLideN64/src/PaletteTexture.cpp:7:
./GLideN64/src/PaletteTexture.h:7:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
         ^~~~~~~~~~
1 error generated.
make: *** [Makefile:537: GLideN64/src/PaletteTexture.o] Error 1
make: *** Waiting for unfinished jobs....

picodrive

please install libsdl (libsdl1.2-dev)

play

In file included from /tmp/nix-build-libretro-play-2020-03-06.drv-0/play--884ae3b/deps/Framework/src/PathUtils.cpp:54:
In file included from /nix/store/h8bxssyz2yb0z579dwc1i1544kn82mff-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /nix/store/h8bxssyz2yb0z579dwc1i1544kn82mff-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /nix/store/h8bxssyz2yb0z579dwc1i1544kn82mff-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /nix/store/qbbl5g6l5kx3zwjmkbcwflrzfrk6by0g-Libsystem-osx-10.12.6/include/dispatch/dispatch.h:48:
/nix/store/qbbl5g6l5kx3zwjmkbcwflrzfrk6by0g-Libsystem-osx-10.12.6/include/os/object.h:75:9: fatal error: 'objc/NSObject.h' file not found
#import <objc/NSObject.h>
        ^~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/build.make:576: Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/PathUtils.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /tmp/nix-build-libretro-play-2020-03-06.drv-0/play--884ae3b/deps/Framework/src/string_cast_sjis.cpp:6:
In file included from /nix/store/h8bxssyz2yb0z579dwc1i1544kn82mff-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /nix/store/h8bxssyz2yb0z579dwc1i1544kn82mff-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /nix/store/h8bxssyz2yb0z579dwc1i1544kn82mff-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /nix/store/qbbl5g6l5kx3zwjmkbcwflrzfrk6by0g-Libsystem-osx-10.12.6/include/dispatch/dispatch.h:48:
/nix/store/qbbl5g6l5kx3zwjmkbcwflrzfrk6by0g-Libsystem-osx-10.12.6/include/os/object.h:75:9: fatal error: 'objc/NSObject.h' file not found
#import <objc/NSObject.h>
        ^~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/build.make:654: Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/string_cast_sjis.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:405: Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/all] Error 2
make: *** [Makefile:114: all] Error 2

ppsspp

/tmp/nix-build-libretro-ppsspp-2020-03-06.drv-0/ppsspp-bf1777f/ext/discord-rpc/src/discord_register_osx.m:4:9: fatal error: 'AppKit/AppKit.h' file not found                                #import <AppKit/AppKit.h>                                                                                                                                                                           ^~~~~~~~~~~~~~~~~                                                                                                                                                                   1 error generated.                                                                                                                                                                          make[2]: *** [ext/discord-rpc-build/CMakeFiles/discord-rpc.dir/build.make:121: ext/discord-rpc-build/CMakeFiles/discord-rpc.dir/__/discord-rpc/src/discord_register_osx.m.o] Error 1        make[1]: *** [CMakeFiles/Makefile2:1249: ext/discord-rpc-build/CMakeFiles/discord-rpc.dir/all] Error 2                                                                                      make[1]: *** Waiting for unfinished jobs....

vecx

ld: warning: ignoring file /nix/store/gkcr1p2x0psdc31bavmqbfb2nwq0d6jn-clang-wrapper-7.1.0/resource-root/lib/darwin/libclang_rt.10.4.a, missing required architecture i386 in file[10/45215]e/gkcr1p2x0psdc31bavmqbfb2nwq0d6jn-clang-wrapper-7.1.0/resource-root/lib/darwin/libclang_rt.10.4.a (1 slices)                                                                               Undefined symbols for architecture i386:                                                                                                                                                      "___memcpy_chk", referenced from:                                                                                                                                                               _retro_load_game in libretro.o                                                                                                                                                          "___stack_chk_fail", referenced from:                                                                                                                                                           _e6809_sstep in e6809.o                                                                                                                                                                     _retro_set_environment in libretro.o                                                                                                                                                        _retro_init in libretro.o                                                                                                                                                                   _check_variables in libretro.o                                                                                                                                                              _retro_load_game in libretro.o                                                                                                                                                              _retro_run in libretro.o
  "___stack_chk_guard", referenced from:
      _e6809_sstep in e6809.o
      _retro_set_environment in libretro.o
      _retro_init in libretro.o
      _check_variables in libretro.o
      _retro_load_game in libretro.o
      _retro_run in libretro.o
      _e6809_sstep in e6809.o
      _retro_set_environment in libretro.o
      _retro_init in libretro.o
      _check_variables in libretro.o
      _retro_load_game in libretro.o
      _retro_run in libretro.o
  "___strcat_chk", referenced from:
      _retro_set_environment in libretro.o
  "_calloc", referenced from:
      _retro_set_environment in libretro.o
  "_free", referenced from:
      _retro_set_environment in libretro.o
  "_memcpy", referenced from:
      _e8910_serialize in e8910.o
      _e8910_deserialize in e8910.o
      _retro_load_game in libretro.o
      _vecx_serialize in vecx.o
      _vecx_deserialize in vecx.o
  "_memset", referenced from:
      _e8910_callback in e8910.o
      _retro_load_game in libretro.o
      _retro_unload_game in libretro.o
      _osint_render in libretro.o
      _retro_run in libretro.o
  "_strcmp", referenced from:
      _retro_set_environment in libretro.o
      _check_variables in libretro.o
  "_strcpy", referenced from:
      _retro_set_environment in libretro.o
  "_strlen", referenced from:
      _retro_set_environment in libretro.o
ld: symbol(s) not found for architecture i386
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile.libretro:617: vecx_libretro.dylib] Error 1

@SuperSandro2000
Copy link
Member

fbalpga2012

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/0x7l3c7qvvpiz32ryqal4vlfzywkkcck-fbalpha2012-fa97cd2
source root is fbalpha2012-fa97cd2
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
build flags: -j4 -l4 SHELL=/nix/store/8i9kyqfxhk2s9dzx32x0sgdk7kyx9wjc-bash-4.4-p23/bin/bash platform=osx ARCH=x86_64
/nix/store/8i9kyqfxhk2s9dzx32x0sgdk7kyx9wjc-bash-4.4-p23/bin/bash: git: command not found
�[1msrc/burner/unzip.c:1182:24: �[0m�[0;1;35mwarning: �[0m�[1mincompatible pointer types assigning to 'const unsigned long *' from 'const z_crc_t *' (aka 'const unsigned int *') [-Wincompatible-pointer-types]�[0m
        s->pcrc_32_tab = get_crc_table();
�[0;1;32m                       ^ ~~~~~~~~~~~~~~~
�[0m�[1msrc/burner/unzip.c:1254:46: �[0m�[0;1;35mwarning: �[0m�[1mequality comparison with extraneous parentheses [-Wparentheses-equality]�[0m
    if ((pfile_in_zip_read_info->read_buffer == NULL))
�[0;1;32m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
�[0m�[1msrc/burner/unzip.c:1254:46: �[0m�[0;1;30mnote: �[0mremove extraneous parentheses around the comparison to silence this warning�[0m
    if ((pfile_in_zip_read_info->read_buffer == NULL))
�[0;1;32m        ~                                    ^      ~
�[0m�[1msrc/burner/unzip.c:1254:46: �[0m�[0;1;30mnote: �[0muse '=' to turn this equality comparison into an assignment�[0m
    if ((pfile_in_zip_read_info->read_buffer == NULL))
�[0;1;32m                                             ^~
�[0m�[0;32m                                             =
�[0m�[1msrc/burn/snd/fm.c:2753:16: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                                logerror("YM2608-YM2610: ADPCM-A rom not mapped\n");
�[0;1;32m                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fm.c:2757:17: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                                        logerror("YM2610: ADPCM-A end out of range: $%08x\n",adpcm[c].end);
�[0;1;32m                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fm.c:2757:70: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                                        logerror("YM2610: ADPCM-A end out of range: $%08x\n",adpcm[c].end);
�[0;1;32m                                                                                                             ~~~~~~~~ ^~~
�[0m�[1msrc/burn/snd/fm.c:2762:17: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                                        logerror("YM2608-YM2610: ADPCM-A start out of range: $%08x\n",adpcm[c].start);
�[0;1;32m                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fm.c:2762:79: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                                        logerror("YM2608-YM2610: ADPCM-A start out of range: $%08x\n",adpcm[c].start);
�[0;1;32m                                                                                                                      ~~~~~~~~ ^~~~~
�[0m�[1msrc/burn/snd/fm.c:3935:14: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                logerror("YM2608: write to DAC data (unimplemented) value=%02x\n",v);
�[0;1;32m                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fm.c:3935:71: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                logerror("YM2608: write to DAC data (unimplemented) value=%02x\n",v);
�[0;1;32m                                                                                                  ^
�[0m�[1msrc/burn/snd/fm.c:3986:14: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                logerror("YM2608 A/D convertion is accessed but not implemented !\n");
�[0;1;32m                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fm.c:4072:16: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                LOG(LOG_WAR,(FM_MSG_YM2610B,num,0));
�[0;1;32m                             ^~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fm.c:4069:24: �[0m�[0;1;30mnote: �[0mexpanded from macro 'FM_MSG_YM2610B'�[0m
#define FM_MSG_YM2610B "YM2610-%d.CH%d is playing,Check whether the type of the chip is YM2610B\n"
�[0;1;32m                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fm.c:736:48: �[0m�[0;1;30mnote: �[0mexpanded from macro 'LOG'�[0m
#define LOG(n,x) if( (n)>=LOG_LEVEL ) logerror x
�[0;1;32m                                               ^
�[0m�[1msrc/burn/snd/fm.c:4072:31: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                LOG(LOG_WAR,(FM_MSG_YM2610B,num,0));
�[0;1;32m                                            ^~~
�[0m�[1msrc/burn/snd/fm.c:736:48: �[0m�[0;1;30mnote: �[0mexpanded from macro 'LOG'�[0m
#define LOG(n,x) if( (n)>=LOG_LEVEL ) logerror x
�[0;1;32m                                               ^
�[0m�[1msrc/burn/snd/fm.c:4074:16: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                LOG(LOG_WAR,(FM_MSG_YM2610B,num,3));
�[0;1;32m                             ^~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fm.c:4069:24: �[0m�[0;1;30mnote: �[0mexpanded from macro 'FM_MSG_YM2610B'�[0m
#define FM_MSG_YM2610B "YM2610-%d.CH%d is playing,Check whether the type of the chip is YM2610B\n"
�[0;1;32m                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fm.c:736:48: �[0m�[0;1;30mnote: �[0mexpanded from macro 'LOG'�[0m
#define LOG(n,x) if( (n)>=LOG_LEVEL ) logerror x
�[0;1;32m                                               ^
�[0m�[1msrc/burn/snd/fm.c:4074:31: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                LOG(LOG_WAR,(FM_MSG_YM2610B,num,3));
�[0;1;32m                                            ^~~
�[0m�[1msrc/burn/snd/fm.c:736:48: �[0m�[0;1;30mnote: �[0mexpanded from macro 'LOG'�[0m
#define LOG(n,x) if( (n)>=LOG_LEVEL ) logerror x
�[0;1;32m                                               ^
�[0m�[1msrc/burn/snd/fm.c:4074:35: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                LOG(LOG_WAR,(FM_MSG_YM2610B,num,3));
�[0;1;32m                                                ^
�[0m�[1msrc/burn/snd/fm.c:736:48: �[0m�[0;1;30mnote: �[0mexpanded from macro 'LOG'�[0m
#define LOG(n,x) if( (n)>=LOG_LEVEL ) logerror x
�[0;1;32m                                               ^
�[0m�[1msrc/burn/snd/fm.c:4636:14: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                logerror("YM2610: write to unknown deltat register %02x val=%02x\n",addr,v);
�[0;1;32m                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fm.c:4636:73: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                logerror("YM2610: write to unknown deltat register %02x val=%02x\n",addr,v);
�[0;1;32m                                                                                                    ^~~~
�[0m�[1msrc/burn/snd/fm.c:4636:78: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                logerror("YM2610: write to unknown deltat register %02x val=%02x\n",addr,v);
�[0;1;32m                                                                                                         ^
�[0m�[1msrc/burn/snd/fm.c:5100:16: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                LOG(LOG_WAR,("YM2612 #%d:A=%d read unmapped area\n",n,a));
�[0;1;32m                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fm.c:736:48: �[0m�[0;1;30mnote: �[0mexpanded from macro 'LOG'�[0m
#define LOG(n,x) if( (n)>=LOG_LEVEL ) logerror x
�[0;1;32m                                               ^
�[0m�[1msrc/burn/snd/fm.c:5100:55: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                LOG(LOG_WAR,("YM2612 #%d:A=%d read unmapped area\n",n,a));
�[0;1;32m                                                                    ^
�[0m�[1msrc/burn/snd/fm.c:736:48: �[0m�[0;1;30mnote: �[0mexpanded from macro 'LOG'�[0m
#define LOG(n,x) if( (n)>=LOG_LEVEL ) logerror x
�[0;1;32m                                               ^
�[0m�[1msrc/burn/snd/fm.c:5100:57: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                LOG(LOG_WAR,("YM2612 #%d:A=%d read unmapped area\n",n,a));
�[0;1;32m                                                                      ^
�[0m�[1msrc/burn/snd/fm.c:736:48: �[0m�[0;1;30mnote: �[0mexpanded from macro 'LOG'�[0m
#define LOG(n,x) if( (n)>=LOG_LEVEL ) logerror x
�[0;1;32m                                               ^
�[0m�[1msrc/burn/snd/fmopl.c:1530:15: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                        logerror("Y8950: write unmapped KEYBOARD port\n");
�[0;1;32m                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fmopl.c:1564:13: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                        logerror("FMOPL.C: DAC data register written, but not implemented reg=%02x val=%02x\n",r,v);
�[0;1;32m                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fmopl.c:1564:91: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                        logerror("FMOPL.C: DAC data register written, but not implemented reg=%02x val=%02x\n",r,v);
�[0;1;32m                                                                                                               ^
�[0m�[1msrc/burn/snd/fmopl.c:1564:93: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                        logerror("FMOPL.C: DAC data register written, but not implemented reg=%02x val=%02x\n",r,v);
�[0;1;32m                                                                                                                 ^
�[0m�[1msrc/burn/snd/fmopl.c:1581:13: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                        logerror("FMOPL.C: write to unknown register: %02x\n",r);
�[0;1;32m                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fmopl.c:1581:58: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                        logerror("FMOPL.C: write to unknown register: %02x\n",r);
�[0;1;32m                                                                              ^
�[0m�[1msrc/burn/snd/fmopl.c:1948:14: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                logerror("Y8950: read unmapped KEYBOARD port\n");
�[0;1;32m                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fmopl.c:1969:14: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                logerror("Y8950:read unmapped I/O port\n");
�[0;1;32m                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/fmopl.c:1975:13: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                        logerror("Y8950 A/D convertion is accessed but not implemented !\n");
�[0;1;32m                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m2 warnings generated.
�[1msrc/burn/snd/ym2151.c:1165:13: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                        logerror("YM2151 Write %02x to undocumented register #%02x\n",v,r);
�[0;1;32m                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/ym2151.c:1165:66: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                        logerror("YM2151 Write %02x to undocumented register #%02x\n",v,r);
�[0;1;32m                                                                                      ^
�[0m�[1msrc/burn/snd/ym2151.c:1165:68: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                        logerror("YM2151 Write %02x to undocumented register #%02x\n",v,r);
�[0;1;32m                                                                                        ^
�[0m�[1msrc/burn/snd/ym2413.c:1615:15: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                        logerror("YM2413: Rhythm mode enable\n");
�[0;1;32m                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/ym2413.c:1677:15: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                        logerror("YM2413: Rhythm mode disable\n");
�[0;1;32m                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/ym2413.c:1751:14: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                logerror("chan=%i sus=%2x\n",chan,v&0x20);
�[0;1;32m                                         ^~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/ym2413.c:1751:34: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                logerror("chan=%i sus=%2x\n",chan,v&0x20);
�[0;1;32m                                                             ^~~~
�[0m�[1msrc/burn/snd/ym2413.c:1751:40: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                logerror("chan=%i sus=%2x\n",chan,v&0x20);
�[0;1;32m                                                                  ~^~~~~
�[0m3 warnings generated.
9 warnings generated.
�[1msrc/burn/snd/ymdeltat.c:230:14: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                logerror("YM Delta-T ADPCM rom not mapped\n");
�[0;1;32m                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/ymdeltat.c:238:15: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                        logerror("YM Delta-T ADPCM end out of range: $%08x\n", DELTAT->end);
�[0;1;32m                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/ymdeltat.c:238:69: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                        logerror("YM Delta-T ADPCM end out of range: $%08x\n", DELTAT->end);
�[0;1;32m                                                                                               ~~~~~~  ^~~
�[0m�[1msrc/burn/snd/ymdeltat.c:243:15: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                        logerror("YM Delta-T ADPCM start out of range: $%08x\n", DELTAT->start);
�[0;1;32m                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/ymdeltat.c:243:71: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                                        logerror("YM Delta-T ADPCM start out of range: $%08x\n", DELTAT->start);
�[0;1;32m                                                                                                 ~~~~~~  ^~~~~
�[0m�[1msrc/burn/snd/ymf278b.c:429:13: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                        logerror("YMF278B:  Port A write %02x, %02x\n", reg, data);
�[0;1;32m                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/ymf278b.c:429:52: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                        logerror("YMF278B:  Port A write %02x, %02x\n", reg, data);
�[0;1;32m                                                                        ^~~
�[0m�[1msrc/burn/snd/ymf278b.c:429:57: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                        logerror("YMF278B:  Port A write %02x, %02x\n", reg, data);
�[0;1;32m                                                                             ^~~~
�[0m�[1msrc/burn/snd/ymf278b.c:437:11: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
        logerror("YMF278B:  Port B write %02x, %02x\n", reg, data);
�[0;1;32m                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/ymf278b.c:437:50: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
        logerror("YMF278B:  Port B write %02x, %02x\n", reg, data);
�[0;1;32m                                                        ^~~
�[0m�[1msrc/burn/snd/ymf278b.c:437:55: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
        logerror("YMF278B:  Port B write %02x, %02x\n", reg, data);
�[0;1;32m                                                             ^~~~
�[0m5 warnings generated.
5 warnings generated.
6 warnings generated.
19 warnings generated.
�[1msrc/burn/snd/dac.cpp:58:30: �[0m�[0;1;35mwarning: �[0m�[1munsequenced modification and access to 'lbuf' [-Wunsequenced]�[0m
                        *lbuf++ = *lbuf + lOut;
�[0;1;32m                             ^     ~~~~
�[0m�[1msrc/burn/snd/dac.cpp:59:9: �[0m�[0;1;35mwarning: �[0m�[1munsequenced modification and access to 'rbuf' [-Wunsequenced]�[0m
                        *rbuf++ = *rbuf + rOut;
�[0;1;32m                             ^     ~~~~
�[0m�[1msrc/burn/snd/dac.cpp:62:39: �[0m�[0;1;35mwarning: �[0m�[1munsequenced modification and access to 'lbuf' [-Wunsequenced]�[0m
                while (length--) *lbuf++ = *lbuf + lOut;
�[0;1;32m                                      ^     ~~~~
�[0m�[1msrc/burn/snd/dac.cpp:64:39: �[0m�[0;1;35mwarning: �[0m�[1munsequenced modification and access to 'rbuf' [-Wunsequenced]�[0m
                while (length--) *rbuf++ = *rbuf + rOut;
�[0;1;32m                                      ^     ~~~~
�[0m4 warnings generated.
�[1msrc/burn/snd/k054539.cpp:375:3: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                ^~~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:3: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                ^~~~~~
�[0m�[0;32m                static_cast<INT16>( )
�[0m�[1msrc/burn/snd/k054539.cpp:375:11: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                        ^~~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:11: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                        ^~~~~~
�[0m�[0;32m                        static_cast<INT16>( )
�[0m�[1msrc/burn/snd/k054539.cpp:375:19: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                ^~~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:19: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                ^~~~~~
�[0m�[0;32m                                static_cast<INT16>( )
�[0m�[1msrc/burn/snd/k054539.cpp:375:27: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                        ^~~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:27: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                        ^~~~~~
�[0m�[0;32m                                        static_cast<INT16>( )
�[0m�[1msrc/burn/snd/k054539.cpp:375:35: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                ^~~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:35: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                ^~~~~~
�[0m�[0;32m                                                static_cast<INT16>( )
�[0m�[1msrc/burn/snd/k054539.cpp:375:43: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                        ^~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:43: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                        ^~~~~
�[0m�[0;32m                                                        static_cast<INT16>( )
�[0m�[1msrc/burn/snd/k054539.cpp:375:50: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                               ^~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:50: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                               ^~~~~
�[0m�[0;32m                                                               static_cast<INT16>( )
�[0m�[1msrc/burn/snd/k054539.cpp:375:57: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                                      ^~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:57: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                                      ^~~~~
�[0m�[0;32m                                                                      static_cast<INT16>( )
�[0m8 errors generated.
make: *** [makefile.libretro:800: src/burn/snd/k054539.o] Error 1
make: *** Waiting for unfinished jobs....

@SuperSandro2000
Copy link
Member

@AluisioASG hit me up on IRC if you want to debug this together with less delay between tests.

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Nov 1, 2020

Result of nixpkgs-review pr 102230 run on x86_64-darwin 1

1 package marked as broken and skipped:
  • libretro.mupen64plus
10 packages failed to build:
  • libretro.beetle-psx-hw
  • libretro.citra
  • libretro.fbalpha2012
  • libretro.fbneo
  • libretro.mame
  • libretro.mame2016
  • libretro.picodrive
  • libretro.play
  • libretro.ppsspp
  • libretro.vecx
61 packages built:
  • libretro.atari800
  • libretro.beetle-gba
  • libretro.beetle-lynx
  • libretro.beetle-ngp
  • libretro.beetle-pce-fast
  • libretro.beetle-pcfx
  • libretro.beetle-psx
  • libretro.beetle-snes
  • libretro.beetle-supergrafx
  • libretro.beetle-vb
  • libretro.beetle-wswan
  • libretro.bluemsx
  • libretro.bsnes-mercury
  • libretro.desmume
  • libretro.desmume2015
  • libretro.dosbox
  • libretro.eightyone
  • libretro.fceumm
  • libretro.fmsx
  • libretro.freeintv
  • libretro.gambatte
  • libretro.genesis-plus-gx
  • libretro.gpsp
  • libretro.gw
  • libretro.handy
  • libretro.hatari
  • libretro.mame2000
  • libretro.mame2003
  • libretro.mame2003-plus
  • libretro.mame2010
  • libretro.mame2015
  • libretro.mesen
  • libretro.meteor
  • libretro.mgba
  • libretro.neocd
  • libretro.nestopia
  • libretro.np2kai
  • libretro.o2em
  • libretro.opera
  • libretro.parallel-n64
  • libretro.pcsx_rearmed
  • libretro.prboom
  • libretro.prosystem
  • libretro.quicknes
  • libretro.sameboy
  • libretro.scummvm
  • libretro.smsplus-gx
  • libretro.snes9x
  • libretro.snes9x2002
  • libretro.snes9x2005
  • libretro.snes9x2010
  • libretro.stella
  • libretro.stella2014
  • libretro.tgbdual
  • libretro.tic80
  • libretro.vba-m
  • libretro.vba-next
  • libretro.virtualjaguar
  • libretro.yabause
  • retroarch
  • retroarchBare

beetle-psx-hw

CXX parallel-psx/vulkan/vulkan.cpp
clang-7: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
CXX parallel-psx/vulkan/shader.cpp
clang-7: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
CXX parallel-psx/vulkan/wsi.cpp
clang-7: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
parallel-psx/vulkan/wsi_timing.cpp:241:35: error: use of undeclared identifier 'TIMER_ABSTIME'
        clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &ts, nullptr);
                                         ^
1 error generated.
make: *** [Makefile:654: parallel-psx/vulkan/wsi_timing.o] Error 1
make: *** Waiting for unfinished jobs....
CXX parallel-psx/SPIRV-Cross/spirv_cfg.cpp
CXX parallel-psx/SPIRV-Cross/spirv_cross.cpp
1 warning generated.
CXX mednafen/psx/gpu.cpp

citra

/tmp/nix-build-libretro-citra-2020-03-06.drv-0/citra-84f31e9/src/common/string_util.cpp:20:10: fatal error: 'iconv.h' file not found                                                        #include <iconv.h>                                                                                                                                                                                   ^~~~~~~~~                                                                                                                                                                          1 error generated.                                                                                                                                                                          make[2]: *** [src/common/CMakeFiles/common.dir/build.make:212: src/common/CMakeFiles/common.dir/string_util.cpp.o] Error 1                                                                  make[1]: *** [CMakeFiles/Makefile2:734: src/common/CMakeFiles/common.dir/all] Error 2                                                                                                       make[1]: *** Waiting for unfinished jobs....

fbalpha2012

�[0;1;32m                                                                                                 ~~~~~~  ^~~~~
�[0m5 warnings generated.
�[1msrc/burn/snd/ymf278b.c:429:13: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                        logerror("YMF278B:  Port A write %02x, %02x\n", reg, data);
�[0;1;32m                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/ymf278b.c:429:52: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                        logerror("YMF278B:  Port A write %02x, %02x\n", reg, data);
�[0;1;32m                                                                        ^~~
�[0m�[1msrc/burn/snd/ymf278b.c:429:57: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
                        logerror("YMF278B:  Port A write %02x, %02x\n", reg, data);
�[0;1;32m                                                                             ^~~~
�[0m�[1msrc/burn/snd/ymf278b.c:437:11: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
        logerror("YMF278B:  Port B write %02x, %02x\n", reg, data);
�[0;1;32m                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[1msrc/burn/snd/ymf278b.c:437:50: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
        logerror("YMF278B:  Port B write %02x, %02x\n", reg, data);
�[0;1;32m                                                        ^~~
�[0m�[1msrc/burn/snd/ymf278b.c:437:55: �[0m�[0;1;35mwarning: �[0m�[1mexpression result unused [-Wunused-value]�[0m
        logerror("YMF278B:  Port B write %02x, %02x\n", reg, data);
�[0;1;32m                                                             ^~~~
�[0m5 warnings generated.
6 warnings generated.
19 warnings generated.
�[1msrc/burn/snd/dac.cpp:58:30: �[0m�[0;1;35mwarning: �[0m�[1munsequenced modification and access to 'lbuf' [-Wunsequenced]�[0m
                        *lbuf++ = *lbuf + lOut;
�[0;1;32m                             ^     ~~~~
�[0m�[1msrc/burn/snd/dac.cpp:59:9: �[0m�[0;1;35mwarning: �[0m�[1munsequenced modification and access to 'rbuf' [-Wunsequenced]�[0m
                        *rbuf++ = *rbuf + rOut;
�[0;1;32m                             ^     ~~~~
�[0m�[1msrc/burn/snd/dac.cpp:62:39: �[0m�[0;1;35mwarning: �[0m�[1munsequenced modification and access to 'lbuf' [-Wunsequenced]�[0m
                while (length--) *lbuf++ = *lbuf + lOut;
�[0;1;32m                                      ^     ~~~~
�[0m�[1msrc/burn/snd/dac.cpp:64:39: �[0m�[0;1;35mwarning: �[0m�[1munsequenced modification and access to 'rbuf' [-Wunsequenced]�[0m
                while (length--) *rbuf++ = *rbuf + rOut;
�[0;1;32m                                      ^     ~~~~
�[0m4 warnings generated.
�[1msrc/burn/snd/k054539.cpp:375:3: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                ^~~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:3: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                ^~~~~~
�[0m�[0;32m                static_cast<INT16>( )
�[0m�[1msrc/burn/snd/k054539.cpp:375:11: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                        ^~~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:11: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                        ^~~~~~
�[0m�[0;32m                        static_cast<INT16>( )
�[0m�[1msrc/burn/snd/k054539.cpp:375:19: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                ^~~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:19: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                ^~~~~~
�[0m�[0;32m                                static_cast<INT16>( )
�[0m�[1msrc/burn/snd/k054539.cpp:375:27: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                        ^~~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:27: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                        ^~~~~~
�[0m�[0;32m                                        static_cast<INT16>( )
�[0m�[1msrc/burn/snd/k054539.cpp:375:35: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                ^~~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:35: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                ^~~~~~
�[0m�[0;32m                                                static_cast<INT16>( )
�[0m�[1msrc/burn/snd/k054539.cpp:375:43: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                        ^~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:43: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                        ^~~~~
�[0m�[0;32m                                                        static_cast<INT16>( )
�[0m�[1msrc/burn/snd/k054539.cpp:375:50: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                               ^~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:50: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                               ^~~~~
�[0m�[0;32m                                                               static_cast<INT16>( )
�[0m�[1msrc/burn/snd/k054539.cpp:375:57: �[0m�[0;1;31merror: �[0m�[1mnon-constant-expression cannot be narrowed from type 'int' to 'INT16' (aka 'short') in initializer list [-Wc++11-narrowing]�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                                      ^~~~~
�[0m�[1msrc/burn/snd/k054539.cpp:375:57: �[0m�[0;1;30mnote: �[0minsert an explicit cast to silence this issue�[0m
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
�[0;1;32m                                                                      ^~~~~
�[0m�[0;32m                                                                      static_cast<INT16>( )
�[0m8 errors generated.
make: *** [makefile.libretro:800: src/burn/snd/k054539.o] Error 1
make: *** Waiting for unfinished jobs....

fbneo

clang-7: error: unsupported argument '4' to option 'flto='
clang-7: warning: -Wl,--gc-sections: 'linker' input unused [-Wunused-command-line-argument]
clang-7: warning: optimization flag '-frounding-math' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-fwhole-program' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-fuse-linker-plugin' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-falign-jumps=1' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-falign-loops=1' is not supported [-Wignored-optimization-argument]
clang-7: warning: optimization flag '-ffloat-store' is not supported [-Wignored-optimization-argument]
make: *** [Makefile:672: ../../burner/libretro/libretro-common/file/file_path.o] Error 1
make: *** Waiting for unfinished jobs....
clang-7: error: unsupported argument '4' to option 'flto='
clang-7: warning: -Wl,--gc-sections: 'linker' input unused [-Wunused-command-line-argument]
clang-7: error: unsupported argument '4' to option 'flto='

mame https://termbin.com/li6zd

mame2016 https://termbin.com/smc4z

picodrive

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/hx3s9zv2j721q5q4s93c7i1g86jq78rq-picodrive-600894e
source root is picodrive-600894e
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
configure flags: ''
please install libsdl (libsdl1.2-dev)

play

In file included from /tmp/nix-build-libretro-play-2020-03-06.drv-0/play--884ae3b/deps/Framework/src/PathUtils.cpp:54:
In file included from /nix/store/h8bxssyz2yb0z579dwc1i1544kn82mff-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /nix/store/h8bxssyz2yb0z579dwc1i1544kn82mff-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /nix/store/h8bxssyz2yb0z579dwc1i1544kn82mff-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /nix/store/qbbl5g6l5kx3zwjmkbcwflrzfrk6by0g-Libsystem-osx-10.12.6/include/dispatch/dispatch.h:48:
/nix/store/qbbl5g6l5kx3zwjmkbcwflrzfrk6by0g-Libsystem-osx-10.12.6/include/os/object.h:75:9: fatal error: 'objc/NSObject.h' file not found
#import <objc/NSObject.h>
        ^~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/build.make:576: Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/PathUtils.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 16%] Building CXX object Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/string_cast.cpp.o
[ 16%] Building CXX object Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/string_cast_sjis.cpp.o
In file included from /tmp/nix-build-libretro-play-2020-03-06.drv-0/play--884ae3b/deps/Framework/src/string_cast_sjis.cpp:6:
In file included from /nix/store/h8bxssyz2yb0z579dwc1i1544kn82mff-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /nix/store/h8bxssyz2yb0z579dwc1i1544kn82mff-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /nix/store/h8bxssyz2yb0z579dwc1i1544kn82mff-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /nix/store/qbbl5g6l5kx3zwjmkbcwflrzfrk6by0g-Libsystem-osx-10.12.6/include/dispatch/dispatch.h:48:
/nix/store/qbbl5g6l5kx3zwjmkbcwflrzfrk6by0g-Libsystem-osx-10.12.6/include/os/object.h:75:9: fatal error: 'objc/NSObject.h' file not found
#import <objc/NSObject.h>
        ^~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/build.make:654: Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/string_cast_sjis.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:405: Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/all] Error 2
make: *** [Makefile:114: all] Error 2

ppsspp

[ 98%] Built target Core
Scanning dependencies of target ppsspp_libretro
[ 98%] Building CXX object libretro/CMakeFiles/ppsspp_libretro.dir/LibretroGraphicsContext.cpp.o
[ 99%] Building CXX object libretro/CMakeFiles/ppsspp_libretro.dir/libretro.cpp.o
[ 99%] Building CXX object libretro/CMakeFiles/ppsspp_libretro.dir/libretro_vulkan.cpp.o
[ 99%] Building CXX object libretro/CMakeFiles/ppsspp_libretro.dir/LibretroVulkanContext.cpp.o
[ 99%] Building CXX object libretro/CMakeFiles/ppsspp_libretro.dir/LibretroGLContext.cpp.o
[100%] Linking CXX shared library ../lib/ppsspp_libretro.dylib
ld: warning: passed two min versions (10.7.0, 10.12) for platform macOS. Using 10.12.
ld: unknown option: -Bsymbolic
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libretro/CMakeFiles/ppsspp_libretro.dir/build.make:194: lib/ppsspp_libretro.dylib] Error 1
make[1]: *** [CMakeFiles/Makefile2:1298: libretro/CMakeFiles/ppsspp_libretro.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

vecx https://termbin.com/rlipp

@SuperSandro2000
Copy link
Member

citra https://termbin.com/m2tl

dolphin

In file included from /tmp/nix-build-libretro-dolphin-2020-03-06.drv-0/dolphin-1fbd599/Source/Core/InputCommon/ControllerInterface/OSX/OSXJoystick.mm:12:
In file included from /tmp/nix-build-libretro-dolphin-2020-03-06.drv-0/dolphin-1fbd599/Source/Core/InputCommon/ControllerInterface/OSX/OSXJoystick.h:10:
In file included from /tmp/nix-build-libretro-dolphin-2020-03-06.drv-0/dolphin-1fbd599/Source/Core/InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.h:16:
/tmp/nix-build-libretro-dolphin-2020-03-06.drv-0/dolphin-1fbd599/Source/Core/InputCommon/ControllerInterface/ForceFeedback/OSX/DirectInputAdapter.h:19:10: fatal error: 'ForceFeedback/ForceFeedback.h' file not found
#include <ForceFeedback/ForceFeedback.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [Source/Core/InputCommon/CMakeFiles/inputcommon.dir/build.make:394: Source/Core/InputCommon/CMakeFiles/inputcommon.dir/ControllerInterface/OSX/OSXJoystick.mm.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /tmp/nix-build-libretro-dolphin-2020-03-06.drv-0/dolphin-1fbd599/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm:17:
In file included from /tmp/nix-build-libretro-dolphin-2020-03-06.drv-0/dolphin-1fbd599/Source/Core/InputCommon/ControllerInterface/OSX/OSXJoystick.h:10:
In file included from /tmp/nix-build-libretro-dolphin-2020-03-06.drv-0/dolphin-1fbd599/Source/Core/InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.h:16:
/tmp/nix-build-libretro-dolphin-2020-03-06.drv-0/dolphin-1fbd599/Source/Core/InputCommon/ControllerInterface/ForceFeedback/OSX/DirectInputAdapter.h:19:10: fatal error: 'ForceFeedback/ForceFeedback.h' file not found
#include <ForceFeedback/ForceFeedback.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [Source/Core/InputCommon/CMakeFiles/inputcommon.dir/build.make:381: Source/Core/InputCommon/CMakeFiles/inputcommon.dir/ControllerInterface/OSX/OSX.mm.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1670: Source/Core/InputCommon/CMakeFiles/inputcommon.dir/all] Error 2
make: *** [Makefile:171: all] Error 2

mame https://termbin.com/8zzw

bretro/obj/x64/libretro/src/mame/video/subs.o ../../../../libretro/obj/x64/libretro/src/mame/video/tank8.o ../../../../libretro/obj/x64/libretro/src/mame/video/thunderj.o ../../../../libretro/obj/x64/libretro/src/mame/video/tia.o ../../../../libretro/obj/x64/libretro/src/mame/video/toobin.o ../../../../libretro/obj/x64/libretro/src/mame/video/triplhnt.o ../../../../libretro/obj/x64/libretro/src/mame/video/tunhunt.o ../../../../libretro/obj/x64/libretro/src/mame/video/ultratnk.o ../../../../libretro/obj/x64/libretro/src/mame/video/videopin.o ../../../../libretro/obj/x64/libretro/src/mame/video/vindictr.o ../../../../libretro/obj/x64/libretro/src/mame/video/wolfpack.o ../../../../libretro/obj/x64/libretro/src/mame/video/xybots.o  2>&1 > /dev/null | sed -e '/.o) has no symbols$/d'
make[2]: Leaving directory '/private/tmp/nix-build-libretro-mame-2020-03-06.drv-0/mame-ed987ad/build/projects/retro/mame/gmake-osx-clang'
make[1]: *** [makefile:1432: macosx_x64_clang] Error 2
make[1]: Leaving directory '/private/tmp/nix-build-libretro-mame-2020-03-06.drv-0/mame-ed987ad'
make: *** [Makefile.libretro:175: build] Error 2

mame 2016 https://termbin.com/znfj1

@AluisioASG
Copy link
Contributor Author

Citra seems to require a newer macOS. Dolphin and MAME just need playing whack-a-mole with macOS' frameworks.

@SuperSandro2000
Copy link
Member

libretro.mame2016.txt

@AluisioASG
Copy link
Contributor Author

That seems to be mamedev/mame#2598, hopefully a patch applies cleanly.

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Nov 2, 2020

Result of nixpkgs-review pr 102230 run on x86_64-darwin 1

6 packages marked as broken and skipped:
  • libretro.beetle-psx-hw
  • libretro.citra
  • libretro.fbalpha2012
  • libretro.fbneo
  • libretro.mupen64plus
  • libretro.picodrive
4 packages failed to build:
  • libretro.dolphin
  • libretro.mame
  • libretro.play
  • libretro.ppsspp
63 packages built:
  • libretro.atari800
  • libretro.beetle-gba
  • libretro.beetle-lynx
  • libretro.beetle-ngp
  • libretro.beetle-pce-fast
  • libretro.beetle-pcfx
  • libretro.beetle-psx
  • libretro.beetle-snes
  • libretro.beetle-supergrafx
  • libretro.beetle-vb
  • libretro.beetle-wswan
  • libretro.bluemsx
  • libretro.bsnes-mercury
  • libretro.desmume
  • libretro.desmume2015
  • libretro.dosbox
  • libretro.eightyone
  • libretro.fceumm
  • libretro.fmsx
  • libretro.freeintv
  • libretro.gambatte
  • libretro.genesis-plus-gx
  • libretro.gpsp
  • libretro.gw
  • libretro.handy
  • libretro.hatari
  • libretro.mame2000
  • libretro.mame2003
  • libretro.mame2003-plus
  • libretro.mame2010
  • libretro.mame2015
  • libretro.mame2016
  • libretro.mesen
  • libretro.meteor
  • libretro.mgba
  • libretro.neocd
  • libretro.nestopia
  • libretro.np2kai
  • libretro.o2em
  • libretro.opera
  • libretro.parallel-n64
  • libretro.pcsx_rearmed
  • libretro.prboom
  • libretro.prosystem
  • libretro.quicknes
  • libretro.sameboy
  • libretro.scummvm
  • libretro.smsplus-gx
  • libretro.snes9x
  • libretro.snes9x2002
  • libretro.snes9x2005
  • libretro.snes9x2010
  • libretro.stella
  • libretro.stella2014
  • libretro.tgbdual
  • libretro.tic80
  • libretro.vba-m
  • libretro.vba-next
  • libretro.vecx
  • libretro.virtualjaguar
  • libretro.yabause
  • retroarch
  • retroarchBare

dolphin

/tmp/nix-build-libretro-dolphin-2020-03-06.drv-0/dolphin-1fbd599/Source/Core/DolphinLibretro/Input.cpp:49:31: warning: no previous extern declaration for non-static variable 'rumble' [-Wmissing-variable-declarations]
struct retro_rumble_interface rumble;
                              ^
/tmp/nix-build-libretro-dolphin-2020-03-06.drv-0/dolphin-1fbd599/Source/Core/DolphinLibretro/Main.cpp:55:21: warning: no previous extern declaration for non-static variable 'environ_cb' [-Wmissing-variable-declarations]
retro_environment_t environ_cb;
                    ^
[100%] Building CXX object Source/Core/DolphinLibretro/CMakeFiles/dolphin_libretro.dir/Video.cpp.o
1 warning generated.
1 warning generated.
[100%] Linking CXX shared library ../../../dolphin_libretro.dylib
clang-7: error: unsupported option '-static-libgcc'
make[2]: *** [Source/Core/DolphinLibretro/CMakeFiles/dolphin_libretro.dir/build.make:248: dolphin_libretro.dylib] Error 1
make[1]: *** [CMakeFiles/Makefile2:1912: Source/Core/DolphinLibretro/CMakeFiles/dolphin_libretro.dir/all] Error 2
make: *** [Makefile:171: all] Error 2

mame: still the log above

play: Missing Foundation Framework

/tmp/nix-build-libretro-play-2020-03-06.drv-0/play--884ae3b/deps/Framework/src/PathUtils.cpp:55:10: fatal error: 'Foundation/Foundation.h' file not found
#include <Foundation/Foundation.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/build.make:576: Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/__/__/src/PathUtils.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:405: Source/ui_libretro/Source/Framework/CMakeFiles/Framework.dir/all] Error 2
make: *** [Makefile:114: all] Error 2

ppsspp

Scanning dependencies of target ppsspp_libretro
[ 98%] Building CXX object libretro/CMakeFiles/ppsspp_libretro.dir/LibretroGraphicsContext.cpp.o
[ 99%] Building CXX object libretro/CMakeFiles/ppsspp_libretro.dir/libretro.cpp.o
[ 99%] Building CXX object libretro/CMakeFiles/ppsspp_libretro.dir/LibretroVulkanContext.cpp.o
[ 99%] Building CXX object libretro/CMakeFiles/ppsspp_libretro.dir/LibretroGLContext.cpp.o
[ 99%] Building CXX object libretro/CMakeFiles/ppsspp_libretro.dir/libretro_vulkan.cpp.o
[100%] Linking CXX shared library ../lib/ppsspp_libretro.dylib
ld: warning: passed two min versions (10.7.0, 10.12) for platform macOS. Using 10.12.
ld: unknown option: -Bsymbolic
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libretro/CMakeFiles/ppsspp_libretro.dir/build.make:194: lib/ppsspp_libretro.dylib] Error 1
make[1]: *** [CMakeFiles/Makefile2:1298: libretro/CMakeFiles/ppsspp_libretro.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

@AluisioASG
Copy link
Contributor Author

Dolphin was configured to link statically, the commit that set that doesn't say why.

Apparently -Bsymbolic isn't supported by the macOS toolchain, so I patched it out.

Dolphin, MAME, and Play had references to Foundation, so I added a dependency to it for them.

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Nov 3, 2020

Result of nixpkgs-review pr 102230 run on x86_64-darwin 1

6 packages marked as broken and skipped:
  • libretro.beetle-psx-hw
  • libretro.citra
  • libretro.fbalpha2012
  • libretro.fbneo
  • libretro.mupen64plus
  • libretro.picodrive
1 package failed to build:
  • libretro.mame
66 packages built:
  • libretro.atari800
  • libretro.beetle-gba
  • libretro.beetle-lynx
  • libretro.beetle-ngp
  • libretro.beetle-pce-fast
  • libretro.beetle-pcfx
  • libretro.beetle-psx
  • libretro.beetle-snes
  • libretro.beetle-supergrafx
  • libretro.beetle-vb
  • libretro.beetle-wswan
  • libretro.bluemsx
  • libretro.bsnes-mercury
  • libretro.desmume
  • libretro.desmume2015
  • libretro.dolphin
  • libretro.dosbox
  • libretro.eightyone
  • libretro.fceumm
  • libretro.fmsx
  • libretro.freeintv
  • libretro.gambatte
  • libretro.genesis-plus-gx
  • libretro.gpsp
  • libretro.gw
  • libretro.handy
  • libretro.hatari
  • libretro.mame2000
  • libretro.mame2003
  • libretro.mame2003-plus
  • libretro.mame2010
  • libretro.mame2015
  • libretro.mame2016
  • libretro.mesen
  • libretro.meteor
  • libretro.mgba
  • libretro.neocd
  • libretro.nestopia
  • libretro.np2kai
  • libretro.o2em
  • libretro.opera
  • libretro.parallel-n64
  • libretro.pcsx_rearmed
  • libretro.play
  • libretro.ppsspp
  • libretro.prboom
  • libretro.prosystem
  • libretro.quicknes
  • libretro.sameboy
  • libretro.scummvm
  • libretro.smsplus-gx
  • libretro.snes9x
  • libretro.snes9x2002
  • libretro.snes9x2005
  • libretro.snes9x2010
  • libretro.stella
  • libretro.stella2014
  • libretro.tgbdual
  • libretro.tic80
  • libretro.vba-m
  • libretro.vba-next
  • libretro.vecx
  • libretro.virtualjaguar
  • libretro.yabause
  • retroarch
  • retroarchBare

https://termbin.com/ly8a

AluisioASG added a commit to AluisioASG/nixexprs that referenced this pull request Nov 4, 2020
After spending a massive amount of time making RetroArch build on macOS
(github:NixOS/nixpkgs#102230), I've decided to make sure my packages
have the right platforms on their `meta.platforms` and `meta.broken`.

Looks like builds.sr.ht has FreeBSD images.  Might try to build for that
later.
AluisioASG added a commit to AluisioASG/nixexprs that referenced this pull request Nov 4, 2020
After spending a massive amount of time making RetroArch build on macOS
(github:NixOS/nixpkgs#102230), I've decided to make sure my packages
have the right platforms on their `meta.platforms` and `meta.broken`.

Looks like builds.sr.ht has FreeBSD images.  Might try to build for that
later.
AluisioASG added a commit to AluisioASG/nixexprs that referenced this pull request Nov 4, 2020
After spending a massive amount of time making RetroArch build on macOS
(github:NixOS/nixpkgs#102230), I've decided to make sure my packages
have the right platforms on their `meta.platforms` and `meta.broken`.

Looks like builds.sr.ht has FreeBSD images.  Might try to build for that
later.
AluisioASG added a commit to AluisioASG/nixexprs that referenced this pull request Nov 4, 2020
After spending a massive amount of time making RetroArch build on macOS
(github:NixOS/nixpkgs#102230), I've decided to make sure my packages
have the right platforms on their `meta.platforms` and `meta.broken`.

Looks like builds.sr.ht has FreeBSD images.  Might try to build for that
later.
@AluisioASG AluisioASG force-pushed the aasg/retroarch-darwin branch 2 times, most recently from 385f7a3 to 1ee1443 Compare November 4, 2020 21:39
@AluisioASG AluisioASG force-pushed the aasg/retroarch-darwin branch 2 times, most recently from befc508 to ac211b0 Compare November 4, 2020 22:01
@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Nov 25, 2020

Result of nixpkgs-review pr 102230 run on x86_64-linux 1

2 packages failed to build:
  • libretro.dolphin
  • libretro.mame
74 packages built:
  • libretro.atari800
  • libretro.beetle-gba
  • libretro.beetle-lynx
  • libretro.beetle-ngp
  • libretro.beetle-pce-fast
  • libretro.beetle-pcfx
  • libretro.beetle-psx
  • libretro.beetle-psx-hw
  • libretro.beetle-saturn
  • libretro.beetle-saturn-hw
  • libretro.beetle-snes
  • libretro.beetle-supergrafx
  • libretro.beetle-vb
  • libretro.beetle-wswan
  • libretro.bluemsx
  • libretro.bsnes-mercury
  • libretro.citra
  • libretro.desmume
  • libretro.desmume2015
  • libretro.dosbox
  • libretro.eightyone
  • libretro.fbalpha2012
  • libretro.fbneo
  • libretro.fceumm
  • libretro.flycast
  • libretro.fmsx
  • libretro.freeintv
  • libretro.gambatte
  • libretro.genesis-plus-gx
  • libretro.gpsp
  • libretro.gw
  • libretro.handy
  • libretro.hatari
  • libretro.mame2000
  • libretro.mame2003
  • libretro.mame2003-plus
  • libretro.mame2010
  • libretro.mame2015
  • libretro.mame2016
  • libretro.mesen
  • libretro.meteor
  • libretro.mgba
  • libretro.mupen64plus
  • libretro.neocd
  • libretro.nestopia
  • libretro.np2kai
  • libretro.o2em
  • libretro.opera
  • libretro.parallel-n64
  • libretro.pcsx_rearmed
  • libretro.picodrive
  • libretro.play
  • libretro.ppsspp
  • libretro.prboom
  • libretro.prosystem
  • libretro.quicknes
  • libretro.sameboy
  • libretro.scummvm
  • libretro.smsplus-gx
  • libretro.snes9x
  • libretro.snes9x2002
  • libretro.snes9x2005
  • libretro.snes9x2010
  • libretro.stella
  • libretro.stella2014
  • libretro.tgbdual
  • libretro.tic80
  • libretro.vba-m
  • libretro.vba-next
  • libretro.vecx
  • libretro.virtualjaguar
  • libretro.yabause
  • retroarch
  • retroarchBare

libretro.dolphin:
https://termbin.com/hfv6

libretro.mame: timed out

Edit: Can we set some flag to only compile mame* on big compilers like libreoffice? Each of them took ~40 minutes on my not terrible machine.

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Nov 25, 2020

Result of nixpkgs-review pr 102230 run on x86_64-darwin 1

6 packages marked as broken and skipped:
  • libretro.beetle-psx-hw
  • libretro.citra
  • libretro.fbalpha2012
  • libretro.fbneo
  • libretro.mupen64plus
  • libretro.picodrive
14 packages failed to build:
  • libretro.beetle-gba
  • libretro.beetle-lynx
  • libretro.beetle-pcfx
  • libretro.beetle-snes
  • libretro.beetle-supergrafx
  • libretro.beetle-vb
  • libretro.beetle-wswan
  • libretro.desmume
  • libretro.desmume2015
  • libretro.dosbox
  • libretro.gambatte
  • libretro.mame
  • libretro.stella2014
  • libretro.tgbdual
53 packages built:
  • libretro.atari800
  • libretro.beetle-ngp
  • libretro.beetle-pce-fast
  • libretro.beetle-psx
  • libretro.bluemsx
  • libretro.bsnes-mercury
  • libretro.dolphin
  • libretro.eightyone
  • libretro.fceumm
  • libretro.fmsx
  • libretro.freeintv
  • libretro.genesis-plus-gx
  • libretro.gpsp
  • libretro.gw
  • libretro.handy
  • libretro.hatari
  • libretro.mame2000
  • libretro.mame2003
  • libretro.mame2003-plus
  • libretro.mame2010
  • libretro.mame2015
  • libretro.mame2016
  • libretro.mesen
  • libretro.meteor
  • libretro.mgba
  • libretro.neocd
  • libretro.nestopia
  • libretro.np2kai
  • libretro.o2em
  • libretro.opera
  • libretro.parallel-n64
  • libretro.pcsx_rearmed
  • libretro.play
  • libretro.ppsspp
  • libretro.prboom
  • libretro.prosystem
  • libretro.quicknes
  • libretro.sameboy
  • libretro.scummvm
  • libretro.smsplus-gx
  • libretro.snes9x
  • libretro.snes9x2002
  • libretro.snes9x2005
  • libretro.snes9x2010
  • libretro.stella
  • libretro.tic80
  • libretro.vba-m
  • libretro.vba-next
  • libretro.vecx
  • libretro.virtualjaguar
  • libretro.yabause
  • retroarch
  • retroarchBare

beetle-gba:

ld: warning: OS version (10.1.0) too small, changing to 10.4.0
Undefined symbols for architecture x86_64:
  "__Unwind_Resume", referenced from:
      MDFN_GetSettingS(char const*) in settings.o
      void std::__1::vector<__CHEATF, std::__1::allocator<__CHEATF> >::__push_back_slow_path<__CHEATF const&>(__CHEATF const&) in mempatcher.o
      MDFN_DumpToFile(char const*, int, void const*, unsigned long long) in file.o
      void std::__1::vector<PtrLengthPair, std::__1::allocator<PtrLengthPair> >::__push_back_slow_path<PtrLengthPair>(PtrLengthPair&&) in file.o
      Stereo_Buffer::Stereo_Buffer() in Stereo_Buffer.o
      Stereo_Buffer::Stereo_Buffer() in Stereo_Buffer.o
      _retro_load_game in libretro.o
      ...
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:312: mednafen_gba_libretro.dylib] Error 1

beetl-lynx

ld: warning: OS version (10.1.0) too small, changing to 10.4.0
Undefined symbols for architecture x86_64:
  "__Unwind_Resume", referenced from:
      CCart::CCart(MDFNFILE*) in cart.o
      CMikie::CMikie(CSystem&) in mikie.o
      CRam::CRam(MDFNFILE*) in ram.o
      CSystem::CSystem(MDFNFILE*) in system.o
      Load(MDFNFILE*) in system.o
      MDFN_GetSettingS(char const*) in settings.o
      void std::__1::vector<__CHEATF, std::__1::allocator<__CHEATF> >::__push_back_slow_path<__CHEATF const&>(__CHEATF const&) in mempatcher.o
      ...
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:615: mednafen_lynx_libretro.dylib] Error 1

beetle-pcfx

ld: warning: OS version (10.1.0) too small, changing to 10.4.0
Undefined symbols for architecture x86_64:
  "__Unwind_Resume", referenced from:
      SoundBox_SetSoundRate(unsigned int) in soundbox.o
      SoundBox_Init(bool, bool) in soundbox.o
      OwlResampler::OwlResampler(double, double, double, double, int) in OwlResampler.o
      std::__1::vector<int, std::__1::allocator<int> >::__append(unsigned long) in OwlResampler.o
      void std::__1::vector<void*, std::__1::allocator<void*> >::__push_back_slow_path<void*>(void*&&) in v810_cpu.o
      void MDFN::LEPacker::operator^<unsigned int>(unsigned int&) in vdc_video.o
      void MDFN::LEPacker::operator^<unsigned char>(unsigned char&) in vdc_video.o
      ...
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:524: mednafen_pcfx_libretro.dylib] Error 1

beetle-snes:

ld: warning: OS version (10.1.0) too small, changing to 10.4.0
Undefined symbols for architecture x86_64:
  "__Unwind_Resume", referenced from:
      Load(char const*, MDFNFILE*) in interface.o
      StateAction(StateMem*, int, int) in interface.o
      SaveMemorySub(bool, char const*, SNES::MappedRAM*, SNES::MappedRAM*) in interface.o
      void std::__1::vector<PtrLengthPair, std::__1::allocator<PtrLengthPair> >::__push_back_slow_path<PtrLengthPair>(PtrLengthPair&&) in interface.o
      std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >::__append(unsigned long) in interface.o
      SNES::Cheat::Cheat() in cheat.o
      SNES::Cheat::decode(char const*, unsigned int&, unsigned char&, SNES::Cheat::Type&) in cheat.o
      ...
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:314: mednafen_snes_libretro.dylib] Error 1

beetle-supergrafx

CC libretro-common/string/stdstring.c
ld: warning: OS version (10.1.0) too small, changing to 10.4.0
Undefined symbols for architecture x86_64:
  "__Unwind_Resume", referenced from:
      LoadCommonPre() in pce.o
      LoadCommon() in pce.o
      LoadCD(std::__1::vector<CDIF*, std::__1::allocator<CDIF*> >*) in pce.o
      std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char) in pce.o
      HuC_LoadCD(char const*) in huc.o
      __GLOBAL__sub_I_pcecd.cpp in pcecd.o
      __GLOBAL__sub_I_pcecd_drive.cpp in pcecd_drive.o
      ...
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:515: mednafen_supergrafx_libretro.dylib] Error 1

beetle-vb:

ld: warning: OS version (10.1.0) too small, changing to 10.4.0
Undefined symbols for architecture x86_64:
  "__Unwind_Resume", referenced from:
      void std::__1::vector<void*, std::__1::allocator<void*> >::__push_back_slow_path<void*>(void*&&) in v810_cpu.o
      void std::__1::vector<__CHEATF, std::__1::allocator<__CHEATF> >::__push_back_slow_path<__CHEATF const&>(__CHEATF const&) in mempatcher.o
      _retro_load_game in libretro.o
      void std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >::__push_back_slow_path<unsigned int>(unsigned int&&) in libretro.o
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:573: mednafen_vb_libretro.dylib] Error 1

beetle-wswan:

2 warnings generated.
clang++ -o mednafen_wswan_libretro.dylib mednafen/wswan/gfx.o mednafen/wswan/wswan-memory.o mednafen/wswan/v30mz.o mednafen/wswan/sound.o mednafen/wswan/tcache.o mednafen/wswan/interrupt.o mednafen/wswan/eeprom.o mednafen/wswan/rtc.o mednafen/sound/Blip_Buffer.o mednafen/settings.o mednafen/state.o mednafen/mempatcher.o libretro.o libretro-common/compat/compat_strl.o libretro-common/compat/compat_snprintf.o -fPIC -mmacosx-version-min=10.1 -dynamiclib
ld: warning: OS version (10.1.0) too small, changing to 10.4.0
Undefined symbols for architecture x86_64:
  "__Unwind_Resume", referenced from:
      WSwan_SoundInit() in sound.o
      void std::__1::vector<__CHEATF, std::__1::allocator<__CHEATF> >::__push_back_slow_path<__CHEATF const&>(__CHEATF const&) in mempatcher.o
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:585: mednafen_wswan_libretro.dylib] Error 1

libretro.desmume

Undefined symbols for architecture x86_64:
  "__Unwind_Resume", referenced from:
      MovieData::MovieData(bool) in movie.o
      MovieData::installGuid(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) in movie.o
      MovieData::installComment(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) in movie.o
      MovieData::dump(EMUFILE&, bool) in movie.o
      readUntilWhitespace(EMUFILE&) in movie.o
      readUntilNewline(EMUFILE&) in movie.o
      LoadFM2(MovieData&, EMUFILE&, int, bool) in movie.o
      ...
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile.libretro:622: desmume_libretro.dylib] Error 1

libretro.desmume2015

Undefined symbols for architecture x86_64:
  "__Unwind_Resume", referenced from:
      EMUFILE::readAllBytes(std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in emufile.o
      EMUFILE_FILE::memwrap() in emufile.o
      EMUFILE::readMemoryStream(EMUFILE_MEMORY*) in emufile.o
      CFIRMWARE::GetExternalFilePath() in firmware.o
      PathInfo::SwitchPath(PathInfo::Action, PathInfo::KnownPath, char*) in firmware.o
      GPUEngineA::GPUEngineA() in GPU.o
      GPUSubsystem::GPUSubsystem() in GPU.o
      ...
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile.libretro:358: desmume2015_libretro.dylib] Error 1

libretro.dosbox

Undefined symbols for architecture x86_64:
  "__Unwind_Resume", referenced from:
      DOSBOX_Init() in dosbox.o
      DOSBOX_RealInit(Section*) in dosbox.o
      Prop_int::SetMinMax(Value const&, Value const&) in dosbox.o
      update_dosbox_variable(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in libretro.o
      std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const*) in libretro.o
      check_variables() in libretro.o
      wrap_dosbox() in libretro.o
      ...
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile.libretro:227: dosbox_libretro.dylib] Error 1

libretro.gambatte

ld: warning: OS version (10.1.0) too small, changing to 10.4.0
0  0x105d3ba51  __assert_rtn + 129
1  0x105f14444  ld::passes::stubs::x86_64::classic::LazyPointerAtom::LazyPointerAtom(ld::passes::stubs::Pass&, ld::Atom const&, bool, bool) + 420
2  0x105f11c6a  ld::passes::stubs::Pass::makeStub(ld::Atom const&, bool) + 2762
3  0x105f12c5f  ld::passes::stubs::Pass::process(ld::Internal&) + 2511
4  0x105f132c0  ld::passes::stubs::doPass(Options const&, ld::Internal&) + 128
5  0x105d3cff4  main + 1860
A linker snapshot was created at:
        /tmp/gambatte_libretro.dylib-2020-10-25-093425.ld-snapshot
ld: Assertion failed: (targetAtom != NULL), function Fixup, file ../../../../ld64/src/ld/ld.hpp, line 776.
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile.libretro:660: gambatte_libretro.dylib] Error 1

libretro.mame

In file included from ../../../../../src/emu/http.cpp:17:                                                                                                                                   In file included from ../../../../../src/lib/util/server_ws_impl.hpp:8:                                                                                                                     In file included from ../../../../../src/osd/asio.h:34:                                                                                                                                     In file included from ../../../../../3rdparty/asio/include/asio.hpp:69:                                                                                                                     In file included from ../../../../../3rdparty/asio/include/asio/ip/address.hpp:24:                                                                                                          ../../../../../3rdparty/asio/include/asio/ip/address_v4.hpp:294:5: error: unknown type name 'string_view'; did you mean 'std::string_view'?                                                     string_view str, asio::error_code& ec);                                                                                                                                                     ^~~~~~~~~~~                                                                                                                                                                                 std::string_view

libretro.stella2014

ld: warning: OS version (10.1.0) too small, changing to 10.4.0
Undefined symbols for architecture x86_64:
  "__Unwind_Resume", referenced from:
      SoundSDL::SoundSDL(OSystem*) in SoundSDL.o
      SoundSDL::SoundSDL(OSystem*) in SoundSDL.o
      SoundSDL::setEnabled(bool) in SoundSDL.o
      SoundSDL::open() in SoundSDL.o
      std::__1::basic_ostream<char, std::__1::char_traits<char> >::operator<<(int) in SoundSDL.o
      SoundSDL::setVolume(int) in SoundSDL.o
      SoundSDL::adjustVolume(signed char) in SoundSDL.o
      ...
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:651: stella2014_libretro.dylib] Error 1

libretro.tgbdual

ld: warning: OS version (10.1.0) too small, changing to 10.4.0
Undefined symbols for architecture x86_64:
  "__Unwind_Resume", referenced from:
      gb::gb(renderer*, bool, bool) in gb.o
      _retro_load_game in libretro.o
      _retro_load_game_special in libretro.o
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:575: tgbdual_libretro.dylib] Error 1

@avdv avdv mentioned this pull request Nov 30, 2020
10 tasks
@SuperSandro2000 SuperSandro2000 added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jan 18, 2021
@stale
Copy link

stale bot commented Jul 19, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 19, 2021
@AndersonTorres
Copy link
Member

Closing as dead and conflicted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 11-100 10.rebuild-linux: 11-100
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants