Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

lr-mame2016: fails to compile: 01_disable_bgfx.diff failed to apply



  • Happens on Lubuntu 18.04 on an Intel NUC with latest setup script:

    root@wz-retro:/home/vbs/RetroPie-Setup/logs# cat rps_2019-07-28_151515.log
    Log started at: So 28. Jul 15:15:15 CEST 2019
    
    RetroPie-Setup version: 4.5.1 (c8f6cfdf)
    System: Ubuntu 18.04.2 LTS - Linux wz-retro 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
    /home/vbs/RetroPie-Setup/tmp/build/lr-mame2016 /home/vbs/RetroPie-Setup
    
    = = = = = = = = = = = = = = = = = = = = =
    Getting sources for 'lr-mame2016' : MAME emulator - MAME 0.174 port for libretro
    = = = = = = = = = = = = = = = = = = = = =
    
    git clone --recursive --depth 1 --branch master "https://github.com/libretro/mame2016-libretro.git" "/home/vbs/RetroPie-Setup/tmp/build/lr-mame2016"
    Klone nach '/home/vbs/RetroPie-Setup/tmp/build/lr-mame2016' ...
    Checke Dateien aus: 100% (21877/21877), Fertig.
    HEAD is now in branch 'master' at commit 'efc37c9968fe24af8d91d9ce6022e080a1fd90c3'
    patching file Makefile.libretro
    Hunk #1 succeeded at 57 with fuzz 2 (offset 2 lines).
    patching file scripts/genie.lua
    Hunk #1 FAILED at 387.
    1 out of 1 hunk FAILED -- saving rejects to file scripts/genie.lua.rej
    patching file scripts/src/3rdparty.lua
    Hunk #1 FAILED at 716.
    Hunk #2 FAILED at 872.
    2 out of 2 hunks FAILED -- saving rejects to file scripts/src/3rdparty.lua.rej
    patching file scripts/src/main.lua
    Hunk #1 FAILED at 294.
    1 out of 1 hunk FAILED -- saving rejects to file scripts/src/main.lua.rej
    /home/vbs/RetroPie-Setup
    lr-mame2016 patch /home/vbs/RetroPie-Setup/scriptmodules/libretrocores/lr-mame2016/01_disable_bgfx.diff failed to apply
    
    Log ended at: So 28. Jul 15:15:44 CEST 2019
    Total running time: 0 hours, 0 mins, 29 secs
    

  • Global Moderator

    Thanks for the report - it looks like upstream integrated the a patch that RetroPie applied locally and that's why the build fails. It will be modified in the RetroPie repo in an update.


  • Global Moderator

    Update your RetroPie-Setup script and try again building lr-mame2016, it should work now.



  • @mitu
    Thank you, works!



Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.