<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#CCCCCC" text="#000000">
<p><font size="+1">Hi Andras,</font></p>
<p><font size="+1">Thanks for your answer ! :)<br>
</font></p>
<p><font size="+1">Sad that your source is a closed source. :(<br>
</font></p>
<p><font size="+1">About your sentence: "forget about AIX", I'm not so sure, since AIX still provides many features that Linux does not provide yet.</font></p>
<p><font size="+1">About the port, yes I've already started to modify the assembly code. Not too difficult with the help of our expert. I guess that I'll have to add the XCOFF at some time and to manage some more stuff specific to AIX, but up to now it was
not so difficult... except that I have NO idea about the amount of work that remains for finalizing the port with ALL required & interesting features (and with good performance).</font></p>
<p><font size="+1">Build is now blocked at: </font><font size="+1"><tt> ERLC ../ebin/hipe_rtl.beam</tt></font><font size="+1"> and I have no idea why it takes so long and how many steps are still required before the build is complete. I should build Erlang
on Linux/x86 in order to see how long it takes.<br>
Blocked command is:<tt> /opt/freeware/src/packages/BUILD/otp_src_19.2/bin/powerpc-ibm-aix6.1/beam.smp -sbtu -A0 -- -root /opt/freeware/src/packages/BUILD/otp_src_19.2/bootstrap -progname erl -- -home / -- -noshell -noinput -mode minimal -boot start_clean -s
erl_compile compile_cmdline -extra -W +debug_info -Werror +inline +warn_unused_import +warn_export_vars -o../ebin hipe_rtl.erl</tt></font><font size="+1"> </font><font size="+1"> No idea about what it does...
</font><font size="+1"><br>
</font></p>
<p><font size="+1">Are there some documents describing the main phases of building Erlang ? what are the main features that must be made available ?<br>
I see that Erlang does some bootstrap ? Is it described in some document ?<br>
</font></p>
<p><font size="+1">About "autoconf", for now, that seems to have worked quite good without modifying this. Unless it has messed up things silently...<br>
I'll have a look at linker flags.</font></p>
<p><font size="+1">My "strategy" was to not look at our old port 15B02 . Rather start with 19.2 directly. However, I'll have a look at our old patches then.</font></p>
<p><font size="+1"><br>
</font></p>
<p><font size="+1">Anyone interested by Erlang on AIX can contact me. I will share my patches with pleasure. It is OpenSource and, once finalized, it will be made available on BullFreeware web-site .</font></p>
<p><font size="+1">Thanks/Regards,<br>
</font></p>
<p><font size="+1">Tony Reix</font></p>
<p><font size="+1"><a class="moz-txt-link-freetext" href="http://bullfreeware.com/toolbox.php">http://bullfreeware.com/toolbox.php</a><br>
</font></p>
<br>
<div class="moz-cite-prefix">Le 13/01/2017 à 17:24, Boroska András a écrit :<br>
</div>
<blockquote cite="mid:CAP=gMb6QGaGpA4p-fHbrB=X7NbS0VncYJM4hv6rnFFzVi2g=Eg@mail.gmail.com" type="cite">
<div dir="ltr">
<div class="gmail_extra">Hi Tony,</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">The OTP team at Ericsson stopped supporting AIX a while back (~10 years ago). The good news is that there was AIX support in the past and we can build on it. Since then both Erlang, AIX and CPUs evolved. I managed to run Erlang 17 on
AIX 7.1 on Power7 and Power8 architectures with minimal sacrifice of features.* 64 bit is supported and worked fine, but naturally required minimal changes in makefiles. </div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">So, it is not hopeless. For start, look into the automake files (Erlang uses autoconf). You will need to modify some linker flags. Get prepared to modify some assembly code too. AIX has its own assembler. My strategy was: start with
R15, fix things, move to R1602 fix things, move to R1603 fix things, move to R17, fix things. In each step applied fixes from the version before.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Erlang 18 brought breaking changes by the new time handling, and I had no time to fix that. I did not try Erlang 19.<br>
</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">My port is sadly closed source currently. I wish IBM or related companies sponsored the OTP team to support AIX. Currently it is much easier to run Linux on Power CPU and forget about AIX. <br>
</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Happy hacking,</div>
<div class="gmail_extra">Andras</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">*Supercarriers and kernel poll was not working. On the other hand binding schedulers to cores did work after minimal changes to source. </div>
<div class="gmail_extra">Getting kernel poll working would be a few days effort probably.</div>
<div class="gmail_extra"><br>
</div>
</div>
</blockquote>
<br>
</body>
</html>