Build failures after 8214976

Julian Waters tanksherman27 at gmail.com
Thu Jun 9 12:39:36 UTC 2022


Hi Martin,

I've yet to try passing the --disable-warnings-as-errors flag yet, for the
time being I disabled the macro so I could test my local branch. I'll try
doing that later, thanks for the heads up. I'm using gcc version 11.2 at
the moment, if that's important.

best regards,
Julian

On Thu, Jun 9, 2022 at 8:33 PM Doerr, Martin <martin.doerr at sap.com> wrote:

> Hi Julian,
>
>
>
> I have already filed an issue related to that change:
>
> https://bugs.openjdk.org/browse/JDK-8288101
>
>
>
> Does the build work when using configure flag
> --disable-warnings-as-errors ?
>
> Or is it an additional problem?
>
> Which compiler version are you using?
>
>
>
> Best regards,
>
> Martin
>
>
>
> *Von: *hotspot-dev <hotspot-dev-retn at openjdk.java.net> im Auftrag von
> Julian Waters <tanksherman27 at gmail.com>
> *Datum: *Donnerstag, 9. Juni 2022 um 14:04
> *An: *hotspot-dev at openjdk.java.net <hotspot-dev at openjdk.java.net>
> *Betreff: *Build failures after 8214976
>
> After 8214976 builds on my local device seem to be failing when the
> precompiled headers are being generated, and I'm somewhat stumped by what
> seems to be causing them. Has anyone else faced this issue besides me? The
> failure log is below, in case that helps
>
> /src/hotspot/share/utilities/globalDefinitions.hpp:169:23: error:
> conflicting declaration of 'int vsprintf(char*, const char*, va_list)' with
> 'C' linkage
>   169 | FORBID_C_FUNCTION(int vsprintf(char*, const char*, va_list), "use
> os::vsnprintf");
>
> /src/hotspot/share/utilities/compilerWarnings_gcc.hpp:82:56: note: in
> definition of macro 'FORBID_C_FUNCTION'
>    82 |   extern "C" __attribute__((__warning__(alternative))) signature;
>
> stdio.h:423:5: note: previous declaration with 'C++' linkage
>   423 | int vsprintf (char *__stream, const char *__format,
> __builtin_va_list __local_argv)
>
> /src/hotspot/share/utilities/globalDefinitions.hpp:170:23: error:
> conflicting declaration of 'int vsnprintf(char*, size_t, const char*,
> va_list)' with 'C' linkage
>   170 | FORBID_C_FUNCTION(int vsnprintf(char*, size_t, const char*,
> va_list), "use os::vsnprintf");
>
> /src/hotspot/share/utilities/compilerWarnings_gcc.hpp:82:56: note: in
> definition of macro 'FORBID_C_FUNCTION'
>    82 |   extern "C" __attribute__((__warning__(alternative))) signature;
>       |                                                        ^~~~~~~~~
>
> stdio.h:464:5: note: previous declaration with 'C++' linkage
>   464 | int vsnprintf (char *__stream, size_t __n, const char *__format,
> __builtin_va_list __local_argv)
>
> best regards,
> Julian
>


More information about the hotspot-dev mailing list