Opened 4 months ago

Last modified 3 months ago

#61589 reopened defect

clang-devel @20201115: build fails on 10.9 with CMake Error: sdk_has_arch_support Function invoked with incorrect arguments for function

Reported by: cave-canem Owned by: kencu (Ken)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: clang-devel

Description

Logs in the attached files.

Attachments (1)

logs.zip (40.2 KB) - added by cave-canem 4 months ago.

Download all attachments as: .zip

Change History (9)

Changed 4 months ago by cave-canem

Attachment: logs.zip added

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

Keywords: Cmake error removed
Summary: CMake error building clang-develclang-devel: CMake Error: sdk_has_arch_support Function invoked with incorrect arguments for function

The log is from OS X 10.9 and it seems that the errors are:

:info:configure CMake Error at projects/compiler-rt/cmake/builtin-config-ix.cmake:91 (sdk_has_arch_support):
:info:configure   sdk_has_arch_support Function invoked with incorrect arguments for function
:info:configure   named: sdk_has_arch_support
:info:configure Call Stack (most recent call first):
:info:configure   projects/compiler-rt/lib/builtins/CMakeLists.txt:48 (include)
:info:configure CMake Error at projects/compiler-rt/cmake/builtin-config-ix.cmake:91 (sdk_has_arch_support):
:info:configure   sdk_has_arch_support Function invoked with incorrect arguments for function
:info:configure   named: sdk_has_arch_support
:info:configure Call Stack (most recent call first):
:info:configure   projects/compiler-rt/lib/builtins/CMakeLists.txt:48 (include)

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

Thanks for the report.

compiler_rt is one of the two most sensitive areas of clang to build, the other being the sanitizers section. These often break on older systems when clang is updated. I don't usually spend the time trying to fix clang-devel for older systems as it is quite a project indeed, and it's a moving target all the time.

clang-10 is quite new and fixed back to 10.6, so that's the newest one I have for you.

I'll be working on clang-11 next, and I plan to fix it back 10.6 as well.

comment:3 Changed 4 months ago by mf2k (Frank Schima)

Cc: jeremyhu removed
Owner: set to jeremyhu
Status: newassigned

comment:4 Changed 4 months ago by kencu (Ken)

Summary: clang-devel: CMake Error: sdk_has_arch_support Function invoked with incorrect arguments for functionclang-devel @20201115: build fails on 10.9 with CMake Error: sdk_has_arch_support Function invoked with incorrect arguments for function

comment:5 Changed 3 months ago by kencu (Ken)

Cc: jeremyhu added; kencu removed
Owner: changed from jeremyhu to kencu

same fix as clang-11 will be used here

comment:6 Changed 3 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In 376fb3c2d90a908a555bacd94ac97885b3f096fb/macports-ports (master):

clang-11: fix build on < 10.10

the compiler-rt search for the SDK to use is
problematic on these older systems, I suspect because
there is no MacOSX.sdk present.

Wrestling with the cmake scripts in compiler-rt is
not a simple project, and keeps changing. Sending in
the SDK to use seems to be simpler and accepted.

closes: #61701
closes: #61589

comment:7 Changed 3 months ago by kencu (Ken)

Resolution: fixed
Status: closedreopened

comment:8 Changed 3 months ago by kencu (Ken)

well I obviously have to apply the fix to the devel port before I can close this ticket too.

Note: See TracTickets for help on using tickets.