From: "anthonyaykut (Anthony Aykut)" Date: 2022-01-28T04:04:01+00:00 Subject: [ruby-core:107314] [Ruby master Bug#18555] Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000 Issue #18555 has been updated by anthonyaykut (Anthony Aykut). mame (Yusuke Endoh) wrote in #note-3: > Could you try this? https://github.com/ffi/ffi/issues/800#issuecomment-1008308614 Thank you -- so, I tried as suggested: ``` gem uninstall ffi gem install ffi --enable-libffi-alloc ``` The uninstall went OK I think: ``` gem uninstall ffi Ignoring redcarpet-3.5.0 because its extensions are not built. Try: gem pristine redcarpet --version 3.5.0 Ignoring redcarpet-3.4.0 because its extensions are not built. Try: gem pristine redcarpet --version 3.4.0 Ignoring sassc-2.3.0 because its extensions are not built. Try: gem pristine sassc --version 2.3.0 Ignoring sassc-2.0.1 because its extensions are not built. Try: gem pristine sassc --version 2.0.1 You have requested to uninstall the gem: ffi-1.15.5 rb-inotify-0.10.1 depends on ffi (~> 1.0) rb-inotify-0.10.0 depends on ffi (~> 1.0) sassc-2.3.0 depends on ffi (~> 1.9) sassc-2.0.1 depends on ffi (~> 1.9) If you remove this gem, these dependencies will not be met. Continue with Uninstall? [yN] y Successfully uninstalled ffi-1.15.5 ``` But I get an `invalid option: --enable-libffi-alloc` error with ``` gem install ffi --enable-libffi-alloc Ignoring redcarpet-3.5.0 because its extensions are not built. Try: gem pristine redcarpet --version 3.5.0 Ignoring redcarpet-3.4.0 because its extensions are not built. Try: gem pristine redcarpet --version 3.4.0 Ignoring sassc-2.3.0 because its extensions are not built. Try: gem pristine sassc --version 2.3.0 Ignoring sassc-2.0.1 because its extensions are not built. Try: gem pristine sassc --version 2.0.1 ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: --enable-libffi-alloc ``` ---------------------------------------- Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000 https://bugs.ruby-lang.org/issues/18555#change-96212 * Author: anthonyaykut (Anthony Aykut) * Status: Open * Priority: Normal * ruby -v: ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- Hi All, First of all, I am not a programmer or coder so I am having great difficulty solving this puzzle. Since moving to a M1 Mac, I cannot get Slate API Docs (https://github.com/slatedocs/slate) to work, specifically the middleman component. I'm getting a huge error message while trying to run "bundle exec middleman server" and it is telling me to log a ticket and attach logs. So here I am. I hope someone can help. Crash report is attached, together with the lengthy terminal output. Summary is, when I run "bundle exec middleman server" I get the following; full text is in "terminal_output.txt". ``` /Users/aaykut/Documents/apidocs/slate/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/library.rb:275: [BUG] Bus Error at 0x0000000100594000 ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21] -- Crash Report log information -------------------------------------------- See Crash Report log file under the one of following: * ~/Library/Logs/DiagnosticReports * /Library/Logs/DiagnosticReports for more details. Don't forget to include the above Crash Report log file in bug reports. ``` Thanks, Anthony ---Files-------------------------------- terminal_output.txt (89.1 KB) ruby-2022-01-27-202050.ips (13.9 KB) gem_env.txt (1.59 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: