Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install fails in megaco_flex_scanner #514

Closed
jdmarshall opened this issue Mar 8, 2024 · 3 comments
Closed

install fails in megaco_flex_scanner #514

jdmarshall opened this issue Mar 8, 2024 · 3 comments

Comments

@jdmarshall
Copy link

jdmarshall commented Mar 8, 2024

The bug

Just running

asdf install erlang latest

And it crashes out at the exact same point every time.

Software versions

A list of software versions where the bug is apparent, as detailed as possible:

  • Operating System: Sonoma 14.2
  • Erlang/OTP: 26.2.3 (or several other previous versions)
  • kerl: 4.0.0
  • other (where applicable): ...

How to replicate

An ordered list of steps to replicate the bug, e.g.:

  1. run asdf install erlang latest

Get:

make[5]: *** [../../ebin/megaco_flex_scanner.beam] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [../../ebin/megaco_flex_scanner_handler.beam] Error 1
make[4]: *** [opt] Error 2
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2

Nothing much more useful found in the log file

Additional context

Verified that I am running terminal in 'Apple' (ARM) mode

@jdmarshall
Copy link
Author

with I get a different but similar error:
export KERL_CONFIGURE_OPTIONS="--without-javac"
...
/bin/sh: line 1: 6166 Segmentation fault: 11 erlc -W -Werror +debug_info -DENABLE_MEGACO_FLEX_SCANNER=true -DMEGACO_REENTRANT_FLEX_SCANNER=true -Dmegaco_parser_inline -pa /Users/jasonmarshall/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.3/otp_src_26.2.3/lib/et/ebin -pa /Users/jasonmarshall/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.3/otp_src_26.2.3/lib/megaco/ebin +'{parse_transform,sys_pre_attributes}' +'{attribute,insert,app_vsn,"megaco-4.5"}' -I../../include -o../../ebin megaco_flex_scanner_handler.erl
make[5]: *** [../../ebin/megaco_flex_scanner_handler.beam] Error 139
make[5]: *** Waiting for unfinished jobs....
/bin/sh: line 1: 6165 Segmentation fault: 11 erlc -W -Werror +debug_info -DENABLE_MEGACO_FLEX_SCANNER=true -DMEGACO_REENTRANT_FLEX_SCANNER=true -Dmegaco_parser_inline -pa /Users/jasonmarshall/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.3/otp_src_26.2.3/lib/et/ebin -pa /Users/jasonmarshall/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.3/otp_src_26.2.3/lib/megaco/ebin +'{parse_transform,sys_pre_attributes}' +'{attribute,insert,app_vsn,"megaco-4.5"}' -I../../include -o../../ebin megaco_flex_scanner.erl
make[5]: *** [../../ebin/megaco_flex_scanner.beam] Error 139
make[4]: *** [opt] Error 2
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2

@jdmarshall
Copy link
Author

jdmarshall commented Mar 8, 2024

Alternately I can get beam signal 10 or error 1 in the same file. For the latter, even following these instructions and using latest only changes the error code to 1 from 139 but still failing in the same file.

https://devheroes.io/en/erlang-elixir-macos-m1/

@jdmarshall
Copy link
Author

Looks as if one of the environment variables left over from removing the old ErlangInstaller caused this error.

Cleaning up .bash_login and starting a new shell cleared the issue. Leaving for posterity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant