On a machine without sse4.2 support I successfullly used oj-3.16.12 but version 3.16.13 throws this error when used during istallation of for example oj-introspect:
Building native extensions. This could take a while...
ERROR: Error installing oj-introspect:
ERROR: Failed to build gem native extension.
current directory: /usr/local/lib64/ruby/gems/3.2.0/gems/oj-introspect-0.8.0/ext/oj-introspect
/usr/bin/ruby32 extconf.rb
/usr/local/lib64/ruby/gems/3.2.0/gems/oj-3.16.13/lib/oj/oj.so: [BUG] Illegal instruction at 0x00007ff4211a1399
Installing oj-3.16.12 and then doing
gem install --ignore-dependencies oj-introspect
works.
Seems to me that the new Code to check for sse4.2 support intruced with commit 318bf55 doesn't work correct (at least on my machine).