#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: | new → assigned |
Summary: | llvm-9.0: Failed to configure → llvm-9.0 @9.0.1_3+emulated_tls Failed to configure |
comment:2 Changed 23 months ago by easye
Cc: | easieste added |
---|
comment:3 Changed 23 months ago by easye
comment:4 Changed 23 months ago by kencu (Ken)
What happens if you run this on Ventura?
/usr/bin/python2.7
comment:5 Changed 23 months 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 23 months 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 23 months ago by ryandesign (Ryan Carsten Schmidt)
Summary: | llvm-9.0 @9.0.1_3+emulated_tls Failed to configure → 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 |
---|
comment:8 Changed 23 months 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 23 months ago by kencu (Ken)
OK, the Portfile is just forcing /usr/bin/python2.7
even though it doesn't exist on that system.
and it has to be changed to something like this:
comment:10 Changed 23 months ago by kencu (Ken)
working on this and a general cleanup of llvm/clang 9.0
comment:11 Changed 22 months ago by kencu (Ken)
llvms up to 9.0 were fixed by
https://github.com/macports/macports-ports/commit/e582f39cb5e4807717275bf4ebf804db0830f2f7
comment:12 Changed 22 months ago by kencu (Ken)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
and llvm-10 by:
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…