Date: Thu, 26 Jan 2017 05:22:06 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-i386@FreeBSD.org Subject: [Bug 216477] cannot build kernel with gpio devices Message-ID: <bug-216477-10@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216477 Bug ID: 216477 Summary: cannot build kernel with gpio devices Product: Base System Version: 11.0-RELEASE Hardware: i386 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: emz@norma.perm.ru CC: freebsd-i386@FreeBSD.org CC: freebsd-i386@FreeBSD.org 11.0-RELEASE tree. i386 arch, cross-compiling as nanoBSD on amd64. Man gpio states: NAME gpioiic =E2=80=93 GPIO I2C bit-banging device driver SYNOPSIS To compile this driver into the kernel, place the following lines in y= our kernel configuration file: device gpio device gpioiic device iic device iicbb device iicbus [...] Kernel config: [...] device gpio device gpioiic device iic device iicbb device iicbus [...] Kernel build log: -------------------------------------------------------------- >>> stage 1: configuring the kernel -------------------------------------------------------------- cd /usr/src/sys/i386/conf;=20 PATH=3D/usr/obj/nanobsd.alix/i386.i386/usr/src/tmp/legacy/usr/sbin:/usr/obj= /nanobsd.alix/i386. i386/usr/src/tmp/legacy/usr/bin:/usr/obj/nanobsd.alix/i386.i386/usr/src/tmp= /legacy/bin:/usr/obj/nanobsd.alix/i386.i386/u sr/src/tmp/usr/sbin:/usr/obj/nanobsd.alix/i386.i386/usr/src/tmp/usr/bin:/sb= in:/bin:/usr/sbin:/usr/bin config -d /usr/o bj/nanobsd.alix/i386.i386/usr/src/sys/ALIX -I '/usr/src/sys/i386/conf' '/usr/src/sys/i386/conf/ALIX' config: Error: device "gpioc" is unknown config: 1 errors *** [buildkernel] Error code 1 make[1]: stopped in /usr/src 1 error make[1]: stopped in /usr/src *** [buildkernel] Error code 2 make: stopped in /usr/src 1 error make: stopped in /usr/src Okay, now I remove "device gpioc" from the kernel config: [...] --- gpio_if.o --- awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/gpio/gpio_if.m -c= ;=20 cc -c -O -pipe -g -nostdinc -I. -I/usr /src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADE= RS -include opt_global.h -MD -MF.depend.gpi o_if.o -MTgpio_if.o -mno-mmx -mno-sse -msoft-float -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant- decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-poin ter-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno- error-tautological-compare -Wno-error-empty-body=20 -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error -pointer-sign -Wno-error-shift-negative-value -mno-aes -mno-avx=20 -std=3Diso9899:1999 -Werror gpio_if.c --- gpioiic.o --- /usr/src/sys/dev/gpio/gpioiic.c:50:10: fatal error: 'iicbb_if.h' file not f= ound #include "iicbb_if.h" ^ 1 error generated. *** [gpioiic.o] Error code 1 make[2]: stopped in /usr/obj/nanobsd.alix/i386.i386/usr/src/sys/ALIX --- gpioled.o --- ctfconvert -L VERSION -g gpioled.o --- gpio_if.o --- ctfconvert -L VERSION -g gpio_if.o 1 error make[2]: stopped in /usr/obj/nanobsd.alix/i386.i386/usr/src/sys/ALIX *** [buildkernel] Error code 2 make[1]: stopped in /usr/src 1 error make[1]: stopped in /usr/src *** [buildkernel] Error code 2 make: stopped in /usr/src 1 error make: stopped in /usr/src Still doesn't build. So, either the man shoudl be fixed, or these errors ne= ed to be corrected. --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216477-10>