Bug 4621

Summary: akmods does not compile anymore the wl.ko module after 6.30.223.271-7-for-4.10.9-200.fc25.x86_64
Product: Fedora Reporter: Giuseppe Catastini <giuseppe.catastini>
Component: broadcom-wlAssignee: NVieville <nicolas.vieville>
Status: RESOLVED EXPIRED    
Severity: enhancement    
Priority: P1    
Version: 25   
Hardware: x86_64   
OS: GNU/Linux   
namespace:
Attachments: the attachment is the log of the akmods attempt to complie the kernel wl.ko module

Description Giuseppe Catastini 2017-08-08 18:16:29 CEST
Created attachment 1828 [details]
the attachment is the log of the akmods attempt to complie the kernel wl.ko module

The kernel 4.10.9-200.fc25.x86_64 with akmods-wl-6.30.223.271-7.fc25.x86_64 is the last one for which akmods is capable to generate the wl.ko module.

Each kernel and akmods-wl update did not complete compilation of the module.

Current configuration is:
Fedora 25: 
broadcom-wl-6.30.223.271-1.fc24.noarch (there is not the fc25 package) 
akmod-wl-6.30.223.271-13.fc25.x86_64, 
kernel-4.11.12-200.fc25.x86_64, 
kernel-core-4.11.12-200.fc25.x86_64, 
kernel-modules-4.11.12-200.fc25.x86_64, 
kernel-modules-extra-4.11.12-200.fc25.x86_64, 
kernel-devel-4.11.12-200.fc25.x86_64, 
kernel-headers-4.11.12-200.fc25.x86_64

Steps to Reproduce the problem:
FC25 updated installation, execute the following command:
sudo akmods --force --kernel `uname -r` --akmod wl

Actual results:
wl.ko module not generated (read 6.30.223.271-13-for-4.11.12-200.fc25.x86_64.failed.log file)

Expected results:
generated wl.ko module in /lib/modules/4.11.12-200.fc25.x86_64/extra/wl

Additional info:
lspci |grep -i broadc
09:00.0 Ethernet controller: Broadcom Limited NetLink BCM5784M Gigabit Ethernet PCIe (rev 10)
0c:00.0 Network controller: Broadcom Limited BCM4312 802.11b/g LP-PHY (rev 01)

Additional info:
log of last akmods compiled wl.ko module available.
Comment 1 NVieville 2017-08-15 02:31:42 CEST
Hello,

Thanks for reporting this issue.

I can't reproduce this bug as I switched to F26, but there is two things in your logs that jupped to my eyes.

First one the "Makefile:923: "Cannot use CONFIG_STACK_VALIDATION, please install libelf-dev, libelf-devel or elfutils-libelf-devel" " message. 
I don't know yet (needs some investigations - dnf repoquery --requires akmods shows that elfutils-libelf-devel is required by akmods) if elfutils-libelf-devel.x86_64 packages is supposed to be needed to build modules with akmods, but on my F26 this package is installed. Maybe you should try this, but I'm not sure it is the real way to go to solve this issue.

Second one the "code model 'kernel' not supported in the 32 bit mode..." message. This seems to indicate that you are probably using a 64-bit kernel with 32-bit userland. Please could you provide the output of the commands:

file $(which gcc) 

and if the result is a symbolic link do the same with the target of it (for example if the output is "/usr/lib64/ccache/gcc: symbolic link to ../../bin/ccache", type "file /usr/bin/ccache").

Feel free to make any comment about this issue depending of the result of your attempt to catch it.

Cordially,


-- 
NVieville
Comment 2 Giuseppe Catastini 2017-08-19 14:50:57 CEST
The required elfutils and elfutils-libelf libraries are installed:
>rpm -qa |grep elf
elfutils-0.169-1.fc25.x86_64
elfutils-libelf-devel-0.169-1.fc25.x86_64
elfutils-libelf-0.169-1.fc25.x86_64
elfutils-libs-0.169-1.fc25.x86_64

I'm using the gcc development environment and everything works fine with both 64 and 32 bit compilers. I hope that the simultaneous installation of 64 and 32 bit libraries (required by some programs development) is not a potential problem, but the standard compiler is the 64 bit one, as shown below.

file $(which gcc)
/usr/lib64/ccache/gcc: symbolic link to ../../bin/ccache

file /usr/bin/ccache
/usr/bin/ccache: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=3bf64e06723e1a78c5c795877a8951583c6d4f4b, stripped

rpm -qa |grep ccache
ccache-3.3.4-1.fc25.x86_64
Comment 3 NVieville 2017-08-19 15:41:14 CEST
(In reply to Giuseppe Catastini from comment #2)

Thanks for your feedback.

Difficult to imagine what is going wrong, all looks to be in place.

> The required elfutils and elfutils-libelf libraries are installed:
> >rpm -qa |grep elf
> elfutils-0.169-1.fc25.x86_64
> elfutils-libelf-devel-0.169-1.fc25.x86_64
> elfutils-libelf-0.169-1.fc25.x86_64
> elfutils-libs-0.169-1.fc25.x86_64

Regarding your previous log message ("Makefile:923: "Cannot use CONFIG_STACK_VALIDATION, please install libelf-dev, libelf-devel or elfutils-libelf-devel" "), could please try to reinstall these packages:

dnf reinstall elfutils.x86_64 elfutils-libelf-devel.x86_64 elfutils-libelf.x86_64 elfutils-libs.x86_64

Then (if accurate):

dnf remove kmod-wl-4.11.12-200.fc25.x86_64.x86_64

Then:

akmods --force --kernel 4.11.12-200.fc25.x86_64

And finally post akmods logs if needed.

Please don't hesitate to make any comment about this issue.

Cordially,


-- 
NVieville
Comment 4 Emmanuel Seyman 2017-12-12 13:21:38 CET
RPMFusion is no longer releasing updates for this version of Fedora. This bug
will be set to RESOLVED:EXPIRED next week to reflect this.

If the problem persists after upgrading to the latest version of Fedora, please
update the version field of this bug (and re-open it if it has been closed).
Comment 5 Emmanuel Seyman 2018-01-08 20:22:29 CET
Closing this bug with the EXPIRED resolution since Fedora no longer ships updates for this version of Fedora.

Please set the Version field to a supported version of Fedora if you re-open this bug.