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

Possible bug in the OTP version management #91

Open
sylane opened this issue Oct 1, 2024 · 0 comments
Open

Possible bug in the OTP version management #91

sylane opened this issue Oct 1, 2024 · 0 comments

Comments

@sylane
Copy link
Contributor

sylane commented Oct 1, 2024

When having a build section and a specific local version of OTP with a less defined version in the rebar.config, it seems it is confusing the OTP version selection:

rebar.config:

{grisp, [
    {otp, [{version, "26"}]},
    {platform, grisp2},
    {build, [
       {toolchain, [
           {docker, "grisp/grisp2-rtems-toolchain"}
       ]}
    ]},
   ...
]}.
...

Built OTP:

❯ ls -la _grisp/grisp2/otp
total 0
drwxr-xr-x  3 sebastien  staff   96 Aug  1 16:33 .
drwxr-xr-x  3 sebastien  staff   96 Aug  1 16:33 ..
drwxr-xr-x  4 sebastien  staff  128 Aug  1 16:47 26.2.5.2

When building:

===> Compiling grisp_demo
* Resolving OTP version
    26.2.5.3 (requirement was "26")
* Using custom OTP (e2b108e0)
===> Unexpected error: {error,
                                              {rlx_config,
                                               {bad_system_libs,
                                                "/Users/sebastien/.../_grisp/grisp2/otp/26.2.5.3/install/lib"}}}
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