| Author |
Message |
|
| ahmet sevki |
Posted: Sat Sep 10, 2011 3:16 pm |
|
|
|
Joined: 09 May 2011
Posts: 7
Location: USA
|
I have a 64 bit ubuntu 10.10
I tried everything to build erlang with hipe support, to no avail.
I tried using kerl
KERL_CONFIGURE_OPTIONS="--enable-hipe" kerl build R14B03 r14b03_hipe
Then I tried on a source I dowloaded using
./configure --enable-hipe
I even removed the following lines in otp_build script which disables hipe for linux
"
if target_contains linux; then
XX=`echo $* | grep -v able-hipe`
if [ "$*" = "$XX" ]; then
CONFIG_FLAGS="$CONFIG_FLAGS --disable-hipe"
fi
fi
"
then do a ./configure --enable-hipe
I can't get a build with hipe enabled. I don't understand why for linux hipe is disabled in the first place.
The only way I can get a hipe enabled erl is through ubuntu software center, which has a erlang-base-hipe module. However that is an old build R13.
Can anyone help me? I tried but I don't know why simply ./configure --enable-hipe does not work. |
|
|
| Back to top |
|
| ahmet sevki |
Posted: Sat Sep 10, 2011 3:21 pm |
|
|
|
Joined: 09 May 2011
Posts: 7
Location: USA
|
I have a 64 bit ubuntu 10.10
I tried everything to build erlang with hipe support, to no avail.
I tried using kerl
KERL_CONFIGURE_OPTIONS="--enable-hipe" kerl build R14B03 r14b03_hipe
Then I tried on a source I dowloaded using
./configure --enable-hipe
I even removed the following lines in otp_build script which disables
hipe for linux
"
if target_contains linux; then
XX=`echo $* | grep -v able-hipe`
if [ "$*" = "$XX" ]; then
CONFIG_FLAGS="$CONFIG_FLAGS --disable-hipe"
fi
fi
"
then do a ./configure --enable-hipe
I can't get a build with hipe enabled. I don't understand why for
linux hipe is disabled in the first place.
The only way I can get a hipe enabled erl is through ubuntu software
center, which has a erlang-base-hipe module. However that is an old
build R13.
Can anyone help me? I tried but I don't know why simply ./configure
--enable-hipe does not work.
_______________________________________________
erlang-questions mailing list
erlang-questions@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sat Sep 10, 2011 3:50 pm |
|
|
|
Guest
|
Hi Ahmet,
On Saturday, 10. September 2011 11:20:53 Ahmet Nalcacioglu wrote:
> I have a 64 bit ubuntu 10.10
>
> I tried everything to build erlang with hipe support, to no avail.
>
> I tried using kerl
> KERL_CONFIGURE_OPTIONS="--enable-hipe" kerl build R14B03 r14b03_hipe
>
> Then I tried on a source I dowloaded using
> ./configure --enable-hipe
>
> I even removed the following lines in otp_build script which disables
> hipe for linux
> "
>
> if target_contains linux; then
> XX=`echo $* | grep -v able-hipe`
> if [ "$*" = "$XX" ]; then
> CONFIG_FLAGS="$CONFIG_FLAGS --disable-hipe"
> fi
> fi
> "
you are misreading that script.
It adds --disable-hipe, if there's no explicit --enable-hipe or --disable-hipe
given to ./configure
XX is *empty*, if there's something containing "able-hipe" on the commandline,
so it *differs* from "$*", so nothing is added to CONFIG_FLAGS.
If there is nothing on the commandline matching "able-hipe", then XX is the
given commandline, so it matches "$*" and "--disable-hipe" get's added.
> then do a ./configure --enable-hipe
>
> I can't get a build with hipe enabled. I don't understand why for
> linux hipe is disabled in the first place.
>
> The only way I can get a hipe enabled erl is through ubuntu software
> center, which has a erlang-base-hipe module. However that is an old
> build R13.
>
> Can anyone help me? I tried but I don't know why simply ./configure
> --enable-hipe does not work.
What's the exact error you are getting?
It works for me (I use gentoo, FWIW)
Regards,
Michael
_______________________________________________
erlang-questions mailing list
erlang-questions@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
Post received from mailinglist |
|
|
| Back to top |
|
| ahmet sevki |
Posted: Sat Sep 10, 2011 4:16 pm |
|
|
|
Joined: 09 May 2011
Posts: 7
Location: USA
|
I don't get any errors.
I do
./confgure --enable-hipe
make
sudo make install
I don't get any errors. But afterwards when I run erl (and I made sure I am running /usr/local/lib/erlang/bin/erl) I get a vm that does not have hipe.
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:8:8] [rq:8] [async-threads:0] [kernel-poll:false] |
|
|
| Back to top |
|
| Guest |
Posted: Sun Sep 11, 2011 9:28 am |
|
|
|
Guest
|
On 09/10/11 18:20, Ahmet Nalcacioglu wrote:
> I have a 64 bit ubuntu 10.10
>
> I tried everything to build erlang with hipe support, to no avail.
>
> I tried using kerl
> KERL_CONFIGURE_OPTIONS="--enable-hipe" kerl build R14B03 r14b03_hipe
>
> Then I tried on a source I dowloaded using
> ./configure --enable-hipe
>
> I even removed the following lines in otp_build script which disables
> hipe for linux
> "
>
> if target_contains linux; then
> XX=`echo $* | grep -v able-hipe`
> if [ "$*" = "$XX" ]; then
> CONFIG_FLAGS="$CONFIG_FLAGS --disable-hipe"
> fi
> fi
> "
> then do a ./configure --enable-hipe
>
> I can't get a build with hipe enabled. I don't understand why for
> linux hipe is disabled in the first place.
>
> The only way I can get a hipe enabled erl is through ubuntu software
> center, which has a erlang-base-hipe module. However that is an old
> build R13.
>
> Can anyone help me? I tried but I don't know why simply ./configure
> --enable-hipe does not work.
I really do not understand what (you think) the problem is and more
importantly I do not understand what it is you are doing. Are you
compiling from source and if so where did you get this source from.
(My advice: get it from Erlang's github repo.)
On most (all?) Linuxes, hipe is enabled by default, so you should really
not need --enable-hipe. What is the slogan when you start the system?
If it's something like:
Erlang R14B0? [source] [64-bit] ...[hipe] ...
then HiPE is enabled.
Kostis
_______________________________________________
erlang-questions mailing list
erlang-questions@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
Post received from mailinglist |
|
|
| Back to top |
|
| ahmet sevki |
Posted: Sun Sep 11, 2011 2:13 pm |
|
|
|
Joined: 09 May 2011
Posts: 7
Location: USA
|
This is what I get when I start the system:
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:8:8] [rq:8] [async-threads:0] [kernel-poll:false]
1) I got the source from
http://www.erlang.org/download.html
2) I downloaded from git:
https://github.com/erlang/otp/tree/OTP_R14B03 (by not using git command, rather clicking on download link to download the zip file OTP_R14B03)
Interestingly when you do this you don't get the "configure" files, and config.h.in files for two directories (which causes ./cofigure --enable-hipe to fail), so I copied them from the source I downloaded from erlang.org
In both cases I did ./configure --enable-hipe and then a make. I have no idea why I don't get [hipe] when I run erl.
3) I used kerl from:
https://github.com/dreverri/kerl
and ran it like this:
KERL_CONFIGURE_OPTIONS=--enable-hipe kerl build R14B03 r14b03_hipe
I am on a 64bit Ubuntu 10.10 - the Maverick Meerkat -
here is uname -a output:
Linux ahmet-asus 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:44 UTC 2011 x86_64 GNU/Linux
I know, I probably sound like an idiot, but I want to know if anyone has built this on 10.10 64 bit ubuntu.
Could it be a shell thing, a variable that I got? |
|
|
| Back to top |
|
| ahmet sevki |
Posted: Sun Sep 11, 2011 2:16 pm |
|
|
|
Joined: 09 May 2011
Posts: 7
Location: USA
|
AHA moment!!!!!
Finally I found an interesting post before from times of R13B02:
http://comments.gmane.org/gmane.comp.lang.erlang.general/42230
On my machine m4 processor was not installed, and when I piped configure output, I see the following lines:
------------------
checking for m4... no
configure: HiPE disabled as no valid m4 is found in PATH
------------------
So; that was the problem, I did a 'sudo apt-get instal 4" and re-making it, I will tell if it fixes the problem. |
|
|
| Back to top |
|
| ahmet sevki |
Posted: Sun Sep 11, 2011 2:33 pm |
|
|
|
Joined: 09 May 2011
Posts: 7
Location: USA
|
It did work!
The problem was my ubuntu distro did not have m4 installed, and I never noticed the configure error. That previous error was deep in google search pages, so it took me awhile to see it.
I am hoping this post will be a good reference for people who have ubuntu distros. |
|
|
| Back to top |
|
| nanun |
Posted: Wed Feb 15, 2012 7:03 am |
|
|
|
Joined: 15 Feb 2012
Posts: 1
|
I had also same problem.
compiled many times, but I didn't know the reason.
but your posting helped me. Thanks  |
|
|
| Back to top |
|
|
|