This is an archive of the discontinued LLVM Phabricator instance.

[AIX] Try to not use LLVM tools while building runtimes
ClosedPublic

Authored by daltenty on Aug 5 2020, 10:25 AM.

Details

Summary

Since 64-bit XCOFF and the big AR format is not yet supported in some of these tools, this patch avoids additional setup of these tools. This patch is not intended to prevent picking up the LLVM tools if they happen to be available otherwise.

Diff Detail

Event Timeline

daltenty created this revision.Aug 5 2020, 10:25 AM
daltenty requested review of this revision.Aug 5 2020, 10:25 AM

@daltenty, if these tools happened to be on the user's $PATH, then would they get picked up? Is that the desired behaviour?

@daltenty, if these tools happened to be on the user's $PATH, then would they get picked up? Is that the desired behaviour?

(summarizing offline discussion)

This isn't an exclusive problem to the runtime build, other parts of the llvm build may try to grab them for other purposes if they are on the users path. We can probably safely go with, if the user intentionally put them on their PATH they intended to use them for now.

This is hopefully a temporary workaround anyhow till XCOFF64 tool support matures.

hubert.reinterpretcast retitled this revision from [AIX] Don't try to use llvm tools while building runtimes to [AIX] Try to not use LLVM tools while building runtimes.
hubert.reinterpretcast edited the summary of this revision. (Show Details)

LGTM.

This revision is now accepted and ready to land.Aug 10 2020, 8:41 AM
This revision was landed with ongoing or failed builds.Aug 10 2020, 1:11 PM
This revision was automatically updated to reflect the committed changes.
phosek added a subscriber: phosek.Aug 10 2020, 6:32 PM

This change broke our toolchain build with the following error:

CMake Error at runtimes/CMakeLists.txt:500 (llvm_ExternalProject_Add):
  Syntax error in cmake code at

    /b/s/w/ir/k/llvm-project/llvm/runtimes/CMakeLists.txt:518

  when parsing string

    ${{name}_toolchain_tools}

  Invalid character ('{') in a variable name: ''
Call Stack (most recent call first):
  runtimes/CMakeLists.txt:565 (runtime_register_target)

Is it possible to quickly address the issue or revert the change?

phosek added inline comments.Aug 10 2020, 6:33 PM
llvm/runtimes/CMakeLists.txt
295

There is a curly brace missing.

Is it possible to quickly address the issue or revert the change?

@phosek, I don't think this is affecting the bots that are live for AIX at this time, so I've reverted the change and we'll make another attempt later.

dmajor added a subscriber: dmajor.Aug 11 2020, 9:20 AM
daltenty marked an inline comment as done.Aug 11 2020, 1:18 PM

Fixed variable expansion syntax in TOOLCHAIN_TOOLS