#500 MinGW cross compilation broken on Tcl

Next_release
closed-fixed
None
5
2014-09-15
2013-10-05
No

On both 32 and 64 bit MinGW:

Debian packages: mingw-w64 3.0.0-2

/home/manuel/git/openmsx.git/derived/3rdparty/src/tcl8.5.14/win/tclWin32Dll.c:63:3: error: conflicting types for ‘EXCEPTION_REGISTRATION’

/usr/lib/gcc/x86_64-w64-mingw32/4.6/../../../../x86_64-w64-mingw32/include/winnt.h:3554:43: note: previous declaration of ‘EXCEPTION_REGISTRATION’ was here

This flag depends on "SEH support" (probably http://msdn.microsoft.com/en-us/library/windows/desktop/ms680657%28v=vs.85%29.aspx ):

Configure output:
checking for SEH support in compiler... no

this being no causes the error... in configure script itself we see:

if test "$cross_compiling" = yes; then
tcl_cv_seh=no

That sounds a bit wrong... at least it's no longer true with this version of MinGW (previous worked fine).

Discussion

  • Manuel Bilderbeek

    The conclusion: it's a bug in Tcl, which has been fixed already. We could port the patch to the current release to fix this... Patch is here: http://core.tcl.tk/tcl/info/7488de4f4b203a7f

     
  • Manuel Bilderbeek

    This has been worked around as proposed in the last comment (porting back fix from Tcl development tree and include as patch) in commit 17299833621d88aadc51e7616b4908fefa35133b

     
  • Manuel Bilderbeek

    • status: open --> closed-fixed
    • assigned_to: Manuel Bilderbeek
     
  • Manuel Bilderbeek

    Note that 25 August, Tcl 8.5.16 has been released, which includes this fix. So when we upgrade Tcl in 3rdparty, we can remove a large part of the patch.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks