make: Command not found/Error 127

Discussion in '3DS - Homebrew Development and Emulators' started by SuperScore29, Aug 30, 2015.

  1. SuperScore29
    OP

    SuperScore29 Advanced Member

    Newcomer
    93
    24
    Jan 27, 2015
    The store that sells the Ice Climbers amiibo
    Well, its back again. I've reinstalled devkitPro 2 times, even rebooted my PC. Still getting the same result. I must have bad luck with dkp, everything was compiling before. Would be nice if someone could tell me why this keep occuring. Thanks :(
    [​IMG]
     
    Last edited by SuperScore29, Aug 30, 2015
  2. elhobbs

    elhobbs GBAtemp Advanced Fan

    Member
    812
    300
    Jul 28, 2008
    United States
    You are using the windows cmd prompt. You should be using msys. There is a link under devkitpro on the start menu.

    Alternatively you can add the devkitpro/devkitarm locations to the environment path, but using msys is safest/easiest.

    Edit: and don't put anything you care about in the devkitpro directory. It can be deleted during upgrades.
     
  3. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,749
    9,031
    Oct 27, 2002
    France
    Engine room, learning
    I never launched msys to compile.
    running make from command prompt is perfectly fine.

    he probably miss the environment variable pointing to the folder where make.exe is located? but installing devkitpro should place msys\bin\ in his %path%


    I'm keeping a lot of different version of ppc and arm in devkitpro folder, it never deleted them.
    when you update, it deletes the destination folders for the new version, but not the one you add. (or else, it would delete portlib after every update!)

    /devkitpro/devkitPPC/ <-- will be deleted on next update
    /devkitpro/libctru/ <-- will be deleted
    /devkitpro/portlibs/ <-- never deleted
    /devkitpro/devkitPPC_r27/ <-- never deleted

    so, yes, don't add files you care inside official library folders (like libctru), but you can keep files inside devkitpro's root.
     
  4. MassExplosion213

    MassExplosion213 .

    Member
    1,438
    960
    Feb 15, 2015
    United States
    And I recommend installing GnuMake. devkitPro's make has problems sometimes.
     
  5. elhobbs

    elhobbs GBAtemp Advanced Fan

    Member
    812
    300
    Jul 28, 2008
    United States
    msys was an easier answer - same with the devkitpro folder info. not using the devkitpro directory is safer though. If you uninstall (maybe as a troubleshooting step) then I want to say it will delete the entire devkitpro directory.
     
  6. SuperScore29
    OP

    SuperScore29 Advanced Member

    Newcomer
    93
    24
    Jan 27, 2015
    The store that sells the Ice Climbers amiibo
    Well, I have been using cmd for compiling in the past, and its been working since.
    [​IMG]
    Still not working with msys.

    As for the $path$ and variables:
    [​IMG]
    Everything seems fine to me?

    — Posts automatically merged - Please don't double post! —

    I tried out GNU's Make, same thing. :\
     
  7. MassExplosion213

    MassExplosion213 .

    Member
    1,438
    960
    Feb 15, 2015
    United States
    You did put GNU's make in the path before devkitPro's, right?
     
  8. tj_cool

    tj_cool Site dev

    Supervisor
    9,993
    -1
    Jan 7, 2009
    Belgium
    This planet
    It appears that make runs fine, so it is correctly in your path. But there is a recursive call to make in the Makefile, which is the one that fails.

    Try editing the makefile. Find the line that starts with make and change it with $(MAKE)
    Code:
    @$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
     
    Abcdfv likes this.
  9. Abcdfv

    Abcdfv What comes around goes around.

    Member
    1,458
    592
    Dec 24, 2013
    United States
    Looks like a problem with your makefile.
    Msys is running make and make is reporting it can't find the command make.
     
  10. SuperScore29
    OP

    SuperScore29 Advanced Member

    Newcomer
    93
    24
    Jan 27, 2015
    The store that sells the Ice Climbers amiibo
    [​IMG]
    Edited the makefile, now its doing this.
     
  11. elhobbs

    elhobbs GBAtemp Advanced Fan

    Member
    812
    300
    Jul 28, 2008
    United States
    I see you have palib installed. That had been known to break many a devkitpro/devkitarm installation.
     
  12. SuperScore29
    OP

    SuperScore29 Advanced Member

    Newcomer
    93
    24
    Jan 27, 2015
    The store that sells the Ice Climbers amiibo
    [​IMG]
    Deleted the whole devkitpro folder and all the variables, reinstalled it, blam, working. I guess we can close the thread?