<div dir="ltr">Kawano-san: very much appreciated.<div><br></div><div>I've tested with --enable-hipe --enable-fp-exceptions --enable-native-libs</div><div>and so far the BEAM with HiPE seems to be working.</div><div><br></div><div>I have to check out the following issues:</div><div>* Is the sigaction() handling really OK on FreeBSD?</div><div>* Is the dlsym() handling really OK on FreeBSD?</div><div>Maybe I need more input from FreeBSD people.</div><div><br></div><div>For those who want to test a tentative Port, check here:</div><div><a href="https://github.com/jj1bdx/erlang-freebsd-port/tree/18.2-20151218">https://github.com/jj1bdx/erlang-freebsd-port/tree/18.2-20151218</a><br></div><div>though I'm sure Jimmy Olgeni, the maintainer of FreeBSD Erlang Ports,</div><div>will override mine in a short period. </div><div><br></div><div>Regards,</div><div>Kenji Rikitake</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 17, 2015 at 10:52 PM, Tatsuya Kawano <span dir="ltr"><<a href="mailto:tatsuya@hibaridb.org" target="_blank">tatsuya@hibaridb.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Kenji,<br>
<br>
On Thu, Dec 17, 2015, at 08:12 PM CST, Kenji Rikitake wrote:<br>
>> The following includes a quick workaround and I need FreeBSD people<br>
>> to further test the HiPE functionalities. (Any good test cases?)<br>
...<br>
> I mixed up patches for 18.2 and master branches. Here's the fixed one for 18.2:<br>
><br>
> <a href="https://github.com/erlang/otp/pull/926" rel="noreferrer" target="_blank">https://github.com/erlang/otp/pull/926</a><br>
<br>
Thank you for the patch. It worked like a charm; I was able to build OTP<br>
18.2 on FreeBSD 10.2 with HiPE enabled.<br>
<br>
So far, I have only tested it against boundary bear<br>
<<a href="https://github.com/boundary/bear" rel="noreferrer" target="_blank">https://github.com/boundary/bear</a>>, which has HiPE enabled by default.<br>
It passed all eunit cases.<br>
<br>
--------------------------------------------------<br>
/home/tatsuya% freebsd-version<br>
10.2-RELEASE-p8<br>
<br>
/home/tatsuya% cat .kerlrc<br>
KERL_CONFIGURE_OPTIONS="--enable-hipe --enable-smp-support<br>
--enable-threads --enable-kernel-poll"<br>
<br>
/home/tatsuya% kerl build git <a href="https://github.com/jj1bdx/otp.git" rel="noreferrer" target="_blank">https://github.com/jj1bdx/otp.git</a> \<br>
    jj1bdx-18.2-freebsd-hipe-fix-2 18.2_hipe_pr926<br>
Checking Erlang/OTP git repository from<br>
<a href="https://github.com/jj1bdx/otp.git." rel="noreferrer" target="_blank">https://github.com/jj1bdx/otp.git.</a>..<br>
Building Erlang/OTP 18.2_hipe_pr926 from git, please wait...<br>
Erlang/OTP 18.2_hipe_pr926 from git has been successfully built<br>
<br>
/home/tatsuya% kerl install 18.2_hipe_pr926 ~/erlang/18.2_hipe_pr926<br>
Installing Erlang/OTP git (18.2_hipe_pr926) in<br>
/home/tatsuya/erlang/18.2_hipe_pr926...<br>
You can activate this installation running the following command:<br>
. /home/tatsuya/erlang/18.2_hipe_pr926/activate<br>
Later on, you can leave the installation typing:<br>
kerl_deactivate<br>
<br>
/home/tatsuya% . /home/tatsuya/erlang/18.2_hipe_pr926/activate<br>
/home/tatsuya% erl<br>
Erlang/OTP 18 [erts-7.2] [source-e616e04] [64-bit] [smp:8:8]<br>
[async-threads:10] [hipe] [kernel-poll:false]<br>
<br>
Eshell V7.2  (abort with ^G)<br>
1><br>
User switch command<br>
 --> q<br>
<br>
/home/tatsuya% cd workhub/dev/hibari/hibari/lib/bear/<br>
/home/tatsuya/workhub/dev/hibari/hibari/lib/bear% grep native src/*<br>
src/bear.erl:-compile([native]).<br>
<br>
/home/tatsuya/workhub/dev/hibari/hibari/lib/bear% ./rebar clean compile<br>
eunit<br>
==> bear (clean)<br>
==> bear (compile)<br>
Compiled src/bear.erl<br>
==> bear (eunit)<br>
Compiled test/bear_test.erl<br>
Compiled src/bear.erl<br>
  All 47 tests passed.<br>
Cover analysis:<br>
/usr/home/tatsuya/workhub/dev/hibari/hibari/lib/bear/.eunit/index.html<br>
--------------------------------------------------<br>
<br>
Thanks,<br>
Tatsuya Kawano<br>
</blockquote></div><br></div>