M1 MacPorts failures, "configure: error: C compiler cannot create executables"

Steven Smith steve.t.smith at gmail.com
Sat Mar 12 23:49:17 UTC 2022


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 <jonesc at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20220312/c7c8759c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3898 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20220312/c7c8759c/attachment.bin>


More information about the macports-dev mailing list