Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: ac506in on July 31, 2006, 04:41:58 pm

Title: eRROR WHILE COMPILING WXWIDGETS
Post by: ac506in on July 31, 2006, 04:41:58 pm
hI ALL

This is first time i am trying to use wxwidgets with c::B.
I am trying to compile wxwidgets and getting following error
D:\wxWidgets-2.6.2\build\msw>mingw32-make -f makefile.gcc  MONOLITHIC=1 SHARED=1
 UNICODE=1 BUILD=release
if not exist gcc_mswudll mkdir gcc_mswudll
Syntax error: end of file unexpected (expecting "then")
mingw32-make: [gcc_mswudll] Error 2 (ignored)
if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll
Syntax error: end of file unexpected (expecting "then")
mingw32-make: *** [..\..\lib\gcc_dll] Error 2


I guess mingw32-make.exe doesnt understand syntax properly. I tried to build it with VC++2005 and it compiled with no errors.

But i need to use C::B , can someone help me so that i can use gcc compiler...

thanks...
Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: thomas on July 31, 2006, 04:42:49 pm
Your make is too old. You need 3.8, none less.

http://prdownloads.sourceforge.net/mingw/mingw32-make-3.80.0-3.tar.gz?download
Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: mandrav on July 31, 2006, 05:14:57 pm
...and do not use MSYS...
Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: sethjackson on July 31, 2006, 11:15:05 pm
...and make sure the caps lock key is off when you type..... ;)
Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: kidmosey on August 01, 2006, 05:14:03 am
...and do not use MSYS...

What's wrong with MSYS?  It works fine for me.
Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: ac506in on August 01, 2006, 06:53:35 am
I am already using make with version 3.80 and what is MSYS????
Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: mandrav on August 01, 2006, 08:46:06 am
...and do not use MSYS...

What's wrong with MSYS?  It works fine for me.


If you run make from within MSYS, it runs it in the "unix-way", i.e. it doesn't use the DOS interpreter. This essentially means that commands like this
Code
if not exist gcc_mswudll mkdir gcc_mswudll
are invalid (the above command is in DOS-style syntax).

In other words, if you open the MSYS window you open a unix-like shell interpreter. The above command would only work under a DOS interpreter.
And, although I haven't used it, I think the same goes for cygwin too...
Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: Ceniza on August 01, 2006, 08:50:18 am
I've always compiled wxWidgets with MSYS with no problems. Don Corleone could just mean "don't use MSYS' make to do it the MinGW way".

Quote from: www.mingw.org
MSYS: A Minimal SYStem to provide POSIX/Bourne configure scripts the ability to execute and create a Makefile used by make.

Basically: a console and a bunch of other utilities to do *nix like things under Windows using MinGW as compiler.
Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: ac506in on August 01, 2006, 08:52:18 am
Any idea what is wrong with makefile.gcc???
Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: mandrav on August 01, 2006, 08:55:23 am
Any idea what is wrong with makefile.gcc???

Nothing 's wrong with it.
Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: Ceniza on August 01, 2006, 09:00:31 am
Did you check the output of make -v tells you it's version 3.80 or bigger?

What's the error this time?
Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: ac506in on August 01, 2006, 09:12:56 am
See following flow:

>mingw32-make -v
GNU Make 3.80
Copyright (C) 2002  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.

>cd c:\wx\build

C:\wx\build>cd msw

C:\wx\build\msw>mingw32-make -f makefile.gcc  MONOLITHIC=1 SHARED=1 UNICODE=1 BU
ILD=release
if not exist gcc_mswudll mkdir gcc_mswudll
Syntax error: end of file unexpected (expecting "then")
mingw32-make: [gcc_mswudll] Error 2 (ignored)
if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll
Syntax error: end of file unexpected (expecting "then")
mingw32-make: *** [..\..\lib\gcc_dll] Error 2


C:\wx\build\msw>









Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: mandrav on August 01, 2006, 10:12:22 am
Please post the output of
Code
echo %PATH%
Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: ac506in on August 01, 2006, 10:25:39 am

C:\wx\build\msw>echo %PATH%
C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\OpenSSH\bin;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Progra
m Files\Microsoft SDK\Bin;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program F
iles\Visual Networks\Dial Analysis\;C:\Program Files\Microsoft Visual Studio 8\V
C\bin;D:\Program Files\CodeBlocks\bin;D:\Program Files\CodeBlocks\mingw32\bin
Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: ac506in on August 01, 2006, 10:53:04 am
any ideas guys???
Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: thomas on August 01, 2006, 11:12:36 am
Nothing obvious from that path. However, you should try
SET PATH=D:\Program Files\CodeBlocks\bin;D:\Program Files\CodeBlocks\mingw32\bin
nevertheless to rule out any doubt.

Building wxWidgets using the correct version of make and using the build instructions found in the WiKi and on the forums works 100% reliably, I just made an ANSI build last evening to test something.
Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: ac506in on August 01, 2006, 11:15:10 am
Got it working , there was path problem
but still not able to compile successfully...following is output:

D:\OpenSource\wx\build\msw>mingw32-make -f makefile.gcc  MONOLITHIC=1 SHARED=1 U
NICODE=1 BUILD=release
gcc -c -o gcc_mswudll\wxregex_regcomp.o  -O2 -mthreads  -DHAVE_W32API_H -I..\..\
include -I..\..\lib\gcc_dll\mswu -D__WXMSW__ -D_UNICODE   -MTgcc_mswudll\wxregex
_regcomp.o -MFgcc_mswudll\wxregex_regcomp.o.d -MD ../../src/regex/regcomp.c
In file included from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../src/regex/regcustom.h:32:19: stdio.h: No such file or directory
../../src/regex/regcustom.h:33:20: stdlib.h: No such file or directory
../../src/regex/regcustom.h:34:19: ctype.h: No such file or directory
In file included from D:/OpenSource/MingW/bin/../lib/gcc/mingw32/3.4.2/include/s
yslimits.h:7,
                 from D:/OpenSource/MingW/bin/../lib/gcc/mingw32/3.4.2/include/l
imits.h:11,
                 from ../../src/regex/regcustom.h:35,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
D:/OpenSource/MingW/bin/../lib/gcc/mingw32/3.4.2/include/limits.h:122:61: no inc
lude path in which to search for limits.h
In file included from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../src/regex/regcustom.h:36:20: string.h: No such file or directory
In file included from ../../include/wx/platform.h:534,
                 from ../../include/wx/defs.h:21,
                 from ../../src/regex/regcustom.h:39,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../include/wx/msw/gccpriv.h:22:24: _mingw.h: No such file or directory
In file included from ../../include/wx/defs.h:503,
                 from ../../src/regex/regcustom.h:39,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../include/wx/debug.h:18:21: assert.h: No such file or directory
In file included from ../../include/wx/debug.h:22,
                 from ../../include/wx/defs.h:503,
                 from ../../src/regex/regcustom.h:39,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../include/wx/wxchar.h:103:27: wchar.h: No such file or directory
../../include/wx/wxchar.h:158:23: tchar.h: No such file or directory
In file included from ../../src/regex/regcustom.h:39,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../include/wx/defs.h:701:27: sys/types.h: No such file or directory
../../src/regex/regcomp.c:68: error: syntax error before "FILE"
../../src/regex/regcomp.c:69: error: syntax error before "FILE"
../../src/regex/regcomp.c:73: error: syntax error before "FILE"
../../src/regex/regcomp.c:74: error: syntax error before "FILE"
../../src/regex/regcomp.c:75: error: syntax error before "FILE"
../../src/regex/regcomp.c:140: error: syntax error before "FILE"
../../src/regex/regcomp.c:141: error: syntax error before "FILE"
../../src/regex/regcomp.c:143: error: syntax error before "FILE"
../../src/regex/regcomp.c:149: error: syntax error before "FILE"
../../src/regex/regcomp.c:158: error: syntax error before "FILE"
../../src/regex/regcomp.c:165: error: syntax error before "FILE"
../../src/regex/regcomp.c: In function `wx_re_comp':
../../src/regex/regcomp.c:295: error: `FILE' undeclared (first use in this funct
ion)
../../src/regex/regcomp.c:295: error: (Each undeclared identifier is reported on
ly once
../../src/regex/regcomp.c:295: error: for each function it appears in.)
../../src/regex/regcomp.c:295: error: `debug' undeclared (first use in this func
tion)
../../src/regex/regcomp.c:295: error: `stdout' undeclared (first use in this fun
ction)
../../src/regex/regcomp.c:295: error: syntax error before ')' token
../../src/regex/regcomp.c: In function `nfatree':
../../src/regex/regcomp.c:1917: error: syntax error before "FILE"
../../src/regex/regcomp.c: In function `nfanode':
../../src/regex/regcomp.c:1937: error: syntax error before "FILE"
../../src/regex/regcomp.c:1945: warning: comparison between pointer and integer
../../src/regex/regcomp.c:1947: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c: In function `dump':
../../src/regex/regcomp.c:2051: error: syntax error before "FILE"
../../src/regex/regcomp.c: In function `dumpst':
../../src/regex/regcomp.c:2095: error: syntax error before "FILE"
../../src/regex/regcomp.c:2099: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c: In function `stdump':
../../src/regex/regcomp.c:2112: error: syntax error before "FILE"
../../src/regex/regcomp.c:2117: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2119: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2121: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2123: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2125: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2127: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2129: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2131: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2133: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2135: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2136: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2139: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2141: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2143: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2145: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2147: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
In file included from ../../src/regex/regcomp.c:2177:
../../src/regex/regc_nfa.c: In function `optimize':
../../src/regex/regc_nfa.c:711: error: syntax error before "FILE"
../../src/regex/regc_nfa.c:713: warning: comparison between pointer and integer
../../src/regex/regc_nfa.c:716: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regc_nfa.c:721: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regc_nfa.c:724: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regc_nfa.c:728: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regc_nfa.c: In function `pullback':
../../src/regex/regc_nfa.c:740: error: syntax error before "FILE"
../../src/regex/regc_nfa.c:761: warning: comparison between pointer and integer
../../src/regex/regc_nfa.c: In function `pushfwd':
../../src/regex/regc_nfa.c:858: error: syntax error before "FILE"
../../src/regex/regc_nfa.c:879: warning: comparison between pointer and integer
../../src/regex/regc_nfa.c: In function `fixempties':
../../src/regex/regc_nfa.c:1040: error: syntax error before "FILE"
../../src/regex/regc_nfa.c:1060: warning: comparison between pointer and integer

../../src/regex/regc_nfa.c: In function `dumpnfa':
../../src/regex/regc_nfa.c:1350: error: syntax error before "FILE"
../../src/regex/regc_nfa.c: In function `dumpcnfa':
../../src/regex/regc_nfa.c:1518: error: syntax error before "FILE"
mingw32-make: *** [gcc_mswudll\wxregex_regcomp.o] Error 1

D:\OpenSource\wx\build\msw>mingw32-make -f makefile.gcc  MONOLITHIC=1 SHARED=1 U
NICODE=1 BUILD=release >a.txt
In file included from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../src/regex/regcustom.h:32:19: stdio.h: No such file or directory
../../src/regex/regcustom.h:33:20: stdlib.h: No such file or directory
../../src/regex/regcustom.h:34:19: ctype.h: No such file or directory
In file included from D:/OpenSource/MingW/bin/../lib/gcc/mingw32/3.4.2/include/s
yslimits.h:7,
                 from D:/OpenSource/MingW/bin/../lib/gcc/mingw32/3.4.2/include/l
imits.h:11,
                 from ../../src/regex/regcustom.h:35,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
D:/OpenSource/MingW/bin/../lib/gcc/mingw32/3.4.2/include/limits.h:122:61: no inc
lude path in which to search for limits.h
In file included from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../src/regex/regcustom.h:36:20: string.h: No such file or directory
In file included from ../../include/wx/platform.h:534,
                 from ../../include/wx/defs.h:21,
                 from ../../src/regex/regcustom.h:39,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../include/wx/msw/gccpriv.h:22:24: _mingw.h: No such file or directory
In file included from ../../include/wx/defs.h:503,
                 from ../../src/regex/regcustom.h:39,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../include/wx/debug.h:18:21: assert.h: No such file or directory
In file included from ../../include/wx/debug.h:22,
                 from ../../include/wx/defs.h:503,
                 from ../../src/regex/regcustom.h:39,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../include/wx/wxchar.h:103:27: wchar.h: No such file or directory
../../include/wx/wxchar.h:158:23: tchar.h: No such file or directory
In file included from ../../src/regex/regcustom.h:39,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
../../include/wx/defs.h:701:27: sys/types.h: No such file or directory
../../src/regex/regcomp.c:68: error: syntax error before "FILE"
../../src/regex/regcomp.c:69: error: syntax error before "FILE"
../../src/regex/regcomp.c:73: error: syntax error before "FILE"
../../src/regex/regcomp.c:74: error: syntax error before "FILE"
../../src/regex/regcomp.c:75: error: syntax error before "FILE"
../../src/regex/regcomp.c:140: error: syntax error before "FILE"
../../src/regex/regcomp.c:141: error: syntax error before "FILE"
../../src/regex/regcomp.c:143: error: syntax error before "FILE"
../../src/regex/regcomp.c:149: error: syntax error before "FILE"
../../src/regex/regcomp.c:158: error: syntax error before "FILE"
../../src/regex/regcomp.c:165: error: syntax error before "FILE"
../../src/regex/regcomp.c: In function `wx_re_comp':
../../src/regex/regcomp.c:295: error: `FILE' undeclared (first use in this funct
ion)
../../src/regex/regcomp.c:295: error: (Each undeclared identifier is reported on
ly once
../../src/regex/regcomp.c:295: error: for each function it appears in.)
../../src/regex/regcomp.c:295: error: `debug' undeclared (first use in this func
tion)
../../src/regex/regcomp.c:295: error: `stdout' undeclared (first use in this fun
ction)
../../src/regex/regcomp.c:295: error: syntax error before ')' token
../../src/regex/regcomp.c: In function `nfatree':
../../src/regex/regcomp.c:1917: error: syntax error before "FILE"
../../src/regex/regcomp.c: In function `nfanode':
../../src/regex/regcomp.c:1937: error: syntax error before "FILE"
../../src/regex/regcomp.c:1945: warning: comparison between pointer and integer
../../src/regex/regcomp.c:1947: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c: In function `dump':
../../src/regex/regcomp.c:2051: error: syntax error before "FILE"
../../src/regex/regcomp.c: In function `dumpst':
../../src/regex/regcomp.c:2095: error: syntax error before "FILE"
../../src/regex/regcomp.c:2099: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c: In function `stdump':
../../src/regex/regcomp.c:2112: error: syntax error before "FILE"
../../src/regex/regcomp.c:2117: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2119: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2121: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2123: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2125: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2127: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2129: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2131: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2133: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2135: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2136: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2139: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2141: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2143: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2145: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regcomp.c:2147: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
In file included from ../../src/regex/regcomp.c:2177:
../../src/regex/regc_nfa.c: In function `optimize':
../../src/regex/regc_nfa.c:711: error: syntax error before "FILE"
../../src/regex/regc_nfa.c:713: warning: comparison between pointer and integer
../../src/regex/regc_nfa.c:716: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regc_nfa.c:721: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regc_nfa.c:724: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regc_nfa.c:728: warning: passing arg 1 of `fprintf' makes pointe
r from integer without a cast
../../src/regex/regc_nfa.c: In function `pullback':
../../src/regex/regc_nfa.c:740: error: syntax error before "FILE"
../../src/regex/regc_nfa.c:761: warning: comparison between pointer and integer
../../src/regex/regc_nfa.c: In function `pushfwd':
../../src/regex/regc_nfa.c:858: error: syntax error before "FILE"
../../src/regex/regc_nfa.c:879: warning: comparison between pointer and integer
../../src/regex/regc_nfa.c: In function `fixempties':
../../src/regex/regc_nfa.c:1040: error: syntax error before "FILE"
../../src/regex/regc_nfa.c:1060: warning: comparison between pointer and integer

../../src/regex/regc_nfa.c: In function `dumpnfa':
../../src/regex/regc_nfa.c:1350: error: syntax error before "FILE"
../../src/regex/regc_nfa.c: In function `dumpcnfa':
../../src/regex/regc_nfa.c:1518: error: syntax error before "FILE"
mingw32-make: *** [gcc_mswudll\wxregex_regcomp.o] Error 1

Title: Re: eRROR WHILE COMPILING WXWIDGETS
Post by: ac506in on August 01, 2006, 12:12:05 pm
Able to compile after installing Code::blocks with mingw32 compiler.