Makefile cannot find gcc toolchain after installing

support for the ARM toolchain
Post Reply
Bakers
Posts: 1
Joined: Wed Oct 23, 2024 6:57 pm

Makefile cannot find gcc toolchain after installing

Post by Bakers » Wed Oct 23, 2024 7:13 pm

Hi there,

I just recently got into the beginnings of programming and stuff and have still much to learn.

However I just recently discovered devkitARM for the development of software for ARM based applications -> especially for Nintendo consoles.

I installed devkitARM via the devkitPro graphical installer on my Windows 10 PC.
Also did I install the MinGW x64 for the C and C++ Compiler and set System Variable to its BIN Folder -> C:\MinGW\bin
Now I wanted to try around with this software and cloned a github repository and wanted to build the project with the "make" command.
I switched into the directory, in the project folder where the make file is located and executed the make command.

Now I got this error message:
$ make
Makefile:4: *** "Native GCC is missing. Please install it first. If it's path is custom, set it with export NATIVE_CC=<path to native gcc toolchain>". Stop.
make: *** [Makefile:97: tools/lz] Error 2

This sounds to me that devkit or Msys2 cant find the correct path for the gcc / c compiler from the sytem variables.

I did play around with the command export NATIVE_CC=C:\MinGW\bin which was described above in MSYS2.

However no way of working...

Any idea how can I fix this?


WinterMute
Site Admin
Posts: 1995
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Makefile cannot find gcc toolchain after installing

Post by WinterMute » Tue Nov 26, 2024 5:41 pm

Sorry for the very delayed response. I did look at this weeks ago but got massively distracted on the way back to replying.

Personally I'm not really a massive fan of homebrew projects that build host tools as part of their build. Usually these tools are something that doesn't change that much, if at all, and should really be compiled once & installed. Depending on what it is I might prefer the tool be added to one of our packages & just be available to everyone as part of our tooling.

In the short term you can either install msys gcc and use that - use pacman -S gcc or use an msys path in NATIVE_CC rather than the windows path provided. The colon character is a path separator in msys2 shell and path separators there are forward slashes so C:\MinGW\bin isn't recognised. The msys2 shell equivalent is /c/MinGW/bin which should, in theory, work for you.

Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests