Nadhor n00b
Joined: 03 Feb 2003 Posts: 58 Location: Germany
|
Posted: Fri Oct 24, 2014 11:24 am Post subject: [Solved] broadcom-sta-6.30.223.248 with gcc 4.9.1 |
|
|
Hello,
I had a new system set up and thought newest hardware needs newest software. So I installed kernel-3.17, gcc-4.9.1 and tried installing broadcom-sta-6.30.223.248 .
First I ran into this bug: https://bugs.gentoo.org/show_bug.cgi?id=523326 due to the kernel, than I ran into https://lkml.org/lkml/2013/12/23/348 and the build of broadcom-sta stopping with the message: error: macro "__DATE__" might prevent reproducible builds .
I first helped myself by patching the ebuild with sed in src_prepare:
Code: | if version_is_at_least 4.9 "$(gcc-fullversion)"; then
sed -i -e 's/__DATE__/\"?? ?? ????\"/g' ${S}/src/wl/sys/wl_linux.c
sed -i -e 's/__TIME__/\"??:??:??\"/g' ${S}/src/wl/sys/wl_linux.c
fi
|
but then I accidently found another patch, which seems to work too: https://github.com/eyolfson/aur/blob/master/broadcom-wl-dkms/gcc.patch (from eyolfson for Arch Linux)
So, if anyone has trouble compiling his wlan drivers with latest gcc, you now have two options to resolve the issue. |
|