This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

On setting up linux VS code showing error in running command " make gcc gcc-multilib g++-multilib libsdl2-dev"

when I am trying to setup linux with this link  https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrf/gs_installing.html#install-the-toolchain    

On typing this command in terminal  "make gcc gcc-multilib g++-multilib libsdl2-dev"   ,    I get an error of "make: *** No rule to make target 'gcc'. Stop."

                                                                     

Please suggest me the correct way to do 

  • Hello Sachinrawat,

    At the command line are you able to run `aptitude`, and are you familiar with this Debian type package manager? You can use it to check whether you have the Debian package `gcc-multilib` installed. If this package is not installed, that may be causing this build error.

    - Ted

  • I tried to run 'aptitude' but terminal generates error and suggest me to download aptitude by command ,than I follow the step to downloaded the 'aptitude'. I am not very much familiar with Debian type package manager .

    I tried to installed gcc-multilib with command "sudo apt-get install -y gcc-multilib" and system says it already Installed to latest version. 

                                                 

    After all this updated process when I again type the  command "make gcc gcc-multilib g++-multilib libsdl2-dev" It again showing same error 

                                                        

    help me with the same 

  • Hi Sachinrawat,

    Thank you for checking that package gcc-multilib is installed.  My apologies, on review I see your command is a direct call to `gcc`.  What I needed to do is take a step back and ask, what are trying to compile when you enter "make gcc gcc-multilib g++-multilib libsdl2-dev" at the terminal?

    Are there instructions guiding you to issue this command?  The command does not make sense to me, because both `make` and `gcc` are programmers' tools (compile and software project related tools).  The remaining arguments in your command are libraries and header file collection, in this case in the form of Debian packages.  And it looks like at least one of those library .deb packages is installed and at latest version.

    I think before anyone can answer your question here, we need to better understand your specific goal.  You mention "On setting up Linux".  That's very vague.  You already have a largely installed Linux system, given that you can execute "sudo apt-get install -y gcc-multilib" and see the sensible response your host returns.

    Kindly share the URL or document name, if there is one, that's telling you to run this gcc command.

    - Ted

  • Hi Sachin

    I believe your issue here is that the command you try to copy is a multi-line command, where you install these programs. "\" makes the command continue on the next line.

    Try to run the whole command as referenced in the documentation you link to in your post:

    sudo apt install --no-install-recommends git cmake ninja-build gperf \
      ccache dfu-util device-tree-compiler wget \
      python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file \
      make gcc gcc-multilib g++-multilib libsdl2-dev

    Does this fix your issue?

    Regards,
    Sigurd Hellesvik

  • Yeah firing whole command together solved my issue , Thank you for your help and time

Related