broadcom-sta-dkms 6.30.223.141-1: broadcom-sta kernel module failed to build [error: macro "__DATE__" might prevent reproducible builds]

Bug #1356756 reported by monway
128
This bug affects 26 people
Affects Status Importance Assigned to Milestone
broadcom-sta (Ubuntu)
Confirmed
Medium
igor
Utopic
Won't Fix
Medium
Unassigned

Bug Description

DKMS make.log for broadcom-sta-6.30.223.141 for kernel 3.16.0-7-generic (x86_64)
Thu Aug 14 03:56:54 EDT 2014
/bin/sh: 1: [: Illegal number:
/bin/sh: 1: [: Illegal number:
Wireless Extension is the only possible API for this kernel version
Using Wireless Extension API
KBUILD_NOPEDANTIC=1 make -C /lib/modules/3.16.0-7-generic/build M=/var/lib/dkms/broadcom-sta/6.30.223.141/build
make[1]: Entering directory '/usr/src/linux-headers-3.16.0-7-generic'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
Kernel architecture is X86_64
  LD /var/lib/dkms/broadcom-sta/6.30.223.141/build/built-in.o
  CC [M] /var/lib/dkms/broadcom-sta/6.30.223.141/build/src/shared/linux_osl.o
  CC [M] /var/lib/dkms/broadcom-sta/6.30.223.141/build/src/wl/sys/wl_linux.o
/var/lib/dkms/broadcom-sta/6.30.223.141/build/src/wl/sys/wl_linux.c: In function ‘wl_dump_ver’:
/var/lib/dkms/broadcom-sta/6.30.223.141/build/src/wl/sys/wl_linux.c:2039:3: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
   __DATE__, __TIME__, EPI_VERSION_STR);
   ^
/var/lib/dkms/broadcom-sta/6.30.223.141/build/src/wl/sys/wl_linux.c:2039:13: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
   __DATE__, __TIME__, EPI_VERSION_STR);
             ^
cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target '/var/lib/dkms/broadcom-sta/6.30.223.141/build/src/wl/sys/wl_linux.o' failed
make[2]: *** [/var/lib/dkms/broadcom-sta/6.30.223.141/build/src/wl/sys/wl_linux.o] Error 1
Makefile:1345: recipe for target '_module_/var/lib/dkms/broadcom-sta/6.30.223.141/build' failed
make[1]: *** [_module_/var/lib/dkms/broadcom-sta/6.30.223.141/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-7-generic'
Makefile:157: recipe for target 'all' failed
make: *** [all] Error 2

ProblemType: Package
DistroRelease: Ubuntu 14.10
Package: broadcom-sta-dkms 6.30.223.141-1
ProcVersionSignature: Ubuntu 3.16.0-7.12-generic 3.16.0
Uname: Linux 3.16.0-7-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.14.5-0ubuntu4
Architecture: amd64
DKMSKernelVersion: 3.16.0-7-generic
Date: Thu Aug 14 03:56:58 2014
DuplicateSignature: dkms:broadcom-sta-dkms:6.30.223.141-1:/var/lib/dkms/broadcom-sta/6.30.223.141/build/src/wl/sys/wl_linux.c:2039:3: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
InstallationDate: Installed on 2014-08-14 (0 days ago)
InstallationMedia: Ubuntu MATE 14.10 "Utopic Unicorn" - Alpha amd64 (20140731)
PackageArchitecture: all
PackageVersion: 6.30.223.141-1
SourcePackage: broadcom-sta
Title: broadcom-sta-dkms 6.30.223.141-1: broadcom-sta kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
monway (dmahoney74) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Sean V Kelley (seanvk) wrote :

Confirmed on MacBook Pro 13" 11,1 (mid 2014)

Wireless Extension is the only possible API for this kernel version
Using Wireless Extension API
KBUILD_NOPEDANTIC=1 make -C /lib/modules/3.16.0-10-generic/build M=/var/lib/dkms/broadcom-sta/6.30.223.141/build
make[1]: Entering directory '/usr/src/linux-headers-3.16.0-10-generic'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
Kernel architecture is X86_64
  LD /var/lib/dkms/broadcom-sta/6.30.223.141/build/built-in.o
  CC [M] /var/lib/dkms/broadcom-sta/6.30.223.141/build/src/shared/linux_osl.o
  CC [M] /var/lib/dkms/broadcom-sta/6.30.223.141/build/src/wl/sys/wl_linux.o
/var/lib/dkms/broadcom-sta/6.30.223.141/build/src/wl/sys/wl_linux.c: In function ‘wl_dump_ver’:
/var/lib/dkms/broadcom-sta/6.30.223.141/build/src/wl/sys/wl_linux.c:2039:3: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
   __DATE__, __TIME__, EPI_VERSION_STR);
   ^
/var/lib/dkms/broadcom-sta/6.30.223.141/build/src/wl/sys/wl_linux.c:2039:13: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
   __DATE__, __TIME__, EPI_VERSION_STR);
             ^
cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target '/var/lib/dkms/broadcom-sta/6.30.223.141/build/src/wl/sys/wl_linux.o' failed
make[2]: *** [/var/lib/dkms/broadcom-sta/6.30.223.141/build/src/wl/sys/wl_linux.o] Error 1
Makefile:1345: recipe for target '_module_/var/lib/dkms/broadcom-sta/6.30.223.141/build' failed
make[1]: *** [_module_/var/lib/dkms/broadcom-sta/6.30.223.141/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-10-generic'
Makefile:157: recipe for target 'all' failed
make: *** [all] Error 2

Revision history for this message
Sean V Kelley (seanvk) wrote :

build log from dkms.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in broadcom-sta (Ubuntu):
status: New → Confirmed
summary: broadcom-sta-dkms 6.30.223.141-1: broadcom-sta kernel module failed to
- build
+ build [error: macro "__DATE__" might prevent reproducible builds]
Revision history for this message
Alex Kimani (alexk249076) wrote :
Download full text (5.2 KiB)

Error during upgrade on Ubuntu 14.10 Utopic Unicorn.
The Broadcom-sta-dkms module fails to build.

Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.16.0-16-generic /boot/vmlinuz-3.16.0-16-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.16.0-16-generic /boot/vmlinuz-3.16.0-16-generic
Error! Bad return status for module build on kernel: 3.16.0-16-generic (i686)
Consult /var/lib/dkms/broadcom-sta/6.30.223.141/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.16.0-16-generic /boot/vmlinuz-3.16.0-16-generic
update-initramfs: Generating /boot/initrd.img-3.16.0-16-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.16.0-16-generic /boot/vmlinuz-3.16.0-16-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.16.0-16-generic /boot/vmlinuz-3.16.0-16-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.16.0-16-generic /boot/vmlinuz-3.16.0-16-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.16.0-16-generic
Found initrd image: /boot/initrd.img-3.16.0-16-generic
Found linux image: /boot/vmlinuz-3.16.0-14-generic
Found initrd image: /boot/initrd.img-3.16.0-14-generic
Found linux image: /boot/vmlinuz-3.16.0-13-generic
Found initrd image: /boot/initrd.img-3.16.0-13-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
Setting up qml-module-qtquick-window2:i386 (5.3.0-3ubuntu12) ...
Setting up qml-module-qtquick2:i386 (5.3.0-3ubuntu12) ...
Setting up apt-utils (1.0.9.1ubuntu1) ...
Setting up locales (2.13+git20120306-15) ...
Generating locales...
  en_AG.UTF-8... up-to-date
  en_AU.UTF-8... up-to-date
  en_BW.UTF-8... up-to-date
  en_CA.UTF-8... up-to-date
  en_DK.UTF-8... up-to-date
  en_GB.UTF-8... up-to-date
  en_HK.UTF-8... up-to-date
  en_IE.UTF-8... up-to-date
  en_IN.UTF-8... up-to-date
  en_NG.UTF-8... up-to-date
  en_NZ.UTF-8... up-to-date
  en_PH.UTF-8... up-to-date
  en_SG.UTF-8... up-to-date
  en_US.UTF-8... up-to-date
  en_ZA.UTF-8... up-to-date
  en_ZM.UTF-8... up-to-date
  en_ZW.UTF-8... up-to-date
  om_KE.UTF-8... up-to-date
Generation complete.
Setting up apt-transport-https (1.0.9.1ubuntu1) ...
Setting up plymouth-theme-ubuntu-text (0.9.0-0ubuntu4) ...
update-initramfs: deferring update (trigger activated)
Setting up hipchat (2.2.1196) ...
Setting up linux-image-extra-3.16.0-16-generic (3.16.0-16.22) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
initrd.img(/boot/initrd.img-3.16.0-16-generic
) points to /boot/initrd.img-3.16.0-16-generic
 (/boot/initrd.img-3.16.0-16-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-extra-3.16.0-16-generic.postinst line 491.
vmlinuz(/boot/vmlinuz-3.16.0-16-generic
) points to /boot/vmlinuz-3.16.0-16-generic
 (/boot/vmlinuz-3.16.0-16-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-extra-3.16.0-16-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.16.0-16-generic /boot/vmlinuz-3.16.0-16-generic
run-parts: executing /...

Read more...

Revision history for this message
wvengen (wvengen) wrote :

Replacing the macro's __DATE__ and __TIME__ with empty strings gets around this error, but then other compilation problems come up. It looks like the module is not prepared for recent kernel versions :(

Changed in broadcom-sta (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

This appears to be fixed in the latest upstream version: 6.30.223.248-2

Revision history for this message
Nico Schlömer (nschloe) wrote :

 @jsalisbury Really? I just downloaded 6.30.223.248 from [1] and still found `__DATE__` and `__TIME__` used in `src/wl/sys/wl_linux.c`. Haven't tried installing it, though.

[1] http://www.broadcom.com/support/802.11/linux_sta.php

Revision history for this message
Michael Berg (5-michael-f) wrote :

@jsalisbury tried to install 6.30.223.248 from broadcom website. the error is not fixed.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

@Nico, @Michael,

I downloaded the 6.30.223.248 source files from Lauchpad, which is what is used in Vivid: https://launchpad.net/ubuntu/+source/broadcom-sta/6.30.223.248-2

I built a .deb package with this version and attached it to the bug. Can you see if this package installs and works properly?

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Also, I backported the specific changes in 6.30.223.248-2 to 6.30.223.141, which should fix this issue. I attached the .deb package with the name:

broadcom-sta-dkms_6.30.223.141-1-PATCHED_all.deb

Can you test this package and see if it resolves this bug? If it does, we can perform an SRU request to include the patch in Utopic.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Here's the patch I created and used to build the broadcom-sta-dkms_6.30.223.141-1-PATCHED_all.deb package.

Changed in broadcom-sta (Ubuntu Utopic):
importance: Undecided → Medium
status: New → Triaged
tags: added: kernel-da-key
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "broadcom-sta-dkms-6.30.223.141-Utopic.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
igor (gogolczyk3)
Changed in broadcom-sta (Ubuntu):
assignee: nobody → igor (gogolczyk3)
Revision history for this message
Thomas Karl Pietrowski (thopiekar) wrote :

Installing the vivid dkms package in utopic fixed the problem for me.

Btw. here on vivid now the module fails to build again since 3.18.x.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

bug 1408385 has been created for the failed build on Vivid with the 3.18 kernel.

Revision history for this message
DesertJim (jcrmassey) wrote :

Thougth this was fixed

Revision history for this message
Matthew Carpenter (matt-eisgr) wrote :

Still a problem while upgrading to Ubuntu 14.10 from 14.04.

Revision history for this message
Matthew Carpenter (matt-eisgr) wrote :

btw, it's causing the install for the kernels to fail because initrd creation is failing.

Revision history for this message
Kal (kparmar1) wrote :

I'm having the same issue upgrading to 14.10 (from 14.04).

I am also using Broadcom Corporation BCM4352 802.11ac Wireless Network Adapter (rev 03) (/var/lib/dkms/broadcom-sta/6.30.223.141)

Has anyone got any ideas how to progress?
Thanks.

Revision history for this message
Kal (kparmar1) wrote :

Sorry I didn't notice that a back port patch was attached above. I'm going to install that and see if this resolves the issue. Cheers.

Revision history for this message
navidR (navidr) wrote :

The problem I have encountered is after I saw the error message I did uninstall the "broadcom-sta" package, but , even after removing it when I login into my account I get system report for error which is for broadcom-sta package.Is there any way to clean this package entirely from my system , because after installing "bcmwl*" package my wireless works.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

utopic has seen the end of its life and is no longer receiving any updates. Marking the utopic task for this ticket as "Won't Fix".

Changed in broadcom-sta (Ubuntu Utopic):
status: Triaged → Won't Fix
Norbert (nrbrtx)
tags: removed: utopic
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.