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

    Installation fails (due gcc-6 was unable to locate)

    Scheduled Pinned Locked Moved Help and Support
    busterdebianfailgcc6install
    5 Posts 3 Posters 1.1k 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.
    • P
      posti85
      last edited by posti85

      I'm trying to install RetroPie in a fresh installation of OSMC (Debian Buster) and when I run the setup, it throws an error:

      = = = = = = = = = = = = = = = = = = = = =
      Installing dependencies for 'lr-gpsp' : GBA emu - gpSP port for libretro
      = = = = = = = = = = = = = = = = = = = = =
      
      Did not find needed dependencies: gcc-6. Trying to install them now.
      Reading package lists...
      Building dependency tree...
      Reading state information...
      E: Unable to locate package gcc-6
      Could not install package(s): gcc-6.
      

      and it stops the installation of the rest of the emulators (also, I'm not interested in playing GBA...).

      I really don't know how to install the old gcc-6 in my Debian Buster system. I tried https://unix.stackexchange.com/questions/566500/unable-to-locate-package-gcc-6-on-debian without success. Another alternative for me could be skipping the installation of the GBA emulator, but I don't know how to do it.

      The other alternative seems to be installing the emulators and other packages one by one from the configuration screen... they are too many packages to do it this way...

      Thank you in advance, best regards.

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

        You can temporary remove/rename the $HOME/RetroPie-Setup/scriptmodules/lr-gpsp.sh and re-try the installation.
        What apt repositories does OSMC include ?

        1 Reply Last reply Reply Quote 0
        • P
          posti85
          last edited by

          Wou! Thank you very much @mitu :D that worked! In particular, if it helps for anyone else:

          mv $HOME/RetroPie-Setup/scriptmodules/libretrocores/lr-gpsp.sh $HOME/RetroPie-Setup/scriptmodules/libretrocores/lr-gpsp.sh_SKIP

          And, in fact, reinstalling worked fine. I confirm now all packages are marked as installed (except lr-gpsp, of course, but I think it doesn't matter at all, due having lr-vba-next as alternative).

          These are the repositories includen in OSMC:

          deb http://ftp.debian.org/debian buster main contrib non-free
          deb http://ftp.debian.org/debian/ buster-updates main contrib non-free
          deb http://security.debian.org/ buster/updates main contrib non-free
          deb http://apt.osmc.tv buster main
          

          Anyone who upgrades from stretch to buster won't had this problem, because gcc-6 is available on stretch, and the RetroPie installation was already done. However, installing RetroPie in a fresh buster installation would fail due the problem I've just reported... at least for OSMC dist. Does Raspbian buster (or other debian based dist) may have the same problem?

          Best regards and thank you very much

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

            @posti85 said in Installation fails (due gcc-6 was unable to locate):

            Does Raspbian buster (or other debian based dist) may have the same problem?

            No, Raspbian includes gcc-6 in Buster (though apparently Debian doesn't). You can also use lr-mgba as GBA emulator.

            1 Reply Last reply Reply Quote 0
            • 2Play2
              2Play @posti85
              last edited by 2Play

              @posti85
              the workaround is to check you gcc version on your setup for example mine is 9.3
              in CLi type
              gcc --version

              then in the scriptmodule as @mitu advised initially find the 2 entries pointing gcc-6 lines 20 and 32 (im having 4.7.2 rpie setup script) and in my case i added gcc-9 fo example
              save, start or restart rpi setup and should compile ok
              BUT again as @mitu
              i d recommend lr-mgba which is better for gba

              Your friend,
              2Play!

              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.