clang: error: unsupported option '-ffixed-x18' for target 'arm-linux-gnueabi'
Fabio Estevam
festevam at gmail.com
Sun Dec 15 14:23:55 CET 2024
On Sun, Dec 15, 2024 at 10:07 AM Jack Andrews <effbiae at gmail.com> 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.
More information about the U-Boot
mailing list