Hi, On 4/13/22 08:36, Luis Machado wrote: > Hi Joel, > > On 4/12/22 18:57, Joel Brobecker wrote: >> Hi Luis, >> >>> On 3/20/22 05:58, Joel Brobecker via Gdb-patches wrote: >>>> Hello, >>>> >>>> I have just finished creating the gdb-12.0.90 pre-release. >>>> It is available for download at the following location: >>>> >>>>       ftp://sourceware.org/pub/gdb/snapshots/branch/gdb-12.0.90.tar.xz >>>> >>>> A gzip'ed version is also available: gdb-12.0.90.tar.gz. >>>> >>>> Please give it a test if you can and report any problems you might >>>> find. >>>> >>>> On behalf of all the GDB contributors, thank you! >>> >>> It seems GDB doesn't build with --enable-targets=all for 32-bit Arm. >>> I think >>> this is a long-standing bug that has not been fixed yet. >>> >>> I'd consider this a blocker for the release, as builds shouldn't fail. >> >> Generally speaking, I tend to agree, but at the same time, it really >> depends. >> >> Is this specific to GDB 12, or did we have this issue with previous >> releases? > > This has been introduced in GDB 12 development as far as I remember. It > is similar/related to the following: > > https://sourceware.org/pipermail/binutils/2021-November/118485.html > > Also discussed slightly in > https://sourceware.org/bugzilla/show_bug.cgi?id=28684. > > I reported it back then: > https://sourceware.org/pipermail/binutils/2021-November/118554.html. > > It might be an easy configure adjustment, but I'm not familiar with bpf. > > I know Jose Marchesi did work on bpf, but I'm not sure if he is the > right PoC. > >> >> We also need some kind of visibility as to how quickly we think we can >> solve that issue. This usually requires someone to act as the issue's >> "champion" -- that person might not be the one actually making the fix, >> but they can at least try help expedite the process. > > Agreed. I just want to make sure this has visibility so we can try to > fix it before release. > >> >>> I get the following: >>> >>> binutils-gdb-armhf-bionic/sim/bpf/../../../../repos/binutils-gdb/sim/bpf/../common/sim-close.c:43: >>> >>> undefined reference to `bpf_cgen_cpu_close' >>> >>> binutils-gdb-armhf-bionic/sim/bpf/../../../../repos/binutils-gdb/sim/bpf/sim-if.c:166: >>> >>> undefined reference to `bpf_cgen_cpu_open_1' >>> >>> binutils-gdb-armhf-bionic/sim/bpf/../../../../repos/binutils-gdb/sim/bpf/sim-if.c:179: >>> >>> undefined reference to `bpf_cgen_init_dis' >>> >>> This is GCC 7.5.0 on Ubuntu 18.04. >>> >>> Should I go ahead and open a ticket against the release? I'm not sure >>> who is >>> responsible for handling BPF. >> >> I'd start by asking Mike Frysinger, who's the sim maintainer. >> He might not know about this particular target, but he's made >> a lot of cleanups in this area. >> >> In this case, hopefully the fix won't be too difficult. >> > > cc-ed both Mike and Jose Marchesi. > > Thanks, > Luis The attached patch makes things build again, though I see a number of GDB internal errors when disassembling (for some arch/abi combinations). I suspect we're missing some adjustments to make disassembling work This particular combination of switches and host has not been built in a while, so bugs might've been introduced/uncovered. Mike, Jose, does this look reasonable?