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

    RetroPie on Odroid XU4 fails to build KMSXX

    Scheduled Pinned Locked Moved Help and Support
    odroid xu4
    18 Posts 2 Posters 1.9k 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
      retrodroid @mitu
      last edited by

      @mitu said in RetroPie on Odroid XU4 fails to build KMSXX:

      Re-run the kmsxx/runcommand installation

      how do i Re-run the kmsxx/runcommand installation?

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

        You have not provided any info about your setup so I can't tell what OS and which version you're using, but the meson build tool is too old for the kmsxx utility to be succesfully built.
        Use a more recent OS (Ubuntu 22.04/Debian 12 Bookworm) and this error will go away.

        R 1 Reply Last reply Reply Quote 0
        • R
          retrodroid @mitu
          last edited by

          @mitu

          i am running this image

          ubuntu-18.04.3-4.14-minimal-odroid-xu4-20190910.img

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

            Yes, the Ubuntu release you're using is too old. Try with a more recent release from https://odroid.in/ubuntu_24.04lts/XU3_XU4_MC1_HC1_HC2/.

            R 1 Reply Last reply Reply Quote 1
            • R
              retrodroid @mitu
              last edited by retrodroid

              @mitu i updated to 24.04 and ran the same process to install retropie on the odroid but now it is failing to install emulationstation and some other emulators. I tried using 3 different sd cards.

              does retropie only work with 18.04 on the odroid?

              d60d94c1-d850-4f08-adff-475b0bbc6a95-image.png

              2bfdaa9d-a63c-4e70-8cf7-e8b5237a996e-image.png

              6621f765-e23a-40d2-866a-84ea11849bac-image.png

              fe4377b4-78c5-497d-9255-ba75907b1883-image.png

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

                @retrodroid said in RetroPie on Odroid XU4 fails to build KMSXX:

                I tried using 3 different sd cards.

                I don't think the card is at fault.

                does retropie only work with 18.04 on the odroid?

                It used to, when the page was written/updated. It seems that at least kmsxx is not working anymore, but 18.04 is already out of support from Canonical/downstream and should not be used for new installation. Some emulators will also fail to build due to older versions of libraries/compilers - perhaps is time we deprecate it completely in RetroPie-Setup.

                I don't have an Odroid to test the 24.04 image (regular PC Ubuntu 24.04 dosen't have these issues) - if you can attach the compilation log(s) on pastebin.com we can try and fix it.

                R 1 Reply Last reply Reply Quote 0
                • R
                  retrodroid @mitu
                  last edited by

                  @mitu I tired to use pastebin but it says my log exceeds the limit. i think it is around 7mb.

                  I am trying 22.04 and see if it gives the same error

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

                    Just post the error part, not the entire install log. If you re-run the installation for indidual packages, they'll generate a separate file which you can use.

                    R 1 Reply Last reply Reply Quote 0
                    • R
                      retrodroid @mitu
                      last edited by

                      @mitu this part?

                      collect2: error: ld returned 1 exit status
                      make[2]: *** [es-app/CMakeFiles/emulationstation.dir/build.make:788: emulationstation] Error 1
                      make[2]: Leaving directory '/home/retrodroid/RetroPie-Setup/tmp/build/emulationstation'
                      make[1]: *** [CMakeFiles/Makefile2:248: es-app/CMakeFiles/emulationstation.dir/all] Error 2
                      make[1]: Leaving directory '/home/retrodroid/RetroPie-Setup/tmp/build/emulationstation'
                      make: *** [Makefile:156: all] Error 2
                      Removing additional swap
                      Could not successfully build emulationstation - EmulationStation - Frontend used by RetroPie for launching emulators (/home/retrodroid/RetroPie-Setup/tmp/build/emulationstation/emulationstation not found).
                      /home/retrodroid/RetroPie-Setup
                      Update is available - updating ...

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

                        @retrodroid A bit more would be needed and please use pastebin.com.

                        R 1 Reply Last reply Reply Quote 0
                        • R
                          retrodroid @mitu
                          last edited by

                          @mitu

                          https://pastebin.com/Jb1VwDqx

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

                            Thanks, I see the error is coming from SDL'2 Mali driver:

                            ....
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_bo_get_width'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_bo_set_user_data'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_bo_get_height'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_bo_destroy'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_surface_destroy'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_surface_lock_front_buffer'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/mali-egl/libgbm.so.1: undefined reference to `gbm_device_get_fd'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_bo_write'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_bo_get_stride'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_bo_get_handle'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_device_destroy'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_create_device'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_surface_release_buffer'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_bo_get_user_data'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_device_is_format_supported'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_bo_get_device'
                            /usr/bin/ld: /usr/lib/arm-linux-gnueabihf/libSDL2.so: undefined reference to `gbm_bo_get_format'
                            collect2: error: ld returned 1 exit status
                            ...
                            

                            Sorry, but I don't know how that can be solved.

                            R 1 Reply Last reply Reply Quote 1
                            • R
                              retrodroid @mitu
                              last edited by

                              @mitu why would it work with 18.04? I wonder if I get the same error with 22.04.

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

                                @retrodroid said in RetroPie on Odroid XU4 fails to build KMSXX:

                                why would it work with 18.04? I

                                Maybe because some files/packages are present with certain paths, which are changed (or missing) in subsequent releases ?

                                R 1 Reply Last reply Reply Quote 0
                                • R
                                  retrodroid @mitu
                                  last edited by

                                  @mitu interesting. Thank you for all your help. I will continue to look into this.

                                  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.