[erlang-bugs] OTP 18.2 HiPE fix on FreeBSD 10.2

Kenji Rikitake kenji@REDACTED
Fri Dec 18 04:57:18 CET 2015


Kawano-san: very much appreciated.

I've tested with --enable-hipe --enable-fp-exceptions --enable-native-libs
and so far the BEAM with HiPE seems to be working.

I have to check out the following issues:
* Is the sigaction() handling really OK on FreeBSD?
* Is the dlsym() handling really OK on FreeBSD?
Maybe I need more input from FreeBSD people.

For those who want to test a tentative Port, check here:
https://github.com/jj1bdx/erlang-freebsd-port/tree/18.2-20151218
though I'm sure Jimmy Olgeni, the maintainer of FreeBSD Erlang Ports,
will override mine in a short period.

Regards,
Kenji Rikitake


On Thu, Dec 17, 2015 at 10:52 PM, Tatsuya Kawano <tatsuya@REDACTED>
wrote:

> Hi Kenji,
>
> On Thu, Dec 17, 2015, at 08:12 PM CST, Kenji Rikitake wrote:
> >> The following includes a quick workaround and I need FreeBSD people
> >> to further test the HiPE functionalities. (Any good test cases?)
> ...
> > I mixed up patches for 18.2 and master branches. Here's the fixed one
> for 18.2:
> >
> > https://github.com/erlang/otp/pull/926
>
> Thank you for the patch. It worked like a charm; I was able to build OTP
> 18.2 on FreeBSD 10.2 with HiPE enabled.
>
> So far, I have only tested it against boundary bear
> <https://github.com/boundary/bear>, which has HiPE enabled by default.
> It passed all eunit cases.
>
> --------------------------------------------------
> /home/tatsuya% freebsd-version
> 10.2-RELEASE-p8
>
> /home/tatsuya% cat .kerlrc
> KERL_CONFIGURE_OPTIONS="--enable-hipe --enable-smp-support
> --enable-threads --enable-kernel-poll"
>
> /home/tatsuya% kerl build git https://github.com/jj1bdx/otp.git \
>     jj1bdx-18.2-freebsd-hipe-fix-2 18.2_hipe_pr926
> Checking Erlang/OTP git repository from
> https://github.com/jj1bdx/otp.git...
> Building Erlang/OTP 18.2_hipe_pr926 from git, please wait...
> Erlang/OTP 18.2_hipe_pr926 from git has been successfully built
>
> /home/tatsuya% kerl install 18.2_hipe_pr926 ~/erlang/18.2_hipe_pr926
> Installing Erlang/OTP git (18.2_hipe_pr926) in
> /home/tatsuya/erlang/18.2_hipe_pr926...
> You can activate this installation running the following command:
> . /home/tatsuya/erlang/18.2_hipe_pr926/activate
> Later on, you can leave the installation typing:
> kerl_deactivate
>
> /home/tatsuya% . /home/tatsuya/erlang/18.2_hipe_pr926/activate
> /home/tatsuya% erl
> Erlang/OTP 18 [erts-7.2] [source-e616e04] [64-bit] [smp:8:8]
> [async-threads:10] [hipe] [kernel-poll:false]
>
> Eshell V7.2  (abort with ^G)
> 1>
> User switch command
>  --> q
>
> /home/tatsuya% cd workhub/dev/hibari/hibari/lib/bear/
> /home/tatsuya/workhub/dev/hibari/hibari/lib/bear% grep native src/*
> src/bear.erl:-compile([native]).
>
> /home/tatsuya/workhub/dev/hibari/hibari/lib/bear% ./rebar clean compile
> eunit
> ==> bear (clean)
> ==> bear (compile)
> Compiled src/bear.erl
> ==> bear (eunit)
> Compiled test/bear_test.erl
> Compiled src/bear.erl
>   All 47 tests passed.
> Cover analysis:
> /usr/home/tatsuya/workhub/dev/hibari/hibari/lib/bear/.eunit/index.html
> --------------------------------------------------
>
> Thanks,
> Tatsuya Kawano
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20151218/7a3eaf30/attachment.htm>


More information about the erlang-bugs mailing list