Skip to content

Conversation

@lbakerchef
Copy link

@lbakerchef lbakerchef commented Mar 25, 2022

  • Fixes compilation errors encountered during Chef Server Erlang upgrade.
  • Currently needs squashing.
  • I wouldn't merge this (yet) until the server upgrade is fully working.

Fix the following error encountered while compiling bookshelf (while
upgrading Erlang):

===> Compiling src/bksw_wm_sql_object.erl failed
src/bksw_wm_sql_object.erl:none: error in parse transform 'mixer':
exception error: an error occurred when evaluating an arithmetic expression
  in function  mixer:'-insert_stubs/3-fun-0-'/2 (/Users/lbaker/chef-server/src/bookshelf/_build/default/lib/mixer/src/mixer.erl, line 147)
  in call from lists:foldr/3 (lists.erl, line 1280)
  in call from mixer:insert_stubs/3 (/Users/lbaker/chef-server/src/bookshelf/_build/default/lib/mixer/src/mixer.erl, line 148)
  in call from mixer:parse_transform/2 (/Users/lbaker/chef-server/src/bookshelf/_build/default/lib/mixer/src/mixer.erl, line 40)
  in call from compile:foldl_transform/3 (compile.erl, line 1147)
  in call from compile:fold_comp/4 (compile.erl, line 418)
  in call from compile:internal_comp/5 (compile.erl, line 402)
  in call from compile:'-internal_fun/2-anonymous-0-'/2 (compile.erl, line 229)

Description

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

Fix the following error encountered while compiling bookshelf (while
upgrading Erlang):

===> Compiling src/bksw_wm_sql_object.erl failed
src/bksw_wm_sql_object.erl:none: error in parse transform 'mixer':
exception error: an error occurred when evaluating an arithmetic expression
  in function  mixer:'-insert_stubs/3-fun-0-'/2 (/Users/lbaker/chef-server/src/bookshelf/_build/default/lib/mixer/src/mixer.erl, line 147)
  in call from lists:foldr/3 (lists.erl, line 1280)
  in call from mixer:insert_stubs/3 (/Users/lbaker/chef-server/src/bookshelf/_build/default/lib/mixer/src/mixer.erl, line 148)
  in call from mixer:parse_transform/2 (/Users/lbaker/chef-server/src/bookshelf/_build/default/lib/mixer/src/mixer.erl, line 40)
  in call from compile:foldl_transform/3 (compile.erl, line 1147)
  in call from compile:fold_comp/4 (compile.erl, line 418)
  in call from compile:internal_comp/5 (compile.erl, line 402)
  in call from compile:'-internal_fun/2-anonymous-0-'/2 (compile.erl, line 229)

Signed-off-by: Lincoln Baker <lbaker@chef.io>
@lbakerchef lbakerchef self-assigned this Mar 25, 2022
Signed-off-by: Lincoln Baker <lbaker@chef.io>
Signed-off-by: Lincoln Baker <lbaker@chef.io>
@lbakerchef lbakerchef force-pushed the lbaker/upgrade-erlang-24.2 branch from a2a6a84 to ef43797 Compare March 28, 2022 20:49
@lbakerchef lbakerchef changed the title Upgrade Erlang to 24.3.2 WIP Upgrade Erlang to 24.3.2 Apr 11, 2022
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

Successfully merging this pull request may close these issues.

2 participants