Hello Karel,

the set of tool builds below was run for RTEMS 6, with RSB
GIT_HEAD 0054104e37aa870aab87294207fc20396312106f. Your comment on me using GCC 12 on some OS, which would natively use an older GCC version, triggered me to add more OS containers to the build set. This way the different GCC variants are better covered in the future.

opensuse-leap 15.4  (gcc 7.5.0, Python 3.6.15)   x86_64     : OK
almalinux 9.1       (gcc 11.3.1, Python 3.9.14)  x86_64     : OK
almalinux 8.7       (gcc 8.5.0, Python 3.6.8)    x86_64     : OK
fedora 37           (gcc 12.2.1, Python 3.11.2)  x86_64     : OK
debian 11           (gcc 10.2.1, Python 3.9.2)   x86_64     : OK
opensuse-leap 15.4  (gcc 12.2.1, Python 3.6.15)  x86_64     : OK
ubuntu 22.04        (gcc 11.3.0, Python 3.10.6)  x86_64     : OK
ubuntu 20.04        (gcc 9.4.0, Python 3.8.10)   x86_64     : OK
ubuntu 22.04        (gcc 12.1.0, Python 3.10.6)  x86_64     : OK

Your fix works perfectly. All errors are gone.
Thanks for your time and effort to fix the failing builds.

Greetings
Frank

On 3/19/23 23:18, Karel Gardas wrote:
Subject:
Re: Help regarding Building x86_64 BSP
From:
Karel Gardas <karel@functional.vision>
Date:
3/19/23, 23:18

To:
Frank Kühndel <frank.kuehn...@embedded-brains.de>, j...@rtems.org
CC:
"rtems-de...@rtems.org" <devel@rtems.org>, skhattar...@gmail.com


On 3/8/23 11:08, Frank Kühndel wrote:
The build failures all happen when `building: grub2-2.06-x86_64-linux-gnu-1` which is the last build step. There are several similar errors. These are two of them taken from the build log:

cc1: all warnings being treated as errors
util/mkimage.c: In function ‘grub_install_generate_image’:
util/mkimage.c:1386:41: error: dangling pointer to ‘tmp_’ may be used [-Werror=d
angling-pointer=]
  1386 |         PE_OHDR (o32, o64, header_size) = grub_host_to_target32 (header_
size);
util/mkimage.c:857:28: note: ‘tmp_’ declared here
   857 |   __typeof__((o64)->field) tmp_;                \
       |                            ^~~~
util/mkimage.c:1386:9: note: in expansion of macro ‘PE_OHDR’
  1386 |         PE_OHDR (o32, o64, header_size) = grub_host_to_target32 (header_
size);
       |         ^~~~~~~
util/mkimage.c:1387:40: error: dangling pointer to ‘tmp_’ may be used [-Werror=d
angling-pointer=]
  1387 |         PE_OHDR (o32, o64, entry_addr) = grub_host_to_target32 (layout.s
tart_address);
util/mkimage.c:857:28: note: ‘tmp_’ declared here
   857 |   __typeof__((o64)->field) tmp_;                \
       |                            ^~~~
util/mkimage.c:1387:9: note: in expansion of macro ‘PE_OHDR’
  1387 |         PE_OHDR (o32, o64, entry_addr) = grub_host_to_target32 (layout.s
tart_address);
       |         ^~~~~~~

Maybe one needs a new version of grub sources for gcc 12?

GRUB 2.06 is the last available release. The release cadence is 2 years and next version should be released around this summer. I would not like to go to git version in the meantime, but rather stick to released version.

Possible and working (tested on Fedora 37 and Ubuntu 20.04) workaround is to use --disable-werror as all the related errors are just warnings.

The patch already sent, testing and reporting from your side would be highly appreciated.

Thanks,
Karel

--
embedded brains GmbH
Herr Frank KÜHNDEL
Dornierstr. 4
82178 Puchheim
Germany
email: frank.kuehn...@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/

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

Reply via email to