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

Update modernc.org/cc/v4 to latest version #171

Merged
merged 2 commits into from
Aug 26, 2024
Merged

Conversation

sue445
Copy link
Contributor

@sue445 sue445 commented Aug 25, 2024

I encountered the following error when executing c-for-go

$ c-for-go -ccincl /path/to/my-conf.yml
  processing /path/to/my-conf.yml ⠹[ERR] /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:40:2: "Missing definition of size_t!"

content of _malloc.h is following.

#include <Availability.h>
#include <sys/cdefs.h>
#if __has_include(<sys/_types/_size_t.h>)
#include <sys/_types/_size_t.h>
#elif __has_include(<_liblibc/_size_t.h>)
#include <_liblibc/_size_t.h>
#else
#error "Missing definition of size_t!"
#endif

This problem was reported by https://gitlab.com/cznic/cc/-/issues/149 and has been fixed by https://gitlab.com/cznic/cc/-/commit/a8f3b8d4ff81c4d2c6b0ac1df378f41c3c7b34ab

So I updated modernc.org/cc/v4 to the latest version.

This is working fine locally for me.

$ c-for-go -ccincl /path/to/my-conf.yml
  processing /path/to/my-conf.yml done.

@xlab xlab merged commit b658875 into xlab:master Aug 26, 2024
@xlab
Copy link
Owner

xlab commented Aug 26, 2024

Good stuff!

@sue445 sue445 deleted the update-cznic-cc branch August 26, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants