===> Installing for ruby31-ferret-0.11.8.7nb1
=> Generating pre-install file lists
=> Installing gem into installation root
Building native extensions. This could take a while...
ERROR:  Error installing /Users/pbulk/build/textproc/ruby-ferret/work/ferret-0.11.8.7/ferret-0.11.8.7.gem:
	ERROR: Failed to build gem native extension.

    current directory: /Users/pbulk/build/textproc/ruby-ferret/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/gems/ferret-0.11.8.7/ext
/opt/pkg/bin/ruby31 -I /opt/pkg/lib/ruby/3.1.0 extconf.rb
creating Makefile

current directory: /Users/pbulk/build/textproc/ruby-ferret/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/gems/ferret-0.11.8.7/ext
make DESTDIR\= sitearchdir\=./.gem.20241214-51611-gl9ohh sitelibdir\=./.gem.20241214-51611-gl9ohh clean

current directory: /Users/pbulk/build/textproc/ruby-ferret/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/gems/ferret-0.11.8.7/ext
make DESTDIR\= sitearchdir\=./.gem.20241214-51611-gl9ohh sitelibdir\=./.gem.20241214-51611-gl9ohh
compiling BZLIB_blocksort.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
In file included from BZLIB_blocksort.c:22:
./bzlib_private.h:62:5: warning: 'BZ_DEBUG' is not defined, evaluates to 0 [-Wundef]
#if BZ_DEBUG
    ^
2 warnings generated.
compiling BZLIB_bzlib.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
In file included from BZLIB_bzlib.c:31:
./bzlib_private.h:62:5: warning: 'BZ_DEBUG' is not defined, evaluates to 0 [-Wundef]
#if BZ_DEBUG
    ^
BZLIB_bzlib.c:42:1: warning: function 'BZ2_bz__AssertH__fail' could be declared with attribute 'noreturn' [-Wmissing-noreturn]
{
^
BZLIB_bzlib.c:996:15: warning: implicit conversion loses integer precision: 'unsigned long' to 'Int32' (aka 'int') [-Wshorten-64-to-32]
         n2 = fwrite ( (void*)(bzf->buf), sizeof(UChar), 
            ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BZLIB_bzlib.c:1055:18: warning: implicit conversion loses integer precision: 'unsigned long' to 'Int32' (aka 'int') [-Wshorten-64-to-32]
            n2 = fwrite ( (void*)(bzf->buf), sizeof(UChar), 
               ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BZLIB_bzlib.c:1190:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'Int32' (aka 'int') [-Wshorten-64-to-32]
         n = fread ( bzf->buf, sizeof(UChar), 
           ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 warnings generated.
compiling BZLIB_compress.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
In file included from BZLIB_compress.c:29:
./bzlib_private.h:62:5: warning: 'BZ_DEBUG' is not defined, evaluates to 0 [-Wundef]
#if BZ_DEBUG
    ^
BZLIB_compress.c:205:23: warning: implicit conversion loses integer precision: 'long' to 'Int32' (aka 'int') [-Wshorten-64-to-32]
            j = ryy_j - &(yy[0]);
              ~ ~~~~~~^~~~~~~~~~
3 warnings generated.
compiling BZLIB_crctable.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
In file included from BZLIB_crctable.c:22:
./bzlib_private.h:62:5: warning: 'BZ_DEBUG' is not defined, evaluates to 0 [-Wundef]
#if BZ_DEBUG
    ^
2 warnings generated.
compiling BZLIB_decompress.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
In file included from BZLIB_decompress.c:22:
./bzlib_private.h:62:5: warning: 'BZ_DEBUG' is not defined, evaluates to 0 [-Wundef]
#if BZ_DEBUG
    ^
2 warnings generated.
compiling BZLIB_huffman.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
In file included from BZLIB_huffman.c:22:
./bzlib_private.h:62:5: warning: 'BZ_DEBUG' is not defined, evaluates to 0 [-Wundef]
#if BZ_DEBUG
    ^
2 warnings generated.
compiling BZLIB_randtable.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
In file included from BZLIB_randtable.c:22:
./bzlib_private.h:62:5: warning: 'BZ_DEBUG' is not defined, evaluates to 0 [-Wundef]
#if BZ_DEBUG
    ^
2 warnings generated.
compiling STEMMER_api.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_libstemmer.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_ISO_8859_1_danish.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_ISO_8859_1_dutch.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_ISO_8859_1_english.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_ISO_8859_1_finnish.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_ISO_8859_1_french.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_ISO_8859_1_german.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_ISO_8859_1_hungarian.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_ISO_8859_1_italian.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_ISO_8859_1_norwegian.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_ISO_8859_1_porter.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_ISO_8859_1_portuguese.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_ISO_8859_1_spanish.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_ISO_8859_1_swedish.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_ISO_8859_2_romanian.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_KOI8_R_russian.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_danish.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_dutch.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_english.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_finnish.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_french.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_german.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_hungarian.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_italian.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_norwegian.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_porter.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_portuguese.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_romanian.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_russian.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_spanish.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_swedish.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_stem_UTF_8_turkish.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling STEMMER_utilities.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
1 warning generated.
compiling analysis.c
In file included from <built-in>:400:
<command line>:7:9: warning: '_XOPEN_SOURCE' macro redefined [-Wmacro-redefined]
#define _XOPEN_SOURCE 500
        ^
<command line>:2:9: note: previous definition is here
#define _XOPEN_SOURCE 1
        ^
In file included from analysis.c:1:
In file included from ./analysis.h:8:
In file included from ./global.h:8:
In file included from ./config.h:10:
./posh.h:516:4: error: POSH cannot determine target CPU
#  error POSH cannot determine target CPU
   ^
analysis.c:48:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    int len = wcstombs(tk->text, text, MAX_WORD_SIZE - 1);
        ~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
analysis.c:167:23: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
        num_bytes = t - s;
                  ~ ~~^~~
analysis.c:254:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
        return tk_set(&(CTS(ts)->token), ts->text, len, 0, len, 1);
               ~~~~~~                              ^~~
analysis.c:1279:30: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
        const int text_len = strlen(hf->text + pos);
                  ~~~~~~~~   ^~~~~~~~~~~~~~~~~~~~~~
analysis.c:1321:29: warning: implicit conversion loses integer precision: 'off_t' (aka 'long long') to 'int' [-Wshorten-64-to-32]
            hf->start = tk->start;
                      ~ ~~~~^~~~~
analysis.c:1323:25: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
            hf->len = q - hf->text;
                    ~ ~~^~~~~~~~~~
analysis.c:1324:25: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
            tk->len = r - tk->text;
                    ~ ~~^~~~~~~~~~
analysis.c:1354:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    if ((x=mbstowcs(wbuf, tk->text, MAX_WORD_SIZE)) <= 0) return tk;
          ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
analysis.c:1360:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    tk->len = wcstombs(tk->text, wbuf, MAX_WORD_SIZE);
            ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 warnings and 1 error generated.
*** Error code 1

Stop.
make: stopped making "all" in /Users/pbulk/build/textproc/ruby-ferret/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/gems/ferret-0.11.8.7/ext

make failed, exit code 1

Gem files will remain installed in /Users/pbulk/build/textproc/ruby-ferret/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/gems/ferret-0.11.8.7 for inspection.
Results logged to /Users/pbulk/build/textproc/ruby-ferret/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/extensions/arm64-darwin-23/3.1.0/ferret-0.11.8.7/gem_make.out
*** Error code 1

Stop.
bmake[1]: stopped making "stage-install" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/textproc/ruby-ferret
*** Error code 1

Stop.
bmake: stopped making "stage-install" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/textproc/ruby-ferret