[erlang-bugs] Erlang on PowerPC 64 RHEL 4
Mikael Pettersson
mikpe@REDACTED
Sat Aug 9 13:52:12 CEST 2008
philippe vanderstraeten writes:
> Hi,
>
> thanks for your answer. I have uploaded make and configure stdout and
> stderr. URLs are:
> http://pagesperso-orange.fr/punu/erlang/configure.log
> http://pagesperso-orange.fr/punu/erlang/make.log
>
> Thanks for your help.
>
> On Fri, Aug 8, 2008 at 11:10 PM, Mikael Pettersson <mikpe@REDACTED> wrote:
>
> > philippe vanderstraeten writes:
> > > Hello ,
> > >
> > > I wanted to know if Erlang otp_src_R12B-2 is supported on PowerPC 64 and
> > > RHEL 4 (Red Hat Enterprise Linux AS release 4 (Nahant Update 3)).
> > >
> > > I started the install script and I got errors at the end:
> > >
> > >
> > >
> > /home/admin/download/otp_src_R12B-2/erts/start_scripts/start_all_example.rel.src
> > > >
> > >
> > /home/admin/download/otp_src_R12B-2/erts/start_scripts/start_all_example.rel
> > > /usr/bin/install -c -d
> > > /home/admin/download/otp_src_R12B-2/erts/start_scripts/tmp
> > > ( cd /home/admin/download/otp_src_R12B-2/erts/start_scripts/tmp && \
> > > erlc -W -I/home/admin/download/otp_src_R12B-2/lib/kernel/ebin
> > > -I/home/admin/download/otp_src_R12B-2/lib/stdlib/ebin
> > > -I/home/admin/download/otp_src_R12B-2/lib/sasl/ebin -o
> > >
> > /home/admin/download/otp_src_R12B-2/erts/start_scripts/start_clean.script
> > > /home/admin/download/otp_src_R12B-2/erts/start_scripts/start_clean.rel )
> > > /bin/sh: erlc: command not found
> > > make[3]: ***
> > >
> > [/home/admin/download/otp_src_R12B-2/erts/start_scripts/start_clean.script]
> > > Error 127
> > > make[3]: Leaving directory
> > > `/home/admin/download/otp_src_R12B-2/erts/start_scripts'
> > > make[2]: *** [release] Error 2
> > > make[2]: Leaving directory
> > > `/home/admin/download/otp_src_R12B-2/erts/start_scripts'
> > > make[1]: *** [release] Error 2
> > > make[1]: Leaving directory `/home/admin/download/otp_src_R12B-2/erts'
> > > make: *** [install.emulator] Error 2
> >
> > I don't have RHEL4, but otp R12B-3 builds and installs fine on
> > my ppc64 box running YDL6 (similar to FC6 and RHEL5).
> >
> > I suspect either an incorrect ./configure or make command, or some
> > undetected build failure prior to the failure you quoted above.
> > Please show us your entire build log, including your ./configure
> > and make commands. (It's going to be big and may not be suitable
> > for posting to a mailing list. You can just give us a URL to it.)
(please don't top-post)
According to your configure.log you don't have a java compiler and jinterface
is supposed to be disabled:
>configure: WARNING: Could not find any usable java compiler, will skip: jinterface
>...
>*********************************************************************
>********************** APPLICATIONS DISABLED **********************
>*********************************************************************
>
>jinterface : No Java compiler found
This should result in a file lib/jinterface/SKIP containing the text
"No Java compiler found".
But your make command shows it trying to build jinterface anyway,
and failing:
>=== Entering application jinterface
>make[3]: Entering directory `/home/admin/download/otp_src_R12B-2/lib/jinterface/java_src'
>set -e; set -x; \
>case "make" in *clearmake*) tflag="-T";; *) tflag="";; esac; \
>if test -f com/ericsson/otp/erlang/ignore_config_record.inf; then xflag=$tflag; fi; \
>(cd com/ericsson/otp/erlang && make -f Makefile.otp $xflag opt)
>+ case "make" in
>+ tflag=
>+ test -f com/ericsson/otp/erlang/ignore_config_record.inf
>+ xflag=
>+ cd com/ericsson/otp/erlang
>+ make -f Makefile.otp opt
>make[4]: Entering directory `/home/admin/download/otp_src_R12B-2/lib/jinterface/java_src/com/ericsson/otp/erlang'
>if [ ! -d "/home/admin/download/otp_src_R12B-2/lib/jinterface/priv/" ];then mkdir "/home/admin/download/otp_src_R12B-2/lib/jinterface/priv/"; fi
>CLASSPATH=/home/admin/download/otp_src_R12B-2/lib/jinterface/java_src/ -d /home/admin/download/otp_src_R12B-2/lib/jinterface/priv/ OtpAuthException.java
>/bin/sh: -d: command not found
>make[4]: *** [/home/admin/download/otp_src_R12B-2/lib/jinterface/priv/com/ericsson/otp/erlang/OtpAuthException.class] Error 127
>make[4]: Leaving directory `/home/admin/download/otp_src_R12B-2/lib/jinterface/java_src/com/ericsson/otp/erlang'
>make[3]: *** [opt] Error 2
>make[3]: Leaving directory `/home/admin/download/otp_src_R12B-2/lib/jinterface/java_src'
>make[2]: *** [opt] Error 2
>make[2]: Leaving directory `/home/admin/download/otp_src_R12B-2/lib/jinterface'
>make[1]: *** [opt] Error 2
>make[1]: Leaving directory `/home/admin/download/otp_src_R12B-2/lib'
>make: *** [fourth_bootstrap_build] Error 2
At this point the system is incompletely built, so it's no surprise that
the 'make install' doesn't work.
The real problem here is that make shouldn't even have tried to build jinterface.
Can you do the following:
1. rm -rf otp_src_R12B-2
2. tar zxvf otp_src_R12B-2.tar.gz (so we have known good sources)
3. cd otp_src_R12B-2
4. ./configure (show us the exact parameters you gave it, and the output)
5. find . -name SKIP (if configure found no java compiler then it should
disable jinterface, and it does that by creating lib/jinterface/SKIP)
6. make (show us the exact command parameters you gave it, if any, and the output)
If configure still finds no java but make still tries to build jinterface,
then something is very very wrong on your RHEL4 system, and someone with
access to RHEL4 (I don't) should take a closer look at it.
/Mikael
More information about the erlang-bugs
mailing list