Port-RISCV archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

build sophgo fsbl failed with cross-riscv64-none-elf-gcc



Hi,
I am trying to build https://github.com/sophgo/fsbl/tree/v4.1.6
with cross-riscv64-none-elf-gcc-13.2.0nb1 but get the assembler error:

===> Building for fsbl-sophgo-4.1.6
  MAKECMDGOALS all
fatal: not a git repository (or any of the parent directories): .git
date: unknown option -- I
Usage: date [-ajnRu] [-d date] [-r seconds] [+format] [[[[[[CC]yy]mm]dd]HH]MM[.SS]]
       date [-ajnRu] -f input_format new_date [+format]
  [VAR] CHIP_ARCH=cv180x
  [VAR] BOOT_CPU=riscv
  [VAR] DDR_CFG=
  [VAR] TEST_FROM_SPINOR1=0
  [VAR] PAGE_SIZE_64KB=1
  CC      lib/cpu/riscv/cpu_helper.c
/usr/pkg/cross-riscv64-none-elf/bin/riscv64-none-elf-gcc -ggdb3 -gdwarf-2 -I/usr/pkg/include -DLZ4_USER_MEMORY_FUNCTIONS=1 -DNO_ALLOCS -DARGTYPE=3 -DLTC_NO_FILE -DLTM_NO_FILE -DLTM_DESC -DLTC_SOURCE -DNO_DDR_CFG -DRISCV -DTEST_FROM_SPINOR1=0 -DPAGE_SIZE_64KB=1 -DPRINTF_TIMESTAMP=0 -DENABLE_ASSERTIONS=1 -DLOG_LEVEL=2 -D__CVITEK__ -DNANDBOOT_V2=1 -DTOC_HEADER_NAME=0xC906B001 -DFSBL_SECURE_BOOT_SUPPORT=0 -D USB_DL_BY_FSBL -Iinclude -Iinclude/cpu/riscv  -Iplat/ -Iplat/cv180x/include/uart -Iplat/cv180x/include/usb -Iplat/cv180x/include -Iplat/cv180x/include/riscv -Ilib/utils -Ilib/lzma -Ilib/lz4 -Ilib/crc -Iinclude/stdlib -Iinclude/stdlib/sys -Ilib/libtommath -Ilib/libtomcrypt/src/headers -Ilib/BigDigits -Iplat/cv180x/include/ddr -Ibuild -Iinclude/cpu -nostdinc -Wmissing-include-dirs -Werror -DRISCV -march=rv64imafdcvxthead -mcmodel=medany -mabi=lp64d -ffreestanding -fno-builtin -Wall -std=gnu99 -Os -ffunction-sections -fdata-sections -fno-delete-null-pointer-checks -O2 -I/usr/pkg/include -DIMAGE_BL2 -Wp,-MD,./build/cv180x/bl2/cpu_helper.d -MT build/cv180x/bl2/cpu_helper.o -MP -c lib/cpu/riscv/cpu_helper.c -o build/cv180x/bl2/cpu_helper.o
Assembler messages:
Error: x ISA extension `xthead' must be set with the versions
/tmp//ccx4Pltw.s:3: Error: x ISA extension `xthead' must be set with the versions
lib/cpu/riscv/cpu_helper.c:13: Error: unrecognized opcode `icache.iall'
lib/cpu/riscv/cpu_helper.c:14: Error: unrecognized opcode `sync.i'
gmake: *** [Makefile:199: build/cv180x/bl2/cpu_helper.o] Error 1
*** Error code 2

Does the cross-riscv64-none-elf-gcc package need to be pached or upgraded?

-rxg



Home | Main Index | Thread Index | Old Index