compile error from source
Code
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabi-gcc -march=armv8-a+crc -mabi=aapcs-linux -Wno-psabi -Wa,-mno-warn-deprecated -mcpu=cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -fomit-frame-pointer -Wall -pipe -Os -flto -ffat-lto-objects -Wall -w -o FD628Service FD628Service.c -lm -lpthread
make[1]: Leaving directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/fd628-aml-6993a86'
UNPACK wetekdvb
BUILD wetekdvb (target)
TOOLCHAIN manual
BUILD avl6862-aml (target)
GET crazycat
--2018-03-11 10:38:35-- http://sources.libreelec.tv/devel/crazycat-2017-12-06.tar.xz
Resolving sources.libreelec.tv (sources.libreelec.tv)... 138.68.75.163
Connecting to sources.libreelec.tv (sources.libreelec.tv)|138.68.75.163|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6408256 (6.1M) [application/octet-stream]
Saving to: '/home/lede/LibreELEC.tv/sources/crazycat/crazycat-2017-12-06.tar.xz'
/home/lede/LibreELEC. 100%[========================>] 6.11M 67.6KB/s in 70s
2018-03-11 10:39:46 (89.8 KB/s) - '/home/lede/LibreELEC.tv/sources/crazycat/crazycat-2017-12-06.tar.xz' saved [6408256/6408256]
INFO Calculated checksum: 779c7d42e5fd4dfac8f53654ce8af467d22a81b6c0b21e24f14aaaed033c6eb1
UNPACK crazycat
APPLY PATCH (common) packages/linux-driver-addons/dvb/crazycat/patches/driver.dvb.crazycat-01-remove-rmmod.pl.patch
patching file v4l/Makefile
APPLY PATCH (common) packages/linux-driver-addons/dvb/crazycat/patches/driver.dvb.crazycat-02-add-to-backports.patch
patching file backports/backports.txt
Hunk #1 succeeded at 25 with fuzz 2.
APPLY PATCH (common - amlogic-3.14) packages/linux-driver-addons/dvb/crazycat/patches/amlogic-3.14/driver.dvb.crazycat-01-add-AML-specific-to-backports.patch
patching file backports/backports.txt
APPLY PATCH (common - amlogic-3.14) packages/linux-driver-addons/dvb/crazycat/patches/amlogic-3.14/driver.dvb.crazycat-02-media_build-fix.patch
patching file v4l/compat.h
Hunk #1 succeeded at 1620 (offset 32 lines).
APPLY PATCH (common - amlogic-3.14) packages/linux-driver-addons/dvb/crazycat/patches/amlogic-3.14/driver.dvb.crazycat-03-frame_vector_workaround.patch
patching file v4l/Makefile
APPLY PATCH (common - amlogic-3.14) packages/linux-driver-addons/dvb/crazycat/patches/amlogic-3.14/driver.dvb.crazycat-04-AML-hacks.patch
patching file linux/Makefile
APPLY PATCH (common - amlogic-3.14) packages/linux-driver-addons/dvb/crazycat/patches/amlogic-3.14/driver.dvb.crazycat-05-compat_h-fix.patch
patching file v4l/compat.h
Hunk #1 succeeded at 1488 (offset 32 lines).
BUILD crazycat (target)
TOOLCHAIN make (auto-detect)
make[1]: Entering directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06'
make -C linux/ untar
make[2]: Entering directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/linux'
tar xfj linux-media.tar.bz2
mkdir -p drivers/media/amlogic/
# Copy amlvideodri module
cp -a "/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/linux-5f1805b/drivers/amlogic/video_dev" "drivers/media/amlogic"
sed -i 's,common/,,g; s,"trace/,",g' `find drivers/media/amlogic/video_dev/ -type f`
# Copy videobuf-res module
cp -a "/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/linux-5f1805b/drivers/media/v4l2-core/videobuf-res.c" "drivers/media/v4l2-core/"
cp -a "/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/linux-5f1805b/include/media/videobuf-res.h" "include/media/"
# Copy WeTek Play DVB driver
cp -a "/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/linux-5f1805b/drivers/amlogic/wetek" "drivers/media/amlogic"
# Copy dvb-avl driver
cp -a /home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/linux-5f1805b/drivers/amlogic/dvb-avl "drivers/media"
echo "obj-y += dvb-avl/" >> "drivers/media/Makefile"
rm -f .patches_applied .linked_dir .git_log.md5
make[2]: Leaving directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/linux'
make[1]: Leaving directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06'
make[1]: Entering directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06'
make -C /home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l
make[2]: Entering directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l'
Forcing kernel version to 3.14.29.
scripts/make_makefile.pl
Updating/Creating .config
make[3]: Entering directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/linux'
Applying patches for kernel 3.14.29
patch -s -f -N -p1 -i ../backports/linux-301-AML-videobuf-resource.patch
patch -s -f -N -p1 -i ../backports/linux-302-AML-amlogic-video-dev.patch
patch -s -f -N -p1 -i ../backports/linux-303-AML-meson-ir.patch
patch -s -f -N -p1 -i ../backports/linux-304-AML-wetekplay.patch
patch -s -f -N -p1 -i ../backports/linux-305-AML-dmx_h.patch
patch -s -f -N -p1 -i ../backports/linux-306-AML-build-dvb-avl.patch
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
patch -s -f -N -p1 -i ../backports/debug.patch
patch -s -f -N -p1 -i ../backports/drx39xxj.patch
patch -s -f -N -p1 -i ../backports/linux-052-XBOX_remote_support.patch
patch -s -f -N -p1 -i ../backports/linux-054-nuvoton_revert_d7b290a1056c5564eec8a1b169c6e84ff3.6.114c13.patch
patch -s -f -N -p1 -i ../backports/linux-202-lnbp22_patch_for_more_power_if_rotor.patch
patch -s -f -N -p1 -i ../backports/linux-203-stb0899_enable_low_symbol_rate.patch
patch -s -f -N -p1 -i ../backports/linux-220-Xbox-One-DVB-T2-stick-support.patch
patch -s -f -N -p1 -i ../backports/linux-221-hauppauge_dualhd_second_tuner_support.patch
patch -s -f -N -p1 -i ../backports/v4.14_compiler_h.patch
patch -s -f -N -p1 -i ../backports/v4.12_revert_solo6x10_copykerneluser.patch
patch -s -f -N -p1 -i ../backports/v4.10_sched_signal.patch
patch -s -f -N -p1 -i ../backports/v4.10_fault_page.patch
patch -s -f -N -p1 -i ../backports/v4.10_refcount.patch
patch -s -f -N -p1 -i ../backports/v4.9_mm_address.patch
patch -s -f -N -p1 -i ../backports/v4.9_dvb_net_max_mtu.patch
patch -s -f -N -p1 -i ../backports/v4.9_ktime_cleanups.patch
patch -s -f -N -p1 -i ../backports/v4.8_user_pages_flag.patch
patch -s -f -N -p1 -i ../backports/v4.7_dma_attrs.patch
patch -s -f -N -p1 -i ../backports/v4.7_pci_alloc_irq_vectors.patch
patch -s -f -N -p1 -i ../backports/v4.6_i2c_mux.patch
patch -s -f -N -p1 -i ../backports/v4.5_gpiochip_data_pointer.patch
patch -s -f -N -p1 -i ../backports/v4.5_get_user_pages.patch
patch -s -f -N -p1 -i ../backports/v4.5_uvc_super_plus.patch
patch -s -f -N -p1 -i ../backports/v4.4_gpio_chip_parent.patch
patch -s -f -N -p1 -i ../backports/v4.2_atomic64.patch
patch -s -f -N -p1 -i ../backports/v4.2_frame_vector.patch
patch -s -f -N -p1 -i ../backports/v4.1_pat_enabled.patch
patch -s -f -N -p1 -i ../backports/v4.1_drop_fwnode.patch
patch -s -f -N -p1 -i ../backports/v4.0_dma_buf_export.patch
patch -s -f -N -p1 -i ../backports/v4.0_drop_trace.patch
patch -s -f -N -p1 -i ../backports/v4.0_fwnode.patch
patch -s -f -N -p1 -i ../backports/v3.19_get_user_pages_locked.patch
patch -s -f -N -p1 -i ../backports/v3.18_drop_property_h.patch
patch -s -f -N -p1 -i ../backports/v3.17_fix_clamp.patch
patch -s -f -N -p1 -i ../backports/v3.16_netdev.patch
patch -s -f -N -p1 -i ../backports/v3.16_wait_on_bit.patch
patch -s -f -N -p1 -i ../backports/v3.16_void_gpiochip_remove.patch
Patched drivers/media/dvb-core/dvbdev.c
Patched drivers/media/v4l2-core/v4l2-dev.c
Patched drivers/media/rc/rc-main.c
make[3]: Leaving directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/linux'
./scripts/make_kconfig.pl /home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/linux-5f1805b /home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/linux-5f1805b
Preparing to compile for kernel version 3.14.29
WARNING: This is the V4L/DVB backport tree, with experimental drivers
backported to run on legacy kernels from the development tree at:
http://git.linuxtv.org/media-tree.git.
It is generally safe to use it for testing a new driver or
feature, but its usage on production environments is risky.
Don't use it in production. You've been warned.
CEC_CORE: Requires at least kernel 3.19.0
IR_GPIO_CIR: Requires at least kernel 3.17.0
IR_GPIO_TX: Requires at least kernel 3.17.0
RC_ST: Requires at least kernel 3.15.0
MEDIA_CEC_SUPPORT: Requires at least kernel 3.19.0
V4L2_FLASH_LED_CLASS: Requires at least kernel 3.18.0
VIDEO_SOLO6X10: Requires at least kernel 4.5.0
VIDEO_MUX: Requires at least kernel 4.13.0
VIDEO_XILINX: Requires at least kernel 3.17.0
I2C_SI4713: Requires at least kernel 3.17.0
RADIO_WL128X: Requires at least kernel 4.13.0
VIDEO_ADV7180: Requires at least kernel 3.17.0
VIDEO_ADV7604: Requires at least kernel 3.17.0
VIDEO_DW9714: Requires at least kernel 9.255.255
VIDEO_TC358743: Requires at least kernel 3.17.0
VIDEO_TVP5150: Requires at least kernel 3.17.0
VIDEO_IMX274: Requires at least kernel 3.17.0
VIDEO_OV2640: Requires at least kernel 3.17.0
VIDEO_OV5640: Requires at least kernel 3.17.0
VIDEO_OV5645: Requires at least kernel 3.17.0
VIDEO_OV5670: Requires at least kernel 4.10.0
VIDEO_OV7670: Requires at least kernel 3.17.0
VIDEO_OV13858: Requires at least kernel 4.5.0
VIDEO_MT9P031: Requires at least kernel 3.17.0
VIDEO_MT9V032: Requires at least kernel 3.19.0
VIDEO_SMIAPP: Requires at least kernel 4.0.0
VIDEO_ET8EK8: Requires at least kernel 3.17.0
VIDEO_ADP1653: Requires at least kernel 3.17.0
SDR_MAX2175: Requires at least kernel 3.19.0
DVB_CXD2820R: Requires at least kernel 4.4.0
DVB_LGDT3306A: Requires at least kernel 4.7.0
./scripts/make_myconfig.pl
scripts/make_makefile.pl
perl scripts/make_config_compat.pl /home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/linux-5f1805b ./.myconfig ./config-compat.h
make -C firmware prep
creating symbolic links...
make[3]: Entering directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/firmware'
make[3]: Nothing to be done for 'prep'.
make[3]: Leaving directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/firmware'
make -C firmware
make[3]: Entering directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/firmware'
make[3]: Nothing to be done for 'default'.
make[3]: Leaving directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/firmware'
Kernel build directory is /home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/linux-5f1805b
make -C ../linux apply_patches
make[3]: Entering directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/linux'
Patches for 3.14.29 already applied.
make[3]: Leaving directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/linux'
make -C /home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/linux-5f1805b SUBDIRS=/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l modules
make[3]: Entering directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/linux-5f1805b'
KBUILD_CFLAGS_MODULE:-DMODULE -mfix-cortex-a53-843419 -mfix-cortex-a53-835769
CC [M] /home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/altera-jtag.o
CC [M] /home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/altera-lpt.o
CC [M] /home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/altera-comp.o
CC [M] /home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/altera.o
In file included from <command-line>:0:0:
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h: In function 'pm_runtime_get_if_in_use':
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:2106:21: error: 'struct dev_pm_info' has no member named 'disable_depth'
retval = dev->power.disable_depth > 0 ? -EINVAL :
^
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:2107:13: error: 'struct dev_pm_info' has no member named 'runtime_status'
dev->power.runtime_status == RPM_ACTIVE
^
In file included from include/linux/spinlock.h:402:0,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:18,
from <command-line>:0:
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:2108:38: error: 'struct dev_pm_info' has no member named 'usage_count'
&& atomic_inc_not_zero(&dev->power.usage_count);
^
include/linux/atomic.h:28:52: note: in definition of macro 'atomic_inc_not_zero'
#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
^
In file included from <command-line>:0:0:
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h: In function 'pm_runtime_get_if_in_use':
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:2106:21: error: 'struct dev_pm_info' has no member named 'disable_depth'
retval = dev->power.disable_depth > 0 ? -EINVAL :
^
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:2107:13: error: 'struct dev_pm_info' has no member named 'runtime_status'
dev->power.runtime_status == RPM_ACTIVE
^
In file included from include/linux/spinlock.h:402:0,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:18,
from <command-line>:0:
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:2108:38: error: 'struct dev_pm_info' has no member named 'usage_count'
&& atomic_inc_not_zero(&dev->power.usage_count);
^
include/linux/atomic.h:28:52: note: in definition of macro 'atomic_inc_not_zero'
#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
^
make[4]: *** [scripts/Makefile.build:308:/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/altera-jtag.o] 错误 1
make[4]: *** 正在等待未完成的任务....
make[4]: *** [scripts/Makefile.build:308:/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/altera-lpt.o] 错误 1
In file included from <command-line>:0:0:
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h: In function 'pm_runtime_get_if_in_use':
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:2106:21: error: 'struct dev_pm_info' has no member named 'disable_depth'
retval = dev->power.disable_depth > 0 ? -EINVAL :
^
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:2107:13: error: 'struct dev_pm_info' has no member named 'runtime_status'
dev->power.runtime_status == RPM_ACTIVE
^
In file included from include/linux/spinlock.h:402:0,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:18,
from <command-line>:0:
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:2108:38: error: 'struct dev_pm_info' has no member named 'usage_count'
&& atomic_inc_not_zero(&dev->power.usage_count);
^
include/linux/atomic.h:28:52: note: in definition of macro 'atomic_inc_not_zero'
#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
^
make[4]: *** [scripts/Makefile.build:308:/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/altera-comp.o] 错误 1
In file included from <command-line>:0:0:
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h: In function 'pm_runtime_get_if_in_use':
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:2106:21: error: 'struct dev_pm_info' has no member named 'disable_depth'
retval = dev->power.disable_depth > 0 ? -EINVAL :
^
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:2107:13: error: 'struct dev_pm_info' has no member named 'runtime_status'
dev->power.runtime_status == RPM_ACTIVE
^
In file included from include/linux/spinlock.h:402:0,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:18,
from <command-line>:0:
/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/compat.h:2108:38: error: 'struct dev_pm_info' has no member named 'usage_count'
&& atomic_inc_not_zero(&dev->power.usage_count);
^
include/linux/atomic.h:28:52: note: in definition of macro 'atomic_inc_not_zero'
#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
^
make[4]: *** [scripts/Makefile.build:308:/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l/altera.o] 错误 1
make[3]: *** [Makefile:1293: _module_/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l] Error 2
make[3]: Leaving directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/linux-5f1805b'
make[2]: *** [Makefile:53: default] Error 2
make[2]: Leaving directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06/v4l'
make[1]: *** [Makefile:26: all] Error 2
make[1]: Leaving directory '/home/lede/LibreELEC.tv/build.LibreELEC-S905.arm-9.0-devel/crazycat-2017-12-06'
Makefile:12: recipe for target 'image' failed
make: *** [image] Error 2
Display More