Open CKolkey opened 1 day ago
Could you share the content of gem_make.out
? That's where the actual error might be located.
Sadly not - I didn't include that originally because it's the same as whats printed above:
> cat /Users/cameron/.local/share/mise/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/extensions/arm64-darwin-24/3.3.0/vernier-1.2.1/gem_make.out
current directory: /Users/cameron/.local/share/mise/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/vernier-1.2.1/ext/vernier
/Users/cameron/.local/share/mise/installs/ruby/3.3.5/bin/ruby extconf.rb
checking for ruby/thread.h... yes
checking for rb_internal_thread_event_data_t.thread in ruby/thread.h... yes
checking for rb_profile_thread_frames() in ruby/debug.h... yes
checking for pthread_setname_np()... yes
creating Makefile
current directory: /Users/cameron/.local/share/mise/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/vernier-1.2.1/ext/vernier
make DESTDIR\= sitearchdir\=./.gem.20240919-66968-unlaz9 sitelibdir\=./.gem.20240919-66968-unlaz9 clean
current directory: /Users/cameron/.local/share/mise/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/vernier-1.2.1/ext/vernier
make DESTDIR\= sitearchdir\=./.gem.20240919-66968-unlaz9 sitelibdir\=./.gem.20240919-66968-unlaz9
compiling vernier.cc
make: *** [vernier.o] Error 1
make failed, exit code 2
Uh, weird.
And if you clone the repo and try to compile from there? Still no explicit error?
Cloning vernier locally, on main branch, ruby 3.3.5
> rake compile
mkdir -p tmp/arm64-darwin24/vernier/3.3.5
cd tmp/arm64-darwin24/vernier/3.3.5
/Users/cameron/.local/share/mise/installs/ruby/3.3.5/bin/ruby -I. ../../../../ext/vernier/extconf.rb
checking for ruby/thread.h... yes
checking for rb_internal_thread_event_data_t.thread in ruby/thread.h... yes
checking for rb_profile_thread_frames() in ruby/debug.h... yes
checking for pthread_setname_np()... yes
creating Makefile
cd -
cd tmp/arm64-darwin24/vernier/3.3.5
/opt/homebrew/bin/gmake
compiling ../../../../ext/vernier/vernier.cc
gmake: *** [Makefile:216: vernier.o] Error 1
rake aborted!
Command failed with status (2): [/opt/homebrew/bin/gmake]
Tasks: TOP => compile => compile:arm64-darwin24 => compile:vernier:arm64-darwin24 => copy:vernier:arm64-darwin24:3.3.5 => tmp/arm64-darwin24/vernier/3.3.5/vernier.bundle
(See full trace by running task with --trace)
and
> rake compile:vernier
cd tmp/arm64-darwin24/vernier/3.3.5
/opt/homebrew/bin/gmake
compiling ../../../../ext/vernier/vernier.cc
gmake: *** [Makefile:216: vernier.o] Error 1
rake aborted!
Command failed with status (2): [/opt/homebrew/bin/gmake]
Tasks: TOP => compile:vernier => compile:vernier:arm64-darwin24 => copy:vernier:arm64-darwin24:3.3.5 => tmp/arm64-darwin24/vernier/3.3.5/vernier.bundle
(See full trace by running task with --trace)
Interestingly, when trying that with ruby 3.3.4, it produces the iostream error:
> rake compile:vernier v3.3.4
mkdir -p tmp/arm64-darwin23/vernier/3.3.4
cd tmp/arm64-darwin23/vernier/3.3.4
/Users/cameron/.local/share/mise/installs/ruby/3.3.4/bin/ruby -I. ../../../../ext/vernier/extconf.rb
checking for ruby/thread.h... yes
checking for rb_internal_thread_event_data_t.thread in ruby/thread.h... yes
checking for rb_profile_thread_frames() in ruby/debug.h... yes
checking for pthread_setname_np()... yes
creating Makefile
cd -
cd tmp/arm64-darwin23/vernier/3.3.4
/opt/homebrew/bin/gmake
compiling ../../../../ext/vernier/vernier.cc
../../../../ext/vernier/vernier.cc:3:10: fatal error: 'iostream' file not found
3 | #include <iostream>
| ^~~~~~~~~~
1 error generated.
gmake: *** [Makefile:216: vernier.o] Error 1
rake aborted!
Command failed with status (2): [/opt/homebrew/bin/gmake]
Tasks: TOP => compile:vernier => compile:vernier:arm64-darwin23 => copy:vernier:arm64-darwin23:3.3.4 => tmp/arm64-darwin23/vernier/3.3.4/vernier.bundle
(See full trace by running task with --trace)
However, I was using vernier just fine on this computer a few days ago with 3.3.4. That was with the previous macos, but vernier failed to compile for 3.3.5 with that OS as well.
I don't think this is related to Ruby 3.3.5, seems more likely this is related to either Sequoia or the xcode command line tools.
Hi! My team updated to ruby 3.3.5 recently and I encountered this issue when adding vernier to the Gemfile:
I uninstalled the ruby and reinstalled it, which produces a slightly different failure:
Platform is Macos 15.0, on an ARM processor (m2). Ruby is installed via mise. Ruby version is 3.3.5 Vernier version is 1.2.1 (latest at the time of this post).
Let me know if I can provide any other details to help figure out whats going on :)
Thanks!