Opened 21 months ago

Closed 21 months ago

Last modified 21 months ago

#66974 closed defect (fixed)

lldb-9.0 fails to install

Reported by: clintolsen (Clint Olsen) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: monterey Cc: ryandesign (Ryan Carsten Schmidt)
Port: lldb-9.0

Description

I'm sure there's something trivially wrong. It fails out of the gate with a cmake error:

Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)":
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: arm64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Determining if the include file link.h exists failed with the following output:
Change Dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/lldb-9.0/work/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_3c33f/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_3c33f.dir/build.make CMakeFiles/cmTC_3c33f.dir/build
Building C object CMakeFiles/cmTC_3c33f.dir/CheckIncludeFile.c.o
/usr/bin/clang   -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -mmacosx-version-min=12.0 -MD -MT CMakeFiles/cmTC_3c33f.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_3c33f.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_3c33f.dir/CheckIncludeFile.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/lldb-9.0/work/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/lldb-9.0/work/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'link.h' file not found
#include <link.h>
         ^~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_3c33f.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_3c33f/fast] Error 2

Attachments (1)

main.log (67.2 KB) - added by clintolsen (Clint Olsen) 21 months ago.
main.log

Download all attachments as: .zip

Change History (6)

comment:1 Changed 21 months ago by jmroot (Joshua Root)

Keywords: lldb-9.0 cmake removed
Owner: set to jeremyhu
Status: newassigned

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

Please attach the main.log file.

Changed 21 months ago by clintolsen (Clint Olsen)

Attachment: main.log added

main.log

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

Keywords: monterey added

Ok so from the log the real error is:

:info:configure -- Found PythonInterp: /usr/bin/python2.7 
:info:configure CMake Error at CMakeLists.txt:653 (if):
:info:configure   if given arguments:
:info:configure     "VERSION_LESS" "2.7"
:info:configure   Unknown arguments specified
:info:configure -- Configuring incomplete, errors occurred!

This was supposed to have been fixed already 2 months ago (see #66265) but the fix was erroneously applied only to macOS 13 and later, whereas the issue actually affects macOS 12.3 and later, so the llvm ports need to apply the fix also on macOS 12.

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

Resolution: fixed
Status: assignedclosed

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

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

Cc: ryandesign added
Note: See TracTickets for help on using tickets.