Game Development Community

MinGW make error (or msys)

by Paul Runde · in Torque Game Engine · 06/12/2003 (5:37 pm) · 9 replies

When running
make -f mk/configure.mk OS=WIN32 COMPILER=GCC32 BUILD=DEBUG
I get the following error messages:

/bin/sh.exe: -c: line 1: syntax error near unexpected token '(D'
/bin/sh.exe: -c: line 1: 'echo ifeq (DEBUG, DEBUG) >> mk\conf.mk'
MAKE: *** [save] Error 2

What am I doing wrong?

Thanks

#1
06/12/2003 (5:50 pm)
You want COMPILER=GCC3 or COMPILER=GCC2 not COMPILER=GCC32

that might help...
Nick
#2
06/12/2003 (6:24 pm)
That was a stupid typo in my post.
I used GCC3
#3
06/12/2003 (7:37 pm)
Hmm that works fine for me. Try reinstall msys...?
or get a fresh copy of the .mk files off CVS?
#4
06/12/2003 (11:08 pm)
Are you using the stable 1.1.2 release or the newest HEAD? I don't think the 1.1.2 will make using MingW and GCC3... But it works great with the HEAD branch.
#5
06/13/2003 (10:00 am)
Interesting...
I had what looks to be the other side of the same problem, see thread in this forum.
In my case, when I was trying to Make using the Make that comes with MinGW, Make wouldn't even start unless I changed the line in configure.mk that you're getting errors from to have the parens and commas in the conditional that I see in your error output.

If I added them, the make would go a litle ways and then break anyhow.

My problems were resolved by installing MSYS, and using the Make that comes with that instead of the MinGW-make. So perhaps you are not using the Make you think you are. OTOH I had to *edit* my Makefiles to get them to look like yours. So perhaps you have the wrong version? As I think has been mentioned, be sure to check out HEAD from CVS.

Bet you $20 a clean CVS checkout of HEAD and toolchain install will work.
#6
06/13/2003 (11:24 am)
I finally got the correct version of MSYS (msys-1.08-2002.09.07-1.exe). I already had MinGW-2.0.0-3.exe.
I did a clean CVS checkout of HEAD and that solved my original problem.

Now I get:
$ make
--> Compiling lpng/png.c
make[1]: gcc: Command not found
make[1]: *** [out.GCC3.DEBUG/lpng/png.obj] Error 127
make: *** [default] Error 2

I am using a WinME machine.
#7
06/13/2003 (12:54 pm)
You might looks at the order your path is looking for make : it could be that the make included with the gcc toolchain is getting executed instead of the one in msys, or something like that.
It's definitely that error, and it's documented somewhere on the msys or mingw website, but I can't remember where.
In other words, the wrong make is getting executed as Scott was saying in his post.
#8
06/13/2003 (4:43 pm)
I figured it out.

I simply did not follow instructions when installing MSYS. I used the windows path convention instead of what I was plainly told to do. I used c:\mingw instead of c:/mingw which messed up the fstab file. Once I fixed that the whole thing compiled beautifully.

Thanks for all your responses to a newbie's plight.

Paul
#9
06/13/2003 (4:58 pm)
I forgot to ask:
Has anyone had any luck compiling from an IDE other than MSVC? Such as Dev-C++, Digital Mars, etc...?

Be great to be able to do that.

Thanks.