Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vrfyhelp.c failed to compile on all Mac-OpenJ9 builds #10522

Closed
austin0 opened this issue Sep 4, 2020 · 2 comments · Fixed by #10523
Closed

vrfyhelp.c failed to compile on all Mac-OpenJ9 builds #10522

austin0 opened this issue Sep 4, 2020 · 2 comments · Fixed by #10523
Assignees
Labels

Comments

@austin0
Copy link

austin0 commented Sep 4, 2020

Assuming this is related to #10520 @hangshao0

Failure link

Compilation failing for vrfyhelp.c on all Mac-OpenJ9 builds since 04/09/20.

https://ci.adoptopenjdk.net/view/Failing%20Builds/job/build-scripts/job/jobs/job/jdk8u/job/jdk8u-mac-x64-openj9/685/console

https://ci.adoptopenjdk.net/view/Failing%20Builds/job/build-scripts/job/jobs/job/jdk8u/job/jdk8u-mac-x64-openj9-macosXL/509/console

https://ci.adoptopenjdk.net/view/Failing%20Builds/job/build-scripts/job/jobs/job/jdk15u/job/jdk15u-mac-x64-openj9-macosXL/26/console

https://ci.adoptopenjdk.net/view/Failing%20Builds/job/build-scripts/job/jobs/job/jdk15u/job/jdk15u-mac-x64-openj9/24/console

https://ci.adoptopenjdk.net/view/Failing%20Builds/job/build-scripts/job/jobs/job/jdk11u/job/jdk11u-mac-x64-openj9-macosXL/677/consoleFull

https://ci.adoptopenjdk.net/view/Failing%20Builds/job/build-scripts/job/jobs/job/jdk11u/job/jdk11u-mac-x64-openj9/731/consoleFull

https://ci.adoptopenjdk.net/view/Failing%20Builds/job/build-scripts/job/jobs/job/jdk/job/jdk-mac-x64-openj9/106/consoleFull

Failure output (captured from console output)

18:13:12 vrfyhelp.c:1046:24: error: passing 'U_8 []' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Werror,-Wpointer-sign]
18:13:12                                                 || (0 != strncmp(J9UTF8_DATA(currentClassName), targetClassName, targetClassLength))
18:13:12                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18:13:12 ../oti/j9.h:169:36: note: expanded from macro 'J9UTF8_DATA'
18:13:12 #define J9UTF8_DATA(j9UTF8Address) (((struct J9UTF8 *)(j9UTF8Address))->data)
18:13:12                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18:13:12 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:84:26: note: passing argument to parameter '__s1' here
18:13:12 int      strncmp(const char *__s1, const char *__s2, size_t __n);
18:13:12                              ^
18:13:12 vrfyhelp.c:1046:55: error: passing 'U_8 *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Werror,-Wpointer-sign]
18:13:12                                                 || (0 != strncmp(J9UTF8_DATA(currentClassName), targetClassName, targetClassLength))
18:13:12                                                                                                 ^~~~~~~~~~~~~~~
18:13:12 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:84:44: note: passing argument to parameter '__s2' here
18:13:12 int      strncmp(const char *__s1, const char *__s2, size_t __n);
18:13:12                                                ^
@keithc-ca keithc-ca self-assigned this Sep 4, 2020
@keithc-ca
Copy link
Contributor

I have a fix for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants