Skip to content

llvm installation missing "aarch64" flag in bootstrap/build.zig #7

@Hamilnvt

Description

@Hamilnvt

After running make bootstrap I received an error from the linker telling me that some Aarch64 symbols were not defined.
I found out that bootstrap/build.zig didn't have the "aarch64" flag set.
I added it and it worked.

bootstrap/build.zig
8-    const llvm_link_flags = b.run(&.{
9-        llvm_config,
10-        // "--link-static",
11-        "--ldflags",
12-        "--libs",
13-        "--system-libs",
14-        "core",
15-        "target",
16-        "native",
17-        "x86",
18:        "aarch64" // <- this line
19-    });

I'm not creating a pull request since It could be a problem of my machine (debian 12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions