[PATCH rtems-source-builder] 6: Update MicroBlaze gdb to 12.1

Frank Kühndel frank.kuehndel at embedded-brains.de
Thu Mar 9 11:10:20 UTC 2023


Hello Chris,
Hello Alex,

On 3/8/23 20:51, Chris Johns wrote:
> Subject:
> Re: [PATCH rtems-source-builder] 6: Update MicroBlaze gdb to 12.1
> From:
> Chris Johns <chrisj at rtems.org>
> Date:
> 3/8/23, 20:51
> 
> To:
> Alex White <alex.white at oarcorp.com>, devel at rtems.org
> 
> 
> What hosts have you tested building this on?
> 
> I only ask as gdb-13 is not building on FeeBSD 13.1 for me.

I tried Alex's patch on top of RSB 
bfed51462eafcb6a5102a2d6d80b233f3c6ef635 for RTEMS 6 and microblaze:

almalinux 8.7: OK           [gcc (GCC) 8.5.0]
debian 11: OK               [gcc (Debian 10.2.1-6) 10.2.1]
fedora 37: OK               [gcc (GCC) 12.2.1]
opensuse-leap 15.4: OK      [gcc (SUSE Linux) 12.2.1]
ubuntu 22.04: OK            [gcc (Ubuntu 12.1.0-2ubuntu1~22.04) 12.1.0]

With FreeBSD I cannot help, sorry. Also, the above containers use the 
latest OS versions. I did not test older ones. Moreover, Opensuse 15.4 
does not use gcc 12 by default but a much older compiler.

*Without* Alex's patch these builds fail on Ubuntu and Fedora when 
building building microblaze-rtems6-gdb-11.2-x86_64-linux-gnu-1 with the 
following error:

In file included from 
/home/minna/src/rtems-source-builder/rtems/build/microblaz
e-rtems6-gdb-11.2-x86_64-linux-gnu-1/build/sim/../../gdb-11.2/sim/microblaze/mic
roblaze.h:21,
                  from 
/home/minna/src/rtems-source-builder/rtems/build/microblaz
e-rtems6-gdb-11.2-x86_64-linux-gnu-1/build/sim/../../gdb-11.2/sim/microblaze/sim
-main.h:21,
                  from 
/home/minna/src/rtems-source-builder/rtems/build/microblaz
e-rtems6-gdb-11.2-x86_64-linux-gnu-1/build/sim/../../gdb-11.2/sim/microblaze/../
common/dv-cfi.c:37:
/home/minna/src/rtems-source-builder/rtems/build/microblaze-rtems6-gdb-11.2-x86_
64-linux-gnu-1/build/sim/../../gdb-11.2/sim/microblaze/../../opcodes/microblaze-
opcm.h:45:9: error: ‘fsqrt’ redeclared as different kind of symbol
    45 |   fint, fsqrt,
       |         ^~~~~
In file included from ../../gnulib/import/math.h:41,
                  from 
/home/minna/src/rtems-source-builder/rtems/build/microblaz
e-rtems6-gdb-11.2-x86_64-linux-gnu-1/build/sim/../../gdb-11.2/sim/microblaze/../
common/dv-cfi.c:28:
/usr/include/bits/mathcalls-narrow.h:36:20: note: previous declaration 
of ‘fsqrt
’ with type ‘float(double)’
    36 | __MATHCALL_NARROW (__MATHCALL_NAME (sqrt), 
__MATHCALL_REDIR_NAME2 (sqrt)
, 1);
       |                    ^~~~~~~~~~~~~~~

Greetings,
Frank

> 
> Chris
> 
> On 9/3/2023 2:14 am, Alex White wrote:
>> GDB 11.2 fails to compile on Ubuntu 22.04 for MicroBlaze.
>> ---
>>   rtems/config/6/rtems-microblaze.bset | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/rtems/config/6/rtems-microblaze.bset b/rtems/config/6/rtems-microblaze.bset
>> index ea59313..e05fd7b 100644
>> --- a/rtems/config/6/rtems-microblaze.bset
>> +++ b/rtems/config/6/rtems-microblaze.bset
>> @@ -13,7 +13,7 @@
>>   
>>   devel/expat-2.4.8-1
>>   devel/gmp-6.2.1
>> -tools/rtems-gdb-11.2
>> +tools/rtems-gdb-12.1
>>   
>>   tools/rtems-xilinx-binutils-2.36
>>   tools/rtems-xilinx-gcc-10-newlib-head
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
> 

-- 
embedded brains GmbH
Herr Frank KÜHNDEL
Dornierstr. 4
82178 Puchheim
Germany
email: frank.kuehndel at embedded-brains.de
phone:  +49-89-18 94 741 - 23
mobile: +49-176-15 22 06 - 11
fax:    +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/



More information about the devel mailing list