Open eremeyev opened 8 months ago
I encountered the same issue, but I eventually switched to using the fog-aws
gem instead of fog
,
which allowed me to successfully complete the bundle install.
@eremeyev
I just successfully resolved this issue. Have you tried the command gem install ovirt-engine-sdk -- --with-cflags="-Wno-error=implicit-function-declaration"
to check if the gem installs correctly? Make sure your clang version is 14. Here is the process that worked for me:
clang --version # Check that the version should be 14
gem install ovirt-engine-sdk -- --with-cflags="-Wno-error=implicit-function-declaration"
@jimmy8646 the command gem install ovirt-engine-sdk -- --with-cflags="-Wno-error=implicit-function-declaration"
works on mac x86_64 device but it does not work on mac ARM64 device
@siddushar Ummm strange I'm ARM 64 device do you have any error messages?
See https://github.com/oVirt/ovirt-engine-sdk-ruby/issues/11#issuecomment-2098807108
I had two types of warnings that were errors for me.
gem install ovirt-engine-sdk -v4.6.0 -- --with-cflags="-Wno-error=incompatible-function-pointer-types -Wno-error=implicit-function-declaration"
@jrafanie thanks!
❯ gem install ovirt-engine-sdk -v4.6.0 -- --with-cflags="-Wno-error=incompatible-function-pointer-types -Wno-error=implicit-function-declaration" 14:14:58
Building native extensions with: '--with-cflags=-Wno-error=incompatible-function-pointer-types -Wno-error=implicit-function-declaration'
This could take a while...
Successfully installed ovirt-engine-sdk-4.6.0
Parsing documentation for ovirt-engine-sdk-4.6.0
Installing ri documentation for ovirt-engine-sdk-4.6.0
Done installing documentation for ovirt-engine-sdk after 6 seconds
1 gem installed
You saved my day! @jrafanie
This solution works perfectly on macOS ARM64 with Clang 15.
See #11 (comment)
I had two types of warnings that were errors for me.
gem install ovirt-engine-sdk -v4.6.0 -- --with-cflags="-Wno-error=incompatible-function-pointer-types -Wno-error=implicit-function-declaration"
Gemfile:
~/.rvm/rubies/ruby-3.1.3/bin/ruby -I /Users/andrey/.rvm/rubies/ruby-3.1.3/lib/ruby/3.1.0 extconf.rb checking for xml2-config... yes checking for curl-config... yes creating Makefile
current directory: ~/.rvm/gems/ruby-3.1.3/gems/ovirt-engine-sdk-4.6.0/ext/ovirtsdk4c make DESTDIR\= sitearchdir\=./.gem.20240321-53278-s4ujn4 sitelibdir\=./.gem.20240321-53278-s4ujn4 clean
current directory: ~/.rvm/gems/ruby-3.1.3/gems/ovirt-engine-sdk-4.6.0/ext/ovirtsdk4c make DESTDIR\= sitearchdir\=./.gem.20240321-53278-s4ujn4 sitelibdir\=./.gem.20240321-53278-s4ujn4 compiling ov_error.c compiling ov_http_client.c ov_http_client.c:216:29: warning: excess elements in array initializer [-Wexcess-initializers] .reserved = { NULL, NULL } ^~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
define NULL ((void*)0)
ov_http_client.c:272:39: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] count = INT2NUM(context_ptr->size * context_ptr->nmemb);