You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am installing this gemfile dependency on ruby:3.0.3-alpine and despite having installed the ICU dependency, I'm running into a "conflicting declaration" error while building native extensions
I have installed the following apk libs which should have settled the problem I believe
FROM ruby:3.0.3-alpine
RUN apk add --update --no-cache \
[...]
icu-dev \
ruby-full
Backtrace:
#16 1761.3 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
#16 1761.3
#16 1761.3 current directory:
#16 1761.3 /usr/local/bundle/gems/charlock_holmes-0.7.7/ext/charlock_holmes
#16 1761.3 /usr/local/bin/ruby -I /usr/local/lib/ruby/3.0.0 -r
#16 1761.3 ./siteconf20230302-1-wqiwia.rb extconf.rb
#16 1761.3 checking for -licui18n... yes
#16 1761.3 checking for unicode/ucnv.h... yes
#16 1761.3 checking for -lz... yes
#16 1761.3 checking for -licuuc... yes
#16 1761.3 checking for -licudata... yes
#16 1761.3 creating Makefile
#16 1761.3
#16 1761.3 current directory:
#16 1761.3 /usr/local/bundle/gems/charlock_holmes-0.7.7/ext/charlock_holmes
#16 1761.3 make DESTDIR\= clean
#16 1761.3
#16 1761.3 current directory:
#16 1761.3 /usr/local/bundle/gems/charlock_holmes-0.7.7/ext/charlock_holmes
#16 1761.3 make DESTDIR\=
#16 1761.3 compiling converter.c
#16 1761.3 compiling encoding_detector.c
#16 1761.3 compiling ext.c
#16 1761.3 compiling transliterator.cpp
#16 1761.3 In file included from /usr/local/include/ruby-3.0.0/ruby/ruby.h:39,
#16 1761.3 from /usr/local/include/ruby-3.0.0/ruby.h:38,
#16 1761.3 from common.h:9,
#16 1761.3 from transliterator.cpp:1:
#16 1761.3 /usr/local/include/ruby-3.0.0/ruby/internal/memory.h:276:16: error: conflicting
#16 1761.3 declaration of 'void* ruby_nonempty_memcpy(void*, const void*, size_t)' with 'C'
#16 1761.3 linkage
#16 1761.3 276 | #define memcpy ruby_nonempty_memcpy
#16 1761.3 | ^~~~~~~~~~~~~~~~~~~~
#16 1761.3 /usr/local/include/ruby-3.0.0/ruby/internal/memory.h:266:1: note: previous
#16 1761.3 declaration with 'C++' linkage
Am I maybe missing some other OS dependency ?
The text was updated successfully, but these errors were encountered:
I am installing this gemfile dependency on
ruby:3.0.3-alpine
and despite having installed the ICU dependency, I'm running into a "conflicting declaration" error while building native extensionsI have installed the following apk libs which should have settled the problem I believe
Backtrace:
Am I maybe missing some other OS dependency ?
The text was updated successfully, but these errors were encountered: