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

Cannot compile on Erlang OTP 25 or 26 #9

Open
CaptChrisD opened this issue Jan 14, 2024 · 3 comments
Open

Cannot compile on Erlang OTP 25 or 26 #9

CaptChrisD opened this issue Jan 14, 2024 · 3 comments

Comments

@CaptChrisD
Copy link

===> Uncaught error: badarg
===> Stack trace to the error location:
[{erlang,function_exported,
         ["@@MODULES@@",module_info,0],
         [{error_info,#{module => erl_erts_errors}}]},
 {rebar_paths,'-purge_and_load/2-lc$^8/1-8-',1,
              [{file,"/rebar3/src/rebar_paths.erl"},{line,140}]},
 {rebar_paths,purge_and_load,2,
              [{file,"/rebar3/src/rebar_paths.erl"},{line,139}]},
 {rebar_paths,set_paths,2,[{file,"/rebar3/src/rebar_paths.erl"},{line,22}]},
 {rebar_prv_compile,build_rebar3_apps,3,
                    [{file,"/rebar3/src/rebar_prv_compile.erl"},{line,362}]},
 {rebar_prv_compile,run_compilers,4,
                    [{file,"/rebar3/src/rebar_prv_compile.erl"},{line,191}]},
 {rebar_prv_compile,compile,4,
                    [{file,"/rebar3/src/rebar_prv_compile.erl"},{line,153}]},
 {rebar_prv_compile,compile,3,
                    [{file,"/rebar3/src/rebar_prv_compile.erl"},{line,142}]}]

Looks like this is still running on 15, is there plans to upgrade to a current version?

@tonyrog
Copy link
Owner

tonyrog commented Jan 14, 2024

Looks like a rebar crash?
How do you build it?
try switch back to make instead, rebar is way to complicated...

@CaptChrisD
Copy link
Author

CaptChrisD commented Jan 15, 2024

I am trying to build it as part of an Elixir project -- Specifically Nerves (nerves-project.org). I have used your lib in the past many years ago. The build pipeline actually cross compiles to the target architecture (Rasperry Pi in this case) and I don't think I can override the build step to use Make instead of rebar. I also do development on a Mac so I can't use Make on my dev machine. I may try to spin up a VM to try but that won't solve my long term compilation issues.

It is actually crashing when compiling the uart repo.

===> Compiling goldrush
===> Uncaught error in rebar_core. Run with DIAGNOSTIC=1 to see stacktrace or consult rebar3.crashdump
===> When submitting a bug report, please include the output of `rebar3 report "your command"`
** (Mix) Could not compile dependency :uart, "/Users/chris/.asdf/installs/elixir/1.13.4-otp-25/.mix/rebar3 bare compile --paths /Users/chris/code/bigcove/clients/dockyard/nautic_net_device/_build/nautic_net_rpi3_dev/lib/*/ebin" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile uart", update it with "mix deps.update uart" or clean it with "mix deps.clean uart"
chris@chris-mbp uart % cat rebar3.crashdump
Error: badarg
[{erlang,function_exported,
         ["@@MODULES@@",module_info,0],
         [{error_info,#{module => erl_erts_errors}}]},
 {rebar_paths,'-purge_and_load/2-lc$^8/1-8-',1,
              [{file,"/rebar3/src/rebar_paths.erl"},{line,140}]},
 {rebar_paths,purge_and_load,2,
              [{file,"/rebar3/src/rebar_paths.erl"},{line,139}]},
 {rebar_paths,set_paths,2,[{file,"/rebar3/src/rebar_paths.erl"},{line,22}]},
 {rebar_prv_compile,build_rebar3_apps,3,
                    [{file,"/rebar3/src/rebar_prv_compile.erl"},{line,362}]},
 {rebar_prv_compile,run_compilers,4,
                    [{file,"/rebar3/src/rebar_prv_compile.erl"},{line,191}]},
 {rebar_prv_compile,compile,4,
                    [{file,"/rebar3/src/rebar_prv_compile.erl"},{line,153}]},
 {rebar_prv_compile,compile,3,
                    [{file,"/rebar3/src/rebar_prv_compile.erl"},{line,142}]}]

Running:
Elixir 1.13.4-otp-25
Erlang 25.0.2

Thoughts?

@tonyrog
Copy link
Owner

tonyrog commented Jan 16, 2024

I think I see it. It's the modules directive in the src/uart.app.src file that is not "handle" by rebar3.
fork/clone uart and set {modules, []} / remove it, and see if it works. Maybe some funky rebar.config app.src post script may do the trick? Looking forward to a contribution (that works with my makefiles)

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

2 participants