Build otp_src_R16B02-basho5 on Heroku

Corentin Jechoux corentin.jechoux.pro at gmail.com
Thu Feb 5 01:59:20 EST 2015


Thank you Christopher for your fast answer. However, I did not mentionned
that I was using "cedar-14" stack. With an ephemeral file system : the file
system enable writes operations, but wrtten files are not saved when a dyno
restart [1]. Moreover, I can write file, because the "make" command did not
fail at the 1st compilation, but it fails, each time, with the same file.

cd lib && \
          ERL_TOP=/app/otp_src_R16B02-basho5
PATH=/app/otp_src_R16B02-basho5/bootstrap/bin:"${PATH}" \
                make opt SECONDARY_BOOTSTRAP=true
make[1]: Entering directory `/app/otp_src_R16B02-basho5/lib'
make[2]: Entering directory `/app/otp_src_R16B02-basho5/lib/hipe'
Makefile:71: warning: overriding commands for target `clean'
/app/otp_src_R16B02-basho5/make/otp_subdir.mk:28: warning: ignoring old
commands for target `clean'
=== Entering application hipe
make[3]: Entering directory `/app/otp_src_R16B02-basho5/lib/hipe/rtl'
(cd ../main && make hipe.hrl)
make[4]: Entering directory `/app/otp_src_R16B02-basho5/lib/hipe/main'
sed -e "s;%VSN%;3.10.2.1;" ../../hipe/main/hipe.hrl.src >
../../hipe/main/hipe.hrl
make[4]: Leaving directory `/app/otp_src_R16B02-basho5/lib/hipe/main'
erlc -W  +debug_info +inline +warn_unused_import +warn_exported_vars
-o../ebin hipe_rtl.erl
/app/otp_src_R16B02-basho5/lib/hipe/rtl/../ebin/hipe_rtl.bea#: error
writing file
make[3]: *** [../ebin/hipe_rtl.beam] Error 1
make[3]: Leaving directory `/app/otp_src_R16B02-basho5/lib/hipe/rtl'
make[2]: *** [opt] Error 2
make[2]: Leaving directory `/app/otp_src_R16B02-basho5/lib/hipe'
make[1]: *** [opt] Error 2
make[1]: Leaving directory `/app/otp_src_R16B02-basho5/lib'
make: *** [secondary_bootstrap_build] Error 2

Regards

Corentin

[1] https://devcenter.heroku.com/articles/dynos#ephemeral-filesystem

2015-02-03 22:30 GMT+01:00 Christopher Meiklejohn <cmeiklejohn at basho.com>:

>
> On Feb 3, 2015, at 7:45 AM, Corentin Jechoux <
> corentin.jechoux.pro at gmail.com> wrote:
>
> Hello,
>
> I try to build Basho's Erlang version on Heroku server.
>
> The commands used are
> ./configure
> make
>
> However I face an issue :
>
> cd lib && \
>           ERL_TOP=/app/otp_src_R16B02-basho5
> PATH=/app/otp_src_R16B02-basho5/bootstrap/bin:"${PATH}" \
>                 make opt SECONDARY_BOOTSTRAP=true
> make[1]: Entering directory `/app/otp_src_R16B02-basho5/lib'
> make[2]: Entering directory `/app/otp_src_R16B02-basho5/lib/hipe'
> Makefile:71: warning: overriding commands for target `clean'
> /app/otp_src_R16B02-basho5/make/otp_subdir.mk:28: warning: ignoring old
> commands for target `clean'
> === Entering application hipe
> make[3]: Entering directory `/app/otp_src_R16B02-basho5/lib/hipe/rtl'
> erlc -W  +debug_info +inline +warn_unused_import +warn_exported_vars
> -o../ebin hipe_rtl.erl
> /app/otp_src_R16B02-basho5/lib/hipe/rtl/../ebin/hipe_rtl.bea#: error
> writing file
> make[3]: *** [../ebin/hipe_rtl.beam] Error 1
> make[3]: Leaving directory `/app/otp_src_R16B02-basho5/lib/hipe/rtl'
> make[2]: *** [opt] Error 2
> make[2]: Leaving directory `/app/otp_src_R16B02-basho5/lib/hipe'
> make[1]: *** [opt] Error 2
> make[1]: Leaving directory `/app/otp_src_R16B02-basho5/lib'
> make: *** [secondary_bootstrap_build] Error 2
>
>
> Heroku’s dyno's provide a read-only filesystem.  There are two locations
> that provide ephemeral storage, specifically documented here [1], where you
> need to compile Erlang.
>
> Thanks,
> - Chris
>
> [1] https://devcenter.heroku.com/articles/read-only-filesystem
>
> Christopher Meiklejohn
> Senior Software Engineer
> Basho Technologies, Inc.
> cmeiklejohn at basho.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150205/cd4b64e2/attachment-0002.html>


More information about the riak-users mailing list