Opened 3 weeks ago

Last modified 7 days ago

#66265 assigned defect

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 (10)

comment:1 Changed 3 weeks 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 13 days ago by easye

Cc: easieste added

comment:3 Changed 13 days 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 12 days ago by kencu (Ken)

What happens if you run this on Ventura?

/usr/bin/python2.7

comment:5 Changed 12 days 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 12 days ago by ryandesign (Ryan 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 12 days ago by ryandesign (Ryan 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 11 days 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 11 days ago by kencu (Ken)

comment:10 Changed 7 days ago by kencu (Ken)

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

Note: See TracTickets for help on using tickets.