conf/175751: FreeBSD 10.0-CURRENT: build failure with "device runfw"

Issei i10a at herbmint.jp
Fri Feb 1 07:30:01 UTC 2013


>Number:         175751
>Category:       conf
>Synopsis:       FreeBSD 10.0-CURRENT: build failure with "device runfw"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 01 07:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Issei
>Release:        FreeBSD 10.0-CURRENT
>Organization:
>Environment:
FreeBSD nerima 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r246191M: Fri Feb  1 16:00:47 JST 2013     root at nerima:/usr/obj/usr/src/sys/RPI-B-i10a  arm
>Description:
On FreeBSD 10.0-CURRENT/amd64 or /arm, moist recent sources, adding
"device runfw" to kernel configuration file results in build error.



cc -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option   -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-thumb-interwork -ffreestanding -c runfw.c
uudecode -o runfw /usr/src/sys/contrib/dev/run/rt2870.fw.uu
ld -b binary --no-warn-mismatch -d -warn-common -r  -o runfw.fwo 
ld: no input files
*** [runfw.fwo] Error code 1

Stop in /usr/obj/usr/src/sys/RPI-B-i10a.
*** [buildkernel] Error code 1

Stop in /usr/src.
*** [buildkernel] Error code 1

Stop in /usr/src.

>How-To-Repeat:
Add 2 lines to your kernel configuration file.

device          firmware
device          runfw

>Fix:
Index: sys/conf/files
===================================================================
--- sys/conf/files      (revision 246145)
+++ sys/conf/files      (working copy)
@@ -2208,19 +2208,19 @@
 dev/usb/wlan/if_rum.c          optional rum
 dev/usb/wlan/if_run.c          optional run
 runfw.c                                optional runfw                         \
-       compile-with    "${AWK} -f $S/tools/fw_stub.awk runfw:runfw -mrunfw -c${.TARGET}"       \
+       compile-with    "${AWK} -f $S/tools/fw_stub.awk runfw.fw:runfw -mrunfw -c${.TARGET}"    \
        no-implicit-rule before-depend local                                   \
        clean           "runfw.c"
 runfw.fwo                      optional runfw                                 \
-       dependency      "runfw"                                                \
+       dependency      "runfw.fw"                                             \
        compile-with    "${NORMAL_FWO}"                                        \
        no-implicit-rule                                                       \
        clean           "runfw.fwo"
-runfw                          optional runfw                                 \
+runfw.fw                       optional runfw                                 \
        dependency      "$S/contrib/dev/run/rt2870.fw.uu"                      \
        compile-with    "${NORMAL_FW}"                                         \
        no-obj no-implicit-rule                                                \
-       clean           "runfw"
+       clean           "runfw.fw"
 dev/usb/wlan/if_uath.c         optional uath
 dev/usb/wlan/if_upgt.c         optional upgt
 dev/usb/wlan/if_ural.c         optional ural
Index: sys/modules/runfw/Makefile
===================================================================
--- sys/modules/runfw/Makefile  (revision 246145)
+++ sys/modules/runfw/Makefile  (working copy)
@@ -1,11 +1,11 @@
 # $FreeBSD$
 
 KMOD=  runfw
-FIRMWS=        runfw:runfw:1
+FIRMWS=        runfw.fw:runfw:1
 
-CLEANFILES=    runfw
+CLEANFILES=    runfw.fw
 
-runfw: ${.CURDIR}/../../contrib/dev/run/rt2870.fw.uu
+runfw.fw: ${.CURDIR}/../../contrib/dev/run/rt2870.fw.uu
        uudecode -p ${.CURDIR}/../../contrib/dev/run/rt2870.fw.uu > ${.TARGET}
 
 .include <bsd.kmod.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list