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

    How do you get lr-mess to compile without breaking?

    Scheduled Pinned Locked Moved Help and Support
    lr-messcompile failed
    8 Posts 3 Posters 797 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.
    • R
      ramokromok
      last edited by

      Trying to compile lr-mess from source on RetroPie 4.6 on a 2GB RPi 4 and after a few hours it just stops with errors.

      If it helps I’m using the official power supply, and quitting emulation station before trying.

      Last time it said:
      /mess-libretro.so not found

      I’ve tried about 9 times with no luck. Am I doing something wrong?

      Thank you!!

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

        You should post the error log entirely to see where it stops (use pastebin.com), the installation should be logged in $HOME/logs. My guess is that there's not enough memory for the compilation to complete, but we can check the log to make sure.

        1 Reply Last reply Reply Quote 0
        • R
          ramokromok
          last edited by

          Thank you. I will do that if/when it fails again. 👍

          1 Reply Last reply Reply Quote 0
          • R
            ramokromok
            last edited by

            Here's a Pastebin for a previous attempt.

            https://pastebin.com/U1uTYkX5

            Cheers

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

              Yes, seems like out-of-memory errors are the ones stopping the compilation:

              [...]
              g++: fatal error: Killed signal terminated program cc1plus
              compilation terminated.
              make[2]: *** [frontend.make:1272: ../../../../libretro/obj/libretro/src/frontend/mame/luaengine.o] Error 1
              make[1]: *** [Makefile:88: frontend] Error 2
              make[1]: *** Waiting for unfinished jobs....
              
              1 Reply Last reply Reply Quote 0
              • R
                ramokromok
                last edited by

                Thank you. 👍

                In case anyone finds this in the future, google “increase swap size raspberry pi” - that should do it 🙂

                EldrethorE 1 Reply Last reply Reply Quote 0
                • EldrethorE
                  Eldrethor @ramokromok
                  last edited by

                  @ramokromok Adding to this, with only 2 GB of memory, I had to increase the swap size to 4096 before the build would successfully compile.

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

                    The RetroPie setup script already allocates 4G (see here), but I think the recent changed in upstream MAME have increased the memory needed for a successful compilation.

                    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.