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

./bootstrap failed on Erlang 20; because of erlware_commons dependency #1414

Closed
c0b opened this issue Dec 10, 2016 · 5 comments
Closed

./bootstrap failed on Erlang 20; because of erlware_commons dependency #1414

c0b opened this issue Dec 10, 2016 · 5 comments
Labels
dependency issue resides in a rebar3 dependency minor bug bug that does not prevent major features from working

Comments

@c0b
Copy link

c0b commented Dec 10, 2016

trying to build rebar3.3.3 with Erlang20 failed on bootstrap; the DEBUG=1 here seems not making a difference?

root@59e86c41a37b:/usr/src/rebar3-src# HOME=$PWD DEBUG=1 ./bootstrap
/usr/src/rebar3-src/_build/default/lib/erlware_commons/src/ec_semver_parser.erl:15: Warning: export_all flag enabled - all functions will be exported

root@59e86c41a37b:/usr/src/rebar3-src# echo $?
1
root@59e86c41a37b:/usr/src/rebar3-src# HOME=$PWD DEBUG=1 ./bootstrap
Dependency providers already exists
Dependency getopt already exists
Dependency cf already exists
Dependency erlware_commons already exists
/usr/src/rebar3-src/_build/default/lib/erlware_commons/src/ec_semver_parser.erl:15: Warning: export_all flag enabled - all functions will be exported

root@59e86c41a37b:/usr/src/rebar3-src# echo $?
1

with Erlang19 it seems fine. but similar to #1122 it seems erlware_commons lagged behind

@c0b c0b changed the title ./bootstrap failed on Erlang 20 ./bootstrap failed on Erlang 20; because of erlware_commons dependency Dec 10, 2016
c0b added a commit to erlang/docker-erlang-otp that referenced this issue Dec 10, 2016
- add support for observer as the most popular wx GUI based app
  for #28; image size increased ~65MB.

    REPOSITORY    TAG                   IMAGE ID      CREATED             SIZE
    otp           20.0-rc0-cd48b81-wx   f8b3e0fc15dd  49 seconds ago      814.9 MB
    otp           20.0-rc0-cd48b81      dbff7d029fed  About an hour ago   749.9 MB

- also support dirty scheduler for #29;

- temporarily disable compiling rebar3
  because it fail bootstrap on Erlang 20; see more in erlang/rebar3#1414
@talentdeficit
Copy link
Contributor

that export_all warning is probably new. you can test rebar3 on 20 by removing this from the config

@talentdeficit talentdeficit added dependency issue resides in a rebar3 dependency minor bug bug that does not prevent major features from working labels Dec 10, 2016
@c0b
Copy link
Author

c0b commented Jan 7, 2017

how about make another environment variable to let warnings_as_errors depends on? would be easier to debug warnings vs real errors

@talentdeficit
Copy link
Contributor

it'd be pretty easy to add that to the compiler. i won't have time for a while but if you'd like to tackle it this is where you'd want to alter the options passed to the erlang compiler to eliminate warnings_as_errors

i'd be happy to help if you need any guidance

@talentdeficit talentdeficit added beginner enhancement new behaviour or additional functionality and removed beginner enhancement new behaviour or additional functionality labels Jan 8, 2017
@ferd
Copy link
Collaborator

ferd commented Jan 9, 2017

We should probably just fix the dependencies for this case though.

@talentdeficit
Copy link
Contributor

talentdeficit commented Jan 11, 2017

fixed in #1439

further discussion of disabling warnings_as_errors can take place in #1438

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency issue resides in a rebar3 dependency minor bug bug that does not prevent major features from working
Projects
None yet
Development

No branches or pull requests

3 participants