From: mame@... Date: 2021-05-05T16:19:26+00:00 Subject: [ruby-core:103747] [Ruby master Bug#17850] `PAGE_SIZE` is no longer a constant for macOS Issue #17850 has been updated by mame (Yusuke Endoh). Status changed from Open to Closed @nobu seemed to fix this issue by 3d5b6ddff8def49e59fb9a9ddd28a653498ae861 and 192150051144c0242ee44df26952dfe31b83cac2 ---------------------------------------- Bug #17850: `PAGE_SIZE` is no longer a constant for macOS https://bugs.ruby-lang.org/issues/17850#change-91848 * Author: xtkoba (Tee KOBAYASHI) * Status: Closed * Priority: Normal * Assignee: peterzhu2118 (Peter Zhu) * Backport: 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONTNEED ---------------------------------------- [Build failure for macOS Big Sur (ARM)](http://rubyci.s3.amazonaws.com/osx1100arm/ruby-master/log/20210505T014504Z.log.html.gz) due to `-Wundef` (#17752). It is said in https://www.wwdcnotes.com/notes/wwdc20/10214/ that: * Native page size on Intel is 4 kB, on Apple Silicon it's 16 kB: therefore the PAGE_SIZE macro is no longer a constant. Use: * PAGE_MAX_SIZE for a compile-time upper bound * vm_page_size to read the actual value at runtime -- https://bugs.ruby-lang.org/ Unsubscribe: