-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Build failure with Clang 16, 17 -- call to undeclared function 'va_arg' #6984
Comments
The Something else must be going wrong. |
Thanks for raising this - the PAL code is so messy... One guess is this from palinternal.h line 328: #ifdef _VAC_
#undef CHAR_BIT
#undef va_arg
#endif I don't know what |
The root cause appears to be: Builds fine with this patch:
|
The file uses va_arg etc, so it should #include <stdarg.h>
Seems pretty straight-forward, compiler got stricter about these types of issues over time. PAL is a fruit that keeps on giving. The most mind-boggling part is that it wasn't just not included, it was commented out. There was a time where dotnet's PAL tried to include stdargs in files that use output.inl, but that file has since been removed anyway. BTW, I started a trunk Clang build on Ubuntu, but ran out of memory, will resume that once more of it arrives. I know there are probably nightly packages, but I'd likely need that for another project anyway. I have a FreeBSD build, but Chakra doesn't yet build there (PAL being probably the largest obstacle for a port, it is a lot of work to fix this fork of it on a new platform). |
Added a new label for PAL issues. |
The file uses va_arg etc, so it should #include <stdarg.h>
Closing as presumably fixed by #6985 |
It appears that
__GNUC_VA_LIST
is defined when it probably shouldn't be.The text was updated successfully, but these errors were encountered: