Skip to content

Instantly share code, notes, and snippets.

@Taro-Hayashi
Last active May 23, 2022 01:34
Show Gist options
  • Save Taro-Hayashi/cb3bf5fcbdd13c5e02cc76c89f3c2959 to your computer and use it in GitHub Desktop.
Save Taro-Hayashi/cb3bf5fcbdd13c5e02cc76c89f3c2959 to your computer and use it in GitHub Desktop.
error in M1 Mac
hayashi@Mac prk_firmware % rake setup
git submodule update --recursive
bundle exec steep -h || bundle install
Usage: steep [options]
--version
--log-level=LEVEL Specify log level: debug, info, warn, error, fatal
--log-output=PATH Print logs to given path
--verbose Set log level to debug
rake all
ld: library not found for -lcrt0.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
rake aborted!
Command failed with status (1): [cd /Users/hayashi/prk_firmware/lib/picorub...]
/Users/hayashi/prk_firmware/lib/picoruby/mrbgems/mruby-pico-compiler/mrbgem.rake:164:in `block (2 levels) in <top (required)>'
/Users/hayashi/prk_firmware/lib/picoruby/Rakefile:43:in `block in <top (required)>'
Tasks: TOP => build => /Users/hayashi/prk_firmware/lib/picoruby/build/host/lib/libmruby_core.a => /Users/hayashi/prk_firmware/lib/picoruby/build/host/mrbgems/mruby-pico-compiler/src/parse.o => /Users/hayashi/prk_firmware/lib/picoruby/mrbgems/mruby-pico-compiler/src/parse.c => /Users/hayashi/prk_firmware/lib/picoruby/mrbgems/mruby-pico-compiler/include/ptr_size.h => /Users/hayashi/prk_firmware/lib/picoruby/mrbgems/mruby-pico-compiler/lib/ptr_size_generator
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [rake all...]
/Users/hayashi/prk_firmware/Rakefile:91:in `block (2 levels) in <top (required)>'
/Users/hayashi/prk_firmware/Rakefile:90:in `block in <top (required)>'
Tasks: TOP => setup
(See full trace by running task with --trace)
hayashi@Mac prk_firmware % docker build --platform amd64 . -t prk
[+] Building 83.2s (11/11) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ruby:3.0.1-slim 2.3s
=> [auth] library/ruby:pull token for registry-1.docker.io 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 91.68kB 0.1s
=> [1/6] FROM docker.io/library/ruby:3.0.1-slim@sha256:b142cf5af3b16f2f8887c70bc00b48183b8b8ff23795dc617 0.0s
=> CACHED [2/6] RUN apt-get update && apt-get install --no-install-recommends -y cmake gcc-arm-none- 0.0s
=> CACHED [3/6] RUN git clone --recursive https://github.com/raspberrypi/pico-sdk.git 0.0s
=> CACHED [4/6] WORKDIR /prk_firmware 0.0s
=> [5/6] COPY . . 0.1s
=> ERROR [6/6] RUN rake setup 80.7s
------
> [6/6] RUN rake setup:
#11 1.116 git submodule update --recursive
#11 2.980 bundle exec steep -h || bundle install
#11 3.936 bundler: command not found: steep
#11 3.936 Install missing gem executables with `bundle install`
#11 5.450 Warning: the running version of Bundler (2.2.15) is older than the version that created the lockfile (2.2.17). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.2.17`.
#11 11.70 Fetching gem metadata from https://rubygems.org/............
#11 14.36 Fetching rake 13.0.6
#11 14.47 Installing rake 13.0.6
#11 14.65 Fetching concurrent-ruby 1.1.9
#11 14.66 Fetching minitest 5.15.0
#11 14.66 Fetching zeitwerk 2.5.3
#11 14.66 Using bundler 2.2.15
#11 14.67 Fetching ast 2.4.2
#11 14.68 Fetching ffi 1.15.5
#11 14.92 Installing ast 2.4.2
#11 14.96 Installing zeitwerk 2.5.3
#11 14.99 Installing minitest 5.15.0
#11 15.04 Fetching language_server-protocol 3.16.0.3
#11 15.10 Fetching rb-fsevent 0.11.0
#11 15.17 Installing concurrent-ruby 1.1.9
#11 15.18 Installing language_server-protocol 3.16.0.3
#11 15.28 Installing rb-fsevent 0.11.0
#11 15.33 Fetching rufo 0.13.0
#11 15.46 Installing rufo 0.13.0
#11 15.62 Fetching thor 1.2.1
#11 15.74 Installing thor 1.2.1
#11 15.75 Fetching parallel 1.21.0
#11 15.77 Installing ffi 1.15.5 with native extensions
#11 15.89 Installing parallel 1.21.0
#11 15.95 Fetching rainbow 3.1.1
#11 16.03 Installing rainbow 3.1.1
#11 16.15 Fetching rbs 1.7.1
#11 16.20 Fetching unicode-display_width 2.1.0
#11 16.33 Installing unicode-display_width 2.1.0
#11 16.40 Fetching parser 3.1.0.0
#11 16.75 Installing rbs 1.7.1 with native extensions
#11 16.93 Fetching terminal-table 3.0.2
#11 17.01 Installing terminal-table 3.0.2
#11 17.08 Installing parser 3.1.0.0
#11 17.28 Fetching i18n 1.8.11
#11 17.37 Installing i18n 1.8.11
#11 17.46 Fetching tzinfo 2.0.4
#11 17.57 Installing tzinfo 2.0.4
#11 18.12 Fetching activesupport 6.1.4.4
#11 18.42 Installing activesupport 6.1.4.4
#11 19.65 Fetching mrubyc-test 0.7.0.pre.rc1
#11 19.72 Installing mrubyc-test 0.7.0.pre.rc1
#11 40.22 Fetching typeprof 0.20.4
#11 40.30 Installing typeprof 0.20.4
#11 77.77 Fetching rb-inotify 0.10.1
#11 77.83 Installing rb-inotify 0.10.1
#11 77.87 Fetching listen 3.7.0
#11 77.93 Installing listen 3.7.0
#11 77.98 Fetching steep 0.47.0
#11 78.08 Installing steep 0.47.0
#11 78.69 Bundle complete! 5 Gemfile dependencies, 25 gems now installed.
#11 78.69 Use `bundle info [gemname]` to see where a bundled gem is installed.
#11 78.85 rake all
#11 80.63 cd /prk_firmware/lib/picoruby/mrbgems/mruby-pico-compiler/src && /prk_firmware/lib/picoruby/mrbgems/mruby-pico-compiler/lib/lemon -p ./parse.y
#11 80.65 rake aborted!
#11 80.65 Parsing conflict
#11 80.66 /prk_firmware/lib/picoruby/mrbgems/mruby-pico-compiler/mrbgem.rake:196:in `block (3 levels) in <top (required)>'
#11 80.66 /prk_firmware/lib/picoruby/mrbgems/mruby-pico-compiler/mrbgem.rake:193:in `each'
#11 80.66 /prk_firmware/lib/picoruby/mrbgems/mruby-pico-compiler/mrbgem.rake:193:in `block (2 levels) in <top (required)>'
#11 80.66 /prk_firmware/lib/picoruby/Rakefile:43:in `block in <top (required)>'
#11 80.66 /usr/local/bundle/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
#11 80.66 Tasks: TOP => build => /prk_firmware/lib/picoruby/build/host/lib/libmruby_core.a => /prk_firmware/lib/picoruby/build/host/mrbgems/mruby-pico-compiler/src/parse.o => /prk_firmware/lib/picoruby/mrbgems/mruby-pico-compiler/src/parse.c
#11 80.66 (See full trace by running task with --trace)
#11 80.66
#11 80.66 sh: 1: /prk_firmware/lib/picoruby/mrbgems/mruby-pico-compiler/lib/lemon: Exec format error
#11 80.67 rake aborted!
#11 80.67 Command failed with status (1): [rake all...]
#11 80.67 /prk_firmware/Rakefile:91:in `block (2 levels) in <top (required)>'
#11 80.67 /prk_firmware/Rakefile:90:in `block in <top (required)>'
#11 80.67 Tasks: TOP => setup
#11 80.67 (See full trace by running task with --trace)
------
executor failed running [/bin/sh -c rake setup]: exit code: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment