davidomo Posted February 9, 2017 Posted February 9, 2017 Hello, The compilation of a kernel failed with the error returned: ERROR in function compile_kernel [common.sh:254] Armbian building script, http://www.armbian.com | Author: Igor Pecovnik Compiling kernel... ... CC [M] drivers/net/wireless/rtl8189fs/core/rtw_mp_ioctl.o LD [M] drivers/net/wireless/rtl8189fs/8189fs.o LD drivers/net/wireless/built-in.o LD drivers/net/built-in.o Makefile:948 : la recette pour la cible « drivers » a échouée make: *** [drivers] Erreur 2 This error occurred after activating in the config of the kernel: ----> Device Driver -----> USB Support ------> USB Modem (CDC ACM) Support -------> USB Serial Converter support ------> USB driver for GSM and CDMA modems board : ORANGE PI PC It was a test in order to use an iocrest converter: http://www.iocrest.com/en/product_details559_a.html Using the cdc_acm protocol do you have an idea ? Being french forgiven me if google translation does not always understand what i want to say output.log.pdf
Igor Posted February 10, 2017 Posted February 10, 2017 I don't understand what you want to achieve. All those modules are already enabled as (M)odules and they should be built by default. Building this kernel works for me - no errors.
hiwu Posted May 2, 2017 Posted May 2, 2017 I produced the bug as following streps (1)git clone https://github.com/igorpecovnik/lib --depth 1 (2)cp lib/compile.sh . (3)sudo ./compile.sh BRANCH=default BOARD=tinkerboard KERNEL_ONLY=yes KERNEL_CONFIGURE=yes PROGRESS_DISPLAY=plain(4)system type ---> [*] Support for the Large Physical Address Extension(5)[*] Virtualization ---> [*] Kernel-based Virtual Machine (KVM) support then you will see the error CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/platform/platform_ops.o CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_mp.o CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_mp_ioctl.o CC [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/core/rtw_bt_mp.o LD [M] drivers/net/wireless/rockchip_wlan/rtl8723bs/8723bs.o LD drivers/net/wireless/built-in.o LD drivers/net/built-in.o make: *** [drivers] Error 2 [ error ] ERROR in function compile_kernel [ common.sh:238 ] [ error ] Kernel was not built [ @host ] [ o.k. ] Process terminated
Igor Posted May 2, 2017 Posted May 2, 2017 Our build script works fine ... there is a problem in kernel source, which fails to compile under this particular configuration. Unfortunately nothing unusual. You need to start your exploration and help from here: https://github.com/armbian/build/blob/master/config/sources/rockchip.conf#L19-L20 We add a bunch of patches over this source but I doubt it's related to this problem. Remove them all but packaging (which only fix .deb packages) and try again.
Юрий Долгорукий Posted August 18, 2018 Posted August 18, 2018 CC [M] net/netfilter/xt_time.o AR net/netfilter/built-in.a LD [M] net/netfilter/nf_conntrack_h323.o LD [M] net/netfilter/nf_conntrack.o LD [M] net/netfilter/nf_tables.o LD [M] net/netfilter/nf_nat.o AR net/built-in.a [ error ] ERROR in function compile_kernel [ compilation.sh:365 ] [ error ] Kernel was not built [ @host ] [ o.k. ] Process terminated how to understand what exactly leads to error? What should I disable in the kernel?
Igor Posted August 18, 2018 Posted August 18, 2018 14 minutes ago, Юрий Долгорукий said: how to understand what exactly leads to error? You need to inspect the whole log. In case you made changes to the source or if you use WIP/CSC/EOL targets, the problem is yours.
Юрий Долгорукий Posted August 18, 2018 Posted August 18, 2018 dpkg-source --before-build linux-4.17.y debian/rules build make KERNELRELEASE=4.17.16-sunxi ARCH=arm KBUILD_SRC= CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK include/generated/bounds.h CHK include/generated/timeconst.h CHK include/generated/asm-offsets.h CALL scripts/checksyscalls.sh CHK scripts/mod/devicetable-offsets.h CHK include/generated/compile.h CHK kernel/config_data.h LD [M] drivers/gpu/drm/sun4i/sun8i-mixer.o drivers/gpu/drm/sun4i/sun8i_tcon_top.o: In function `init_module': sun8i_tcon_top.c:(.init.text+0x0): multiple definition of `init_module' drivers/gpu/drm/sun4i/sun8i_mixer.o:sun8i_mixer.c:(.init.text+0x0): first defined here drivers/gpu/drm/sun4i/sun8i_tcon_top.o: In function `cleanup_module': sun8i_tcon_top.c:(.exit.text+0x0): multiple definition of `cleanup_module' drivers/gpu/drm/sun4i/sun8i_mixer.o:sun8i_mixer.c:(.exit.text+0x0): first defined here scripts/Makefile.build:531: recipe for target 'drivers/gpu/drm/sun4i/sun8i-mixer.o' failed make[7]: *** [drivers/gpu/drm/sun4i/sun8i-mixer.o] Error 1 scripts/Makefile.build:559: recipe for target 'drivers/gpu/drm/sun4i' failed make[6]: *** [drivers/gpu/drm/sun4i] Error 2 scripts/Makefile.build:559: recipe for target 'drivers/gpu/drm' failed make[5]: *** [drivers/gpu/drm] Error 2 scripts/Makefile.build:559: recipe for target 'drivers/gpu' failed make[4]: *** [drivers/gpu] Error 2 Makefile:1063: recipe for target 'drivers' failed make[3]: *** [drivers] Error 2 debian/rules:4: recipe for target 'build' failed make[2]: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 scripts/package/Makefile:79: recipe for target 'bindeb-pkg' failed make[1]: *** [bindeb-pkg] Error 2 Makefile:1408: recipe for target 'bindeb-pkg' failed make: *** [bindeb-pkg] Error 2 dpkg-deb: building package 'linux-source-4.17.16-next-sunxi' in '/root/build/.tmp/linux-source-next-sunxi_5.59_all.deb'. mv: missing destination file operand after '/root/build/output/debs/' Try 'mv --help' for more information. [ error ] ERROR in function compile_kernel [ compilation.sh:407 ] [ error ] Failed moving kernel DEBs [ o.k. ] Process terminated
Юрий Долгорукий Posted August 18, 2018 Posted August 18, 2018 if [[ ${PIPESTATUS[0]} -ne 0 || ! -f arch/$ARCHITECTURE/boot/$KERNEL_IMAGE_TYPE ]]; then local kernel_packing="bindeb-pkg" fi if [[ ${PIPESTATUS[0]} -ne 0 || ! -f arch/$ARCHITECTURE/boot/$KERNEL_IMAGE_TYPE ]]; then local kernel_packing="bindeb-pkg" fi when change
Igor Posted August 18, 2018 Posted August 18, 2018 Unchanged build script on supported hosts works. That is the best what we can do. Spoiler INSTALL debian/headertmp/usr/include/xen/ (4 files) INSTALL debian/headertmp/usr/include/asm/ (38 files) patching file tools/include/tools/be_byteshift.h patching file tools/include/tools/le_byteshift.h CLEAN scripts/basic CLEAN scripts/dtc CLEAN scripts/kconfig CLEAN scripts/mod CLEAN scripts/selinux/genheaders CLEAN scripts/selinux/mdp CLEAN scripts dpkg-deb: building package 'linux-headers-next-sunxi' in '../linux-headers-next-sunxi_5.59_armhf.deb'. dpkg-deb: building package 'linux-dtb-next-sunxi' in '../linux-dtb-next-sunxi_5.59_armhf.deb'. dpkg-deb: building package 'linux-image-next-sunxi' in '../linux-image-next-sunxi_5.59_armhf.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../linux-4.17.16-sunxi_5.59_armhf.changes dpkg-genchanges: warning: package linux-libc-dev in control file but not in files list dpkg-genchanges: warning: package linux-image-next-sunxi-dbg in control file but not in files list dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build linux-4.17.y dpkg-buildpackage: info: binary-only upload (no source included) dpkg-deb: building package 'linux-source-4.17.16-next-sunxi' in '/home/igorp/h6/.tmp/linux-source-next-sunxi_5.59_all.deb'. [ o.k. ] Kernel build done [ @host ] [ o.k. ] Target directory [ /home/igorp/h6/output/debs/ ] [ o.k. ] File name [ linux-image-next-sunxi_5.59_armhf.deb ] [ o.k. ] Runtime [ 6 min ] 1
Юрий Долгорукий Posted August 31, 2018 Posted August 31, 2018 Error: arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts:117.1-6 Label or path cpu0 not found FATAL ERROR: Syntax error parsing input tree scripts/Makefile.lib:298: recipe for target 'arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dtb' failed make[1]: *** [arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dtb] Error 1 I collect for a cubieboard a10, how can I avoid mistakes? sun8i-h2-plus-orangepi-r1.dtb Error: arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts:116.1-6 Label or path cpu0 not found FATAL ERROR: Syntax error parsing input tree scripts/Makefile.lib:298: recipe for target 'arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dtb' failed make[1]: *** [arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dtb] Error 1 arch/arm/Makefile:358: recipe for target 'dtbs' failed
Igor Posted August 31, 2018 Posted August 31, 2018 On 8/18/2018 at 9:12 AM, Igor said: Unchanged build script on supported hosts works. If you are changing the script ... errors become your problem. What are you trying to achieve?
norrest Posted September 21, 2019 Posted September 21, 2019 [ error ] ERROR in function compile_kernel [ compilation.sh:382 ] [ error ] Kernel was not built [ @host ] [ o.k. ] Process terminated == kernel == Error: arch/arm/boot/dts/axp209.dtsi:51.1-8 syntax error FATAL ERROR: Unable to parse input tree make[1]: *** [arch/arm/boot/dts/sun7i-a20-bananapi.dtb] Error 1 make: *** [dtbs] Error 2 make: *** Waiting for unfinished jobs.... How to solve this?
Igor Posted September 21, 2019 Posted September 21, 2019 2 hours ago, norrest said: Error: arch/arm/boot/dts/axp209.dtsi:51.1-8 syntax error https://www.google.com/?q=Linux kernel compilation debugging Inspect the line where error is reported. Armbian build system seems to work - yesterday automated build was successful: https://dl.armbian.com/tritium-h5/nightly/ Its possible that something broke upstream during a day ... but that will have to wait. 1
Recommended Posts