Port-RISCV archive

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

Re: No GDB in riscv64-none-elf-binutils?



Still can't get a riscv64-gdb, but I do get an amd64 one in
../obj/tooldir.NetBSD-10.1-amd64/bin/
The commands I tried below are:

./build.sh -O ../obj -U -u -N1 -j4 -V MKCROSSGDB=yes tools

./build.sh -O ../obj -U -u -N1 -j4 -m amd64  -V MKCROSSGDB=yes tools

./build.sh -O ../obj -U -u -N1 -j4 -m riscv64 -V MKCROSSGDB=yes tools

I tried all three on the 10.1 release tree from the ftp and also on the netbsd-10 branch hosted on github (last commit yesterday). I got a few riscv64 bin-tools (such as riscv64--netbsd-fdisk) but no riscv64--netbsd-gdb, only a x86_64--netbsd-gdb.

uname -a output:
NetBSD NetBSD 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64

Leo

On Thu, 31 Jul 2025, Martin Husemann wrote:

On Thu, Jul 31, 2025 at 11:29:42AM +0200, leo.lundberg99%ikmail.com@localhost wrote:
Do you mean the NetBSD source tree? I have the 10.1 release downloaded but
it doesn't seem to have that make variable, I tried building with that flag
and with tools as target but I got no binary, I checked in my
$SOURCE/share/mk/bsd.README and I couldn't find the flag.

It seems to be undocmented. The support is there on the netbsd-10 branch
though, try:

	./build.sh (other build.sh options) -V MKCROSSGDB=yes tools

The only place it is used (I think) is in tools/Makefile where it adds
an additional subdirectory for gdb.

Martin



Home | Main Index | Thread Index | Old Index