New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gcc version checks #246
Comments
|
@goldyfruit can you provide the patch you are using? |
|
@Spartacus06 i use the patch in the example |
|
@goldyfruit This is a weird error, since kpatch-build should have no problem building this patch. Can you pull the latest master branch, recreate with the |
|
@goldyfruit What version of gcc are you using? I tried this on a vanilla Debian wheezy installation and was able to reproduce the error. Turns out that gcc 4.7.2 (the version of gcc bundled with wheezy) won't compile the changed objects with |
|
Ah, thanks @goldyfruit . Maybe we can detect the gcc version and refuse to build on older versions. |
|
Guess we need to update the README too, which says that "gcc >= 4.6" is supported. |
|
sorry, thanks @flaming-toast :-) |
|
Ideally we would also enforce that the gcc version is the same as the one used to build the original kernel, which should be pretty easy: |
|
@jpoimboe Np. :-) Looks like the patch was merged in with the 4.8.0 release, so it should be safe to say something like "gcc >= 4.8" |
|
@flaming-toast Yes, with GCC 4.8 it works ! Thanks guys. |
|
Reopening so we don't forget to add the gcc checks |
|
@jpoimboe Right ! |
Ensure the version of the locally installed gcc matches the one used to compile the kernel, and is >= 4.8. Fixes dynup#246.
|
Just for search simplicity` sake, the necessary commit is gcc-mirror/gcc@e83660d |
Hi,
I try to use kpatch on Debian GNU/Linux Wheezy with a 3.14.5 kernel. The kernel compilation works but when kpatch-build try to create the patch, it fail !
The command line used : kpatch-build -s /usr/src/linux-source-3.14.5-kpatch -c /boot/config-3.14.5-kpatch -d meminfo-string.patch
I found some discussions about .rela. issues but everytime it's fixed by a commit. I use the last kpatch version.
Thanks for your help.
The text was updated successfully, but these errors were encountered: