compulab-yokneam / meta-bsp-imx7

0 stars 6 forks source link

__sync_val_compare_and_swap_4 Undefined #5

Closed vaib09 closed 2 years ago

vaib09 commented 3 years ago

I am sorry if it's a wrong platform to ask this question. I am trying to build kernel drivers for my project and facing this error ERROR: modpost: "__sync_val_compare_and_swap_4" [ ] Undefined!

BSP - meta-bsp-imx7 branch gatesgarth

Any suggestion would be appreciated.

vraevsky commented 3 years ago

Please provide: 1) the entire build log that shows the issue; 2) the compiler version. 3) information of the changes made in the CompuLab imx7 kernel code.

vaib09 commented 3 years ago

error_log_1.odt Kernel version 5.10.9 GCC compiler 10.2. Haven't made any changes in the CompuLab imx7 kernel code. Build the core-image-minimal.

vraevsky commented 3 years ago

Please compress and post ${BUILDDIR}/conf folder.

vaib09 commented 3 years ago

conf.zip meta-mylayer conf_build.zip build environment conf

vraevsky commented 3 years ago

@vaib09 thanks for providing the confs. Please remove the BBLAYERS += "/home/vaibhav/compulab-bsp/sources/meta-cloakd" line from the conf/bblayer.conf This is not a CompuLab provided layer.

vaib09 commented 3 years ago

@vraevsky This is the meta layer where i have kept my customized kernel modules.

vaib09 commented 3 years ago

I think this error is because of incompatibility between two object files linked together. Since my code base is based on U32 and arm-poky-linux-gnueabi-gcc is U16. Is their any way i can up rebuild yocto image to U32.

vraevsky commented 3 years ago

All objects must be compiled by the same toolchain. Apply the base changes to the meta-cloakd source.