Opened 19 months ago

Last modified 18 months ago

#67424 new defect

libgcc12 @12.3.0: Fails to build on Ventura 13.3.1 (a)

Reported by: lukaso (Lukas Oberhuber) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mascguy (Christopher Nielsen)
Port: libgcc12

Description (last modified by ryandesign (Ryan Carsten Schmidt))

libgcc12 @12.3.0 (lang)
Variants: [+]stdlib_flag, universal

Build is failing when calling

sudo port install libgcc12

There appears to be something wrong with how the MacOS SDK is being found.

I've configured so that: macosx_deployment_target 11.0 and macosx_sdk_version 11.3 as well as -x11 +no_x11 +quartz +python310 -python27 +no_gnome -gnome -gfortran +debug

Attachments (1)

main.log (15.7 KB) - added by lukaso (Lukas Oberhuber) 19 months ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/main.log

Download all attachments as: .zip

Change History (6)

Changed 19 months ago by lukaso (Lukas Oberhuber)

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/main.log

comment:1 Changed 19 months ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:2 Changed 19 months ago by lukaso (Lukas Oberhuber)

I've created this patch. However, it's a bit hard to know if my fix is universally applicable. For sure the compile is now working on my machine: https://github.com/macports/macports-ports/pull/18676

comment:3 Changed 19 months ago by mouse07410 (Mouse)

There appears to be something wrong with how the MacOS SDK is being found.

I personally find this problem rather persistent, with the answer for most if not all of my cases - looking for MacOSX.sdk rather than MacOSXnn.sdk (or even worse, MacOSXnn.m.sdk).

comment:4 in reply to:  3 Changed 19 months ago by kencu (Ken)

Replying to mouse07410:

I personally find this problem rather persistent, with the answer for most if not all of my cases - looking for MacOSX.sdk rather than MacOSXnn.sdk (or even worse, MacOSXnn.m.sdk).

Hey, you're in luck then, because that is exactly what MacPorts does too - at least since I brought the fix in, in Jan 2021!

https://github.com/macports/macports-ports/commit/e8866c5019d60832527850b4e50fdc1de8878716

Now -- things get screwed around with, accidentally or on purpose, and need to be brought back into line, so if you see a new way this fix needs improving, volunteer away! But the basic idea is alway going to be the same.

Version 0, edited 19 months ago by kencu (Ken) (next)

comment:5 Changed 18 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Note: See TracTickets for help on using tickets.