Re: [RSB PATCH] 6: Merge the MacOS M silicon patch from gcc-12 to gcc-13

2023-11-23 Thread Sebastian Huber

On 24.11.23 05:36, chr...@rtems.org wrote:

From: Chris Johns

Updates #4921
---
  rtems/config/tools/rtems-gcc-13.2-newlib-head.cfg | 14 ++
  1 file changed, 14 insertions(+)

diff --git a/rtems/config/tools/rtems-gcc-13.2-newlib-head.cfg 
b/rtems/config/tools/rtems-gcc-13.2-newlib-head.cfg
index 86e0135..4422e36 100644
--- a/rtems/config/tools/rtems-gcc-13.2-newlib-head.cfg
+++ b/rtems/config/tools/rtems-gcc-13.2-newlib-head.cfg
@@ -6,6 +6,20 @@
  %hash sha512 gcc-%{gcc_version}.tar.xz \

2Z5IJqcNsEUERn40np+67apYcHZs2nxcq1DN6+3EvnVevKW3ieEjKjSiC+GgtgCX3pKA7+R723HHMlHjCwhiog==
  
+# Following patches are related to compilation on Apple M1/Darwin host platform.

+# They are here to workaround issues with ISL and MPC libraries.
+# Upstream projects were already informed so hopefully when RSB moves
+# to more modern libraries versions they may be removed from here.
+# The patches are solely for libisl 0.24 and libmpc 1.2.1
+# See #4657 for more information.
+%patch add isl 
-p1https://devel.rtems.org/raw-attachment/ticket/4657/fix-mac-arm64-isl-config.patch
+%hash sha512 fix-mac-arm64-isl-config.patch \
+
wH/bYFplINGUNYUEcx5jtUAhHvaAOD8cpOxltKxDridodTT9fYGWpNvoOg7PLEKkJUxx5gnuSEp2FFc7xJmi6A==
+%patch add mpc 
-p1https://devel.rtems.org/raw-attachment/ticket/4657/fix-mac-arm64-mpc-config.patch
+%hash sha512 fix-mac-arm64-mpc-config.patch \
+
KEmxHjYOqY4LTXCMZ3I60tbHusbR5GlnP0CLARHPAnhCnovDj9K3U43C1bsMxDDGRqD6fwtrEFoEgqVFX63IuQ==
+# Comment above related to #4657 and patches ends here
+
  %define newlib_version 3cacedb
  %define newlib_external 1
  %define newlib_expand_name sourceware-mirror-newlib-cygwin-%{newlib_version}


Would updating to ISL 0.26 and MPC 1.3.1 fix this issue also?

--
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 GCC 13.2

2023-11-23 Thread Sebastian Huber

On 24.11.23 02:08, Chris Johns wrote:

On 24/11/2023 8:22 am, Chris Johns wrote:

On 23/11/2023 5:55 pm, Sebastian Huber wrote:> I built all BSPs with GCC 13.2
and Binutils 2.41. It was successful and it fixed

some microblaze build problems which I had for several months. So, I checked it
in.

Thanks for the testing and for sorting this out.

I would like to run some major apps through this version over the next week to
make sure there are no regressions. I do not expect any but it is worth doing.

The build of master failed on MacOS Somona M2. The error is:

mkdir ./mpc
Configuring in ./mpc
configure: creating cache ./config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ../../gcc-13.2.0/mpc/build-aux/install-sh
-c -d
checking for gawk... awk
checking whether /Applications/Xcode.app/Contents/Developer/usr/bin/make sets
$(MAKE)... yes
checking whether /Applications/Xcode.app/Contents/Developer/usr/bin/make
supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
Invalid configuration `arm64-apple-darwin23.0.0': machine `arm64-apple' not
recognized
configure: error: /bin/sh ../../gcc-13.2.0/mpc/build-aux/config.sub
arm64-apple-darwin23.0.0 failed

The MacOS support I worked on has been ignored. Why was it not brought across or
raised?

Have all the patches in the rtems-gcc-12-newlib-head.cfg been resolved?


I don't ignore any macOS support. If this is missing, then this is a 
normal oversight caused by various reasons.


--
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

[RSB PATCH] 6: Merge the MacOS M silicon patch from gcc-12 to gcc-13

2023-11-23 Thread chrisj
From: Chris Johns 

Updates #4921
---
 rtems/config/tools/rtems-gcc-13.2-newlib-head.cfg | 14 ++
 1 file changed, 14 insertions(+)

diff --git a/rtems/config/tools/rtems-gcc-13.2-newlib-head.cfg 
b/rtems/config/tools/rtems-gcc-13.2-newlib-head.cfg
index 86e0135..4422e36 100644
--- a/rtems/config/tools/rtems-gcc-13.2-newlib-head.cfg
+++ b/rtems/config/tools/rtems-gcc-13.2-newlib-head.cfg
@@ -6,6 +6,20 @@
 %hash sha512 gcc-%{gcc_version}.tar.xz \
   
2Z5IJqcNsEUERn40np+67apYcHZs2nxcq1DN6+3EvnVevKW3ieEjKjSiC+GgtgCX3pKA7+R723HHMlHjCwhiog==
 
+# Following patches are related to compilation on Apple M1/Darwin host 
platform.
+# They are here to workaround issues with ISL and MPC libraries.
+# Upstream projects were already informed so hopefully when RSB moves
+# to more modern libraries versions they may be removed from here.
+# The patches are solely for libisl 0.24 and libmpc 1.2.1
+# See #4657 for more information.
+%patch add isl -p1 
https://devel.rtems.org/raw-attachment/ticket/4657/fix-mac-arm64-isl-config.patch
+%hash sha512 fix-mac-arm64-isl-config.patch \
+
wH/bYFplINGUNYUEcx5jtUAhHvaAOD8cpOxltKxDridodTT9fYGWpNvoOg7PLEKkJUxx5gnuSEp2FFc7xJmi6A==
+%patch add mpc -p1 
https://devel.rtems.org/raw-attachment/ticket/4657/fix-mac-arm64-mpc-config.patch
+%hash sha512 fix-mac-arm64-mpc-config.patch \
+
KEmxHjYOqY4LTXCMZ3I60tbHusbR5GlnP0CLARHPAnhCnovDj9K3U43C1bsMxDDGRqD6fwtrEFoEgqVFX63IuQ==
+# Comment above related to #4657 and patches ends here
+
 %define newlib_version 3cacedb
 %define newlib_external 1
 %define newlib_expand_name sourceware-mirror-newlib-cygwin-%{newlib_version}
-- 
2.39.3 (Apple Git-145)

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


Re: [PATCH] 6: Use GCC 13.2

2023-11-23 Thread Chris Johns
On 24/11/2023 8:22 am, Chris Johns wrote:
> On 23/11/2023 5:55 pm, Sebastian Huber wrote:> I built all BSPs with GCC 13.2
> and Binutils 2.41. It was successful and it fixed
>> some microblaze build problems which I had for several months. So, I checked 
>> it
>> in. 
> 
> Thanks for the testing and for sorting this out.
> 
> I would like to run some major apps through this version over the next week to
> make sure there are no regressions. I do not expect any but it is worth doing.

The build of master failed on MacOS Somona M2. The error is:

mkdir ./mpc
Configuring in ./mpc
configure: creating cache ./config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ../../gcc-13.2.0/mpc/build-aux/install-sh
-c -d
checking for gawk... awk
checking whether /Applications/Xcode.app/Contents/Developer/usr/bin/make sets
$(MAKE)... yes
checking whether /Applications/Xcode.app/Contents/Developer/usr/bin/make
supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
Invalid configuration `arm64-apple-darwin23.0.0': machine `arm64-apple' not
recognized
configure: error: /bin/sh ../../gcc-13.2.0/mpc/build-aux/config.sub
arm64-apple-darwin23.0.0 failed

The MacOS support I worked on has been ignored. Why was it not brought across or
raised?

Have all the patches in the rtems-gcc-12-newlib-head.cfg been resolved?

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


Re: [PATCH] 6: Use GCC 13.2

2023-11-23 Thread Chris Johns
On 23/11/2023 5:55 pm, Sebastian Huber wrote:> I built all BSPs with GCC 13.2
and Binutils 2.41. It was successful and it fixed
> some microblaze build problems which I had for several months. So, I checked 
> it
> in. 

Thanks for the testing and for sorting this out.

I would like to run some major apps through this version over the next week to
make sure there are no regressions. I do not expect any but it is worth doing.

There is still Heinz's gcc crash on Intel Ventura Macs which I am not sure what
to with? I suspect an interaction between Apple's Xcode clang and gcc so I doubt
we would see a response from gcc on this. My guess at the answer is bootstrap
gcc first.

> The GCC and Binutils are now in place for the RTEMS 6 release from my point
> of view.

I am in the process of resolving the sources download which catches any issues
in 7 because rc1 is made from the master branch.

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