Skip to content

Commit

Permalink
Add ovirt-engine-sdk instructions for C compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed May 8, 2024
1 parent 917ea42 commit 204f9a9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions developer_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,22 @@ bin/setup

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

The ovirt-engine-sdk gem contains C code that generated warnings with older CLANG versions. These warnings are maked 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:

```
gem install ovirt-engine-sdk -v4.6.0 -- --with-cflags="-Wno-error=incompatible-function-pointer-types -Wno-error=implicit-function-declaration"
```

This can also be configured within bundler:

```
bundle config build.ovirt-engine-sdk --with-cflags="-Wno-error=incompatible-function-pointer-types -Wno-error=implicit-function-declaration"
```

See https://github.com/oVirt/ovirt-engine-sdk-ruby/issues/14 and https://github.com/oVirt/ovirt-engine-sdk-ruby/issues/11

Hopefully, the code in the gem can be resolved to avoid these warnings in the future.

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.
```bash
Expand Down

0 comments on commit 204f9a9

Please sign in to comment.