Compile error building tcl8.4.0 using MinGW-gcc, Cygwin 
Author Message
 Compile error building tcl8.4.0 using MinGW-gcc, Cygwin

I get the following error when compiling tcl8.4.0 using MinGW-gcc in Cygwin:

Quote:
> make

...
gcc -c -O  -Wall -Wconversion  -I"c:\tcl8.4.0\generic" -I"." -DHAVE_NO_SEH=
  -D
BUILD_tcl "tclWin32Dll.c" -o tclWin32Dll.o
tclWin32Dll.c: In function `TclpCheckStackSpace':
tclWin32Dll.c:371: warning: implicit declaration of function `alloca'
tclWin32Dll.c: At top level:
tclWin32Dll.c:398: parse error before "_except_checkstackspace_handler"
tclWin32Dll.c:403: warning: return type defaults to `int'
tclWin32Dll.c:41: warning: `ESP' defined but not used
tclWin32Dll.c:42: warning: `EBP' defined but not used
make: *** [tclWin32Dll.o] Error 1

My environment (Windows XP Pro)

Quote:
> pwd

/cygdrive/c/tcl8.4.0/win
Quote:
> uname -a

CYGWIN_NT-5.1 KPFALZER-DT2 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown
Quote:
> which gcc

/cygdrive/c/MinGW/bin/gcc
Quote:
> gcc -v

Reading specs from c:/MinGW/bin/../lib/gcc-lib/mingw32/3.2/specs
Configured with:
../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --en
able
-languages=f77,c++,objc,ada --disable-win32-registry --disable-shared
Thread model: win32
gcc version 3.2 (mingw special 20020817-1)

Any ideas?

thanx in advance?!



Mon, 28 Mar 2005 02:59:55 GMT  
 Compile error building tcl8.4.0 using MinGW-gcc, Cygwin

Quote:

>> make
>...
>gcc -c -O  -Wall -Wconversion  -I"c:\tcl8.4.0\generic" -I"." -DHAVE_NO_SEH=
>  -D
>BUILD_tcl "tclWin32Dll.c" -o tclWin32Dll.o

-DHAVE_NO_SEH should equal 1, not blank.
--

Tomasoft Engineering, Hayward, CA
[species: human; planet: earth,milkyway,alpha sector]


Mon, 28 Mar 2005 03:03:30 GMT  
 Compile error building tcl8.4.0 using MinGW-gcc, Cygwin
Still "no cigar"...
Any other ideas?

thanx in advance.

~/tcl8.4.0/win (13:41)[306]> make
gcc -c -O  -Wall -Wconversion  -I"C:\cygwin\home\karl\tcl8.4.0\generic" -I".
" -D
HAVE_NO_SEH=1 -DSTATIC_BUILD=1   -DBUILD_tcl "tclWin32Dll.c" -o
tclWin32Dll.o
tclWin32Dll.c: In function `TclpCheckStackSpace':
tclWin32Dll.c:371: warning: implicit declaration of function `alloca'
tclWin32Dll.c: At top level:
tclWin32Dll.c:398: parse error before "_except_checkstackspace_handler"
tclWin32Dll.c:403: warning: return type defaults to `int'
tclWin32Dll.c:41: warning: `ESP' defined but not used
tclWin32Dll.c:42: warning: `EBP' defined but not used
make: *** [tclWin32Dll.o] Error 1


Quote:

> >> make
> >...

>gcc -c -O  -Wall -Wconversion  -I"c:\tcl8.4.0\generic" -I"." -DHAVE_NO_SEH=
> >  -D
> >BUILD_tcl "tclWin32Dll.c" -o tclWin32Dll.o

> -DHAVE_NO_SEH should equal 1, not blank.
> --

> Tomasoft Engineering, Hayward, CA
> [species: human; planet: earth,milkyway,alpha sector]



Mon, 28 Mar 2005 04:43:26 GMT  
 Compile error building tcl8.4.0 using MinGW-gcc, Cygwin

Quote:
> I get the following error when compiling tcl8.4.0 using MinGW-gcc in
Cygwin:

> > make
> ...

gcc -c -O  -Wall -Wconversion  -I"c:\tcl8.4.0\generic" -I"." -DHAVE_NO_SEH=

Quote:
>   -D
> BUILD_tcl "tclWin32Dll.c" -o tclWin32Dll.o
> tclWin32Dll.c: In function `TclpCheckStackSpace':
> tclWin32Dll.c:371: warning: implicit declaration of function `alloca'
> tclWin32Dll.c: At top level:
> tclWin32Dll.c:398: parse error before "_except_checkstackspace_handler"
> tclWin32Dll.c:403: warning: return type defaults to `int'
> tclWin32Dll.c:41: warning: `ESP' defined but not used
> tclWin32Dll.c:42: warning: `EBP' defined but not used
> make: *** [tclWin32Dll.o] Error 1

> My environment (Windows XP Pro)
[snip]
> Any ideas?

The lead developer of MinGW posted a message about some patches.  They may
already be in the cvs head.  I believe this was after the 8.4.0 final
release was made public.

When I upgraded to MinGW 2.0x from 1.1 I noticed this problem.  It seems
related to the assembler used in Tcl for DLL tricks.

I built the head over a month ago with msys 1.0.8 and MinGW 1.1, so maybe
you could try that if the patches don't work.

Regards,

George



Mon, 28 Mar 2005 05:46:18 GMT  
 Compile error building tcl8.4.0 using MinGW-gcc, Cygwin

Quote:

> I get the following error when compiling tcl8.4.0 using MinGW-gcc in Cygwin:

Can you try pulling the 8.4 sources out of CVS and using those?  The
cygwin patches from Mumit Kahn were applied post-8.4.0.

--
     Jeff Hobbs                     The Tcl Guy
     Senior Developer               http://www.ActiveState.com/
         Tcl Support and Productivity Solutions



Mon, 28 Mar 2005 11:48:46 GMT  
 Compile error building tcl8.4.0 using MinGW-gcc, Cygwin
Thanx,

That did the trick...

  > mkdir tcl8.4.0_CVS
  > cd tcl8.4.0_CVS


tcl

  > cd tcl/win
  > ./configure
  >  make
  ...
 gcc -O  tclAppInit.o libtcl84.a  \
        tclsh.res.o -o tclsh84.exe -mconsole

Quote:
> tclsh84

% echo {hello world}
"hello world"
% echo $tcl_version
8.4
% exec uname
CYGWIN_NT-5.1


Quote:

> > I get the following error when compiling tcl8.4.0 using MinGW-gcc in
Cygwin:

> Can you try pulling the 8.4 sources out of CVS and using those?  The
> cygwin patches from Mumit Kahn were applied post-8.4.0.

> --
>      Jeff Hobbs                     The Tcl Guy
>      Senior Developer               http://www.ActiveState.com/
>          Tcl Support and Productivity Solutions



Mon, 28 Mar 2005 13:31:44 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Building shared libraries with gcc 3.2 (cygwin or mingw) for Tcl 8.4.1

2. Building sampleextension with gcc (cygwin/mingw) on Windows doesn't work

3. Compiling Tcl/Tk on Windows using MinGW gcc

4. compiling using Gcc/mingw

5. make error: cannot exec gcc (after many compiles) : Win95 : Cygwin of 9/19/2001

6. More support for gcc/egcs (Cygwin/Mingw)

7. compiling bigloo with mingw (not cygwin)

8. Compiling for cygwin NOT mingw

9. Cygwin/Mingw configure script error

10. tcl8.0 fails to compile using unix (see below for error)

11. Can you create .LIB files using gcc/g77 and mingw

12. Compiling Tcl8.4a3 Under CygWin

 

 
Powered by phpBB® Forum Software