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

    Install MAME from source fails errors near end of compile, no logs...

    Scheduled Pinned Locked Moved Help and Support
    mameretropie-setupcompile failed
    9 Posts 3 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.
    • G
      gomisensei
      last edited by

      RetroPieSetup 4.0.2, pi3. trying a compile outside of setup now, but it will take a while and probably fail again, but at least I'll know where/why. If anyone has had the same problem, let me know if you solved it, and how.

      TYVM IA

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

        @gomisensei which mame?

        1 Reply Last reply Reply Quote 0
        • G
          gomisensei
          last edited by

          lr-mame, the current one. It looks like it worked, in setup but when i run it i get the error (in retroarch)

          RetroArch [ERROR] :: Failed to open libretro core: "/opt/retropie/libretrocores/lr-mame/mamearcade_libretro.so"
          RetroArch [ERROR] :: Error(s): /opt/retropie/libretrocores/lr-mame/mamearcade_libretro.so: file too short
          RetroArch [ERROR] :: Fatal error received in: "load_dynamic()"

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

            Perhaps you ran out of memory/disk space when linking. A log would help - logs are created when using RetroPie-Setup - they are stored in the logs subfolder.

            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

            G 1 Reply Last reply Reply Quote 0
            • G
              gomisensei @BuZz
              last edited by

              OK, it got an error while linking, but still deleted the working directory, and installed the incomplete mamearcade_libretro.so...

              Linking mamearcade_libretro.so...
              g++ -o ../../../../../mamearcade_libretro.so ../../../../gmake/libretro/obj/libretro/src/mame/mame.o ../../../../gmake/libre$
              collect2: error: ld terminated with signal 9 [Killed]
              mamearcade.make:455: recipe for target '../../../../../mamearcade_libretro.so' failed
              make[3]: *** [../../../../../mamearcade_libretro.so] Error 1
              Makefile:373: recipe for target 'mamearcade' failed
              make[2]: *** [mamearcade] Error 2
              mamearcade.make:455: recipe for target '../../../../../mamearcade_libretro.so' failed
              make[3]: *** [../../../../../mamearcade_libretro.so] Error 1
              Makefile:373: recipe for target 'mamearcade' failed
              make[2]: *** [mamearcade] Error 2
              make[2]: Leaving directory '/home/pi/RetroPie-Setup/tmp/build/lr-mame/build/projects/retro/mamearcade/gmake-linux'
              makefile:1192: recipe for target 'linux' failed
              make[1]: *** [linux] Error 2
              make[1]: Leaving directory '/home/pi/RetroPie-Setup/tmp/build/lr-mame'
              Makefile.libretro:195: recipe for target 'build' failed
              

              i recloned the git in my home dir and am re-compiling it now, let's see what it says...

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

                Looks like out of memory - you should reduce GPU mem. It doesn't detect the error since the libretro file exists (it is just incomplete). The retropie module adds additional swap, but perhaps it needs even more.

                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

                G 1 Reply Last reply Reply Quote 0
                • G
                  gomisensei @BuZz
                  last edited by

                  @BuZz said in Install MAME from source fails errors near end of compile, no logs...:

                  Looks like out of memory - you should reduce GPU mem. It doesn't detect the error since the libretro file exists (it is just incomplete). The retropie module adds additional swap, but perhaps it needs even more.

                  bah, i wish it hadn't deleted the object files, so i could just switch up my memory split and re make. Oh, well, back to the endless screens of code for 8 more hours...

                  any tips to speedup compile on a pi3? maybe a -j3 or something...?

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

                    retropie-setup uses -j2 for rpi3. can override with sudo MAKEFLAGS=-j4 ./retropie-setup.sh etc, but more parallelisation = more memory used during compile of course.

                    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
                    • G
                      gomisensei
                      last edited by

                      thx for the help, finally got it compiled, but it mostly just crashes back to retroarch 10 seconds into startup on the games I wanted it for. ahh, well, that's why it's called experimental.

                      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.