coldfeet has quit [Remote host closed the connection]
markh has quit [Ping timeout: 260 seconds]
jobol has joined #riscv
levitating has joined #riscv
ldevulder has joined #riscv
cleger_ has joined #riscv
levitating has quit [Ping timeout: 246 seconds]
levitating has joined #riscv
prabhakalad has quit [Quit: Konversation terminated!]
prabhakalad has joined #riscv
danilogondolfo has joined #riscv
danilogondolfo has quit [Remote host closed the connection]
danilogondolfo has joined #riscv
coldfeet has joined #riscv
lagash has quit [Ping timeout: 248 seconds]
zjason` is now known as zjason
heat has joined #riscv
damian101 has joined #riscv
pabs3 has quit [Quit: Don't rest until all the world is paved in moss and greenery.]
pabs3 has joined #riscv
flatmush has joined #riscv
jacklsw has quit [Ping timeout: 255 seconds]
markh has joined #riscv
jfsimon1981 has quit [Read error: Connection reset by peer]
jfsimon1981 has joined #riscv
lagash has joined #riscv
heat has quit [Ping timeout: 246 seconds]
heat has joined #riscv
X-Scale has joined #riscv
damian101 has quit [Ping timeout: 246 seconds]
levitating has quit [Remote host closed the connection]
damian101 has joined #riscv
iooi has quit [Read error: Connection reset by peer]
iooi has joined #riscv
heat has quit [Read error: Connection reset by peer]
heat has joined #riscv
unlord_ is now known as unlord
lemoniter has joined #riscv
heat has quit [Read error: Connection reset by peer]
heat has joined #riscv
Tenkawa has joined #riscv
damian101 has quit [Ping timeout: 248 seconds]
heat has quit [Read error: Connection reset by peer]
heat has joined #riscv
heat has quit [Read error: Connection reset by peer]
heat has joined #riscv
ln5 has quit [Remote host closed the connection]
Starfoxxes has quit [Ping timeout: 260 seconds]
inad922 has joined #riscv
<inad922>
Hello
<inad922>
Could someone either help me with how to build gdb for Risc-V with python support from this repository https://github.com/riscv-collab/riscv-gnu-toolchain or suggest a place where I can ask about it? I tried ` GDB_TARGET_FLAGS_EXTRA="--with-python --with-python-libdir" ./configure --prefix=/opt/riscv` but it doesn't seem to build it with python
<inad922>
support unfortunately.
<inad922>
I mean that `configure` command and the corresponding `make`.
Starfoxxes has joined #riscv
<palmer>
shouldn't `--with-python-libdir`take a path?
<inad922>
It doesn't seem to drop an error due to that.
<inad922>
I checked out https://sourceware.org/git/binutils-gdb.git just in case and issued `./configure --with-python --with-python-libdir`. Shouldn't this fail with the configure script?
naoki has quit [Quit: naoki]
<palmer>
inad922: I'd expect configure to fail if the path is necessary, but maybe it just produces a python that doesn't work?
<palmer>
is there anything exciting in the configure output?
<inad922>
palmer It compiles gdb fine but `/opt/riscv/bin/riscv64-unknown-elf-gdb --config | grep '\-\-with\-python'` comes back empty.
<inad922>
> is there anything exciting in the configure output?
<inad922>
No, nothing irregular.
<palmer>
so you get some sort of message saying it enables python, and then it doesn't? I'm running on locally, IIRC this used to work fine
<inad922>
> so you get some sort of message saying it enables python.
<inad922>
No I peaked into the configure script and set the environment variable `GDB_TARGET_FLAGS_EXTRA` to the extra flags that are passed down to the build in the gdb submodule.
<inad922>
At least that's what I thought I do. I'm not sure anymore.
levitating has joined #riscv
impomatic has joined #riscv
<palmer>
inad922: so there should be a binutils-gdb submodule, and then a gdb folder in there. There's a `config.log` for that folder, you should see some python-related stuff (around `configure:27912: checking whether to use python` for me)
Stat_headcrabed has joined #riscv
balrog has quit [Ping timeout: 245 seconds]
balrog has joined #riscv
<inad922>
palmer I checked the submodule configuration, cloned binutils-gdb separately, checked out the branch that the submodule pointed to and tried building from there. Looks like the python headers were missing on my machine. I give it another go with those installed.
Stat_headcrabed has quit [Quit: Stat_headcrabed]
<inad922>
Also I can't find no config.log anywhere.
<inad922>
Yes, so installing the relevant python header files and compiling binutils-gdb that way worked. I also used the `--with-python=$(which python)` flag. The libdir was not needed. Now I try it with the riscv repo
<impomatic>
Hi, there are a few RISC-V assembly programming books on Amazon. Any recommendations, or ones to avoid?
<palmer>
impomatic: people like Andrew's
cleger_ has quit [Quit: Leaving]
<impomatic>
palmer: thanks, is it still pretty up-to-date? There have been a few published since (including a couple this year), but no reviews.
<palmer>
impomatic: there's new extensions and such, but the core of the ISA hasn't changed so it should be fine to get started
<impomatic>
Thank you
Andre_Z has joined #riscv
<palmer>
though I guess it depends on where you're coming from? if you don't know any other assembly languages then it might just be best to get a textbook (we used Patt/Patel). At a certain point all the RISC-flavored assembly is pretty much the same...
coldfeet has quit [Remote host closed the connection]