[Buildroot] [PATCH] kmod: add patch to fix build failure with old gcc versions
Peter Korsgaard
peter at korsgaard.com
Wed Jun 7 07:29:29 UTC 2017
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:
> When building with old gcc versions (such as gcc 4.3), the current
> version of kmod fails with:
> shared/util.c:52: error: expected identifier or '(' before 'do'
> shared/util.c:52: error: expected identifier or '(' before 'while'
> This is due to a use of the internal assert_cc() macro outside of a
> function, while this macro is defined for old gcc versions in a way that
> cannot be used outside functions.
> This wasn't noticed by the autobuilders because we don't have such old
> target compilers. On the host side, we have some autobuilder instances
> with such old gcc versions, but host-kmod is only used by the linux
> package, which is never tested by the autobuilders.
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Committed to master and 2017.05.x (2017.02.x doesn't look affected), thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list