Open joshuapinter opened 4 days ago
Belive this is related to the change made here - https://github.com/brianmario/charlock_holmes/pull/174 I'm seeing similar issues on OSX as the flags aren't set by default.
If you have installed icu4c via homebrew you can configure bundle to pass the cxxflags like so
bundle config build.charlock_holmes --with-icu-dir=$(brew --prefix icu4c) --with-cxxflags=-std=c++11
However it would be nice if this worked out of the box like 0.7.7 did
I'm having the same issue with Sonoma (14.5) installing 0.7.8 after upgrading ruby version to 3.3.3. However, it didn't work for me even with -std=c++11 in cxxflags.
Literally tried everything in #122 , but nothing worked for me. It always ended up with the same output.
My icu4c version 74.2
Building native extensions with: '--with-icu-dir=/usr/local/opt/icu4c --with-cxxflags=-std=c++11'
This could take a while...
ERROR: Error installing charlock_holmes:
ERROR: Failed to build gem native extension.
current directory: /Users/emiliochang/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/charlock_holmes-0.7.8/ext/charlock_holmes
/Users/emiliochang/.rbenv/versions/3.3.3/bin/ruby extconf.rb --with-icu-dir\=/usr/local/opt/icu4c --with-cxxflags\=-std\=c++11
checking for pkg-config for icu-i18n... ["-I/usr/local/Cellar/icu4c/74.2/include ", "-L/usr/local/Cellar/icu4c/74.2/lib", "-licui18n -licuuc -licudata"]
checking for pkg-config for icu-io... ["-I/usr/local/Cellar/icu4c/74.2/include ", "-L/usr/local/Cellar/icu4c/74.2/lib", "-licuio -licui18n -licuuc -licudata"]
checking for pkg-config for icu-uc... ["-I/usr/local/Cellar/icu4c/74.2/include ", "-L/usr/local/Cellar/icu4c/74.2/lib", "-licuuc -licudata"]
checking for -licui18n... yes
checking for unicode/ucnv.h... yes
checking for -lz... yes
checking for -licuuc... yes
checking for -licudata... yes
creating Makefile
current directory: /Users/emiliochang/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/charlock_holmes-0.7.8/ext/charlock_holmes
make DESTDIR\= sitearchdir\=./.gem.20240705-37173-bpsoip sitelibdir\=./.gem.20240705-37173-bpsoip clean
current directory: /Users/emiliochang/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/charlock_holmes-0.7.8/ext/charlock_holmes
make DESTDIR\= sitearchdir\=./.gem.20240705-37173-bpsoip sitelibdir\=./.gem.20240705-37173-bpsoip
compiling converter.c
converter.c:23:12: warning: implicit conversion loses integer precision: 'long' to 'int32_t' (aka 'int') [-Wshorten-64-to-32]
src_len = RSTRING_LEN(rb_txt);
~ ^~~~~~~~~~~~~~~~~~~
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:46:27: note: expanded from macro 'RSTRING_LEN'
#define RSTRING_LEN RSTRING_LEN
^
1 warning generated.
compiling encoding_detector.c
encoding_detector.c:183:71: warning: implicit conversion loses integer precision: 'long' to 'int32_t' (aka 'int') [-Wshorten-64-to-32]
ucsdet_setDeclaredEncoding(detector->csd, RSTRING_PTR(rb_enc_hint), RSTRING_LEN(rb_enc_hint), &status);
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:46:27: note: expanded from macro 'RSTRING_LEN'
#define RSTRING_LEN RSTRING_LEN
^
encoding_detector.c:232:71: warning: implicit conversion loses integer precision: 'long' to 'int32_t' (aka 'int') [-Wshorten-64-to-32]
ucsdet_setDeclaredEncoding(detector->csd, RSTRING_PTR(rb_enc_hint), RSTRING_LEN(rb_enc_hint), &status);
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:46:27: note: expanded from macro 'RSTRING_LEN'
#define RSTRING_LEN RSTRING_LEN
^
2 warnings generated.
compiling ext.c
compiling transliterator.cpp
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:25:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/defines.h:73:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/backward/2/attributes.h:43:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/pure.h:25:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/assert.h:132:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:27:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/anyargs.h:77:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/intern/vm.h:379:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:27:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/anyargs.h:83:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/backward/cxxanyargs.hpp:15:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/intern/cont.h:25:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/iterator.h:485:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:27:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/anyargs.h:83:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/backward/cxxanyargs.hpp:15:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/intern/cont.h:25:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/iterator.h:499:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:27:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/anyargs.h:83:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/backward/cxxanyargs.hpp:24:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/variable.h:130:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:28:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic.h:24:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:23:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/int.h:26:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:70:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:28:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic.h:24:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:28:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rbasic.h:95:5: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NOALIAS()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noalias.h:64:32: note: expanded from macro 'RBIMPL_ATTR_NOALIAS'
# define RBIMPL_ATTR_NOALIAS() __declspec(noalias)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:28:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic.h:24:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:30:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/fl_type.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/value_type.h:33:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/error.h:98:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:28:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic.h:24:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:30:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/fl_type.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/value_type.h:33:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/error.h:115:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:28:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic.h:24:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:30:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/fl_type.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/value_type.h:33:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/error.h:130:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:28:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic.h:24:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:30:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/fl_type.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/value_type.h:33:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/error.h:151:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:28:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic.h:24:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:30:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/fl_type.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/value_type.h:33:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/error.h:163:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:28:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic.h:24:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:30:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/fl_type.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/value_type.h:33:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/error.h:188:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:28:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic.h:24:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:30:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/fl_type.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/value_type.h:33:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/error.h:199:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:28:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic.h:24:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:30:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/fl_type.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/value_type.h:33:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/error.h:216:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:28:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic.h:24:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:30:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/fl_type.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/value_type.h:33:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/error.h:228:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:28:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic.h:24:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:30:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/fl_type.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/value_type.h:33:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/error.h:248:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:28:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic.h:24:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:30:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/fl_type.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/value_type.h:33:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/error.h:260:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/ruby.h:28:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic.h:24:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/core/rstring.h:30:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/fl_type.h:38:
In file included from /Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/value_type.h:33:
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/error.h:299:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/emiliochang/.rbenv/versions/3.3.3/include/ruby-3.3.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [transliterator.o] Error 1
make failed, exit code 2
0.7.7 appears to be fine but 0.7.8 causes this issue. After a few attempts to fix it I just pinned our
Gemfile
with version 0.7.7.