[99s-extend] Cowboy helloworld make fails with missing_beam_file (hipe)

Tristan Sloughter tristan.sloughter at gmail.com
Sat Sep 28 22:43:25 CEST 2013


Yea, since I doubt the OTP team (or anyone) will fix the fact that it
installs a broken hipe we've decided to just warn on broken apps during
the discovery phase. So it'll only fail if the broken app is also
suppose to be part of the release.



Finishing up the relx patch right now.



--
Tristan Sloughter
tristan.sloughter at gmail.com





On Sat, Sep 28, 2013, at 01:41 PM, Matthew Hegarty wrote:

Got it to work.  I apparently had a few versions of hipe in my Erlang
lib dir:

$ /usr/local/lib/erlang/lib $ ll -ld hipe*
drwxr-xr-x  9 root root 4096 Feb 11  2013 hipe-3.10/
drwxr-xr-x  9 root root 4096 Mar  1  2013 hipe-3.10.1/
drwxr-xr-x 10 root root 4096 Jul  2 11:31 hipe-3.10.2/
drwxr-xr-x 10 root root 4096 Sep 21 17:36 hipe-3.10.2.1/

They must have come from previous erlang installations (compilation
from source).  The solution was to remove the older versions and leave
only the latest one.  Maybe relx should be able to handle this?

thanks for the responses

Matt



On 26 September 2013 21:36, Matthew Hegarty <[1]mrhegarty at gmail.com>
wrote:

yes it exists.  I believe hipe is enabled by default when I compile.

however there is no

 /usr/local/lib/erlang/lib/hipe-3.10/ebin/hipe.beam
 /usr/local/lib/erlang/lib/hipe-3.10.1/ebin/hipe.beam

which is what relx is apparently looking for.
Do you know where does relx get these paths from?



On 26 September 2013 20:04, Tristan Sloughter
<[2]tristan.sloughter at gmail.com> wrote:

Did you enable hipe when you compiled? Does
/usr/local/lib/erlang/lib/hipe-3.10.2.1/ebin/hipe.beam exist?

--
Tristan Sloughter
[3]tristan.sloughter at gmail.com



On Thu, Sep 26, 2013, at 12:03 PM, Matthew Hegarty wrote:

hi

I compiled Erlang from source (downloaded from [4]erlang.org)



On 25 September 2013 17:25, Tristan Sloughter
<[5]tristan.sloughter at gmail.com> wrote:

I ran into the same thing. I assume you installed Erlang from the
Erlang

Solutions repo?



Install erlang-hipe package. Or remove

/usr/local/lib/erlang/lib/hipe-3.10.2.1 entirely.



Their packages install a broken hipe app, missing lots of beams, for

some reason. But if you install the hipe package it'll install what is

missing. I told them about this but I haven't heard back.



--

  Tristan Sloughter

  [6]tsloughter at fastmail.fm




On Wed, Sep 25, 2013, at 08:09 AM, Loïc Hoguin wrote:
> Why does it look for hipe at all to begin with?
>
> I'll ping tristan about it.
>
> On 09/22/2013 10:59 PM, Matthew Hegarty wrote:
> > hi
> > Just starting out so I'm trying to run cowboy's helloworld
> > in cowboy/examples/hello_world, running make fails with:
> >
> > ===> Provider (rlx_prv_discover) failed with: {error,
> >
{rlx_app_discovery,
> >
[{missing_beam_file,
> >                                                           hipe,
> >
> > <<"/usr/local/lib/erlang/lib/hipe-3.10/ebin/hipe.beam">>},
> >
{missing_beam_file,
> >                                                           hipe,
> >
> > <<"/usr/local/lib/erlang/lib/hipe-3.10.1/ebin/hipe.beam">>}]}}
> >
> > there is no hipe.beam in
/usr/local/lib/erlang/lib/hipe-3.10.1/ebin/, it
> > is in /usr/local/lib/erlang/lib/hipe-3.10.2.1/ebin/hipe.beam.
> > I've tried passing the correct dir to relx using --lib-dir but I
still
> > get the same error.
> >
> > Any ideas what's going wrong?
> >
> > erl: Erlang R16B02 (erts-5.10.3)
> > relx: 0.0.0+build.275.refca03701
> > rebar: rebar 2.1.0-pre R16B02 20130922_191744 git
2.1.0-pre-46-g78fa8fc
> >
> >
> > On 22 September 2013 21:55, Matthew Hegarty <[7]mrhegarty at gmail.com
> > <mailto:[8]mrhegarty at gmail.com>> wrote:
> >
> >     hi
> >     Just starting out so I've got latest versions of apps.
> >     in cowboy/examples/hello_world, running make fails with:
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Extend mailing list
> > [9]Extend at lists.ninenines.eu
> > [10]http://lists.ninenines.eu:81/listinfo/extend
> >
>
>
> --

> Loïc Hoguin



> Erlang Cowboy

> Nine Nines

> [11]http://ninenines.eu

> _______________________________________________
> Extend mailing list
> [12]Extend at lists.ninenines.eu
> [13]http://lists.ninenines.eu:81/listinfo/extend


--

  Tristan Sloughter

  [14]tristan.sloughter at gmail.com

References

1. mailto:mrhegarty at gmail.com
2. mailto:tristan.sloughter at gmail.com
3. mailto:tristan.sloughter at gmail.com
4. http://erlang.org/
5. mailto:tristan.sloughter at gmail.com
6. mailto:tsloughter at fastmail.fm
7. mailto:mrhegarty at gmail.com
8. mailto:mrhegarty at gmail.com
9. mailto:Extend at lists.ninenines.eu
  10. http://lists.ninenines.eu:81/listinfo/extend
  11. http://ninenines.eu/
  12. mailto:Extend at lists.ninenines.eu
  13. http://lists.ninenines.eu:81/listinfo/extend
  14. mailto:tristan.sloughter at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ninenines.eu/archives/extend/attachments/20130928/41b322fd/attachment.html>


More information about the Extend mailing list