Comments (16)
This patch fixed the issue for me ^^^
Can the offending gem be removed from rubygems.org?
from ruby-unf_ext.
I have the same issue on Amazon Linux II,
$ g++ --version
g++ (GCC) 7.3.1 20180712 (Red Hat 7.3.1-17)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
compiling unf.cc
unf.cc:39:3: sorry, unimplemented: non-trivial designated initializers not supported
};
^
unf.cc:39:3: sorry, unimplemented: non-trivial designated initializers not supported
make: *** [unf.o] Error 1
...
An error occurred while installing unf_ext (0.0.9), and Bundler cannot continue
from ruby-unf_ext.
Unitl the fix is published you can pin your project to the old version by adding this to your Gemfile
gem 'unf_ext', '= 0.0.8'
from ruby-unf_ext.
We're also seeing this on Centos7:
$ cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
$ g++ --version
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Error message is same as above
compiling unf.cc
unf.cc:39:3: sorry, unimplemented: non-trivial designated initializers not
supported
};
^
unf.cc:39:3: sorry, unimplemented: non-trivial designated initializers not
supported
make: *** [unf.o] Error 1
from ruby-unf_ext.
Another one here in Linux machine:
$ gcc --version
gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-17)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Ruby version: 3.2.2
from ruby-unf_ext.
This appears to be caused by #72 along with a specific (?) version of g++.
@ABHIJITH-EA Please add details about your specific operating system (i.e. distribution and version) as well as your specific g++ version.
from ruby-unf_ext.
@meineerde
Thanks for the response. Here are the details:
OS: Amazon Linux AMI 2016.09 (Based on RHEL)
g++ Version: 4.8.3 20140911 (Red Hat 4.8.3-9)
from ruby-unf_ext.
g++ --version
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ruby -v
ruby 3.2.1 (2023-02-08 revision 31819e82c8) [x86_64-linux]
from ruby-unf_ext.
And another combo:
$ gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Ruby 3.0.1
from ruby-unf_ext.
Similar issue with el7, debian9, ubuntu 16 and ubuntu 18 using ruby 3.1.0
from ruby-unf_ext.
Also observed on Amazon Linux 2 running the following Ruby/GCC combination:
ruby 2.3.5p376
gcc (GCC) 7.3.1
from ruby-unf_ext.
Same issue causing all of our pipelines to fail to deploy.
Ruby ruby 2.6.6p146
Will update when I get a resp back from our Infru regarding out GCC combo we use.
from ruby-unf_ext.
adding to the group:
ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-linux]
Oracle Linux Server release 7.9
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44.0.3)
12:11:07 $ cat /opt/chef/embedded/lib/ruby/gems/2.7.0/extensions/x86_64-linux/2.7.0/unf_ext-0.0.9/gem_make.out
current directory: /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/unf_ext-0.0.9/ext/unf_ext
/opt/chef/embedded/bin/ruby -I /opt/chef/embedded/lib/ruby/2.7.0 -r ./siteconf20231113-2927-omq67z.rb extconf.rb
checking for -lstdc++... yes
creating Makefile
current directory: /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/unf_ext-0.0.9/ext/unf_ext
make "DESTDIR=" clean
current directory: /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/unf_ext-0.0.9/ext/unf_ext
make "DESTDIR="
compiling unf.cc
unf.cc:39:3: sorry, unimplemented: non-trivial designated initializers not supported
};
^
unf.cc:39:3: sorry, unimplemented: non-trivial designated initializers not supported
make: *** [unf.o] Error 1
make failed, exit code 2
from ruby-unf_ext.
+1
any workarounds?
from ruby-unf_ext.
Just ran into this issue.
from ruby-unf_ext.
+1 here,
Installing unf_ext 0.0.9 (was 0.0.8.2) with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/usr/local/rvm/gems/ruby-2.7.0/gems/unf_ext-0.0.9/ext/unf_ext
/usr/local/rvm/rubies/ruby-2.7.0/bin/ruby -I
/usr/local/rvm/rubies/ruby-2.7.0/lib/ruby/site_ruby/2.7.0 -r
./siteconf20231114-5774-ujxoi3.rb extconf.rb
checking for -lstdc++... yes
creating Makefile
current directory: /usr/local/rvm/gems/ruby-2.7.0/gems/unf_ext-0.0.9/ext/unf_ext
make "DESTDIR=" clean
current directory: /usr/local/rvm/gems/ruby-2.7.0/gems/unf_ext-0.0.9/ext/unf_ext
make "DESTDIR="
compiling unf.cc
unf.cc:39:3: sorry, unimplemented: non-trivial designated initializers not
supported
};
^
unf.cc:39:3: sorry, unimplemented: non-trivial designated initializers not
supported
make: *** [unf.o] Error 1
make failed, exit code 2
from ruby-unf_ext.
Related Issues (20)
- Build fails if using Xcode 11 toolchain HOT 4
- Latest version doesn't contain a binary for Windows HOT 5
- Do a 1.0.0 release?
- Is version 0.0.7.7 a legitimate release? HOT 2
- Push tag v0.0.7.7 HOT 3
- Failing to compile on macOS/Ruby 2.7.1 but not sure why HOT 7
- Building fails with Mac 14, Xcode 11.2, ruby 2.3.7 HOT 1
- Installation fails in Docker and Ruby 3 preview HOT 1
- update to support ruby 3.0 HOT 5
- Failing to build on ARM64 Linux (Apple M1 running Debian in a VM) HOT 4
- Please add support for Ruby 3.1 HOT 5
- Can't install 0.0.8.1-x64-mingw32 in ruby 3.1 HOT 7
- Can't install 0.0.8.2 on Windows HOT 2
- 0.0.8.2 binary builds seemed to be tagged as "beta"? HOT 3
- @igorpeshansky I have tested the patch and wanted to bring to your attention a potential compatibility concern with Ruby versions lower than 2.7.0, despite the gemspec specifying a requirement of ">= 2.2". The error encountered during compilation in Ruby version 2.3.1 is as follows:
- Build failure after upgrading Gem dependency HOT 1
- Build uses wrong C++ runtime on macOS 10.7–10.12: `libc++` should be used with clang and on 10.7+
- Compilation failure on centos6/older gcc compilers
- Fails to compile native extensions on MacOS Sonoma
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-unf_ext.