Opened 2 years ago

Closed 2 years ago

#65499 closed defect (fixed)

libgcc12 @12.1.0_3+stdlib_flag+universal Universal build broken

Reported by: johnrosshunt Owned by: Chris Jones <jonesc@…>
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: haspatch Cc:
Port: libgcc12 gcc12

Description

libgcc12/gcc12 universal build fails on Snow Leopard (and presumably other platforms). The following patch fixes universal builds for me.

diff -urN Portfile.old Portfile
--- Portfile.old	2022-07-16 18:38:02.037436722 -0500
+++ Portfile	2022-07-17 09:38:58.800365312 -0500
@@ -426,9 +426,11 @@
 # the generated compiler doesn't accept -arch
 configure.env-append \
     "CPP=${configure.cc} -E" \
+    "CPP_FOR_BUILD=${configure.cc} -E" \
     "CXXCPP=${configure.cxx} -E"
 build.env-append \
     "CPP=${configure.cc} -E" \
+    "CPP_FOR_BUILD=${configure.cc} -E" \
     "CXXCPP=${configure.cxx} -E"
 configure.cc-append [get_canonical_archflags]
 configure.cc_archflags

Attachments (3)

main.log.gz (8.5 KB) - added by johnrosshunt 2 years ago.
main.log
config.log.gz (3.2 KB) - added by johnrosshunt 2 years ago.
libiberty/config.log
Portfile (18.3 KB) - added by johnrosshunt 2 years ago.
New Portfile

Download all attachments as: .zip

Change History (4)

Changed 2 years ago by johnrosshunt

Attachment: main.log.gz added

main.log

Changed 2 years ago by johnrosshunt

Attachment: config.log.gz added

libiberty/config.log

Changed 2 years ago by johnrosshunt

Attachment: Portfile added

New Portfile

comment:1 Changed 2 years ago by Chris Jones <jonesc@…>

Owner: set to Chris Jones <jonesc@…>
Resolution: fixed
Status: newclosed

In ea5c8c32feb7c100aba8a44bd91d27266de9d31c/macports-ports (master):

gcc12: set CPP_FOR_BUILD env var

Closes: #65499

Note: See TracTickets for help on using tickets.