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

    Error compile retroarch

    Scheduled Pinned Locked Moved Help and Support
    retroarchcompile
    9 Posts 2 Posters 939 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.
    • S
      snock
      last edited by

      l updating to 1.8.8 gives me the following error when compiling: I'm on the latest version of retropie, with a 3b + rpi and updated.

      CC deps/miniupnpc/miniwget.c
      CC deps/miniupnpc/miniupnpc.c
      CC deps/miniupnpc/minixml.c
      CC deps/miniupnpc/minisoap.c
      CC record/drivers/record_ffmpeg.c
      CC cores/libretro-ffmpeg/ffmpeg_core.c
      CC cores/libretro-ffmpeg/packet_buffer.c
      CC cores/libretro-ffmpeg/video_buffer.c
      CC libretro-common/rthreads/tpool.c
      CC tasks/task_decompress.c
      CC led/drivers/led_rpi.c
      LD retroarch
      /usr/bin/ld: /usr/local/lib/libavformat.so: undefined reference to `__atomic_fetch_add_8'
      /usr/bin/ld: /usr/local/lib/libavformat.so: undefined reference to `__atomic_fetch_sub_8'
      /usr/bin/ld: /usr/local/lib/libavformat.so: undefined reference to `__atomic_store_8'
      /usr/bin/ld: /usr/local/lib/libavformat.so: undefined reference to `__atomic_load_8'
      collect2: error: ld returned 1 exit status
      make: *** [Makefile:201: retroarch] Error 1
      /home/pi/RetroPie-Setup
      Could not successfully build retroarch - RetroArch - frontend to the libretro emulator cores - required by all lr-* emulators (/home/pi/RetroPie-Setup/tmp/build/retroarch/retroarch not found).
      Errors:
      Could not successfully build retroarch - RetroArch - frontend to the libretro emulator cores - required by all lr-* emulators (/home/pi/RetroPie-Setup/tmp/build/retroarch/retroarch not found).
      
      
      1 Reply Last reply Reply Quote 1
      • mituM
        mitu Global Moderator
        last edited by

        What version of Raspbian are you using ? Which image did you use to install RetroPie ?

        1 Reply Last reply Reply Quote 0
        • S
          snock
          last edited by

          @mitu retropie 4.6.X

          @mitu said in Error compile retroarch:

          What version of Raspbian are you using ? Which image did you use to install RetroPie ?
          @mitu retropie 4.6.X I just saw that 4.7.1 came out in November. I haven't lit the raspberry in a long time

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

            @snock said in Error compile retroarch:

            @mitu retropie 4.6.X

            That's strange, I don't get the same error and nothing similar has been reported. Can you post the entire build log on pastebin.com ?

            S 1 Reply Last reply Reply Quote 0
            • S
              snock @mitu
              last edited by

              @mitu How can I copy the entire record?

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

                Copy it to the ROM folder, then you can open it from your PC over file shares.

                S 1 Reply Last reply Reply Quote 0
                • S
                  snock @mitu
                  last edited by

                  @mitu said in Error compile retroarch:

                  Copy it to the ROM folder, then you can open it from your PC over file shares.

                  Sorry sometimes work doesn't wait. There you have.
                  https://pastebin.com/1JgTUj8u

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

                    The error seems to be related to your locally compiled/installed ffmpeg (/usr/local/lib/libavformat.so). The RetroPie build script will install the necessary packages, including libavformat-dev, so there's no need to install ffmpeg manually.

                    You can use the binary install for RetroArch, installing from source will not give you a newer RetroArch version anyway.

                    S 1 Reply Last reply Reply Quote 2
                    • S
                      snock @mitu
                      last edited by

                      @mitu Compile ffmpeg in due course because attractmode. I have recompiled / updated it adding the parameter --extra-ldflags = "- latomic" .
                      And now if I have been able to compile retroarch, I have even installed version 1.9.0.

                      Everything works great now :)

                      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.