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

Bootstrapping problem during build when release apps have includes? #58

Open
oubiwann opened this issue Sep 29, 2020 · 2 comments
Open
Labels
bug Something isn't working
Milestone

Comments

@oubiwann
Copy link
Member

oubiwann commented Sep 29, 2020

When compiling apps in a release, if one or more of those apps has/have include files, the compile process is err'ing out before these are getting linked inside _build; all that's present in the build lib dir is the ebin subdir (no include subdir or sym link to the include dir).

In a regular app build, one sees this in an app's build dir:

$ ls -al _build/default/lib/lfe-otp/
Permissions Size User     Date Changed Name
lrwxr-xr-x    16 oubiwann 29 Sep 12:23 priv -> ../../../../priv
lrwxr-xr-x    19 oubiwann 29 Sep 12:23 include -> ../../../../include
lrwxr-xr-x    15 oubiwann 29 Sep 12:23 src -> ../../../../src
drwxr-xr-x     - oubiwann 29 Sep 12:23 ebin

This is failing for both .hrl and .lfe include files.

May be related to:

@oubiwann oubiwann added the bug Something isn't working label Sep 29, 2020
@oubiwann oubiwann added this to the 0.3.0 milestone Sep 29, 2020
@oubiwann
Copy link
Member Author

I've changed the provider hook from pre to post:

{provider_hooks, [
    {post, [
        {compile, {lfe, compile}}
    ]}
]}.

And now the directories are linked ... but the compile is still failing :-(

@oubiwann
Copy link
Member Author

Work-around in rebar.config:

{lfe_opts, [{i,"_build/default/lib"}, {i, "./apps"}]}.

The fact that this works indicates that the apps pre-compile setup is incomplete in the LFE rebar3 plugin (compile command).

oubiwann added a commit to hexagram30/mush that referenced this issue Sep 30, 2020
@oubiwann oubiwann modified the milestones: 0.3.0, 0.5.0 Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant