On Sun, Dec 15, 2024 at 10:07 AM Jack Andrews <[email protected]> wrote:
>
> thanks for uboot!
>
> i'm trying to build uboot for raspi 4.
> these steps produced warnings and a compile error
> ```
> $ git clone https://source.denx.de/u-boot/u-boot.git
> $ cd u-boot/

> $ make CC=clang rpi_4_defconfig
> clang: error: unsupported option '-ffixed-x18' for target

rpi_4_defconfig is a 64-bit target according to
doc/board/broadcom/raspberrypi.rst.

export ARCH=arm64
export CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-
make rpi_4_defconfig
make

In your case, you need to use a 64-bit clang.

Reply via email to