Skip to content

Commit 6d837ff

Browse files
committed
Add ovirt-engine-sdk instructions for C compiler errors
1 parent 917ea42 commit 6d837ff

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

developer_setup.md

+16
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,22 @@ bin/setup
211211

212212
macOS requires platform specific Gems. Run `bundle config specific_platform true` before running `bin/setup`.
213213

214+
The ovirt-engine-sdk gem contains C code that generated warnings with older CLANG versions. These warnings are marked as errors in newer CLANG 15 and 16 depending on the CLANG version, architecture, and possibly OS. If this is the case, you can mark these as warnings and not errors to allow installation:
215+
216+
```
217+
gem install ovirt-engine-sdk -v4.6.0 -- --with-cflags="-Wno-error=incompatible-function-pointer-types -Wno-error=implicit-function-declaration"
218+
```
219+
220+
This can also be configured within bundler:
221+
222+
```
223+
bundle config build.ovirt-engine-sdk --with-cflags="-Wno-error=incompatible-function-pointer-types -Wno-error=implicit-function-declaration"
224+
```
225+
226+
See https://github.com/oVirt/ovirt-engine-sdk-ruby/issues/14 and https://github.com/oVirt/ovirt-engine-sdk-ruby/issues/11
227+
228+
Hopefully, the code in the gem can be resolved to avoid these warnings in the future.
229+
214230
If you've run PostgreSQL in a container, be sure to export the `DATABASE_URL` variable to connect to the container over TCP instead of a UNIX file socket.
215231
216232
```bash

0 commit comments

Comments
 (0)