Mercury Bugs - mercury
View Issue Details
0000374mercuryBugpublic2015-01-14 15:342015-01-15 14:04
Assigned Tojuliensf 
Platformx86_64-w64-mingw32OSWindowsOS Version7
Product Version 
Target VersionFixed in Version 
Summary0000374: rotd-2015-01-13 fails to install with mingw64
DescriptionBuilding from the source distribution with the mingw-builds x86_64-4.9.2-posix-rseh t_v3-rev1 compiler
aborts during 'make install' when building the optimisation interface for library.m in grade asm_fast.gc.
The abort occurs during expansion of equivalence types. I strongly suspect this is down to C stack
exhaustion but haven't confirmed this yet.
Additional InformationThe same occurs with the mingw-builds x86_4.8.1-posix-seh-rev5 compiler.

32-bit builds of the same rotd using the standard mingw32 compiler are unaffected.
TagsNo tags attached.
Attached Files

2015-01-15 14:04   
Actually, the stack overflow occurs during the conversion of clauses during the initial construction
of the HLDS. The actual problem here is that I forgot to pass --host=x86_64-w64-mingw32 to configure
and so the stack limit on mercury_compile.exe was ridiculously small.

This *is* all documented in README.MinGW, but I think we need a better way of ensuring that *if* we
are using a MinGW64 under msys or cygwin that the host architecture is set correctly. I'll keep this
bug open until I find a better way ...

Issue History
2015-01-14 15:34juliensfNew Issue
2015-01-14 15:34juliensfStatusnew => assigned
2015-01-14 15:34juliensfAssigned To => juliensf
2015-01-15 14:04juliensfNote Added: 0000804