Opened 3 years ago

Closed 3 years ago

#61844 closed defect (duplicate)

php72 and earlier fail to compile with Xcode 12

Reported by: theq86 (theq86) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur catalina Cc: theq86 (theq86)
Port: php

Description

After upgrading to macOS 11 (x64 MacBook) and following the steps in the migration guide, I got errors regarding php70 and php72. php74 works well. However, some people have to install older versions, even if they are already EOL. Could you please repair those ports?

sudo port install php70
--->  Computing dependencies for php70
--->  Fetching archive for php70
--->  Attempting to fetch php70-7.0.33_3+libedit.darwin_20.x86_64.tbz2 from https://packages.macports.org/php70
--->  Attempting to fetch php70-7.0.33_3+libedit.darwin_20.x86_64.tbz2 from https://lil.fr.packages.macports.org/php70
--->  Attempting to fetch php70-7.0.33_3+libedit.darwin_20.x86_64.tbz2 from https://mse.uk.packages.macports.org/php70
--->  Fetching distfiles for php70
Error: php70 @7.0.33 cannot currently be compiled with Xcode 12 or later
Error: Failed to fetch php70: incompatible Xcode version
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php70/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port php70 failed

Change History (4)

comment:1 Changed 3 years ago by theq86 (theq86)

Owner: set to ryandesign
Status: newassigned

comment:2 Changed 3 years ago by mf2k (Frank Schima)

Port: php70,php72php70 php72

comment:3 Changed 3 years ago by theq86 (theq86)

Cc: theq86 added

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: bigsur catalina added
Port: php added; php70 php72 removed
Resolution: duplicate
Status: assignedclosed
Summary: PHP 7.0 and PHP 7.2 fail compiling on macOS 11.1 "Big Sur"php72 and earlier fail to compile with Xcode 12

some people have to install older versions, even if they are already EOL

Indeed that is why I keep earlier versions of php available in MacPorts. Unfortunately, php 7.2 and earlier as shipped by php's developers are incompatible with Xcode 12 and later. php 7.3.24 and later and 7.4.12 and later are compatible. I would like to backport the fixes to php 7.2 and earlier but have not done so yet. Duplicate of #60988.

Note: See TracTickets for help on using tickets.