Thanks. I tried uninstall/reinstall Xcode/CLT. Unfortunately, same issue.

I’m at a loss.

Here’s the errors from e.g. expat’s config.log (not sure which of these belong 
in “ordinary” trapped errors for config tests):

> configure:4453: /usr/bin/clang -V >&5
> clang: error: argument to '-V' is missing (expected 1 value)
> clang: error: no input files


> configure:4453: /usr/bin/clang -qversion >&5
> clang: error: unknown argument '-qversion'; did you mean '--version'?

> configure:4453: /usr/bin/clang -version >&5
> clang: error: unknown argument '-version'; did you mean '--version'?

> configure:13949: /usr/bin/clang -c -pipe -Os -arch arm64 
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk  -Werror 
> -Wduplicated-cond -I/opt/local/include 
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk conftest.c >&5
> error: unknown warning option '-Wduplicated-cond' 
> [-Werror,-Wunknown-warning-option]

> configure:13949: /usr/bin/clang -c -pipe -Os -arch arm64 
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk  -Werror 
> -Wlogical-op -I/opt/local/include 
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk conftest.c >&5
> error: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'? 
> [-Werror,-Wunknown-warning-option]

>         configure:19208: /usr/bin/clang -c -pipe -Os -arch arm64 
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk 
> -I/opt/local/include 
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk conftest.c >&5
>         conftest.c:59:20: error: expected expression
>         if (sizeof ((off_t)))
>                            ^
>         1 error generated.



> On Mar 11, 2022, at 10:39 AM, Chris Jones <jon...@hep.phy.cam.ac.uk> wrote:
> 
> 
> I recently ran into something similar, albeit on an intel machine running the 
> latest macOS12 release, not an M1 machine.
> 
> In the end I 'brute force' fixed it by completely removing Xcode and the CLT, 
> then reinstalling both.
> 
> Chris

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to