Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2013 16:33:55 +0800
From:      XiaoQI Ge <ghw@7axu.com>
To:        freebsd-arm@freebsd.org
Subject:   if_run compilation fails (Cubieboard)
Message-ID:  <CAKrd9eX%2B8QyCwsAWE6UichiWWrxG0rO1sF=CPOFDjB%2B2ewhKPw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
hello all
I tried to if_run compiled into the kernel, but prompt an error, the error
message is as follows:

TION_HEADERS -include opt_global.h  -ffreestanding -Werror
/usr/src/sys/arm/allwinner/aintc.c
cc  -c -O -pipe  -std=3Dc99 -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
-Wno-error-tautological-compare -Wno-error-empty-body
-Wno-error-parentheses-equality  -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  -ffreestanding -Werror
/usr/src/sys/arm/allwinner/bus_space.c
cc  -c -O -pipe  -std=3Dc99 -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
-Wno-error-tautological-compare -Wno-error-empty-body
-Wno-error-parentheses-equality  -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  -ffreestanding -Werror
/usr/src/sys/arm/allwinner/common.c
cc  -c -O -pipe  -std=3Dc99 -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
-Wno-error-tautological-compare -Wno-error-empty-body
-Wno-error-parentheses-equality  -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  -ffreestanding -Werror
/usr/src/sys/arm/allwinner/a10_machdep.c
cc  -c -O -pipe  -std=3Dc99 -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
-Wno-error-tautological-compare -Wno-error-empty-body
-Wno-error-parentheses-equality  -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  -ffreestanding -Werror
config.c
cc  -c -O -pipe  -std=3Dc99 -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
-Wno-error-tautological-compare -Wno-error-empty-body
-Wno-error-parentheses-equality  -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  -ffreestanding -Werror
env.c
cc  -c -O -pipe  -std=3Dc99 -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
-Wno-error-tautological-compare -Wno-error-empty-body
-Wno-error-parentheses-equality  -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  -ffreestanding -Werror
hints.c
cc  -c -O -pipe  -std=3Dc99 -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
-Wno-error-tautological-compare -Wno-error-empty-body
-Wno-error-parentheses-equality  -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  -ffreestanding -Werror
vnode_if.c
:> hack.c
cc  -shared -nostdlib hack.c -o hack.So
rm -f hack.c
cat /usr/src/sys/conf/ldscript.arm|sed s/KERNPHYSADDR/0x40200000/g|  sed
s/KERNVIRTADDR/0xc0200000/g > ldscript.arm
MAKE=3Dmake sh /usr/src/sys/conf/newvers.sh CUBIEBOARD1G
svn: E155036: The working copy at '/usr/src'
is too old (format 29) to work with client version '1.8.0 (r1490375)'
(expects format 31). You need to upgrade the working copy first.

cc  -c -O -pipe  -std=3Dc99 -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
-Wno-error-tautological-compare -Wno-error-empty-body
-Wno-error-parentheses-equality  -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  -ffreestanding -Werror
vers.c
linking kernel.debug
if_run.o: In function `run_load_microcode':
/usr/src/sys/dev/usb/wlan/if_run.c:979: undefined reference to
`firmware_get'
/usr/src/sys/dev/usb/wlan/if_run.c:1059: undefined reference to
`firmware_put'
runfw.o: In function `runfw_fw_modevent':
/usr/obj/armv6/arm.arm/usr/src/sys/CUBIEBOARD1G/runfw.c:31: undefined
reference to `firmware_unregister'
/usr/obj/armv6/arm.arm/usr/src/sys/CUBIEBOARD1G/runfw.c:23: undefined
reference to `firmware_register'
*** Error code 1

Stop.
make: stopped in /usr/obj/armv6/arm.arm/usr/src/sys/CUBIEBOARD1G
*** Error code 1

Stop.
make: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src

=3D=3D=3D
My kernel configuration file Riga:

device      wlan
device      wlan_wep
device      wlan_ccmp
device      wlan_tkip

device
=E2=80=8B=E2=80=8B
run
device wlan_amrr
device runfw

Please help me



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKrd9eX%2B8QyCwsAWE6UichiWWrxG0rO1sF=CPOFDjB%2B2ewhKPw>