Thanks for the quick reply ! I went through your post and have some more info.
Your C diagnostic test exampled compiled but it spewed out a ton of warnings, see some here:
clang -o hello hello.c
In file included from hello.c:1:
In file included from /usr/local/include/stdio.h:64:
/usr/local/include/_stdio.h:93:16: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
unsigned char *_base;
^
/usr/local/include/_stdio.h:93:16: note: insert '_Nullable' if the pointer may be null
unsigned char *_base;
^
_Nullable
/usr/local/include/_stdio.h:93:16: note: insert '_Nonnull' if the pointer should never be null
unsigned char *_base;
^
_Nonnull
...
/usr/local/include/stdio.h:393:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
FILE *funopen(const void *,
^
/usr/local/include/stdio.h:393:6: note: insert '_Nullable' if the pointer may be null
FILE *funopen(const void *,
^
_Nullable
/usr/local/include/stdio.h:393:6: note: insert '_Nonnull' if the pointer should never be null
FILE *funopen(const void *,
^
_Nonnull
13 warnings generated.
I am not sure if this is in any way related to the issue I was having with C++.
I ran the C++ test on a new macOS installation in a VM and it ran just fine.
I wanted to add that all of the issues that I have been facing are directly from clang, as I have exclusively been using my terminal while trying to solve this issue, no IDE.
I ran the test again on a separate user account and the issue persisted. I tried to cross reference environment variables between my main account, test account, and the vm, with no success, using both zsh and bash.
I am tempted to reinstall macOS completely as I believe this issue somehow stems from migration assistant.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: