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

Unable to install Erlang following the wxwidgets 3.1.6 update #248

Closed
gcauchon opened this issue Apr 26, 2022 · 4 comments
Closed

Unable to install Erlang following the wxwidgets 3.1.6 update #248

gcauchon opened this issue Apr 26, 2022 · 4 comments

Comments

@gcauchon
Copy link

gcauchon commented Apr 26, 2022

Steps

I just tried to install the latest version (ie 24.3.3) on my Macbook after doing Homebrew updates. I’ve been using my laptop for Elixir development for quite some time with many previous versions without problems, but I am unable to install new version anymore with the following error:

Extracting source code
Building Erlang/OTP 24.3.3 (asdf_24.3.3), please wait...
APPLICATIONS DISABLED (See: /Users/gcauchon/.asdf/plugins/erlang/kerl-home/builds/asdf_24.3.3/otp_build_24.3.3.log)

[…]

Build failed.
1 warning generated.
1 warning generated.
1 warning generated.
1 warning generated.
1 warning generated.
1 warning generated.
5 warnings generated.
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2

Please see /Users/gcauchon/.asdf/plugins/erlang/kerl-home/builds/asdf_24.3.3/otp_build_24.3.3.log for full details.

Here is what I found in the log:

<scratch space>:105:6: note: expanded from here
 GCC warning "wxSTC_INDIC0_MASK is deprecated. Style byte indicators are no longer used."
     ^
gen/wxe_wrapper_5.cpp:2165:29: error: taking the address of a temporary object of type 'wxBitmap' [-Waddress-of-temporary]
  const wxBitmap * Result = &This->GetBitmap();
                            ^~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
make[3]: *** [aarch64-apple-darwin21.4.0/wxe_wrapper_5.o] Error 1
make[3]: *** Waiting for unfinished jobs....
1 warning generated.
1 warning generated.
1 warning generated.
1 warning generated.
1 warning generated.
1 warning generated.
1 warning generated.
1 warning generated.
5 warnings generated.
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2

Workaround

I found this related issue erlang/otp#5893 in the OTP repository, applied the fix locally and was able to install Erlang again!

Fix

From what I was able to understand from the install script, there isn’t a way for us to fix the plugin without it being merged to upstream in the OTP maint-24 branch with a new version being released?

@gcauchon gcauchon changed the title Unable to install Erlang following the wxWidgets 3.1.6 update Unable to install Erlang following the wxwidgets 3.1.6 update Apr 26, 2022
@hoyon
Copy link

hoyon commented Apr 29, 2022

Getting the same issue. I got it to build by uninstalling the wxmac brew package but would be good to have a proper fix.

I guess the easiest thing to do would be to wait for OTP to release a new 24.x version which includes this patch.

@sukinoverse
Copy link

Confirmed that brew uninstall wxwidgets can be a temporary solution for now, but will trade off with observer or UI related feature.

@hoyon
Copy link

hoyon commented May 3, 2022

OTP 24.3.4 has been released and everything now builds successfully with wxwidgets installed.

@gcauchon
Copy link
Author

gcauchon commented May 6, 2022

Erlang 24.3.4 was released with the mandatory fix!

❯ asdf install erlang 24.3.4
asdf_24.3.4 is not a kerl-managed Erlang/OTP installation
No build named asdf_24.3.4
Downloading 24.3.4 to /Users/gcauchon/.asdf/downloads/erlang/24.3.4...
[…]
Extracting source code
Building Erlang/OTP 24.3.4 (asdf_24.3.4), please wait...
[…]
Erlang/OTP 24.3.4 (asdf_24.3.4) has been successfully built
Cleaning up compilation products for
Cleaned up compilation products for  under /Users/foo/.asdf/plugins/erlang/kerl-home/builds

@gcauchon gcauchon closed this as completed May 6, 2022
hugobarauna added a commit to hugobarauna/beta_curriculum that referenced this issue Jul 11, 2022
Installing Erlang 24.3 may present issues when installing on newer versions of Mac OS (asdf-vm/asdf-erlang#248).  But this was fixed in newer Erlang versions (asdf-vm/asdf-erlang#248 (comment)).
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

3 participants