Opened 4 years ago

Closed 4 years ago

#61701 closed defect (fixed)

clang-11 build fails on 10.9 with CMake Error:

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

Description (last modified by cave-canem)

sdk_has_arch_support Function invoked with incorrect arguments for function

CMake Error at projects/compiler-rt/cmake/builtin-config-ix.cmake:90 (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:39 (include)

:info:configure CMake Error at projects/compiler-rt/cmake/builtin-config-ix.cmake:90 (sdk_has_arch_support):

:info:configure sdk_has_arch_support Function invoked with incorrect arguments for function

:info:configure named: sdk_has_arch_support

Logs in the attached logs.zip

Attachments (1)

logs.zip (43.3 KB) - added by cave-canem 4 years ago.

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by cave-canem

Attachment: logs.zip added

comment:1 Changed 4 years ago by cave-canem

Description: modified (diff)

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

thanks. clang-11 fails on all darwins < 10.12.

This is an upstream design choice, but I think I can keep it all going back to 10.5 with acceptable effort...there are a couple of issues that will need repair.

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

Cc: kencu added
Owner: changed from jeremyhu, kencu to jeremyhu

Only one person can be set as the ticket owner.

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

So I have this fixed now, as a 'brute-force' fix. I'm just going to see if I can make the 'elegant' fix.

clang-11 built on 10.7, and failed on 10.6 only because the libc++abi.dylib there does not have thread_local enabled by default (same bootstrapping issue for the last two years now.).

So we should be good across the whole spectrum again shortly.

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

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

comment:6 Changed 4 years 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

Note: See TracTickets for help on using tickets.