Open xXkoshmarikXx opened 9 months ago
According to https://github.com/llvm/llvm-project/blob/release/16.x/clang/docs/ReleaseNotes.rst
The -Wimplicit-function-declaration and -Wimplicit-int warnings now default to an error in C99, C11, and C17. As of C2x, support for implicit function declarations and implicit int has been removed, and the warning options will have no effect. Specifying -Wimplicit-int in C89 mode will now issue warnings instead of being a noop.
NOTE: We recommend that projects using configure scripts verify that the results do not change before/after setting -Werror=implicit-function-declarations or -Wimplicit-int to avoid incompatibility with Clang 16.
Looks like it was a warning in clang 15: https://github.com/llvm/llvm-project/blob/release/15.x/clang/docs/ReleaseNotes.rst
I had to do this to get it build 4.6.0 on mac arm:
gem install ovirt-engine-sdk -v4.6.0 -- --with-cflags="-Wno-error=incompatible-function-pointer-types -Wno-error=implicit-function-declaration"
If you're only seeing this problem, you can probably get by with:
gem install ovirt-engine-sdk -v4.6.0 -- --with-cflags="-Wno-error=implicit-function-declaration"
I was seeing the issue in #14, so I needed to also add -Wno-error=incompatible-function-pointer-types
I had to do this to get it build 4.6.0 on mac arm:
gem install ovirt-engine-sdk -v4.6.0 -- --with-cflags="-Wno-error=incompatible-function-pointer-types -Wno-error=implicit-function-declaration"
If you're only seeing this problem, you can probably get by with:
gem install ovirt-engine-sdk -v4.6.0 -- --with-cflags="-Wno-error=implicit-function-declaration"
I was seeing the issue in #14, so I needed to also add
-Wno-error=incompatible-function-pointer-types
gem install ovirt-engine-sdk -v4.6.0 -- --with-cflags="-Wno-error=incompatible-function-pointer-types -Wno-error=implicit-function-declaration"
Worked for me. mysql2 errors also solved when using this flag. You saved my day.
@shihabsnt thanks for confirming it worked for you... it's a reasonable workaround until they can change the code to avoid these errors with newer clang versions.
FYI if anyone is using gcc14 (which produces similar errors) you can use -- --with-cflags="-Wno-int-conversion -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types"
I don't know if I should open new issue, it's technically different, but this one already has been reported 3 times.
Of note, both of these warnings are addressed in #19 and #17 so hopefully this will no longer be an issue.
Not sure if the project is currently buildable due to WELD issues, so I'm not sure how quickly this can land.
following error occurred when trying to install plugin into vagrant command: 'vagrant plugin install ovirt-engine-sdk' error: