Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#45068 - [linux-grsec] vbox modules not building - gcc recompile

Attached to Project: Community Packages
Opened by tom (archtom) - Sunday, 24 May 2015, 09:50 GMT
Last edited by Daniel Micay (thestinger) - Monday, 25 May 2015, 12:22 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:

After bringing all packages up to date building of the virtualbox guest modules fails due to gcc errors.

Everything worked before the latest gcc update.

I don`t know it there are any logs or anything required. After doing some reading it is said that the kernel should be recompiled against the latest gcc. I don`t know if this is right but it hopefully helps. If this is a gcc bug please attach it to gcc. If you need a log or anything just let me know.

I don`t know if

Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
yaourt -Sy linux-grsec paxd pax-utils gradm crda linux-grsec-headers virtualbox-guest-modules virtualbox-guest-utils virtualbox-guest-dkms vboxguest-hook --noconfirm

dkms install vboxguest/$(pacman -Q virtualbox-guest-dkms|awk '{print $2}'|sed 's/\-.\+//') -k $(pacman -Q linux-grsec |awk '{print $2"-grsec"}')
This task depends upon

Closed by  Daniel Micay (thestinger)
Monday, 25 May 2015, 12:22 GMT
Reason for closing:  Not a bug
Additional comments about closing:  The first version to fully support GCC 5.1 will be compiled with it. There's little that can be done before then, and I'm not going to rebuild whenever there are GCC upgrades even when it can compile.
Comment by tom (archtom) - Sunday, 24 May 2015, 10:00 GMT
Before trying the two commands above the latest gcc-5.1.0-4-x86_64 has to be installed, with version gcc 4.9.2-4 the modules are building fine with the latest grsec kernel.

This is the error message. I attached the make log.

make KERNELRELEASE=4.0.4.201505222222-1-grsec -C /usr/lib/modules/4.0.4.201505222222-1-grsec/build M=/var/lib/dkms/vboxguest/4.3.28/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.0.4.201505222222-1-grsec (x86_64)
Consult /var/lib/dkms/vboxguest/4.3.28/build/make.log for more information.
   make.log (1.9 KiB)
Comment by Alexander Schnaidt (Namarrgon) - Monday, 25 May 2015, 10:01 GMT
This is related to https://bugs.archlinux.org/task/43057
The binary gcc plugins that are part of the linux-grsec package have to match the gcc that is used to build the modules. The linux-grsec package in the repo needs to be rebuilt with the new gcc but in the meantime you could do that yourself.
Comment by tom (archtom) - Monday, 25 May 2015, 10:47 GMT
Sorry, I´m not an expert in kernel building, how do I do that exactly? What exact commands do I need to execute?

And will a new linux-grsec package overwrite the self built one or will I have a third kernel then?

Thanks
Comment by Alexander Schnaidt (Namarrgon) - Monday, 25 May 2015, 11:41 GMT
Get the build files for the linux-grsec package from either abs[1] or svn/git[2], build/install it with makepkg/pacman. If you don't edit the PKGBUILD it will cleanly replace the repo-package. Then rebuild the modules.

[1] https://wiki.archlinux.org/index.php/Arch_Build_System
[2] https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/linux-grsec
Comment by Daniel Micay (thestinger) - Monday, 25 May 2015, 12:06 GMT
The PaX GCC plugins aren't all compatible with GCC 5.1 yet and it wouldn't make sense to disable security features to support a new compiler version. I'll be compiling with 5.1 as soon as it's fully supported.

Loading...