Up to [cvs.NetBSD.org] / pkgsrc / lang / ruby40
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Pullup ticket #7265 - requested by rin
lang/ruby34: Bug fix
lang/ruby33: Bug fix
lang/ruby40: Bug fix
Revisions pulled up:
- lang/ruby33/hacks.mk 1.2
- lang/ruby34/hacks.mk 1.2
- lang/ruby40/hacks.mk 1.2
---
Module Name: pkgsrc
Committed By: rin
Date: Sat Oct 3 11:12:34 UTC 2026
Modified Files:
pkgsrc/lang/ruby33: hacks.mk
pkgsrc/lang/ruby34: hacks.mk
pkgsrc/lang/ruby40: hacks.mk
Log Message:
ruby*: Works around GCC 14 bug on alpha
s/-O2/-O1/ for GCC >= 14 on alpha. Otherwise, for ruby34, e.g.,
```
gcc -mieee -O2 -mieee -pthread -I/usr/include -I/usr/pkg/include -fPIC
-pipe -fno-strict-overflow -fvisibility=hidden
-fexcess-precision=standard -DRUBY_EXPORT -I.
-I.ext/include/alpha-netbsd -I.ext/include -I./include -I. -I./prism
-I./enc/unicode/15.0.0 -Dmodular_gc_dir="" -I/usr/include
-I/usr/pkg/include -o ractor.o -c ractor.c
during RTL pass: sched2
ractor.c: In function 'ractor_channel_func':
ractor.c:4010:1: internal compiler error: in move_insn, at
haifa-sched.cc:5477
4010 | }
| ^
0x1215184ff diagnostic_impl(rich_location*, diagnostic_metadata const*,
int, char const*, __va_list_tag*, diagnostic_t)
???:0
0x121518beb internal_error(char const*, ...)
???:0
0x121640d9b fancy_abort(char const*, int, char const*)
???:0
0x120569693 move_insn(rtx_insn*, rtx_insn*, rtx_def*)
???:0
0x12057ef93 schedule_block(basic_block_def**, void*)
???:0
0x1212bc327 schedule_insns() [clone .part.0]
???:0
0x1212bc907 (anonymous namespace)::pass_sched2::execute(function*)
???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <http://www.NetBSD.org/support/send-pr.html> for instructions.
```
cf. PR toolchain/60843 GCC/alpha 14 miscompiles GCC backend
ruby*: Works around GCC 14 bug on alpha
s/-O2/-O1/ for GCC >= 14 on alpha. Otherwise, for ruby34, e.g.,
```
gcc -mieee -O2 -mieee -pthread -I/usr/include -I/usr/pkg/include -fPIC -pipe -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -I. -I.ext/include/alpha-netbsd -I.ext/include -I./include -I. -I./prism -I./enc/unicode/15.0.0 -Dmodular_gc_dir="" -I/usr/include -I/usr/pkg/include -o ractor.o -c ractor.c
during RTL pass: sched2
ractor.c: In function 'ractor_channel_func':
ractor.c:4010:1: internal compiler error: in move_insn, at haifa-sched.cc:5477
4010 | }
| ^
0x1215184ff diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char const*, __va_list_tag*, diagnostic_t)
???:0
0x121518beb internal_error(char const*, ...)
???:0
0x121640d9b fancy_abort(char const*, int, char const*)
???:0
0x120569693 move_insn(rtx_insn*, rtx_insn*, rtx_def*)
???:0
0x12057ef93 schedule_block(basic_block_def**, void*)
???:0
0x1212bc327 schedule_insns() [clone .part.0]
???:0
0x1212bc907 (anonymous namespace)::pass_sched2::execute(function*)
???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <http://www.NetBSD.org/support/send-pr.html> for instructions.
```
cf. PR toolchain/60843 GCC/alpha 14 miscompiles GCC backend
lang/ruby40: add version 4.0.1 Add Ruby 4.0.1 as lang/ruby40. Ruby is an interpreted object-oriented programming language often used for web development. It also offers many scripting features to process plain text and serialized files, or manage system tasks. It is simple, straightforward, and extensible. Ruby 4.0 introduces a number of new features and performance improvements, here are some of them: * Ruby Box a new (experimental) feature to provide separation about definitions * Performance: ZJIT a new just-in-time (JIT) compiler, which is developed as the next generation of YJIT It is not enabled on pkgsrc for now. * Ractor Improvements * Stdlib updates * Retirement of RJIT: Experital pure-Ruby JIT compiler