C compiler not found after upgrade to macOS 13.0.1

Artemio González López artemiog at mac.com
Thu Nov 10 19:02:20 UTC 2022


> On 10 Nov 2022, at 18:52, Artemio González López <artemiog at mac.com> wrote:
> 
> After upgrading to macOS 13.0.1 (on an M1 MacBook Pro), port cannot find any C compiler:
> 
> checking for gcc... /opt/local/bin/clang-mp-14
> checking whether the C compiler works... no
> configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_libxml2/libxml2/work/libxml2-2.10.3':
> configure: error: C compiler cannot create executables
> 
> However, the CLT seems to be installed:
> 
> artemio at mbp-13 ~ % pkgutil --pkg-info=com.apple.pkg.{CLTools_Executables,CLTools_Base,DeveloperToolsCLI,DeveloperToolsCLILeo} 2>/dev/null | sed -n 's/^version: //p'
> 14.1.0.0.1.1666437224
> 
> Does anybody know what’s going on here? (any help would be much appreciated!)
> 
> Thanks in advance,
> 
> Artemio
> 
> 
> Artemio Gonzalez Lopez
> artemiog at mac.com
> 

Actually, this problem is also related to the icu library referenced from libxml. Indeed, looking in Console.app I found a bunch of clang crashes (basically every time it was called in the configure process) like the following:

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: /opt/local/lib/libicui18n.71.dylib
Referenced from: <45F9A0DF-B06D-34C8-946F-88FFA574E722> /opt/local/lib/libxml2.2.dylib
Reason: tried: '/opt/local/lib/libicui18n.71.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libicui18n.71.dylib' (no such file), '/opt/local/lib/libicui18n.71.dylib' (no such file), '/usr/local/lib/libicui18n.71.dylib' (no such file), '/usr/lib/libicui18n.71.dylib' (no such file, not in dyld cache)

Cheers,

Artemio


Artemio Gonzalez Lopez
artemiog at mac.com

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


More information about the macports-users mailing list