Skip to content

[rustbuild] x.py build --stage 1 src/rustc --host=$HOST errors #38037

Closed
@japaric

Description

@japaric

with:

(In this example: BUILD = x86_64-unknown-linux-gnu and HOST = arm-unknown-linux-gnueabi)

Building stage0 std artifacts (x86_64-unknown-linux-gnu -> arm-unknown-linux-gnueabi)
(..)
Building stage0 test artifacts (x86_64-unknown-linux-gnu -> arm-unknown-linux-gnueabi)
(..)
Building LLVM for arm-unknown-linux-gnueabi
(..)
ninja: error: '/home/japaric/build/x86_64-unknown-linux-gnu/llvm/bin/llvm-tblgen', needed by 'include/llvm/IR/Attributes.inc.tmp', missing and no known rule to make it

when configured with configure --enable-rustbuild --host=$HOST or with configure --enable-rustbuild --host=$HOST --llvm-root=/usr.

I think this is because rustbuild tries to use the llvm-tblgen that's supposed to be generated by building LLVM for $BUILD but rusbuild nevers builds LLVM for $BUILD in this case.

cc @alexcrichton

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions