Background Work
Chipyard Version and Hash
Release: 1.13.0
Hash: 69eba86
OS Setup
building from source fails in step 3 so ./build-setup.sh riscv-tools
Other Setup
Ex: Prior steps taken / Documentation Followed / etc...
Current Behavior
the build fails at this line in toolchains/riscv-tools/riscv-pk/bbl/bbl.mk.in
if $(READELF) -h $< 2> /dev/null > /dev/null; then $(OBJCOPY) -O binary --set-section-flags .bss=alloc,load,contents $< $@; else cp $< $@; fi
Expected Behavior
It builds
Other Information
The build fails because configure doesn't use the correct version of $OBJCOPY, but uses the glbally available one, which in my case wasn't riscv64-unknown-elf-objcopy.
As a simple fix i just updated the makefile by prepending this
CC = $(RISCV)/bin/riscv64-unknown-elf-gcc
OBJCOPY = $(RISCV)/bin/riscv64-unknown-elf-objcopy
And the build succeded. I'm not sure if this is an issue with how chipyard builds riscv-pk or the package itself. By reading riscv-pk issues it seems that it does read the PATH variables correctly, but on my system something doesn't want to work i guess.
Background Work
Chipyard Version and Hash
Release: 1.13.0
Hash: 69eba86
OS Setup
building from source fails in step 3 so
./build-setup.sh riscv-toolsOther Setup
Ex: Prior steps taken / Documentation Followed / etc...
Current Behavior
the build fails at this line in toolchains/riscv-tools/riscv-pk/bbl/bbl.mk.in
Expected Behavior
It builds
Other Information
The build fails because configure doesn't use the correct version of $OBJCOPY, but uses the glbally available one, which in my case wasn't riscv64-unknown-elf-objcopy.
As a simple fix i just updated the makefile by prepending this
And the build succeded. I'm not sure if this is an issue with how chipyard builds riscv-pk or the package itself. By reading riscv-pk issues it seems that it does read the PATH variables correctly, but on my system something doesn't want to work i guess.