* Changes for building bits on newer gcc 9.4 compiler
@ 2022-06-03 8:36 Ani Sinha
2022-06-03 16:08 ` Ani Sinha
0 siblings, 1 reply; 3+ messages in thread
From: Ani Sinha @ 2022-06-03 8:36 UTC (permalink / raw)
To: Josh Triplett; +Cc: Igor Mammedov, QEMU Developers
Hi josh :
Here are the pull requests. Please feel free to review and merge:
Main bits module:
https://github.com/biosbits/bits/pull/13
Submodules:
https://github.com/biosbits/grub/pull/1
https://github.com/biosbits/python/pull/1
https://github.com/biosbits/libffi/pull/1
https://github.com/biosbits/fdlibm/pull/1
Thanks
ani
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Changes for building bits on newer gcc 9.4 compiler
2022-06-03 8:36 Changes for building bits on newer gcc 9.4 compiler Ani Sinha
@ 2022-06-03 16:08 ` Ani Sinha
2022-06-04 7:56 ` Ani Sinha
0 siblings, 1 reply; 3+ messages in thread
From: Ani Sinha @ 2022-06-03 16:08 UTC (permalink / raw)
To: Josh Triplett; +Cc: Igor Mammedov, QEMU Developers
On an additional note, my changes are not backward compatible with
older compiler. The build will break when built with a centos 7
docker/vm/host:
/home/anisinha/workspace/bits/build/grub/grub-core/contrib-deps/python/Modules/_ctypes/_ctypes.c:
In function '_build_callargs':
/home/anisinha/workspace/bits/build/grub/grub-core/contrib-deps/python/Modules/_ctypes/_ctypes.c:3707:6:
error: empty declaration [-Werror]
__attribute__ ((fallthrough));
^
/home/anisinha/workspace/bits/build/grub/grub-core/contrib-deps/python/Modules/_ctypes/_ctypes.c:3707:6:
error: ISO C90 forbids mixed declarations and code
[-Werror=declaration-after-statement]
/home/anisinha/workspace/bits/build/grub/grub-core/contrib-deps/python/Modules/_ctypes/_ctypes.c:
At top level:
cc1: error: unrecognized command line option
"-Wno-shift-negative-value" [-Werror]
cc1: error: unrecognized command line option "-Wno-cast-function-type" [-Werror]
cc1: error: unrecognized command line option
"-Wno-address-of-packed-member" [-Werror]
cc1: error: unrecognized command line option
"-Wno-discarded-array-qualifiers" [-Werror]
If fixing this is essential, we can ifdef some of these changes
between compiler version checks.
On Fri, Jun 3, 2022 at 2:06 PM Ani Sinha <ani@anisinha.ca> wrote:
>
> Hi josh :
> Here are the pull requests. Please feel free to review and merge:
>
> Main bits module:
> https://github.com/biosbits/bits/pull/13
>
> Submodules:
> https://github.com/biosbits/grub/pull/1
> https://github.com/biosbits/python/pull/1
> https://github.com/biosbits/libffi/pull/1
> https://github.com/biosbits/fdlibm/pull/1
>
> Thanks
> ani
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Changes for building bits on newer gcc 9.4 compiler
2022-06-03 16:08 ` Ani Sinha
@ 2022-06-04 7:56 ` Ani Sinha
0 siblings, 0 replies; 3+ messages in thread
From: Ani Sinha @ 2022-06-04 7:56 UTC (permalink / raw)
To: Josh Triplett; +Cc: Igor Mammedov, QEMU Developers
On Fri, Jun 3, 2022 at 9:38 PM Ani Sinha <ani@anisinha.ca> wrote:
>
> On an additional note, my changes are not backward compatible with
> older compiler. The build will break when built with a centos 7
> docker/vm/host:
>
> /home/anisinha/workspace/bits/build/grub/grub-core/contrib-deps/python/Modules/_ctypes/_ctypes.c:
> In function '_build_callargs':
> /home/anisinha/workspace/bits/build/grub/grub-core/contrib-deps/python/Modules/_ctypes/_ctypes.c:3707:6:
> error: empty declaration [-Werror]
> __attribute__ ((fallthrough));
> ^
> /home/anisinha/workspace/bits/build/grub/grub-core/contrib-deps/python/Modules/_ctypes/_ctypes.c:3707:6:
> error: ISO C90 forbids mixed declarations and code
> [-Werror=declaration-after-statement]
> /home/anisinha/workspace/bits/build/grub/grub-core/contrib-deps/python/Modules/_ctypes/_ctypes.c:
> At top level:
> cc1: error: unrecognized command line option
> "-Wno-shift-negative-value" [-Werror]
> cc1: error: unrecognized command line option "-Wno-cast-function-type" [-Werror]
> cc1: error: unrecognized command line option
> "-Wno-address-of-packed-member" [-Werror]
> cc1: error: unrecognized command line option
> "-Wno-discarded-array-qualifiers" [-Werror]
I have fixed these. The code seems to build both on new and old compilers now.
>
> If fixing this is essential, we can ifdef some of these changes
> between compiler version checks.
>
> On Fri, Jun 3, 2022 at 2:06 PM Ani Sinha <ani@anisinha.ca> wrote:
> >
> > Hi josh :
> > Here are the pull requests. Please feel free to review and merge:
> >
> > Main bits module:
> > https://github.com/biosbits/bits/pull/13
> >
> > Submodules:
> > https://github.com/biosbits/grub/pull/1
> > https://github.com/biosbits/python/pull/1
> > https://github.com/biosbits/libffi/pull/1
> > https://github.com/biosbits/fdlibm/pull/1
> >
> > Thanks
> > ani
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-04 7:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-03 8:36 Changes for building bits on newer gcc 9.4 compiler Ani Sinha
2022-06-03 16:08 ` Ani Sinha
2022-06-04 7:56 ` Ani Sinha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).