Hi,
I’m trying to build gdb for risc-v from the upstream repository but it is failing with
=== configuring in build-gnulib
…<snip>
configure: error: configuration riscv32-unknown-elf is unsupported.
Is this expected to work? Am I missing a configure option? Is there anywhere I can download the binaries from test builds or see which revisions should work? Ultimately I would like a windows build but thought it was best to try and get it working on linux first. I am looking for gdb 7.12 with risc-v support.
I am running on CentOS
The top of my git log is
commit ac10a93e27993cf25cd2116227b12735d6481797
Author: GDB Administrator <gdba...@sourceware.org>
Date: Fri Jan 6 00:00:25 2017 +0000
Automatic date update in version.in
git clone git://sourceware.org/git/binutils-gdb.git
My steps are:
export TARGET=riscv32-unknown-elf
export PREFIX=/ust/work/bhorgan/riscv/riscv32-unknown-elf
export PATH=$PREFIX/bin:$PATH
../binutils-gdb/configure --target=$TARGET --prefix=$PREFIX --disable-werror --disable-soft-float --disable-nls
make all
Thanks
Ben
the kernel build doesn't care about the tuple, so riscv-linux-gnu or riscv-elf should be fine
-mike
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/1BF8A34E-1CA2-49EA-8CED-4D7BA946F62D%40mac.com.
-mike
Thanks for the info. I can confirm that I can now build riscv gdb on centos using gcc 4.9 and on windows msys 2 both using the repo https://github.com/riscv/riscv-gnu-toolchain.
FYI, On mys2 I use: (TARGET=riscv 32-unknown-elf)
$ ../riscv-binutils-gdb/configure --target=$TARGET --prefix=$PREFIX --disable-werror --disable-soft-float --disable-nls --host=x86_64-w64-mingw32 --build=x86_64-pc-msys2
Thanks
Ben
>> To post to this group, send email to sw...@groups.riscv.org.
>> Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
>> To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/39374d7a294a4f0fa41e2eab7f190e96%40THHSTE15D1BE1.hs20.net.
>
> --
> You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
> To post to this group, send email to sw...@groups.riscv.org.
> Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
> To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/mhng-1d73e8c7-10df-4e3a-a24b-e1d56edbb3aa%40palmer-mbp2014.
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/1BF8A34E-1CA2-49EA-8CED-4D7BA946F62D%40mac.com.
--
-mike
Hi,
I think the make[2]: x86_64-w64-mingw32-ar: Command not found
error is caused by a mismatch in naming. To work around this I did:
cp /mingw64/bin/x86_64-w64-mingw32-gcc-ar.exe x86_64-w64-mingw32-ar.exe
However, I can’t currently build the riscv gdb because of the error:
undefined reference to `ada_yylex()'. This looks like https://sourceware.org/bugzilla/show_bug.cgi?id=21057
For reference, my msys2 setup is:
cmd.exe /c msys2_shell.cmd -mingw64 -mintty
$ pacman -S msys/make
$ pacman -S msys/mpc msys/mpc-devel
$ pacman -S msys/patch
$ pacman -S msys/svn
$ pacman -S msys/tar
$ pacman -S msys/gcc
$ pacman -S mingw-w64-x86_64-gcc
$ pacman -S msys/diffutils #for cmp
$ pacman -S msys/texinfo # for makinfo
$ pacman -S msys/bison
$ cp /mingw64/bin/x86_64-w64-mingw32-gcc-ar.exe x86_64-w64-mingw32-ar.exe
$ cp /mingw64/bin/x86_64-w64-mingw32-gcc-ranlib.exe x86_64-w64-mingw32-ranlib.exe
$ cp /mingw64/bin/x86_64-w64-mingw32-gcc-nm.exe x86_64-w64-mingw32-nm.exe
Thanks
Ben
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at
https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/fb0a8562-4071-4500-9140-db8a2bc1a556%40groups.riscv.org.
Thanks Tommy, gdb now builds for me. I used flex 2.6.0 built using the script at https://github.com/Alexpux/MSYS2-packages/commit/31e92a3e5cc5342643981e4ab25a9e93244cd6dd
Ben
From: Tommy Murphy [mailto:tommy_...@hotmail.com]
Sent: 24 March 2017 18:09
To: RISC-V SW Dev
Cc: maof...@gmail.com; Ben Horgan
Subject: Re: [sw-dev] Upstream risc-v gdb
I'm surprised that you're having to hack things like that (copying/renaming tools) as I didn't have to do that.