problem running llvm-gcc from LLVM 4.2 binary download for Mingw

i just downloaded LLVM 4.2 binaries for Mingw (including the GCC 4.2 front-end), and received the infamous "llvm-gcc: CreateProcess: no such file or directory" error message when trying to compile hello.c from the command-line....

i've already placed to bin directory containing llvm-gcc in my PATH, but still no luck....

Hello, Bob

i just downloaded LLVM 4.2 binaries for Mingw (including the GCC 4.2
front-end), and received the infamous "llvm-gcc: CreateProcess: no such
file or directory" error message when trying to compile hello.c from the
command-line....

Are you running Vista?

hi anton,

no, i'm not.... in fact, i later found a thread about someone else that had a similar problem....

i'm running XP, and have been using mingw for years now....

just checking, the directory structure under libexec looks like: .../libexec/gcc/i386-mingw32/4.2.1

i've seen cases in the past where the compiler and the libexec support stuff is inconsistent; sometimes i've had to simply rename this directories under libexec

thanks in advance....

Anton Korobeynikov wrote:

hi anton,

found the problem -- the example in the getting started guide showed...

% llvm-gcc hello.c -o hello

which, of course, requires the standard 'ld' command -- which, it turns out, was the 'file not found'

but then, this worked....

% llvm-gcc -O3 -emit-llvm hello.c -c -o hello.bc

so i'm fine (for now)....

when i get a little further down the road in investigating llvm for my own needs, i'm sure i'll have further questions.

thanks again.

Anton Korobeynikov wrote:

Hello, Bob

which, of course, requires the standard 'ld' command -- which, it turns out, was the 'file not found'

Ah, surely you will need binutils installed :slight_smile: