Re: [PATCH] 6: Use GDB 13.2

2023-07-24 Thread Chris Johns
On 25/7/2023 3:18 pm, Sebastian Huber wrote:
> On 25.07.23 03:43, Chris Johns wrote:
>> On 24/7/2023 9:53 pm, Sebastian Huber wrote:
>>> Hello Karel,
>>>
>>> On 24.07.23 13:15, Karel Gardas wrote:

 this together with also libexpat patch builds fine on:

 - macOS 13.4.1
 - FreeBSD 13.2
 - Ubuntu 20.04
>>>
>>> thanks for the testing.
>>>

 btw, recently Joel remarked that gdb from 7/ makes troubles building on 
 fbsd
 12.x. I verified the same on fbsd 13.x and Hesham noted on discord that he 
 has
 the same issues on macOS. GBD from 7/rtems-* complains about missing 
 libmpfr.

 [...]
 checking for the correct version of gmp.h... yes
 checking for the correct version of mpfr.h... no
 configure: error: Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
 Try the --with-gmp and/or --with-mpfr options to specify
 their locations.  If you obtained GMP and/or MPFR from a vendor
 distribution package, make sure that you have installed both the libraries
 and the header files.  They may be located in separate packages.
 shell cmd failed: /bin/sh -ex
 /usr/home/karel/git/rtems-source-builder/rtems/build/aarch64-rtems7-gdb-22e69d8-x86_64-freebsd13.2-1/do-build
 error: building aarch64-rtems7-gdb-22e69d8-x86_64-freebsd13.2-1

 Obviusly gdb from 6/ does not hence there is probably some bit missing in 
 7/
 which is already fixed in 6/
>>>
>>> Actually I don't know how this should be handled. Some libraries are added 
>>> to
>>> rtems/config/6/rtems-default.bset others seem to be specific tool files. 
>>> The 7/
>>> tools should a minimum set of patches. Things should be directly fixed in 
>>> the
>>> upstream projects.
>>
>> We have been moving to build support libraries, such as GMP, separately and 
>> not
>> by links into the source tree of gcc. MacOS M silicon requires a specific 
>> option
>> for GMP to work and this has resulted in us building these libraries before
>> building the packages that depend on them because the upstream provide no 
>> means
>> to inject specific options. GDB added GMP and it seems more are being added 
>> so
>> we need to add support to build them before GDB and remove the symlink'ing 
>> into
>> the GCC source tree. The GMP change should provide a suitable template for 
>> doing
>> this.
> 
> So, ISL, MPC, MPFR, etc. should also move to the top level configuration?

We have been doing this as required, ie more than one package depends on it or
extra options. I suppose it is OK to build them them all from the top level. It
would protect us later if we find we need to handle the package in a specific
way, eg many years from now.

Chris
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH] 6: Use GDB 13.2

2023-07-24 Thread Sebastian Huber

On 25.07.23 03:43, Chris Johns wrote:

On 24/7/2023 9:53 pm, Sebastian Huber wrote:

Hello Karel,

On 24.07.23 13:15, Karel Gardas wrote:


this together with also libexpat patch builds fine on:

- macOS 13.4.1
- FreeBSD 13.2
- Ubuntu 20.04


thanks for the testing.



btw, recently Joel remarked that gdb from 7/ makes troubles building on fbsd
12.x. I verified the same on fbsd 13.x and Hesham noted on discord that he has
the same issues on macOS. GBD from 7/rtems-* complains about missing libmpfr.

[...]
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... no
configure: error: Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
Try the --with-gmp and/or --with-mpfr options to specify
their locations.  If you obtained GMP and/or MPFR from a vendor
distribution package, make sure that you have installed both the libraries
and the header files.  They may be located in separate packages.
shell cmd failed: /bin/sh -ex
/usr/home/karel/git/rtems-source-builder/rtems/build/aarch64-rtems7-gdb-22e69d8-x86_64-freebsd13.2-1/do-build
error: building aarch64-rtems7-gdb-22e69d8-x86_64-freebsd13.2-1

Obviusly gdb from 6/ does not hence there is probably some bit missing in 7/
which is already fixed in 6/


Actually I don't know how this should be handled. Some libraries are added to
rtems/config/6/rtems-default.bset others seem to be specific tool files. The 7/
tools should a minimum set of patches. Things should be directly fixed in the
upstream projects.


We have been moving to build support libraries, such as GMP, separately and not
by links into the source tree of gcc. MacOS M silicon requires a specific option
for GMP to work and this has resulted in us building these libraries before
building the packages that depend on them because the upstream provide no means
to inject specific options. GDB added GMP and it seems more are being added so
we need to add support to build them before GDB and remove the symlink'ing into
the GCC source tree. The GMP change should provide a suitable template for doing
this.


So, ISL, MPC, MPFR, etc. should also move to the top level configuration?

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
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/
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH] 6: Use GDB 13.2

2023-07-24 Thread Chris Johns
On 24/7/2023 9:53 pm, Sebastian Huber wrote:
> Hello Karel,
> 
> On 24.07.23 13:15, Karel Gardas wrote:
>>
>> this together with also libexpat patch builds fine on:
>>
>> - macOS 13.4.1
>> - FreeBSD 13.2
>> - Ubuntu 20.04
> 
> thanks for the testing.
> 
>>
>> btw, recently Joel remarked that gdb from 7/ makes troubles building on fbsd
>> 12.x. I verified the same on fbsd 13.x and Hesham noted on discord that he 
>> has
>> the same issues on macOS. GBD from 7/rtems-* complains about missing libmpfr.
>>
>> [...]
>> checking for the correct version of gmp.h... yes
>> checking for the correct version of mpfr.h... no
>> configure: error: Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
>> Try the --with-gmp and/or --with-mpfr options to specify
>> their locations.  If you obtained GMP and/or MPFR from a vendor
>> distribution package, make sure that you have installed both the libraries
>> and the header files.  They may be located in separate packages.
>> shell cmd failed: /bin/sh -ex
>> /usr/home/karel/git/rtems-source-builder/rtems/build/aarch64-rtems7-gdb-22e69d8-x86_64-freebsd13.2-1/do-build
>> error: building aarch64-rtems7-gdb-22e69d8-x86_64-freebsd13.2-1
>>
>> Obviusly gdb from 6/ does not hence there is probably some bit missing in 7/
>> which is already fixed in 6/
> 
> Actually I don't know how this should be handled. Some libraries are added to
> rtems/config/6/rtems-default.bset others seem to be specific tool files. The 
> 7/
> tools should a minimum set of patches. Things should be directly fixed in the
> upstream projects.

We have been moving to build support libraries, such as GMP, separately and not
by links into the source tree of gcc. MacOS M silicon requires a specific option
for GMP to work and this has resulted in us building these libraries before
building the packages that depend on them because the upstream provide no means
to inject specific options. GDB added GMP and it seems more are being added so
we need to add support to build them before GDB and remove the symlink'ing into
the GCC source tree. The GMP change should provide a suitable template for doing
this.

Chris
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH] 6: Use GDB 13.2

2023-07-24 Thread Sebastian Huber

Hello Karel,

On 24.07.23 13:15, Karel Gardas wrote:


this together with also libexpat patch builds fine on:

- macOS 13.4.1
- FreeBSD 13.2
- Ubuntu 20.04


thanks for the testing.



btw, recently Joel remarked that gdb from 7/ makes troubles building on 
fbsd 12.x. I verified the same on fbsd 13.x and Hesham noted on discord 
that he has the same issues on macOS. GBD from 7/rtems-* complains about 
missing libmpfr.


[...]
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... no
configure: error: Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
Try the --with-gmp and/or --with-mpfr options to specify
their locations.  If you obtained GMP and/or MPFR from a vendor
distribution package, make sure that you have installed both the libraries
and the header files.  They may be located in separate packages.
shell cmd failed: /bin/sh -ex 
/usr/home/karel/git/rtems-source-builder/rtems/build/aarch64-rtems7-gdb-22e69d8-x86_64-freebsd13.2-1/do-build

error: building aarch64-rtems7-gdb-22e69d8-x86_64-freebsd13.2-1

Obviusly gdb from 6/ does not hence there is probably some bit missing 
in 7/ which is already fixed in 6/


Actually I don't know how this should be handled. Some libraries are 
added to rtems/config/6/rtems-default.bset others seem to be specific 
tool files. The 7/ tools should a minimum set of patches. Things should 
be directly fixed in the upstream projects.


--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
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/
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH] 6: Use GDB 13.2

2023-07-24 Thread Karel Gardas



Hello Sebastian,

this together with also libexpat patch builds fine on:

- macOS 13.4.1
- FreeBSD 13.2
- Ubuntu 20.04

btw, recently Joel remarked that gdb from 7/ makes troubles building on 
fbsd 12.x. I verified the same on fbsd 13.x and Hesham noted on discord 
that he has the same issues on macOS. GBD from 7/rtems-* complains about 
missing libmpfr.


[...]
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... no
configure: error: Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
Try the --with-gmp and/or --with-mpfr options to specify
their locations.  If you obtained GMP and/or MPFR from a vendor
distribution package, make sure that you have installed both the libraries
and the header files.  They may be located in separate packages.
shell cmd failed: /bin/sh -ex 
/usr/home/karel/git/rtems-source-builder/rtems/build/aarch64-rtems7-gdb-22e69d8-x86_64-freebsd13.2-1/do-build

error: building aarch64-rtems7-gdb-22e69d8-x86_64-freebsd13.2-1

Obviusly gdb from 6/ does not hence there is probably some bit missing 
in 7/ which is already fixed in 6/


Thanks,
Karel

On 7/24/23 10:54, Sebastian Huber wrote:

Prepare for RTEMS 6.1 release.

Update #4921.
---
  rtems/config/6/rtems-default.bset |  2 +-
  rtems/config/6/rtems-microblaze.bset  |  2 +-
  rtems/config/tools/rtems-gdb-13.2.cfg | 17 +
  3 files changed, 19 insertions(+), 2 deletions(-)
  create mode 100644 rtems/config/tools/rtems-gdb-13.2.cfg

diff --git a/rtems/config/6/rtems-default.bset 
b/rtems/config/6/rtems-default.bset
index b1c81a0..4416c65 100644
--- a/rtems/config/6/rtems-default.bset
+++ b/rtems/config/6/rtems-default.bset
@@ -12,7 +12,7 @@
  %defineifnot with_rtems_dtc  devel/dtc-1.6.1-1
  %defineifnot with_rtems_expatdevel/expat-2.4.8-1
  %defineifnot with_rtems_gmp  devel/gmp-6.2.1
-%defineifnot with_rtems_gdb  tools/rtems-gdb-13.1
+%defineifnot with_rtems_gdb  tools/rtems-gdb-13.2
  %defineifnot with_rtems_binutils tools/rtems-binutils-2.39
  %defineifnot with_rtems_gcc  tools/rtems-gcc-12-newlib-head
  %defineifnot with_rtems_toolstools/rtems-tools-6
diff --git a/rtems/config/6/rtems-microblaze.bset 
b/rtems/config/6/rtems-microblaze.bset
index 95fe17e..1870935 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-13.1
+tools/rtems-gdb-13.2
  
  tools/rtems-xilinx-binutils-2.36

  tools/rtems-xilinx-gcc-10-newlib-head
diff --git a/rtems/config/tools/rtems-gdb-13.2.cfg 
b/rtems/config/tools/rtems-gdb-13.2.cfg
new file mode 100644
index 000..655ffe2
--- /dev/null
+++ b/rtems/config/tools/rtems-gdb-13.2.cfg
@@ -0,0 +1,17 @@
+#
+# GDB 13.2
+#
+
+%include %{_configdir}/checks.cfg
+%include %{_configdir}/base.cfg
+
+%define gdb_version 13.2
+%define gdb_src_ext xz
+%hash sha512 gdb-%{gdb_version}.tar.xz \
+   
gYXT4Rq2Da//WGClAWV3v+fddUfvAevIZ7wkdgPYK3T/dMTylJLH0q7lcHb1K+M+KJ9Ma0FKS4cNSzAEkJ9MNA==
+
+%patch add gdb -p1 --rsb-file=gdb-14067-python-config.diff 
https://sourceware.org/bugzilla/attachment.cgi?id=14783=raw
+%hash sha512 gdb-14067-python-config.diff \
+   
HiCV0eQulk0W+G5uu1gCvUn5Ns6bF6RxqOO9kcSi8zpfEHOMzphlOv5cz0IDN5Q8m94na1kRVy++4z6qc43t3w==
+
+%include %{_configdir}/gdb-common-1.cfg


___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


[PATCH] 6: Use GDB 13.2

2023-07-24 Thread Sebastian Huber
Prepare for RTEMS 6.1 release.

Update #4921.
---
 rtems/config/6/rtems-default.bset |  2 +-
 rtems/config/6/rtems-microblaze.bset  |  2 +-
 rtems/config/tools/rtems-gdb-13.2.cfg | 17 +
 3 files changed, 19 insertions(+), 2 deletions(-)
 create mode 100644 rtems/config/tools/rtems-gdb-13.2.cfg

diff --git a/rtems/config/6/rtems-default.bset 
b/rtems/config/6/rtems-default.bset
index b1c81a0..4416c65 100644
--- a/rtems/config/6/rtems-default.bset
+++ b/rtems/config/6/rtems-default.bset
@@ -12,7 +12,7 @@
 %defineifnot with_rtems_dtc  devel/dtc-1.6.1-1
 %defineifnot with_rtems_expatdevel/expat-2.4.8-1
 %defineifnot with_rtems_gmp  devel/gmp-6.2.1
-%defineifnot with_rtems_gdb  tools/rtems-gdb-13.1
+%defineifnot with_rtems_gdb  tools/rtems-gdb-13.2
 %defineifnot with_rtems_binutils tools/rtems-binutils-2.39
 %defineifnot with_rtems_gcc  tools/rtems-gcc-12-newlib-head
 %defineifnot with_rtems_toolstools/rtems-tools-6
diff --git a/rtems/config/6/rtems-microblaze.bset 
b/rtems/config/6/rtems-microblaze.bset
index 95fe17e..1870935 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-13.1
+tools/rtems-gdb-13.2
 
 tools/rtems-xilinx-binutils-2.36
 tools/rtems-xilinx-gcc-10-newlib-head
diff --git a/rtems/config/tools/rtems-gdb-13.2.cfg 
b/rtems/config/tools/rtems-gdb-13.2.cfg
new file mode 100644
index 000..655ffe2
--- /dev/null
+++ b/rtems/config/tools/rtems-gdb-13.2.cfg
@@ -0,0 +1,17 @@
+#
+# GDB 13.2
+#
+
+%include %{_configdir}/checks.cfg
+%include %{_configdir}/base.cfg
+
+%define gdb_version 13.2
+%define gdb_src_ext xz
+%hash sha512 gdb-%{gdb_version}.tar.xz \
+   
gYXT4Rq2Da//WGClAWV3v+fddUfvAevIZ7wkdgPYK3T/dMTylJLH0q7lcHb1K+M+KJ9Ma0FKS4cNSzAEkJ9MNA==
+
+%patch add gdb -p1 --rsb-file=gdb-14067-python-config.diff 
https://sourceware.org/bugzilla/attachment.cgi?id=14783=raw
+%hash sha512 gdb-14067-python-config.diff \
+   
HiCV0eQulk0W+G5uu1gCvUn5Ns6bF6RxqOO9kcSi8zpfEHOMzphlOv5cz0IDN5Q8m94na1kRVy++4z6qc43t3w==
+
+%include %{_configdir}/gdb-common-1.cfg
-- 
2.35.3

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel