This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TLV320ADC5140: TLV320adc5140 compilation error

Part Number: TLV320ADC5140

Hi TI Team,

This is in continuation with the previos queries:

e2e.ti.com/.../5046717

We are trying to integrate tlv320adc5140 to renesas based rzg2h board and we are using kernel-5.10.158.

We followed instruction given in the file Guideline\ for\ PCMDEVICE\ driver\ on\ Linux.pdf.

we followed below step:

1) copy the src into sound/soc/codecs and named as pcmdevice

2) Modified the Kconfig file to incude pcmdevice

3)Made the changes in Makefile

While Compilling the source we are getting the below error:

NOTE: Executing Tasks
ERROR: linux-renesas-5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1 do_compile: oe_runmake failed
ERROR: linux-renesas-5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1 do_compile: Execution of '/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/temp/run.do_compile.18774' failed with exit code 1
ERROR: Logfile of failure stored in: /mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/temp/log.do_compile.18774
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: KBUILD_BUILD_TIMESTAMP: Sat Feb 27 02:21:18 UTC 2021
| NOTE: make -j 8 HOSTCC=gcc  -isystem/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot-native/usr/include -O2 -pipe -L/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot-native/usr/lib                         -L/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot-native/lib                         -Wl,-rpath,/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E HOSTCXX=g++  -isystem/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot-native/usr/include -O2 -pipe -L/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot-native/usr/lib                         -L/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot-native/lib                         -Wl,-rpath,/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 Image CC=aarch64-poky-linux-gcc   -fuse-ld=bfd -fmacro-prefix-map=/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1=/usr/src/debug/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1                      -fdebug-prefix-map=/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1=/usr/src/debug/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1                      -fdebug-prefix-map=/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot=                      -fdebug-prefix-map=/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot-native=  -fdebug-prefix-map=/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work-shared/hihope-rzg2n/kernel-source=/usr/src/kernel -fdebug-prefix-map=/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work-shared/hihope-rzg2n/kernel-build-artifacts=/usr/src/kernel  --sysroot=/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot   LD=aarch64-poky-linux-ld.bfd    --sysroot=/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/recipe-sysroot
|   GEN     Makefile
|   CALL    /mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work-shared/hihope-rzg2n/kernel-source/scripts/atomic/check-atomics.sh
|   CALL    /mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work-shared/hihope-rzg2n/kernel-source/scripts/checksyscalls.sh
|   CHK     include/generated/compile.h
|   CC      sound/soc/codecs/pcmdevice/pcmdevice-core.o
| /mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work-shared/hihope-rzg2n/kernel-source/sound/soc/codecs/pcmdevice/pcmdevice-core.c:1796:12: error: initialization of 'int (*)(struct i2c_client *, const struct i2c_device_id *)' from incompatible pointer type 'int (*)(struct i2c_client *)' [-Werror=incompatible-pointer-types]
|   .probe  = pcmdevice_i2c_probe,
|             ^~~~~~~~~~~~~~~~~~~
| /mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work-shared/hihope-rzg2n/kernel-source/sound/soc/codecs/pcmdevice/pcmdevice-core.c:1796:12: note: (near initialization for 'pcmdevice_i2c_driver.probe')
| /mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work-shared/hihope-rzg2n/kernel-source/sound/soc/codecs/pcmdevice/pcmdevice-core.c:1797:13: error: initialization of 'int (*)(struct i2c_client *)' from incompatible pointer type 'void (*)(struct i2c_client *)' [-Werror=incompatible-pointer-types]
|   .remove  = pcmdevice_i2c_remove,
|              ^~~~~~~~~~~~~~~~~~~~
| /mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work-shared/hihope-rzg2n/kernel-source/sound/soc/codecs/pcmdevice/pcmdevice-core.c:1797:13: note: (near initialization for 'pcmdevice_i2c_driver.remove')
| cc1: some warnings being treated as errors
| /mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work-shared/hihope-rzg2n/kernel-source/scripts/Makefile.build:286: recipe for target 'sound/soc/codecs/pcmdevice/pcmdevice-core.o' failed
| make[5]: *** [sound/soc/codecs/pcmdevice/pcmdevice-core.o] Error 1
| /mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work-shared/hihope-rzg2n/kernel-source/scripts/Makefile.build:503: recipe for target 'sound/soc/codecs/pcmdevice' failed
| make[4]: *** [sound/soc/codecs/pcmdevice] Error 2
| /mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work-shared/hihope-rzg2n/kernel-source/scripts/Makefile.build:503: recipe for target 'sound/soc/codecs' failed
| make[3]: *** [sound/soc/codecs] Error 2
| /mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work-shared/hihope-rzg2n/kernel-source/scripts/Makefile.build:503: recipe for target 'sound/soc' failed
| make[2]: *** [sound/soc] Error 2
| /mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work-shared/hihope-rzg2n/kernel-source/Makefile:1837: recipe for target 'sound' failed
| make[1]: *** [sound] Error 2
| make[1]: *** Waiting for unfinished jobs....
| /mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work-shared/hihope-rzg2n/kernel-source/Makefile:185: recipe for target '__sub-make' failed
| make: *** [__sub-make] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/tmp/work/hihope_rzg2n-poky-linux/linux-renesas/5.10.158-cip22+gitAUTOINC+4f3d2d21ad-r1/temp/run.do_compile.18774' failed with exit code 1
ERROR: Task (/mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/../meta-renesas/meta-rz-common/recipes-kernel/linux/linux-renesas_5.10.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 604 tasks of which 603 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /mnt/aaca1e4c-d375-4756-bfc4-45e0e60b70d4/nags/rzg2n-303/user_work/build/../meta-renesas/meta-rz-common/recipes-kernel/linux/linux-renesas_5.10.bb:do_compile
Summary: There were 3 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Looks like it is not compilling with kernel-5.10.158 , please suggest workarounf for this error:

OR

IS there a 5.10.158 version source available, please guide us.

Thanks and regards,
Nagaraja