[OnePlus X Q&A, Help & Troubleshooting] psychem:
[MENTION=7093179]YumeMichi[/MENTION]

trying to build los 17. getting an error

[ 15% 11505/72747] Building Kernel
FAILED: out/target/product/onyx/obj/KERNEL_OBJ/arch/arm/boot/zImage-dtb
/bin/bash -c "(PATH=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-/bin:\$PATH PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/thinkmachine/android/los17/prebuilts/tools-lineage/common/perl-base /home/thinkmachine/android/los17/prebuilts/build-tools/linux-x86/bin/make -j12 CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib64\" HOSTCC=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-gcc HOSTCXX=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-g++ -C kernel/oneplus/onyx O=/home/thinkmachine/android/los17/out/target/product/onyx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" /home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" zImage-dtb ) && (if grep -q '^CONFIG_OF=y' out/target/product/onyx/obj/KERNEL_OBJ/.config; then	echo \"Building DTBs\";	PATH=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-/bin:\$PATH PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/thinkmachine/android/los17/prebuilts/tools-lineage/common/perl-base /home/thinkmachine/android/los17/prebuilts/build-tools/linux-x86/bin/make -j12 CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib64\" HOSTCC=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-gcc HOSTCXX=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-g++ -C kernel/oneplus/onyx O=/home/thinkmachine/android/los17/out/target/product/onyx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" /home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" dtbs;	fi ) && (if grep -q '=m' out/target/product/onyx/obj/KERNEL_OBJ/.config; then	echo \"Building Kernel Modules\";	PATH=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-/bin:\$PATH PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/thinkmachine/android/los17/prebuilts/tools-lineage/common/perl-base /home/thinkmachine/android/los17/prebuilts/build-tools/linux-x86/bin/make -j12 CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib64\" HOSTCC=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-gcc HOSTCXX=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-g++ -C kernel/oneplus/onyx O=/home/thinkmachine/android/los17/out/target/product/onyx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" /home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" modules || exit \"\$?\";	echo \"Installing Kernel Modules\";	PATH=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-/bin:\$PATH PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/thinkmachine/android/los17/prebuilts/tools-lineage/common/perl-base /home/thinkmachine/android/los17/prebuilts/build-tools/linux-x86/bin/make -j12 CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib64\" HOSTCC=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-gcc HOSTCXX=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-g++ -C kernel/oneplus/onyx O=/home/thinkmachine/android/los17/out/target/product/onyx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" /home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" INSTALL_MOD_PATH=/home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/kernel_modules_intermediates INSTALL_MOD_STRIP=1 modules_install;	kernel_release=\$(cat out/target/product/onyx/obj/KERNEL_OBJ/include/config/kernel.release)	modules=\$(find /home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/kernel_modules_intermediates/lib/modules/\$kernel_release -type f -name '*.ko');	( rm -rf out/target/product/onyx/system/vendor/lib/modules ) && (mkdir -p out/target/product/onyx/system/vendor/lib/modules ) && (cp \$modules out/target/product/onyx/system/vendor/lib/modules/ ) && (rm -rf /home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/depmod_vendor_intermediates ) && (mkdir -p /home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/vendor/lib/modules ) && (cp \$modules /home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/vendor/lib/modules ) && (out/host/linux-x86/bin/depmod -b /home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/depmod_vendor_intermediates 0.0 ) && (sed -e 's/\\(.*modules.*\\):/\\/\\1:/g' -e 's/ \\([^ ]*modules[^ ]*\\)/ \\/\\1/g' /home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.dep > out/target/product/onyx/system/vendor/lib/modules/modules.dep ) && (cp /home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.alias out/target/product/onyx/system/vendor/lib/modules);	fi )"
make: Entering directory '/home/thinkmachine/android/los17/kernel/oneplus/onyx'
GEN /home/thinkmachine/android/los17/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
GEN /home/thinkmachine/android/los17/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
Using /home/thinkmachine/android/los17/kernel/oneplus/onyx as source for kernel
CHK include/generated/utsrelease.h
make[2]: 'include/generated/mach-types.h' is up to date.
CALL /home/thinkmachine/android/los17/kernel/oneplus/onyx/scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
CC drivers/usb/class/ccid_bridge.o
CC drivers/usb/gadget/udc-core.o
CC drivers/usb/core/usb.o
CC drivers/usb/core/hub.o
CC drivers/usb/dwc3/core.o
LD drivers/usb/misc/built-in.o
CC drivers/usb/host/ehci-hcd.o
CC drivers/usb/mon/mon_main.o
CC drivers/usb/otg/otg.o
CC drivers/usb/serial/usb-serial.o
/home/thinkmachine/android/los17/kernel/oneplus/onyx/drivers/usb/class/ccid_bridge.c: In function 'ccid_bridge_ioctl':
/home/thinkmachine/android/los17/kernel/oneplus/onyx/drivers/usb/class/ccid_bridge.c:464:9: error: too few arguments to function '__usb_get_extra_descriptor'
ret = __usb_get_extra_descriptor(udev->rawdescriptors[0],
^
In file included from /home/thinkmachine/android/los17/kernel/oneplus/onyx/drivers/usb/class/ccid_bridge.c:21:0:
/home/thinkmachine/android/los17/kernel/oneplus/onyx/include/linux/usb.h:305:5: note: declared here
int __usb_get_extra_descriptor(char *buffer, unsigned size,
^
make[4]: *** [/home/thinkmachine/android/los17/kernel/oneplus/onyx/scripts/Makefile.build:308: drivers/usb/class/ccid_bridge.o] Error 1
make[3]: *** [/home/thinkmachine/android/los17/kernel/oneplus/onyx/scripts/Makefile.build:443: drivers/usb/class] Error 2
make[3]: *** Waiting for unfinished jobs....
CC drivers/usb/otg/msm_otg.o
CC drivers/usb/mon/mon_stat.o
CC drivers/usb/mon/mon_text.o
CC drivers/usb/mon/mon_bin.o
CC drivers/usb/core/hcd.o
CC drivers/usb/gadget/ci13xxx_msm.o
CC drivers/usb/serial/generic.o
CC drivers/usb/gadget/android.o
CC drivers/usb/dwc3/host.o
CC drivers/usb/host/xhci.o
CC drivers/usb/dwc3/gadget.o
CC drivers/usb/serial/bus.o
CC drivers/usb/serial/csvt.o
LD drivers/usb/mon/usbmon.o
LD drivers/usb/mon/built-in.o
CC drivers/usb/dwc3/ep0.o
CC drivers/usb/core/urb.o
LD drivers/usb/serial/usbserial.o
CC drivers/usb/core/message.o
LD drivers/usb/serial/built-in.o
CC drivers/usb/core/driver.o
CC drivers/usb/core/config.o
CC drivers/usb/dwc3/dwc3_otg.o
CC drivers/usb/host/xhci-mem.o
CC drivers/usb/core/file.o
CC drivers/usb/core/buffer.o
CC drivers/usb/dwc3/debugfs.o
CC drivers/usb/core/sysfs.o
CC drivers/usb/core/endpoint.o
CC drivers/usb/core/devio.o
CC drivers/usb/core/notify.o
LD drivers/usb/otg/built-in.o
CC drivers/usb/dwc3/dwc3-msm.o
CC drivers/usb/core/generic.o
CC drivers/usb/core/quirks.o
CC drivers/usb/core/devices.o
CC drivers/usb/host/xhci-ring.o
CC drivers/usb/host/xhci-hub.o
CC drivers/usb/host/xhci-dbg.o
CC drivers/usb/host/xhci-plat.o
CC drivers/usb/dwc3/dwc3-exynos.o
LD drivers/usb/dwc3/dwc3.o
LD drivers/usb/core/usbcore.o
LD drivers/usb/core/built-in.o
LD drivers/usb/host/xhci-hcd.o
LD drivers/usb/dwc3/built-in.o
LD drivers/usb/host/built-in.o
LD drivers/usb/gadget/g_android.o
LD drivers/usb/gadget/built-in.o
make[2]: *** [/home/thinkmachine/android/los17/kernel/oneplus/onyx/scripts/Makefile.build:443: drivers/usb] Error 2
make[1]: *** [/home/thinkmachine/android/los17/kernel/oneplus/onyx/Makefile:979: drivers] Error 2
make: *** [Makefile:130: sub-make] Error 2
make: Leaving directory '/home/thinkmachine/android/los17/kernel/oneplus/onyx'
15:03:42 ninja failed with: exit status 1