<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div>Hi All.</div><div><br></div><div>Don't spend brain cycles on this, but I want to mention it in passing.</div><div><br></div><div>I am working out integrating Ian's configuration approach into the CMakeVMakerSqueak and ran into this interesting thing.</div><div><br></div><div>Ian's code on my system will detect the SIZEOF_ stuff on my system</div><br><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);"><div><div><br></div><div><div>#define        SIZEOF_INT 4<br></div>#define        SIZEOF_LONG 8<br>#define        SIZEOF_LONG_LONG 8<br>#define        SIZEOF_VOID_P 8</div></div></blockquote> <br>When I go to run the cog, I get this error.<div><br></div><div><br></div><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);"><div><div>mprotect(x,y,PROT_READ | PROT_WRITE | PROT_EXEC): Cannot allocate memory<br>Segmentation fault (core dumped)<br></div></div></blockquote> <br><div><br></div><div>Changing SIZEOF_VOID_P to 4 makes that problem go away and the image launches.</div><div><br></div><div>I am thinking I am going to throw a conditional in the configuration such that if it is a 64 bit system with 32 bit libs, to work around this.</div><div><br></div><div>I mention this in passing in case there is a "magic" <br><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);"><div>#define mprotect_will_just_work 1&nbsp;</div></blockquote> <br>flag or something.</div><div><br></div><div><br></div><div>cordially,</div><div><br></div><div>tty</div><div><br></div><div><br></div><br><br></div></body></html>