Actions
Bug #14440
closed--jit does not work by default on OpenBSD due to use of gcc instead of clang
Description
On OpenBSD, when using just --jit
, ruby issues a warning message to $stderr
:
$ ruby --jit -e 'p 1'
.ext/include/x86_64-openbsd/rb_mjit_min_header-2.6.0.h:2924: error: wrong number of arguments specified for '__deprecated__' attribute
compilation terminated due to -Wfatal-errors.
1
This is probably because MJIT doesn't work on old versions of GCC:
$ gcc -v
Reading specs from /usr/lib/gcc-lib/amd64-unknown-openbsd6.2/4.2.1/specs
Target: amd64-unknown-openbsd6.2
Configured with: OpenBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070719
When using --jit --jit-cc=clang
, there are no problems:
$ ruby --jit --jit-cc=clang -e 'p 1'
1
Either --jit
should be made to work with older GCC versions, or older GCC versions should be skipped. It seems like for now, skipping older GCC versions would be easier.
Actions
Like0
Like0Like0Like0Like0Like0