Opened 2 years ago

Closed 23 months ago

Last modified 21 months ago

#66265 closed defect (fixed)

llvm-9.0 @9.0.1_3+emulated_tls: CMake Error at CMakeLists.txt:653 (if): if given arguments: "VERSION_LESS" "2.7" Unknown arguments specified

Reported by: deril (Dmytro) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: ventura Cc: easieste
Port: llvm-9.0

Description

While configuring llvm on macOS 13.0.1 x86_64 the following error occurs https://gist.github.com/deril/91ec24b46cde8ae153d87b866b90681e

Change History (13)

comment:1 Changed 2 years ago by jmroot (Joshua Root)

Keywords: ventura added
Owner: set to jeremyhu
Status: newassigned
Summary: llvm-9.0: Failed to configurellvm-9.0 @9.0.1_3+emulated_tls Failed to configure

comment:2 Changed 2 years ago by easye

Cc: easieste added

comment:3 Changed 2 years ago by easye

Like #66272, the problem seems to stem from Python failing to invoke /bin/ps for some reason, and giving more or less unintelligible configuration errors.

My cmake-fu is poor. I tried passing --trace-source=CMakeLists.txt for further debugging, but wasn't able to emulate the environment. Debugging MacPorts is hard…

comment:4 Changed 2 years ago by kencu (Ken)

What happens if you run this on Ventura?

/usr/bin/python2.7

comment:5 Changed 2 years ago by kencu (Ken)

So I suspect /usr/bin/python2.7 exists, but is not python 2.7, it's some other thing that prompts some kind of action.

In which case we'll have to start going back and rethinking the work that was done in all these llvms last year to use the system /usr/bin/python2.7 if it existed.

comment:6 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Apple stopped providing /usr/bin/python and /usr/bin/python2.7 as of macOS 12.3, but I don't have a macOS 13 machine here to check if they changed it again.

comment:7 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: llvm-9.0 @9.0.1_3+emulated_tls Failed to configurellvm-9.0 @9.0.1_3+emulated_tls: CMake Error at CMakeLists.txt:653 (if): if given arguments: "VERSION_LESS" "2.7" Unknown arguments specified

comment:8 Changed 2 years ago by deril (Dmytro)

On macOS 13 /usr/bin/python2.7 and /usr/bin/python are absent. Only /usr/bin/python3 binary is present

comment:9 Changed 2 years ago by kencu (Ken)

comment:10 Changed 2 years ago by kencu (Ken)

working on this and a general cleanup of llvm/clang 9.0

comment:11 Changed 23 months ago by kencu (Ken)

Last edited 21 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:12 Changed 23 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed
Last edited 21 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:13 Changed 21 months ago by ryandesign (Ryan Carsten Schmidt)

In 1614a4ccbedef5cd9d4fe4242734c0eba1a0577e/macports-ports (master):

llvm*: Don't use Apple python 2 on macOS 12

Apple python 2 is not present on macOS 12.3 and later

Closes: #66974
See: #66265

Note: See TracTickets for help on using tickets.