Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] broadcom-sta-6.30.223.248 with gcc 4.9.1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Nadhor
n00b
n00b


Joined: 03 Feb 2003
Posts: 58
Location: Germany

PostPosted: Fri Oct 24, 2014 11:24 am    Post subject: [Solved] broadcom-sta-6.30.223.248 with gcc 4.9.1 Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum