RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    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

    MAMEdev MAME Installation Script Broken

    Scheduled Pinned Locked Moved Help and Support
    mamedev installretropie-setup
    31 Posts 5 Posters 2.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bluestang
      last edited by

      I have tried running the install script for MAMEdev in the experimental packages and it will not compile for me using the "Install From Source" option. I'm getting an error about 14-16 min into the install using the script. See Pastebin for error.

      However, if I install/compile manually using the MAMEdev "Master" git (default) - it compiles/installs just fine but without being included into RetroPie...

      Setting a manual file swap does not help. As per above, it appears to me that the script is the problem...

      Pi Model or other hardware: Pi 4B GB
      Power Supply used: Canakit
      RetroPie Version Used: 4.6.2
      Built From: Clean Raspberry Pi OS 32-bit 4.19.118
      USB Devices connected: Raspberry Pi Keyboard
      Controller used: 8BitDo SN30 Pro+
      Error messages received:
      Verbose log (if relevant):
      Guide used: mame.sh script under folder "emulators"
      File:
      Emulator: mamedev
      Attachment of config files: https://pastebin.com/qcnnpidh
      How to replicate the problem: Run the script

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        It's an upstream issue - was fixed in the MAME repository (see https://mametesters.org/view.php?id=7687).

        B 1 Reply Last reply Reply Quote 0
        • B
          bluestang @mitu
          last edited by

          @mitu Understood, but I don't see the commit under the 222 branch in their Github that fixed the asmjit issue.

          The current script downloads the latest branch which is not the most up to date source...why not just compile from the master branch instead?

          Thanks for the quick response.

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @bluestang
            last edited by

            @bluestang said in MAMEdev MAME Installation Script Broken:

            The current script downloads the latest branch which is not the most up to date source...why not just compile from the master branch instead?

            Because MAME offers tagged releases and they're matched to the corresponding ROM collection version.

            1 Reply Last reply Reply Quote 0
            • dankcushionsD
              dankcushions Global Moderator
              last edited by

              and really, you don't want to be doing the install from source on a pi4 for MAME - it takes ~8 hours to build only the arcade drivers (presumably the default of installing arcade + MESS takes much longer), only to end up with the same binary as you get when installing via binary.

              1 Reply Last reply Reply Quote 0
              • johnodonJ
                johnodon
                last edited by

                Compilation of the lr-mame experimental package is failing for me (x64). Would this be related to the same issue?

                BuZzB 1 Reply Last reply Reply Quote 0
                • BuZzB
                  BuZz administrators @johnodon
                  last edited by

                  @johnodon impossible to say without a log and more info.

                  To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                  1 Reply Last reply Reply Quote 0
                  • johnodonJ
                    johnodon
                    last edited by

                    I've been poking around trying to find the logfile. Any hints? :)

                    BuZzB 1 Reply Last reply Reply Quote 0
                    • johnodonJ
                      johnodon
                      last edited by

                      NM...found it and pasted here: https://pastebin.com/1QzY97Mt

                      Pi Model or other hardware: N/A HP EliteDesk 800
                      Power Supply used: n/a
                      RetroPie Version Used: 4.6.2 - x86 running on Ubuntu 18.04
                      Built From: Debian install instructions
                      USB Devices connected: Keyboard & Mouse
                      Controller used: None
                      Error messages received: makefile:1374: recipe for target 'linux_x64' failed
                      make: *** [linux_x64] Error 2
                      Verbose log (if relevant): https://pastebin.com/1QzY97Mt
                      Guide used: lr-mame in experimental packages
                      File:
                      Emulator: lr-mame
                      Attachment of config files: https://pastebin.com/1QzY97Mt
                      How to replicate the problem: Run the script

                      1 Reply Last reply Reply Quote 0
                      • BuZzB
                        BuZz administrators @johnodon
                        last edited by

                        @johnodon ~/RetroPie-Setup/logs - they are gzip compressed. Can decompress relevant one and put on a pastebin site. Please start a new topic.

                        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                        1 Reply Last reply Reply Quote 0
                        • johnodonJ
                          johnodon
                          last edited by

                          This is the last error I see before the script exited:

                          cc1plus: out of memory allocating 65536 bytes after a total of 166801408 bytes
                          bfm.make:815: recipe for target '../../../../libretro/obj/x64/libretro/src/mame/drivers/bfm_sc4.o' failed
                          make[2]: *** [../../../../libretro/obj/x64/libretro/src/mame/drivers/bfm_sc4.o] Error 1
                          Makefile:133: recipe for target 'bfm' failed
                          make[1]: *** [bfm] Error 2
                          
                          BuZzB 1 Reply Last reply Reply Quote 0
                          • BuZzB
                            BuZz administrators @johnodon
                            last edited by

                            @johnodon you ran out of memory. Increase your system swap maybe or build with

                            sudo MAKEFLAGS=-j1 ~/RetroPie-Setup/retropie_setup.sh

                            Or -j2 maybe. (Number of threads).

                            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                            johnodonJ 1 Reply Last reply Reply Quote 0
                            • johnodonJ
                              johnodon @BuZz
                              last edited by

                              @BuZz said in MAMEdev MAME Installation Script Broken:

                              @johnodon you ran out of memory. Increase your system swap maybe or build with

                              sudo MAKEFLAGS=-j1 ~/RetroPie-Setup/retropie_setup.sh

                              Or -j2 maybe. (Number of threads).

                              I didn't even have a swapfile. :-\

                              Created one and retrying.

                              Thanks @BuZz. Sorry for hijacking.

                              1 Reply Last reply Reply Quote 0
                              • johnodonJ
                                johnodon
                                last edited by

                                Completed successfully.

                                1 Reply Last reply Reply Quote 0
                                • B
                                  bluestang
                                  last edited by

                                  So the Libretro team updated lr-mame to v222 and I tried installing from binary and v220 was installed...and then I compiled from source and it was v222 but it errors out when trying to play a rom.

                                  So what is the binary source for lr-mame?

                                  And the compile time for the latest v222 source was somewhere about 3 hours.

                                  1 Reply Last reply Reply Quote 0
                                  • mituM
                                    mitu Global Moderator
                                    last edited by

                                    @bluestang said in MAMEdev MAME Installation Script Broken:

                                    So what is the binary source for lr-mame?

                                    On the PI systems, probably the source when it was last compiled - 21 May, lr-mame using 0.220 upstream.

                                    And the compile time for the latest v222 source was somewhere about 3 hours.

                                    On a Pi ? I highly doubt it.

                                    B 1 Reply Last reply Reply Quote 0
                                    • B
                                      bluestang @mitu
                                      last edited by bluestang

                                      @mitu said in MAMEdev MAME Installation Script Broken:

                                      @bluestang said in MAMEdev MAME Installation Script Broken:

                                      So what is the binary source for lr-mame?

                                      On the PI systems, probably the source when it was last compiled - 21 May, lr-mame using 0.220 upstream.

                                      And the compile time for the latest v222 source was somewhere about 3 hours.

                                      On a Pi ? I highly doubt it.

                                      My point is something is broken again with the lr-mame because I know that compiling from source for lr-mame and/or mamedev is about 6-8 hrs on a Pi4

                                      mituM 1 Reply Last reply Reply Quote 0
                                      • mituM
                                        mitu Global Moderator @bluestang
                                        last edited by

                                        @bluestang said in MAMEdev MAME Installation Script Broken:

                                        My point is something is broken again with the lr-mame because I know that compiling from source for lr-mame and/or mamedev is about 6-8 hrs on a Pi4

                                        lr-mame should be fine - when did you try to install it from source ?

                                        B 1 Reply Last reply Reply Quote 0
                                        • B
                                          bluestang @mitu
                                          last edited by

                                          @mitu last night - Here is the install log - https://pastebin.com/h8mxUE7n

                                          132/132 projects (line 1942) seems rather low compared to previous compiles I've done in the past.

                                          mituM 1 Reply Last reply Reply Quote 0
                                          • mituM
                                            mitu Global Moderator @bluestang
                                            last edited by

                                            @bluestang I don't see an error in the log, I'm not sure what's the error ?

                                            B 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            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.