Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Nov 3, 2016

According to https://gcc.gnu.org/gcc-5/porting_to.html GCC 5
changed to defaulting to -std=gnu11 rather than -std=gnu89, which
causes build failures with OCC code use of 'extern inline'.

so, to work around this, and to stay on a more predictable path,
explicitly set the standard to gnu89.

Fixes: #8
Signed-off-by: Stewart Smith stewart@linux.vnet.ibm.com


This change is Reviewable

@ghost
Copy link
Author

ghost commented Nov 3, 2016

While modifying code to be more like the changes suggested in #9 may be a good thing, for P8 at least the least invasive thing to do is to just specify the language standard.

ghost pushed a commit to stewartsmith/op-build that referenced this pull request Nov 3, 2016
We bring in P8 Hostboot patches from
open-power/hostboot#62
as we wait for Hostboot development team to merge them.

OCC patch is from open-power/occ#15 . It simply
sets the language to gnu89 with -std=gnu89, which is the default prior
to GCC5 (see https://gcc.gnu.org/gcc-5/porting_to.html )

Fixes: open-power/occ#8
Fixes: open-power/hostboot#69
Fixes: open-power/hostboot#61
Fixes: open-power#355
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
ghost pushed a commit to stewartsmith/op-build that referenced this pull request Nov 3, 2016
We bring in P8 Hostboot patches from
open-power/hostboot#62
as we wait for Hostboot development team to merge them.

OCC patch is from open-power/occ#15 . It simply
sets the language to gnu89 with -std=gnu89, which is the default prior
to GCC5 (see https://gcc.gnu.org/gcc-5/porting_to.html )

Fixes: open-power/occ#8
Fixes: open-power/hostboot#69
Fixes: open-power/hostboot#61
Fixes: open-power#355
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
ghost pushed a commit to stewartsmith/op-build that referenced this pull request Nov 3, 2016
We bring in P8 Hostboot patches from
open-power/hostboot#62
as we wait for Hostboot development team to merge them.

OCC patch is from open-power/occ#15 . It simply
sets the language to gnu89 with -std=gnu89, which is the default prior
to GCC5 (see https://gcc.gnu.org/gcc-5/porting_to.html )

Fixes: open-power/occ#8
Fixes: open-power/hostboot#69
Fixes: open-power/hostboot#61
Fixes: open-power#355
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
ghost pushed a commit to stewartsmith/op-build that referenced this pull request Nov 3, 2016
We bring in P8 Hostboot patches from
open-power/hostboot#62
as we wait for Hostboot development team to merge them.

OCC patch is from open-power/occ#15 . It simply
sets the language to gnu89 with -std=gnu89, which is the default prior
to GCC5 (see https://gcc.gnu.org/gcc-5/porting_to.html )

Fixes: open-power/occ#8
Fixes: open-power/hostboot#69
Fixes: open-power/hostboot#61
Fixes: open-power#355
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
ghost pushed a commit to stewartsmith/op-build that referenced this pull request Nov 4, 2016
We bring in P8 Hostboot patches from
open-power/hostboot#62
as we wait for Hostboot development team to merge them.

OCC patch is from open-power/occ#15 . It simply
sets the language to gnu89 with -std=gnu89, which is the default prior
to GCC5 (see https://gcc.gnu.org/gcc-5/porting_to.html )

Fixes: open-power/occ#8
Fixes: open-power/hostboot#69
Fixes: open-power/hostboot#61
Fixes: open-power#355
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
According to https://gcc.gnu.org/gcc-5/porting_to.html GCC 5
changed to defaulting to -std=gnu11 rather than -std=gnu89, which
causes build failures with OCC code use of 'extern inline'.

so, to work around this, and to stay on a more predictable path,
explicitly set the standard to gnu89.

Change-Id: I87b8e2f62aad55f0ff4c34eca7752b5ee2f0db28
Fixes: open-power#8
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
ghost pushed a commit to stewartsmith/op-build that referenced this pull request Nov 6, 2016
We bring in P8 Hostboot patches from
open-power/hostboot#62
as we wait for Hostboot development team to merge them.

OCC patch is from open-power/occ#15 . It simply
sets the language to gnu89 with -std=gnu89, which is the default prior
to GCC5 (see https://gcc.gnu.org/gcc-5/porting_to.html )

Fixes: open-power/occ#8
Fixes: open-power/hostboot#69
Fixes: open-power/hostboot#61
Fixes: open-power#355
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
@ghost
Copy link
Author

ghost commented Nov 6, 2016

Now up to date with open-power/op-build#721 and the comments from @williamspatrick there (notably the inclusion of a change-id).

I don't seem to have access to the internal OCC repository, so this pull request exists here.

ghost pushed a commit to stewartsmith/op-build that referenced this pull request Nov 7, 2016
We bring in P8 Hostboot patches from
open-power/hostboot#62
as we wait for Hostboot development team to merge them.

OCC patch is from open-power/occ#15 . It simply
sets the language to gnu89 with -std=gnu89, which is the default prior
to GCC5 (see https://gcc.gnu.org/gcc-5/porting_to.html )

Fixes: open-power/occ#8
Fixes: open-power/hostboot#69
Fixes: open-power/hostboot#61
Fixes: open-power#355
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
@wilbryan
Copy link
Member

Fixed in 7254446

@wilbryan wilbryan closed this Nov 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants