Hipe compilation on Linux x86
Mickael Remond
mickael.remond@REDACTED
Mon Sep 17 21:39:52 CEST 2001
Kostis Sagonas (kostis@REDACTED) wrote:
> "Happi" replied to Mickael:
>
> > ----- Original Message -----
> > From: "Mickael Remond" <mickael.remond@REDACTED>
> > > Hello,
> > >
> > > I am trying to compile Hipe on Linux x86.
> > > It seem that the command make hlib need the file:
> > > rtl/hipe_literals.hrl to compile hipe_x86_registers.erl
> > > but the .hrl file does not seem to be in the distribution.
> > > Am I missing something ?
> >
> > The file is created when makeing the emulator.
> > (It contains information about C-datastructures in the runtime system used
> > by native code.)
>
>
> Just in case it was not 100% clear from Happi's reply, the recommended
> way to build a HiPE-enabled Erlang/OTP system is to do:
>
> ./configure --enable-hipe
> ./make
>
> ("make hlib" is a shortcut added just for the convenience of HiPE developers
> to compile only the lib/hipe subdirectory. Unless one decides to modify
> a file in that subdirectory, not recommeded btw, there is no reason to use
> the "make hlib" shortcut).
This is what I managed to figure out by reading the makefiles.
But when I launch those two commands the built fails (last prerelease)
(log abstract as an attachement).
The build is successfull if I launch the following sequence of commands:
./configure
./make
./configure --enable-hipe
./make
Ok. Here is where I get. Now I am trying to figure out how I should use.
Here is what I did:
hipe:c(test, [o2]).
and the result is:
** exited: {{case_clause,undefined},
[{hipe,o1_opts,0},
{hipe,opt_expansions,0},
{hipe,expand_options,1},
{hipe,compile,3},
{hipe,c,3},
{erl_eval,expr,3},
{erl_eval,exprs,4},
{shell,eval_loop,2}]} **
=ERROR REPORT==== 17-Sep-2001::21:35:49 ===
Error in process <0.31.0> with exit value:
{{case_clause,undefined},[{hipe,o1_opts,0},{hipe,opt_expansions,0},{hipe,expand_options,1},{hipe,compile,3},{hipe,c,3},{erl_eval,expr,3},{erl_eval,exprs,4},{shell,eval_loop,2}]}
Does anyone see what I am doing wrong ?
--
Mickaël Rémond
http://www.erlang-fr.org/
-------------- next part --------------
=== Exiting application hipe
make[2]: Leaving directory
`/home/mikl/bin/otp_src_P8A-20010913-SNAPSHOT/lib/hipe'
make[1]: Leaving directory
`/home/mikl/bin/otp_src_P8A-20010913-SNAPSHOT/lib'
make[1]: Entering directory
`/home/mikl/bin/otp_src_P8A-20010913-SNAPSHOT/erts'
make[2]: Entering directory
`/home/mikl/bin/otp_src_P8A-20010913-SNAPSHOT/erts/start_scripts'
sed -e 's;%SYS_VSN%;P8A;' \
-e 's;%ERTS_VSN%;2001.09.13;' \
-e 's;%KERNEL_VSN%;2001.09.13;' \
-e 's;%STDLIB_VSN%;2001.09.13;' \
start_clean.rel.src > start_clean.rel
sed -e 's;%SYS_VSN%;P8A;' \
-e 's;%ERTS_VSN%;2001.09.13;' \
-e 's;%KERNEL_VSN%;2001.09.13;' \
-e 's;%STDLIB_VSN%;2001.09.13;' \
-e 's;%SASL_VSN%;2001.09.13;' \
start_sasl.rel.src > start_sasl.rel
sed -e 's;%SYS_VSN%;P8A;' \
-e 's;%ERTS_VSN%;2001.09.13;' \
-e 's;%KERNEL_VSN%;2001.09.13;' \
-e 's;%STDLIB_VSN%;2001.09.13;' \
-e 's;%SASL_VSN%;2001.09.13;' \
-e 's;%OS_MON_VSN%;2001.09.13;' \
-e 's;%MNESIA_VSN%;2001.09.13;' \
-e 's;%SNMP_VSN%;2001.09.13;' \
-e 's;%INETS_VSN%;2001.09.13;' \
start_all_example.rel.src > start_all_example.rel
erlc -W -pa
/home/mikl/bin/otp_src_P8A-20010913-SNAPSHOT/erts/lib/sasl/ebin
-I../../lib/kernel/ebin -I../../lib/stdlib/ebin -I../../lib/sasl/ebin
start_clean.rel
erlexec: Error 2 executing
'/home/mikl/bin/otp_src_P8A-20010913-SNAPSHOT/bootstrap/../bin/i686-pc-linux-gnu/beam'.
make[2]: *** [start_clean.script] Erreur 1
make[2]: Leaving directory
`/home/mikl/bin/otp_src_P8A-20010913-SNAPSHOT/erts/start_scripts'
make[1]: *** [local_setup] Erreur 2
make[1]: Leaving directory
`/home/mikl/bin/otp_src_P8A-20010913-SNAPSHOT/erts'
make: *** [local_setup] Erreur 2
More information about the erlang-questions
mailing list