[openstreetmap/openstreetmap-website] An error while installing google-protobuf (3.25.8), and Bundler cannot continue (Issue #6300)

xronoc notifications at github.com
Wed Aug 6 21:55:11 UTC 2025


xronoc created an issue (openstreetmap/openstreetmap-website#6300)

### URL

_No response_

### How to reproduce the issue?

On Arch Linux failed to build google-protobuf

```
Fetching rtlcss 0.2.1
Installing rails 8.0.2
Installing danger-auto_label 1.3.1
Installing doorkeeper-i18n 5.2.7
Installing doorkeeper-openid_connect 1.8.11
Installing i18n-tasks 1.0.15
Installing teaspoon-mocha 2.3.3
Installing rtlcss 0.2.1
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/usr/lib/ruby/gems/3.4.0/gems/google-protobuf-3.25.8/ext/google/protobuf_c
/usr/bin/ruby extconf.rb
creating Makefile

current directory:
/usr/lib/ruby/gems/3.4.0/gems/google-protobuf-3.25.8/ext/google/protobuf_c
make DESTDIR\= sitearchdir\=./.gem.20250806-47361-vg8bsu
sitelibdir\=./.gem.20250806-47361-vg8bsu clean

current directory:
/usr/lib/ruby/gems/3.4.0/gems/google-protobuf-3.25.8/ext/google/protobuf_c
make DESTDIR\= sitearchdir\=./.gem.20250806-47361-vg8bsu
sitelibdir\=./.gem.20250806-47361-vg8bsu
compiling protobuf.c
compiling convert.c
compiling defs.c
compiling message.c
compiling repeated_field.c
compiling map.c
map.c: In function ‘Map_delete’:
map.c:447:26: warning: passing argument 1 of ‘upb_Map_Delete’ discards ‘const’
qualifier from pointer target type [-Wdiscarded-qualifiers]
  447 |   if (upb_Map_Delete(self->map, key_upb, &val_upb)) {
      |                      ~~~~^~~~~
In file included from defs.h:12,
                 from protobuf.h:29,
                 from convert.h:11,
                 from map.c:8:
ruby-upb.h:1772:38: note: expected ‘upb_Map *’ but argument is of type ‘const upb_Map
*’
 1772 | UPB_API bool upb_Map_Delete(upb_Map* map, upb_MessageValue key,
      |                             ~~~~~~~~~^~~
compiling ruby-upb.c
compiling wrap_memcpy.c
compiling ./third_party/utf8_range/naive.c
compiling ./third_party/utf8_range/range2-neon.c
compiling ./third_party/utf8_range/range2-sse.c
compiling shared_convert.c
shared_convert.c: In function ‘shared_Msgval_IsEqual’:
shared_convert.c:39:1: warning: control reaches end of non-void function
[-Wreturn-type]
   39 | }
      | ^
shared_convert.c: In function ‘shared_Msgval_GetHash’:
shared_convert.c:64:1: warning: control reaches end of non-void function
[-Wreturn-type]
   64 | }
      | ^
compiling shared_message.c
shared_message.c: In function ‘shared_Message_Equal’:
shared_message.c:66:1: warning: control reaches end of non-void function
[-Wreturn-type]
   66 | }
      | ^
linking shared-object google/protobuf_c.so
/usr/bin/ld: /tmp/ccgR2EWy.ltrans1.ltrans.o: in function `jsonenc_putbytes':
/usr/include/bits/string_fortified.h:29:(.text+0x366): undefined reference to
`__wrap_memcpy'
/usr/bin/ld: /tmp/ccgR2EWy.ltrans1.ltrans.o: relocation R_X86_64_PC32 against undefined
hidden symbol `__wrap_memcpy' can not be used when making a shared object
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [Makefile:268: protobuf_c.so] Error 1

make failed, exit code 2

Gem files will remain installed in /usr/lib/ruby/gems/3.4.0/gems/google-protobuf-3.25.8
for inspection.
Results logged to
/usr/lib/ruby/gems/3.4.0/extensions/x86_64-linux/3.4.0/google-protobuf-3.25.8/gem_make.out

  /usr/lib/ruby/3.4.0/rubygems/ext/builder.rb:126:in 'Gem::Ext::Builder.run'
  /usr/lib/ruby/3.4.0/rubygems/ext/builder.rb:52:in 'block in Gem::Ext::Builder.make'
  /usr/lib/ruby/3.4.0/rubygems/ext/builder.rb:44:in 'Array#each'
  /usr/lib/ruby/3.4.0/rubygems/ext/builder.rb:44:in 'Gem::Ext::Builder.make'
/usr/lib/ruby/3.4.0/rubygems/ext/ext_conf_builder.rb:44:in
'Gem::Ext::ExtConfBuilder.build'
/usr/lib/ruby/3.4.0/rubygems/ext/builder.rb:195:in
'Gem::Ext::Builder#build_extension'
/usr/lib/ruby/3.4.0/rubygems/ext/builder.rb:229:in 'block in
Gem::Ext::Builder#build_extensions'
  /usr/lib/ruby/3.4.0/rubygems/ext/builder.rb:226:in 'Array#each'
/usr/lib/ruby/3.4.0/rubygems/ext/builder.rb:226:in
'Gem::Ext::Builder#build_extensions'
  /usr/lib/ruby/3.4.0/rubygems/installer.rb:844:in 'Gem::Installer#build_extensions'
/usr/lib/ruby/gems/3.4.0/gems/bundler-2.6.2/lib/bundler/rubygems_gem_installer.rb:111:in
'Bundler::RubyGemsGemInstaller#build_extensions'
/usr/lib/ruby/gems/3.4.0/gems/bundler-2.6.2/lib/bundler/rubygems_gem_installer.rb:30:in
'Bundler::RubyGemsGemInstaller#install'
/usr/lib/ruby/gems/3.4.0/gems/bundler-2.6.2/lib/bundler/source/rubygems.rb:205:in
'Bundler::Source::Rubygems#install'
/usr/lib/ruby/gems/3.4.0/gems/bundler-2.6.2/lib/bundler/installer/gem_installer.rb:55:in
'Bundler::GemInstaller#install'
/usr/lib/ruby/gems/3.4.0/gems/bundler-2.6.2/lib/bundler/installer/gem_installer.rb:17:in
'Bundler::GemInstaller#install_from_spec'
/usr/lib/ruby/gems/3.4.0/gems/bundler-2.6.2/lib/bundler/installer/parallel_installer.rb:133:in
'Bundler::ParallelInstaller#do_install'
/usr/lib/ruby/gems/3.4.0/gems/bundler-2.6.2/lib/bundler/installer/parallel_installer.rb:124:in
'block in Bundler::ParallelInstaller#worker_pool'
/usr/lib/ruby/gems/3.4.0/gems/bundler-2.6.2/lib/bundler/worker.rb:62:in
'Bundler::Worker#apply_func'
/usr/lib/ruby/gems/3.4.0/gems/bundler-2.6.2/lib/bundler/worker.rb:57:in 'block in
Bundler::Worker#process_queue'
  <internal:kernel>:168:in 'Kernel#loop'
/usr/lib/ruby/gems/3.4.0/gems/bundler-2.6.2/lib/bundler/worker.rb:54:in
'Bundler::Worker#process_queue'
/usr/lib/ruby/gems/3.4.0/gems/bundler-2.6.2/lib/bundler/worker.rb:90:in 'block (2
levels) in Bundler::Worker#create_threads'

An error occurred while installing google-protobuf (3.25.8), and Bundler
cannot continue.

In Gemfile:
  dartsass-sprockets was resolved to 3.0.0, which depends on
    dartsass-ruby was resolved to 3.0.2, which depends on
      sass-embedded was resolved to 1.64.2, which depends on
        google-protobuf
                                                                                       
openstreetmap-website git:master  54s
```

Does anybody install openstreetmap-website on arch recently ?

### Screenshot(s) or anything else?

_No response_

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6300
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/6300 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250806/55f33996/attachment.htm>


More information about the rails-dev mailing list