Project

General

Profile

Actions

Bug #20151

open

Can't build Ruby 3.1 on FreeBSD 14.0

Added by hsbt (Hiroshi SHIBATA) 4 months ago. Updated 3 months ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:116026]

Description

I couldn't install Ruby 3.1.3 on FreeBSD 14.0.

compiling util.c
util.c:255:1: error: expected identifier or '('
ruby_qsort(void* base, const size_t nel, const size_t size, cmpfunc_t *cmp, void *d)
^
./include/ruby/util.h:124:21: note: expanded from macro 'ruby_qsort'
# define ruby_qsort qsort_r
                    ^
/usr/include/stdlib.h:356:5: note: expanded from macro 'qsort_r'
    __generic(arg5, int (*)(void *, const void *, const void *),        \
    ^
/usr/include/sys/cdefs.h:322:2: note: expanded from macro '__generic'
        _Generic(expr, t: yes, default: no)
        ^
1 error generated.
*** Error code 1

Stop.

Compiler version is here:

FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)

I could install Ruby 3.2.2.


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #18997: Don't define ruby_qsort when POSIX qsort_r is availableClosedActions
Actions

Also available in: Atom PDF

Like1
Like0Like0Like1Like1