Skip to content

Conversation

@euspectre
Copy link
Contributor

This fix is an addition to 9fedd0d "kpatch-build: fix
gcc_version_check".

On some systems, the GCC version stored in vmlinux may have the
following format:
(GNU) 4.8.3 20140911 (Red Hat 4.8.3-9)
while GCC returns
(GCC) 4.8.3 20140911 (Red Hat 4.8.3-9)

As a result, binary patches cannot be built, although the compiler is
the same.

gcc_version_check() now takes this into account.

Signed-off-by: Evgenii Shatokhin [email protected]

This fix is an addition to 9fedd0d "kpatch-build: fix
gcc_version_check".

On some systems, the GCC version stored in vmlinux may have the
following format:
  (GNU) 4.8.3 20140911 (Red Hat 4.8.3-9)
while GCC returns
  (GCC) 4.8.3 20140911 (Red Hat 4.8.3-9)

As a result, binary patches cannot be built, although the compiler is
the same.

gcc_version_check() now takes this into account.

Signed-off-by: Evgenii Shatokhin <[email protected]>
@jpoimboe
Copy link
Member

👍

@jpoimboe
Copy link
Member

@Spartacus06 Merging this one now because it fixes a regression (kpatch-build always reports a gcc mismatch).

jpoimboe added a commit that referenced this pull request Nov 18, 2015
kpatch-build: fix gcc_version_check: both "GNU" and "GCC" are possible
@jpoimboe jpoimboe merged commit f4b5ede into dynup:master Nov 18, 2015
@euspectre euspectre deleted the gcc-gnu-fix branch November 19, 2015 08:02
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