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

Tatsuya Kawano tatsuya@REDACTED
Thu Dec 17 15:05:09 CET 2015


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



More information about the erlang-bugs mailing list