Yagarto IDE: arm-elf-gcc: _spawnv: No such file or directory

Hello,

A few weeks ago I bought an Olimex AT91SAM7S64 board, I’ve installed the YAGARTO toolchain, IDE etc following J. Lynch tutorial but I’m stuck at compilation time with this error:

make -k all 
.compiling
arm-elf-gcc -I./ -c -fno-common -O0 -g main.c
arm-elf-gcc: _spawnv: No such file or directory
make: *** [main.o] Erreur 1
...

I have downloaded the latest version from their website & I configured everything but can’t find the solution.

I have reinstalled many times trying different paths, I also checked the PATH environment variable… nothing.

With the command line (cmd.exe) I can get make working from any directories, the same goes for arm-elf-gcc :

C:\Documents and Settings\Julien>arm-elf-gcc
arm-elf-gcc: no input files

C:\Documents and Settings\Julien>make
make: *** Pas de cibles spÚcifiÚes et aucun makefile n'a ÚtÚ trouvÚ. ArrÛt.

For the moment I’m using a demo version of IAR workbench & everything is fine but I would like to use the Open Source tools if possible.

Also I’m using Windows XP.

Any help much appreciated thanks.

Julien

Hello Julien,

I do not know from where you have downloaded the

YAGARTO toolchain. Perhaps from the Olimex CD.

Take a look here:

http://www.yagarto.de/howto/yagarto1/index.html

Here you will find an example for the sam7s256. Try to compile

this with the tutorial.

Best regards,

Michael

Hello,

Thanks for your reply.

J. Lynch makes you download the latest version of Yagarto from the yagarto website in his tutorial. I have not used the Olimex version.

Following the instructions in the link you gave:

Test your installation

Now we want to make a short test if the compiler is available. Therefore open a command prompt and type:

C:>arm-elf-gcc --version

so

C:\Documents and Settings\Julien\Mes documents\Programmation\test>arm-elf-gcc --version
arm-elf-gcc (GCC) 4.1.1
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Finally we want to test the compiler again. Use your favorite editor and create a file called main.c with the following content:

int main (void)

{

return(0);

}

When you have saved this file, type the following command:

arm-elf-gcc main.c

C:\Documents and Settings\Julien\Mes documents\Programmation\test>arm-elf-gcc main.c
arm-elf-gcc: _spawnv: No such file or directory

So… any idea ?

Julien

Hi Julien,

please can you check if you have other compiler in your

path, before the yagarto tools. Perhaps move the yagarto bin

entry in front of your path.

Regards,

Michael

Hello,

This is my lines for the Yagarto tools:

C:\Logiciels\arm\yagarto\bin;

C:\Logiciels\arm\openocd-2007re141\bin;

C:\Logiciels\arm\openocd-2007re141\utils\bin;

C:\Logiciels\arm\yagarto-tools-20070303\bin;

C:\Logiciels\GnuWin32\bin;

I’ve moved it at the right beginning. I’ve also suppressed (temporarily) these lines:

c:\gccfd\cygwin\bin;

c:\gccfd\cygwin\usr\local\bin;

c:\gccfd\gnuarm\bin;

which correspond to nothing on my computer

and

%HTC_PIC%\BIN;

which is my Hi-Tech compiler.

I believe the path to be right, could that be a misconfiguration of the compiler ? I mean project > properties.

I’m using the default configuration. (As it is after the installation of Yagarto)

The weirdest thing is that it seems only arm-elf-gcc is bugging !

Assembling works for example.

make -k all 
.assembling
arm-elf-as -ahls -mapcs-32 -o crt.o crt.s > crt.lst
.compiling
arm-elf-gcc -I./ -c -fno-common -O0 -g main.c
arm-elf-gcc: _spawnv: No such file or directory
make: *** [main.o] Error 1

May be I can try changing this executable ?

Thanks for your help,

Julien.

Hi Julien,

in the moment I have no idea what the problem is.

Perhaps you have a second PC where you can test it too?

It looks that there is a wrong command in your path.

Please call:

make --version

What do you get?

Best regards,

Michael

Hello,

I agree it’s completely confusing :frowning:

C:\Documents and Settings\Julien>make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
Ceci est un logiciel libre ; voir le source pour les conditions de copie.
Il n'y a PAS de garantie ; tant pour une utilisation COMMERCIALE que pour
REPONDRE A UN BESOIN PARTICULIER.

Ce logiciel est construit pour i386-pc-mingw32

I’ll try on another computer tomorrow, and if it works I’ll just copy the whole folder over my dev laptop && export the windows reg keys.

Thanks for your help,

Julien.

Well it worked on my second computer =/

I thought it would be java, so I installed the latest runtime but nothing changed on my laptop… I uninstalled some other compilers but still the same problem.

There should be no problem to have multiple eclipse IDE on the same computer, there have not been any problems before Yagarto.

Ah well, I’ll try to get a working toolchain under linux, I already have one for the PXA270. Anybody tried the AT91SAM7 under linux ?

And again thanks for your attention,

Julien