<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Sorry guys, I have found the cause of the problem after posting the same question in the ReactOS forums:<div><a href="https://reactos.org/forum/viewtopic.php?f=9&t=18137&p=135307">https://reactos.org/forum/viewtopic.php?f=9&t=18137&p=135307</a><br></div><div><br></div><div>The problem was that my instance had only 1GB of RAM, and the ReactOS CMake configure step needs at least 2-4 GB of RAM, so this was causing the SSH connections to crash. (And the initial ReactOS build documentation did not specify that I need at least 2-4 GB of RAM, so I updated it to include this requirement.)</div><div>I have tried it again on another instance with 4GB of RAM and it was executed successfully.</div><div><br></div><div><div>Anyway, I found this behaviour of sshd to be really stupid... :(</div><div>I mean, how can someone expect that the SSH connection was reset because of out-of-memory...</div></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 25, 2018 at 9:40 PM Sori Pos <<a href="mailto:soriposforums@gmail.com">soriposforums@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello everyone!<div><br></div><div>I launched a clean AWS Instance (of type Amazon Linux AMI which is based on RedHat), and I am trying to build ReactOS by using the normal steps described in their documentation.</div><div><br></div><div>I downloaded their "ReactOS Build Environment" and configured it correctly, then I did a "git checkout reactos". Then, after running "<span style="font-family:Menlo;font-size:11px">./RosBE.sh" </span>then I tried to execute ./configure.sh from within the folder <span style="font-family:Menlo;font-size:11px">output-MinGW-i386/reactos</span> </div><div><br></div><div>The last lines of their "configure.sh" are these:</div><div><br></div><div>
<p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">echo Preparing reactos...</p>
<p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">cd reactos</p>
<p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">rm -f CMakeCache.txt host-tools/CMakeCache.txt</p>
<p class="gmail-m_-8114493812589915140gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">cmake -G "$CMAKE_GENERATOR" -DENABLE_CCACHE:BOOL=0 -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-gcc.cmake -DARCH:STRING=$ARCH -DNEW_STYLE_BUILD:BOOL=$USE_NEW_STYLE $EXTRA_ARGS $ROS_CMAKEOPTS "$REACTOS_SOURCE_DIR"</p>
<p class="gmail-m_-8114493812589915140gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">echo Configure script complete! Enter directories and execute appropriate build commands \(ex: ninja, make, makex, etc...\).</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><br></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small"><br></span></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small"><br></span></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small">My console logs display this:</span></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><br></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">bash-4.2$ ./configure.sh<span class="gmail-m_-8114493812589915140gmail-Apple-converted-space"> </span></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">Creating directories in output-MinGW-i386</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">Preparing reactos...</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- The C compiler identification is GNU 4.7.2</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- The CXX compiler identification is GNU 4.7.2</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Check for working C compiler using: Ninja</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Check for working C compiler using: Ninja -- works</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Detecting C compiler ABI info</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Detecting C compiler ABI info - done</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Detecting C compile features</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Detecting C compile features - done</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Check for working CXX compiler using: Ninja</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Check for working CXX compiler using: Ninja -- works</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Detecting CXX compiler ABI info</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Detecting CXX compiler ABI info - done</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Detecting CXX compile features</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Detecting CXX compile features - done</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Found Git: /usr/bin/git (found version "2.14.5")<span class="gmail-m_-8114493812589915140gmail-Apple-converted-space"> </span></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Build Type: Debug</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- The ASM compiler identification is GNU</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Found assembler: /work/rosbe2.1.2/i386/bin/i686-w64-mingw32-gcc</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Selected localization: all</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- fusion has no base address</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- fusion_1_1 has no base address</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- fusion_2_0 has no base address</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- xolehlp has no base address</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font:11px Menlo">-- Configuring done</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">Connection to "<a href="http://xx.yy.zz.tt" target="_blank">xx.yy.zz.tt</a>" closed by remote host.</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><br></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small"><br></span></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small"><br></span></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small"><br></span></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small">So the ReactOS script displays "</span>Preparing reactos...<span style="font-family:Arial,Helvetica,sans-serif;font-size:small">" but then never gets to the point to display "</span>Configure script complete! Enter directories and execute appropriate build commands<span style="font-family:Arial,Helvetica,sans-serif;font-size:small">".</span></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small"><br></span></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small">Basically this means that something happens inside the cmake call, which causes the AWS host to forcible close the connection.</span></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small"><br></span></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small">And, to make things even weirder, I have also discovered this while trying to trace the list of running processes from another ssh connection to the same host: This CMake bug forced the close of BOTH ssh connections (not only the one in which I was running "configure", but also the other ssh connection which was unrelated! )</span><br></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small"><br></span></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal">Do you have any explanation as to what bug inside CMake is causing the amazon node to kill all ssh connections?</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><br></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><br></p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal">Thanks, and sorry for the long rant, I was trying to be as detailed as possible. :)</p><p class="gmail-m_-8114493812589915140gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><br></p></div>
</div>
</blockquote></div>