[erlang-questions] Build Erlang from source failed with GitHub tag OTP-21.2.5

by by@REDACTED
Fri Feb 15 09:42:04 CET 2019


You are right.

I run the command you mentioned, and the build just works.

Thank you!

> 在 2019年2月15日,15:43,Bryan Paxton <starbelly@REDACTED> 写道:
> 
>  I have run into this issue when I had artifacts left over from previous builds in my repo. Try to executing the following (after ensuring you save any changes you might have made) : 
> 
> git clean -xfd
> 
> 
> Then run ./otp_build autoconf again
> 
> 
> --
> 
> Bryan
> 
> 
> On 2/15/19 1:11 AM, by wrote:
>> Hello list,
>> 
>> I decide to build Erlang from source via Official GitHub repo. [ on macOS 10.12.6 ]
>> 
>> I check out the tag OTP-21.2.5 into local branch, and try to build it from script below:
>> ==== File ====
>> #!/bin/sh
>> 
>> LANG=C ./otp_build autoconf
>> ./configure --prefix=/Users/by/local/pkgs/erlang/erlang21.2.5 \
>> 			--with-ssl=/usr/local/Cellar/openssl/1.0.2q
>> make
>> #make install
>> #make install-docs
>> ==== File ====
>> 
>> The build failed with below error (if more detailed error is needed, I can provide later):
>> === Error Log ====
>> === Entering application stdlib
>> make[3]: Nothing to be done for `opt'.
>> make[3]: Nothing to be done for `opt'.
>> make[3]: Nothing to be done for `opt'.
>> === Leaving application stdlib
>> === Entering application sasl
>> make[3]: Nothing to be done for `opt'.
>> make[3]: Nothing to be done for `opt'.
>> make[3]: Nothing to be done for `opt'.
>> === Leaving application sasl
>> === Entering application kernel
>> make[3]: Nothing to be done for `opt'.
>> make[3]: Nothing to be done for `opt'.
>> make[3]: Nothing to be done for `opt'.
>> === Leaving application kernel
>> === Entering application compiler
>> make[3]: Nothing to be done for `opt'.
>> make[3]: Nothing to be done for `opt'.
>> === Leaving application compiler
>> === Entering application tools
>>  MAKE	opt
>> make[4]: Nothing to be done for `all'.
>>  ERLC	../ebin/xref_parser.beam
>> compile: warnings being treated as errors
>> /Users/by/projects/otp/bootstrap/lib/parsetools/include/yeccpre.hrl:60: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
>> make[3]: *** [../ebin/xref_parser.beam] Error 1
>> make[2]: *** [opt] Error 2
>> make[1]: *** [opt] Error 2
>> make: *** [libs] Error 2
>> === Error Log ====
>> 
>> But when I build from otp_src_21.0.tar.gz, with the same script, it just works.
>> 
>> Can anyone help me on this?
>> 
>> Best Regards,
>> Yao Bao
>> 
>> 
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
>> http://erlang.org/mailman/listinfo/erlang-questions <http://erlang.org/mailman/listinfo/erlang-questions>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190215/92e61320/attachment.htm>


More information about the erlang-questions mailing list