Skip to content

Unable to build with clang (fixed upstream) #16

@nightspc

Description

@nightspc

I've been experimenting with getting gentoo installed on an unsupported Mac Mini M2 pro using chadmed's asahi-gentoosupport repo and the instructions from the alternate-distros page, except instead of using a normal stage3 (GNU toolchain/glibc) I'm using the experimental LLVM/musl one.

This has been fine so far, except when trying to compile u-boot with portage as I get an error about a duplicate definition of _start in arch/arm/cpu/armv8/start.S as the symbol is also defined in boot0-linux-kernel-header.h which is imported by start.S.

This has been fixed upstream by removing the duplicate definition:
https://source.denx.de/u-boot/u-boot/-/commit/4787c764f98ac9d4670ff45e11676c28fb61b882

Would you consider applying this change?

Note: This still doesn't fix compilation with the LLVM/musl stage3 as linking fails, however this is an upstream issue that can be worked around by using ld.bfd instead of ld.lld for now as ld.lld is not supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions